easea-app-widget 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23517,7 +23517,7 @@ function AU(e, t) {
23517
23517
  throw r.error;
23518
23518
  return { ...r, mutate: s, mutateAsync: r.mutate };
23519
23519
  }
23520
- const NU = { DEV: !1 }, { DEV: kU } = NU, EU = kU, DU = "https://api.easea.app/graphql", TU = "1.2.2", CA = (e) => {
23520
+ const NU = { DEV: !1 }, { DEV: kU } = NU, EU = kU, DU = "https://api.easea.app/graphql", TU = "1.2.3", CA = (e) => {
23521
23521
  let t;
23522
23522
  const n = /* @__PURE__ */ new Set(), a = (v, b) => {
23523
23523
  const w = typeof v == "function" ? v(t) : v;
@@ -40261,9 +40261,9 @@ class fn {
40261
40261
  setDate = (t) => (this._date = this._date.set("date", t), this);
40262
40262
  setMonth = (t) => (this._date = this._date.set("month", t), this);
40263
40263
  setYear = (t) => (this._date = this._date.set("year", t), this);
40264
- setHours = (t) => (this._date = this._date.set("hours", t), this);
40265
- setMinutes = (t) => (this._date = this._date.set("minutes", t), this);
40266
- setSeconds = (t) => (this._date = this._date.set("seconds", t), this);
40264
+ setHours = (t) => (this._date = this._date.set("hours", t), this._date = this._date.set("millisecond", 0), this);
40265
+ setMinutes = (t) => (this._date = this._date.set("minutes", t), this._date = this._date.set("millisecond", 0), this);
40266
+ setSeconds = (t) => (this._date = this._date.set("seconds", t), this._date = this._date.set("millisecond", 0), this);
40267
40267
  toDate = () => this._date.toDate();
40268
40268
  addTime = (t, n) => (this._date = this._date.add(t, n), this);
40269
40269
  subtractTime = (t, n) => (this._date = this._date.subtract(t, n), this);
@@ -224,7 +224,7 @@ spurious results.`)}}return!1};class bk{constructor(t,n="GraphQL request",a={lin
224
224
  `))}function xk(e){var t;return(t=e?.some(n=>n.includes(`
225
225
  `)))!==null&&t!==void 0?t:!1}const Sk="Accept",lw="Content-Type",uw="application/json",Ok="application/graphql-response+json",Ak=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),hL=e=>{const t=e.toLowerCase();return t.includes(Ok)||t.includes(uw)},Nk=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(kk)};if(kg(e))return{_tag:"Single",executionResult:kk(e)};throw new Error(`Invalid execution result: result is not object or array.
226
226
  Got:
227
- ${String(e)}`)}catch(t){return t}},kk=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,a;if("errors"in e){if(!kg(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!kg(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!kg(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");a=e.extensions}return{data:n,errors:t,extensions:a}},mL=e=>e._tag==="Batch"?e.executionResults.some(_k):_k(e.executionResult),_k=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Ek=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===nt.OPERATION_DEFINITION,pL=e=>{let t;const n=e.definitions.filter(Ek);return n.length===1&&(t=n[0].name?.value),t},gL=e=>{let t=!1;const n=e.definitions.filter(Ek);return n.length===1&&(t=n[0].operation==="mutation"),t},cw=(e,t)=>{const n=typeof e=="string"?e:cL(e);let a=!1,r;if(t)return{expression:n,isMutation:a,operationName:r};const s=xP(()=>typeof e=="string"?tL(e):e);return s instanceof Error?{expression:n,isMutation:a,operationName:r}:(r=pL(s),a=gL(s),{expression:n,operationName:r,isMutation:a})},dw=JSON,fw=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":ik(e.method??"post"):e.request.hasMutations?"POST":ik(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},a=await yL(t.method)(t);if(!a.ok)return new Jl({status:a.status,headers:a.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const r=await vL(a,e.fetchOptions.jsonSerializer??dw);if(r instanceof Error)throw r;const s={status:a.status,headers:a.headers};if(mL(r)&&t.fetchOptions.errorPolicy==="none"){const c=r._tag==="Batch"?{...r.executionResults,...s}:{...r.executionResult,...s};return new Jl(c,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(r._tag){case"Single":return{...s,...Dk(t)(r.executionResult)};case"Batch":return{...s,data:r.executionResults.map(Dk(t))};default:tw(r)}},Dk=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),vL=async(e,t)=>{const n=e.headers.get(lw),a=await e.text();return n&&hL(n)?Nk(t.parse(a)):Nk(a)},yL=e=>async t=>{const n=new Headers(t.headers);let a=null,r;n.has(Sk)||n.set(Sk,[Ok,uw].join(", ")),e==="POST"?(r=(t.fetchOptions.jsonSerializer??dw).stringify(bL(t)),typeof r=="string"&&!n.has(lw)&&n.set(lw,uw)):a=wL(t);const s={method:e,headers:n,body:r,...t.fetchOptions};let c=new URL(t.url),h=s;if(t.middleware){const v=await Promise.resolve(t.middleware({...s,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:b,...w}=v;c=new URL(b),h=w}return a&&a.forEach((v,b)=>{c.searchParams.append(b,v)}),await(t.fetch??fetch)(c,h)},bL=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return ak(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw tw(e.request)}},wL=e=>{const t=e.fetchOptions.jsonSerializer??dw,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",Ak(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const a=e.request.variables?.map(c=>t.stringify(c))??[],r=e.request.query.map(Ak),s=ak(r,a).map(([c,h])=>({query:c,variables:h}));return n.append("query",t.stringify(s)),n}default:throw tw(e.request)}};class xL{url;requestConfig;constructor(t,n={}){this.url=t,this.requestConfig=n}rawRequest=async(...t)=>{const[n,a,r]=t,s=AP(n,a,r),{headers:c,fetch:h=globalThis.fetch,method:p="POST",requestMiddleware:v,responseMiddleware:b,excludeOperationName:w,...S}=this.requestConfig,{url:k}=this;s.signal!==void 0&&(S.signal=s.signal);const A=cw(s.query,w),O=await fw({url:k,request:{_tag:"Single",document:A,variables:s.variables},headers:{...$c(ew(c)),...$c(s.requestHeaders)},fetch:h,method:p,fetchOptions:S,middleware:v});if(b&&await b(O,{operationName:A.operationName,variables:a,url:this.url}),O instanceof Error)throw O;return O};async request(t,...n){const[a,r]=n,s=SL(t,a,r),{headers:c,fetch:h=globalThis.fetch,method:p="POST",requestMiddleware:v,responseMiddleware:b,excludeOperationName:w,...S}=this.requestConfig,{url:k}=this;s.signal!==void 0&&(S.signal=s.signal);const A=cw(s.document,w),O=await fw({url:k,request:{_tag:"Single",document:A,variables:s.variables},headers:{...$c(ew(c)),...$c(s.requestHeaders)},fetch:h,method:p,fetchOptions:S,middleware:v});if(b&&await b(O,{operationName:A.operationName,variables:s.variables,url:this.url}),O instanceof Error)throw O;return O.data}async batchRequests(t,n){const a=OP(t,n),{headers:r,excludeOperationName:s,...c}=this.requestConfig;a.signal!==void 0&&(c.signal=a.signal);const h=a.documents.map(({document:S})=>cw(S,s)),p=h.map(({expression:S})=>S),v=h.some(({isMutation:S})=>S),b=a.documents.map(({variables:S})=>S),w=await fw({url:this.url,request:{_tag:"Batch",operationName:void 0,query:p,hasMutations:v,variables:b},headers:{...$c(ew(r)),...$c(a.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:c,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(w,{operationName:void 0,variables:b,url:this.url}),w instanceof Error)throw w;return w.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:a}=this.requestConfig;return a?a[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const SL=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},tu=(e,...t)=>e.reduce((n,a,r)=>`${n}${a}${r in t?String(t[r]):""}`,"");var Kc=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(){}},OL={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},AL=class{#e=OL;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},nu=new AL;function NL(e){setTimeout(e,0)}var Qs=typeof window>"u"||"Deno"in globalThis;function Gr(){}function kL(e,t){return typeof e=="function"?e(t):e}function hw(e){return typeof e=="number"&&e>=0&&e!==1/0}function Tk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gs(e,t){return typeof e=="function"?e(t):e}function oa(e,t){return typeof e=="function"?e(t):e}function Ck(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:s,queryKey:c,stale:h}=e;if(c){if(a){if(t.queryHash!==mw(c,t.options))return!1}else if(!uh(t.queryKey,c))return!1}if(n!=="all"){const p=t.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||r&&r!==t.state.fetchStatus||s&&!s(t))}function zk(e,t){const{exact:n,status:a,predicate:r,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ru(t.options.mutationKey)!==ru(s))return!1}else if(!uh(t.options.mutationKey,s))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function mw(e,t){return(t?.queryKeyHashFn||ru)(e)}function ru(e){return JSON.stringify(e,(t,n)=>pw(n)?Object.keys(n).sort().reduce((a,r)=>(a[r]=n[r],a),{}):n)}function uh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>uh(e[n],t[n])):!1}var _L=Object.prototype.hasOwnProperty;function Mk(e,t){if(e===t)return e;const n=Ik(e)&&Ik(t);if(!n&&!(pw(e)&&pw(t)))return t;const r=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),c=s.length,h=n?new Array(c):{};let p=0;for(let v=0;v<c;v++){const b=n?v:s[v],w=e[b],S=t[b];if(w===S){h[b]=w,(n?v<r:_L.call(e,b))&&p++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){h[b]=S;continue}const k=Mk(w,S);h[b]=k,k===w&&p++}return r===c&&p===r?e:h}function zg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ik(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pw(e){if(!Rk(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Rk(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Rk(e){return Object.prototype.toString.call(e)==="[object Object]"}function EL(e){return new Promise(t=>{nu.setTimeout(t,e)})}function gw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Mk(e,t):t}function DL(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function TL(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var vw=Symbol();function jk(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===vw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Pk(e,t){return typeof e=="function"?e(...t):!!e}var CL=class extends Kc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},yw=new CL;function bw(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});n.status="pending",n.catch(()=>{});function a(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{a({status:"fulfilled",value:r}),e(r)},n.reject=r=>{a({status:"rejected",reason:r}),t(r)},n}var zL=NL;function ML(){let e=[],t=0,n=h=>{h()},a=h=>{h()},r=zL;const s=h=>{t?e.push(h):r(()=>{n(h)})},c=()=>{const h=e;e=[],h.length&&r(()=>{a(()=>{h.forEach(p=>{n(p)})})})};return{batch:h=>{let p;t++;try{p=h()}finally{t--,t||c()}return p},batchCalls:h=>(...p)=>{s(()=>{h(...p)})},schedule:s,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{r=h}}}var qn=ML(),IL=class extends Kc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Mg=new IL;function RL(e){return Math.min(1e3*2**e,3e4)}function Lk(e){return(e??"online")==="online"?Mg.isOnline():!0}var ww=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Uk(e){let t=!1,n=0,a;const r=bw(),s=()=>r.status!=="pending",c=O=>{if(!s()){const _=new ww(O);S(_),e.onCancel?.(_)}},h=()=>{t=!0},p=()=>{t=!1},v=()=>yw.isFocused()&&(e.networkMode==="always"||Mg.isOnline())&&e.canRun(),b=()=>Lk(e.networkMode)&&e.canRun(),w=O=>{s()||(a?.(),r.resolve(O))},S=O=>{s()||(a?.(),r.reject(O))},k=()=>new Promise(O=>{a=_=>{(s()||v())&&O(_)},e.onPause?.()}).then(()=>{a=void 0,s()||e.onContinue?.()}),A=()=>{if(s())return;let O;const _=n===0?e.initialPromise:void 0;try{O=_??e.fn()}catch(T){O=Promise.reject(T)}Promise.resolve(O).then(w).catch(T=>{if(s())return;const I=e.retry??(Qs?0:3),M=e.retryDelay??RL,Y=typeof M=="function"?M(n,T):M,Q=I===!0||typeof I=="number"&&n<I||typeof I=="function"&&I(n,T);if(t||!Q){S(T);return}n++,e.onFail?.(n,T),EL(Y).then(()=>v()?void 0:k()).then(()=>{t?S(T):A()})})};return{promise:r,status:()=>r.status,cancel:c,continue:()=>(a?.(),r),cancelRetry:h,continueRetry:p,canStart:b,start:()=>(b()?A():k().then(A),r)}}var Bk=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hw(this.gcTime)&&(this.#e=nu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qs?1/0:300*1e3))}clearGcTimeout(){this.#e&&(nu.clearTimeout(this.#e),this.#e=void 0)}},jL=class extends Bk{#e;#t;#n;#i;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Hk(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Hk(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=gw(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Gr).catch(Gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>oa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vw||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Gs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Tk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},r=()=>{const h=jk(this.options,t),v=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return a(b),b})();return this.#s=!1,this.options.persister?this.options.persister(h,v,this):h(v)},c=(()=>{const h={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return a(h),h})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=Uk({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:h=>{h instanceof ww&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(h,p)=>{this.#a({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof ww){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#a({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Fk(n.data,this.options),fetchMeta:e.meta??null};case"success":const a={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?a:void 0,a;case"error":const r=e.error;return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),qn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Fk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Hk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var PL=class extends Kc{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=bw(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#o;#s;#a;#p;#f;#h;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Qk(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xw(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xw(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof oa(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!zg(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&Gk(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),a&&(this.#t!==n||oa(this.options.enabled,this.#t)!==oa(t.enabled,this.#t)||Gs(this.options.staleTime,this.#t)!==Gs(t.staleTime,this.#t))&&this.#g();const r=this.#v();a&&(this.#t!==n||oa(this.options.enabled,this.#t)!==oa(t.enabled,this.#t)||r!==this.#l)&&this.#y(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return UL(this,n)&&(this.#i=n,this.#o=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),t?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Gr)),t}#g(){this.#w();const e=Gs(this.options.staleTime,this.#t);if(Qs||this.#i.isStale||!hw(e))return;const n=Tk(this.#i.dataUpdatedAt,e)+1;this.#u=nu.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#x(),this.#l=e,!(Qs||oa(this.options.enabled,this.#t)===!1||!hw(this.#l)||this.#l===0)&&(this.#c=nu.setInterval(()=>{(this.options.refetchIntervalInBackground||yw.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#w(){this.#u&&(nu.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(nu.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,a=this.options,r=this.#i,s=this.#r,c=this.#o,p=e!==n?e.state:this.#n,{state:v}=e;let b={...v},w=!1,S;if(t._optimisticResults){const L=this.hasListeners(),X=!L&&Qk(e,t),G=L&&Gk(e,n,t,a);(X||G)&&(b={...b,...Fk(v.data,e.options)}),t._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:k,errorUpdatedAt:A,status:O}=b;S=b.data;let _=!1;if(t.placeholderData!==void 0&&S===void 0&&O==="pending"){let L;r?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(L=r.data,_=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(O="success",S=gw(r?.data,L,t),w=!0)}if(t.select&&S!==void 0&&!_)if(r&&S===s?.data&&t.select===this.#p)S=this.#f;else try{this.#p=t.select,S=t.select(S),S=gw(r?.data,S,t),this.#f=S,this.#a=null}catch(L){this.#a=L}this.#a&&(k=this.#a,S=this.#f,A=Date.now(),O="error");const T=b.fetchStatus==="fetching",I=O==="pending",M=O==="error",Y=I&&T,Q=S!==void 0,z={status:O,fetchStatus:b.fetchStatus,isPending:I,isSuccess:O==="success",isError:M,isInitialLoading:Y,isLoading:Y,data:S,dataUpdatedAt:b.dataUpdatedAt,error:k,errorUpdatedAt:A,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:T,isRefetching:T&&!I,isLoadingError:M&&!Q,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:M&&Q,isStale:Sw(e,t),refetch:this.refetch,promise:this.#s,isEnabled:oa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=q=>{z.status==="error"?q.reject(z.error):z.data!==void 0&&q.resolve(z.data)},X=()=>{const q=this.#s=z.promise=bw();L(q)},G=this.#s;switch(G.status){case"pending":e.queryHash===n.queryHash&&L(G);break;case"fulfilled":(z.status==="error"||z.data!==G.value)&&X();break;case"rejected":(z.status!=="error"||z.error!==G.reason)&&X();break}}return z}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#h=this.#t),zg(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,r=typeof a=="function"?a():a;if(r==="all"||!r&&!this.#m.size)return!0;const s=new Set(r??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(c=>{const h=c;return this.#i[h]!==e[h]&&s.has(h)})};this.#O({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#O(e){qn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function LL(e,t){return oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Qk(e,t){return LL(e,t)||e.state.data!==void 0&&xw(e,t,t.refetchOnMount)}function xw(e,t,n){if(oa(t.enabled,e)!==!1&&Gs(t.staleTime,e)!=="static"){const a=typeof n=="function"?n(e):n;return a==="always"||a!==!1&&Sw(e,t)}return!1}function Gk(e,t,n,a){return(e!==t||oa(a.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Sw(e,n)}function Sw(e,t){return oa(t.enabled,e)!==!1&&e.isStaleByTime(Gs(t.staleTime,e))}function UL(e,t){return!zg(e.getCurrentResult(),t)}function Zk(e){return{onFetch:(t,n)=>{const a=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const v=async()=>{let b=!1;const w=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},S=jk(t.options,t.fetchOptions),k=async(A,O,_)=>{if(b)return Promise.reject();if(O==null&&A.pages.length)return Promise.resolve(A);const I=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:O,direction:_?"backward":"forward",meta:t.options.meta};return w(V),V})(),M=await S(I),{maxPages:Y}=t.options,Q=_?TL:DL;return{pages:Q(A.pages,M,Y),pageParams:Q(A.pageParams,O,Y)}};if(r&&s.length){const A=r==="backward",O=A?BL:Yk,_={pages:s,pageParams:c},T=O(a,_);h=await k(_,T,A)}else{const A=e??s.length;do{const O=p===0?c[0]??a.initialPageParam:Yk(a,h);if(p>0&&O==null)break;h=await k(h,O),p++}while(p<A)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(v,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=v}}}function Yk(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function BL(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var FL=class extends Bk{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Wk(),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.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Uk({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",r=!this.#i.canStart();try{if(a)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:r})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Wk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $k=class extends Kc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const a=new FL({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){this.#e.add(e);const t=Ig(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ig(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ig(e);if(typeof t=="string"){const a=this.#t.get(t)?.find(r=>r.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=Ig(e);return typeof t=="string"?this.#t.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>zk(t,n))}findAll(e={}){return this.getAll().filter(t=>zk(e,t))}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Gr))))}};function Ig(e){return e.options.scope?.id}var HL=class extends Kc{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),zg(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ru(n.mutationKey)!==ru(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??Wk();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){qn.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,a=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,a,r),this.#i.onSettled?.(t.data,null,n,a,r)):t?.type==="error"&&(this.#i.onError?.(t.error,n,a,r),this.#i.onSettled?.(void 0,t.error,n,a,r))}this.listeners.forEach(n=>{n(this.#t)})})}},qk=class extends Kc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const a=t.queryKey,r=t.queryHash??mw(a,t);let s=this.get(r);return s||(s=new jL({client:e,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Ck(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Ck(e,n)):t}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},QL=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new qk,this.#t=e.mutationCache||new $k,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=yw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Mg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(a.queryHash)?.state.data,c=kL(t,s);if(c!==void 0)return this.#e.build(this,a).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return qn.batch(()=>this.#e.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;qn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return qn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=qn.batch(()=>this.#e.findAll(e).map(r=>r.cancel(n)));return Promise.all(a).then(Gr).catch(Gr)}invalidateQueries(e,t={}){return qn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=qn.batch(()=>this.#e.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(Gr)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(a).then(Gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Gs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gr).catch(Gr)}fetchInfiniteQuery(e){return e.behavior=Zk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gr).catch(Gr)}ensureInfiniteQueryData(e){return e.behavior=Zk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mg.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(ru(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(a=>{uh(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ru(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(a=>{uh(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Vk=R.createContext(void 0),Ow=e=>{const t=R.useContext(Vk);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},GL=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(Vk.Provider,{value:e,children:t})),Kk=R.createContext(!1),ZL=()=>R.useContext(Kk);Kk.Provider;function YL(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var WL=R.createContext(YL()),$L=()=>R.useContext(WL),qL=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},VL=e=>{R.useEffect(()=>{e.clearReset()},[e])},KL=({result:e,errorResetBoundary:t,throwOnError:n,query:a,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(r&&e.data===void 0||Pk(n,[e.error,a])),XL=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...r)=>n(a(...r)):n(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},JL=(e,t)=>e.isLoading&&e.isFetching&&!t,eU=(e,t)=>e?.suspense&&t.isPending,Xk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tU(e,t,n){const a=ZL(),r=$L(),s=Ow(),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=a?"isRestoring":"optimistic",XL(c),qL(c,r),VL(r);const h=!s.getQueryCache().get(c.queryHash),[p]=R.useState(()=>new t(s,c)),v=p.getOptimisticResult(c),b=!a&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(w=>{const S=b?p.subscribe(qn.batchCalls(w)):Gr;return p.updateResult(),S},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),R.useEffect(()=>{p.setOptions(c)},[c,p]),eU(c,v))throw Xk(c,p,r);if(KL({result:v,errorResetBoundary:r,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw v.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,v),c.experimental_prefetchInRender&&!Qs&&JL(v,a)&&(h?Xk(c,p,r):s.getQueryCache().get(c.queryHash)?.promise)?.catch(Gr).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?v:p.trackResult(v)}function Aw(e,t){return tU(e,PL)}function nU(e,t){const n=Ow(),a=n.getQueryCache();return R.useSyncExternalStore(R.useCallback(r=>a.subscribe(qn.batchCalls(r)),[a]),()=>n.isFetching(e),()=>n.isFetching(e))}function rU(e,t){const n=Ow(),[a]=R.useState(()=>new HL(n,e));R.useEffect(()=>{a.setOptions(e)},[a,e]);const r=R.useSyncExternalStore(R.useCallback(c=>a.subscribe(qn.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=R.useCallback((c,h)=>{a.mutate(c,h).catch(Gr)},[a]);if(r.error&&Pk(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}const iU={DEV:!1},{DEV:aU}=iU,oU=aU,sU="https://api.easea.app/graphql",lU="1.2.2",Jk=e=>{let t;const n=new Set,a=(v,b)=>{const w=typeof v=="function"?v(t):v;if(!Object.is(w,t)){const S=t;t=b??(typeof w!="object"||w===null)?w:Object.assign({},t,w),n.forEach(k=>k(t,S))}},r=()=>t,h={setState:a,getState:r,getInitialState:()=>p,subscribe:v=>(n.add(v),()=>n.delete(v))},p=t=e(a,r,h);return h},uU=(e=>e?Jk(e):Jk),cU=e=>e;function dU(e,t=cU){const n=Ae.useSyncExternalStore(e.subscribe,Ae.useCallback(()=>t(e.getState()),[e,t]),Ae.useCallback(()=>t(e.getInitialState()),[e,t]));return Ae.useDebugValue(n),n}const fU=e=>{const t=uU(e),n=a=>dU(t,a);return Object.assign(n,t),n},hU=(e=>fU),e_={BASE_URL:"/",DEV:!1,MODE:"widget",PROD:!0,SSR:!1},ch=new Map,Rg=e=>{const t=ch.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,a])=>[n,a.getState()])):{}},mU=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const a=ch.get(n.name);if(a)return{type:"tracked",store:e,...a};const r={connection:t.connect(n),stores:{}};return ch.set(n.name,r),{type:"tracked",store:e,...r}},pU=(e,t)=>{if(t===void 0)return;const n=ch.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&ch.delete(e))},gU=e=>{var t,n;if(!e)return;const a=e.split(`
227
+ ${String(e)}`)}catch(t){return t}},kk=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,a;if("errors"in e){if(!kg(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!kg(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!kg(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");a=e.extensions}return{data:n,errors:t,extensions:a}},mL=e=>e._tag==="Batch"?e.executionResults.some(_k):_k(e.executionResult),_k=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Ek=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===nt.OPERATION_DEFINITION,pL=e=>{let t;const n=e.definitions.filter(Ek);return n.length===1&&(t=n[0].name?.value),t},gL=e=>{let t=!1;const n=e.definitions.filter(Ek);return n.length===1&&(t=n[0].operation==="mutation"),t},cw=(e,t)=>{const n=typeof e=="string"?e:cL(e);let a=!1,r;if(t)return{expression:n,isMutation:a,operationName:r};const s=xP(()=>typeof e=="string"?tL(e):e);return s instanceof Error?{expression:n,isMutation:a,operationName:r}:(r=pL(s),a=gL(s),{expression:n,operationName:r,isMutation:a})},dw=JSON,fw=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":ik(e.method??"post"):e.request.hasMutations?"POST":ik(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},a=await yL(t.method)(t);if(!a.ok)return new Jl({status:a.status,headers:a.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const r=await vL(a,e.fetchOptions.jsonSerializer??dw);if(r instanceof Error)throw r;const s={status:a.status,headers:a.headers};if(mL(r)&&t.fetchOptions.errorPolicy==="none"){const c=r._tag==="Batch"?{...r.executionResults,...s}:{...r.executionResult,...s};return new Jl(c,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(r._tag){case"Single":return{...s,...Dk(t)(r.executionResult)};case"Batch":return{...s,data:r.executionResults.map(Dk(t))};default:tw(r)}},Dk=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),vL=async(e,t)=>{const n=e.headers.get(lw),a=await e.text();return n&&hL(n)?Nk(t.parse(a)):Nk(a)},yL=e=>async t=>{const n=new Headers(t.headers);let a=null,r;n.has(Sk)||n.set(Sk,[Ok,uw].join(", ")),e==="POST"?(r=(t.fetchOptions.jsonSerializer??dw).stringify(bL(t)),typeof r=="string"&&!n.has(lw)&&n.set(lw,uw)):a=wL(t);const s={method:e,headers:n,body:r,...t.fetchOptions};let c=new URL(t.url),h=s;if(t.middleware){const v=await Promise.resolve(t.middleware({...s,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:b,...w}=v;c=new URL(b),h=w}return a&&a.forEach((v,b)=>{c.searchParams.append(b,v)}),await(t.fetch??fetch)(c,h)},bL=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return ak(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw tw(e.request)}},wL=e=>{const t=e.fetchOptions.jsonSerializer??dw,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",Ak(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const a=e.request.variables?.map(c=>t.stringify(c))??[],r=e.request.query.map(Ak),s=ak(r,a).map(([c,h])=>({query:c,variables:h}));return n.append("query",t.stringify(s)),n}default:throw tw(e.request)}};class xL{url;requestConfig;constructor(t,n={}){this.url=t,this.requestConfig=n}rawRequest=async(...t)=>{const[n,a,r]=t,s=AP(n,a,r),{headers:c,fetch:h=globalThis.fetch,method:p="POST",requestMiddleware:v,responseMiddleware:b,excludeOperationName:w,...S}=this.requestConfig,{url:k}=this;s.signal!==void 0&&(S.signal=s.signal);const A=cw(s.query,w),O=await fw({url:k,request:{_tag:"Single",document:A,variables:s.variables},headers:{...$c(ew(c)),...$c(s.requestHeaders)},fetch:h,method:p,fetchOptions:S,middleware:v});if(b&&await b(O,{operationName:A.operationName,variables:a,url:this.url}),O instanceof Error)throw O;return O};async request(t,...n){const[a,r]=n,s=SL(t,a,r),{headers:c,fetch:h=globalThis.fetch,method:p="POST",requestMiddleware:v,responseMiddleware:b,excludeOperationName:w,...S}=this.requestConfig,{url:k}=this;s.signal!==void 0&&(S.signal=s.signal);const A=cw(s.document,w),O=await fw({url:k,request:{_tag:"Single",document:A,variables:s.variables},headers:{...$c(ew(c)),...$c(s.requestHeaders)},fetch:h,method:p,fetchOptions:S,middleware:v});if(b&&await b(O,{operationName:A.operationName,variables:s.variables,url:this.url}),O instanceof Error)throw O;return O.data}async batchRequests(t,n){const a=OP(t,n),{headers:r,excludeOperationName:s,...c}=this.requestConfig;a.signal!==void 0&&(c.signal=a.signal);const h=a.documents.map(({document:S})=>cw(S,s)),p=h.map(({expression:S})=>S),v=h.some(({isMutation:S})=>S),b=a.documents.map(({variables:S})=>S),w=await fw({url:this.url,request:{_tag:"Batch",operationName:void 0,query:p,hasMutations:v,variables:b},headers:{...$c(ew(r)),...$c(a.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:c,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(w,{operationName:void 0,variables:b,url:this.url}),w instanceof Error)throw w;return w.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:a}=this.requestConfig;return a?a[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const SL=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},tu=(e,...t)=>e.reduce((n,a,r)=>`${n}${a}${r in t?String(t[r]):""}`,"");var Kc=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(){}},OL={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},AL=class{#e=OL;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},nu=new AL;function NL(e){setTimeout(e,0)}var Qs=typeof window>"u"||"Deno"in globalThis;function Gr(){}function kL(e,t){return typeof e=="function"?e(t):e}function hw(e){return typeof e=="number"&&e>=0&&e!==1/0}function Tk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gs(e,t){return typeof e=="function"?e(t):e}function oa(e,t){return typeof e=="function"?e(t):e}function Ck(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:s,queryKey:c,stale:h}=e;if(c){if(a){if(t.queryHash!==mw(c,t.options))return!1}else if(!uh(t.queryKey,c))return!1}if(n!=="all"){const p=t.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||r&&r!==t.state.fetchStatus||s&&!s(t))}function zk(e,t){const{exact:n,status:a,predicate:r,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ru(t.options.mutationKey)!==ru(s))return!1}else if(!uh(t.options.mutationKey,s))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function mw(e,t){return(t?.queryKeyHashFn||ru)(e)}function ru(e){return JSON.stringify(e,(t,n)=>pw(n)?Object.keys(n).sort().reduce((a,r)=>(a[r]=n[r],a),{}):n)}function uh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>uh(e[n],t[n])):!1}var _L=Object.prototype.hasOwnProperty;function Mk(e,t){if(e===t)return e;const n=Ik(e)&&Ik(t);if(!n&&!(pw(e)&&pw(t)))return t;const r=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),c=s.length,h=n?new Array(c):{};let p=0;for(let v=0;v<c;v++){const b=n?v:s[v],w=e[b],S=t[b];if(w===S){h[b]=w,(n?v<r:_L.call(e,b))&&p++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){h[b]=S;continue}const k=Mk(w,S);h[b]=k,k===w&&p++}return r===c&&p===r?e:h}function zg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ik(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pw(e){if(!Rk(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Rk(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Rk(e){return Object.prototype.toString.call(e)==="[object Object]"}function EL(e){return new Promise(t=>{nu.setTimeout(t,e)})}function gw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Mk(e,t):t}function DL(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function TL(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var vw=Symbol();function jk(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===vw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Pk(e,t){return typeof e=="function"?e(...t):!!e}var CL=class extends Kc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},yw=new CL;function bw(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});n.status="pending",n.catch(()=>{});function a(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{a({status:"fulfilled",value:r}),e(r)},n.reject=r=>{a({status:"rejected",reason:r}),t(r)},n}var zL=NL;function ML(){let e=[],t=0,n=h=>{h()},a=h=>{h()},r=zL;const s=h=>{t?e.push(h):r(()=>{n(h)})},c=()=>{const h=e;e=[],h.length&&r(()=>{a(()=>{h.forEach(p=>{n(p)})})})};return{batch:h=>{let p;t++;try{p=h()}finally{t--,t||c()}return p},batchCalls:h=>(...p)=>{s(()=>{h(...p)})},schedule:s,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{r=h}}}var qn=ML(),IL=class extends Kc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Mg=new IL;function RL(e){return Math.min(1e3*2**e,3e4)}function Lk(e){return(e??"online")==="online"?Mg.isOnline():!0}var ww=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Uk(e){let t=!1,n=0,a;const r=bw(),s=()=>r.status!=="pending",c=O=>{if(!s()){const _=new ww(O);S(_),e.onCancel?.(_)}},h=()=>{t=!0},p=()=>{t=!1},v=()=>yw.isFocused()&&(e.networkMode==="always"||Mg.isOnline())&&e.canRun(),b=()=>Lk(e.networkMode)&&e.canRun(),w=O=>{s()||(a?.(),r.resolve(O))},S=O=>{s()||(a?.(),r.reject(O))},k=()=>new Promise(O=>{a=_=>{(s()||v())&&O(_)},e.onPause?.()}).then(()=>{a=void 0,s()||e.onContinue?.()}),A=()=>{if(s())return;let O;const _=n===0?e.initialPromise:void 0;try{O=_??e.fn()}catch(T){O=Promise.reject(T)}Promise.resolve(O).then(w).catch(T=>{if(s())return;const I=e.retry??(Qs?0:3),M=e.retryDelay??RL,Y=typeof M=="function"?M(n,T):M,Q=I===!0||typeof I=="number"&&n<I||typeof I=="function"&&I(n,T);if(t||!Q){S(T);return}n++,e.onFail?.(n,T),EL(Y).then(()=>v()?void 0:k()).then(()=>{t?S(T):A()})})};return{promise:r,status:()=>r.status,cancel:c,continue:()=>(a?.(),r),cancelRetry:h,continueRetry:p,canStart:b,start:()=>(b()?A():k().then(A),r)}}var Bk=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hw(this.gcTime)&&(this.#e=nu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qs?1/0:300*1e3))}clearGcTimeout(){this.#e&&(nu.clearTimeout(this.#e),this.#e=void 0)}},jL=class extends Bk{#e;#t;#n;#i;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Hk(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Hk(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=gw(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Gr).catch(Gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>oa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vw||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Gs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Tk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},r=()=>{const h=jk(this.options,t),v=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return a(b),b})();return this.#s=!1,this.options.persister?this.options.persister(h,v,this):h(v)},c=(()=>{const h={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return a(h),h})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=Uk({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:h=>{h instanceof ww&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(h,p)=>{this.#a({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof ww){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#a({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Fk(n.data,this.options),fetchMeta:e.meta??null};case"success":const a={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?a:void 0,a;case"error":const r=e.error;return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),qn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Fk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Hk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var PL=class extends Kc{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=bw(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#o;#s;#a;#p;#f;#h;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Qk(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xw(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xw(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof oa(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!zg(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&Gk(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),a&&(this.#t!==n||oa(this.options.enabled,this.#t)!==oa(t.enabled,this.#t)||Gs(this.options.staleTime,this.#t)!==Gs(t.staleTime,this.#t))&&this.#g();const r=this.#v();a&&(this.#t!==n||oa(this.options.enabled,this.#t)!==oa(t.enabled,this.#t)||r!==this.#l)&&this.#y(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return UL(this,n)&&(this.#i=n,this.#o=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),t?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Gr)),t}#g(){this.#w();const e=Gs(this.options.staleTime,this.#t);if(Qs||this.#i.isStale||!hw(e))return;const n=Tk(this.#i.dataUpdatedAt,e)+1;this.#u=nu.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#x(),this.#l=e,!(Qs||oa(this.options.enabled,this.#t)===!1||!hw(this.#l)||this.#l===0)&&(this.#c=nu.setInterval(()=>{(this.options.refetchIntervalInBackground||yw.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#w(){this.#u&&(nu.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(nu.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,a=this.options,r=this.#i,s=this.#r,c=this.#o,p=e!==n?e.state:this.#n,{state:v}=e;let b={...v},w=!1,S;if(t._optimisticResults){const L=this.hasListeners(),X=!L&&Qk(e,t),G=L&&Gk(e,n,t,a);(X||G)&&(b={...b,...Fk(v.data,e.options)}),t._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:k,errorUpdatedAt:A,status:O}=b;S=b.data;let _=!1;if(t.placeholderData!==void 0&&S===void 0&&O==="pending"){let L;r?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(L=r.data,_=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(O="success",S=gw(r?.data,L,t),w=!0)}if(t.select&&S!==void 0&&!_)if(r&&S===s?.data&&t.select===this.#p)S=this.#f;else try{this.#p=t.select,S=t.select(S),S=gw(r?.data,S,t),this.#f=S,this.#a=null}catch(L){this.#a=L}this.#a&&(k=this.#a,S=this.#f,A=Date.now(),O="error");const T=b.fetchStatus==="fetching",I=O==="pending",M=O==="error",Y=I&&T,Q=S!==void 0,z={status:O,fetchStatus:b.fetchStatus,isPending:I,isSuccess:O==="success",isError:M,isInitialLoading:Y,isLoading:Y,data:S,dataUpdatedAt:b.dataUpdatedAt,error:k,errorUpdatedAt:A,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:T,isRefetching:T&&!I,isLoadingError:M&&!Q,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:M&&Q,isStale:Sw(e,t),refetch:this.refetch,promise:this.#s,isEnabled:oa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=q=>{z.status==="error"?q.reject(z.error):z.data!==void 0&&q.resolve(z.data)},X=()=>{const q=this.#s=z.promise=bw();L(q)},G=this.#s;switch(G.status){case"pending":e.queryHash===n.queryHash&&L(G);break;case"fulfilled":(z.status==="error"||z.data!==G.value)&&X();break;case"rejected":(z.status!=="error"||z.error!==G.reason)&&X();break}}return z}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#h=this.#t),zg(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,r=typeof a=="function"?a():a;if(r==="all"||!r&&!this.#m.size)return!0;const s=new Set(r??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(c=>{const h=c;return this.#i[h]!==e[h]&&s.has(h)})};this.#O({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#O(e){qn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function LL(e,t){return oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Qk(e,t){return LL(e,t)||e.state.data!==void 0&&xw(e,t,t.refetchOnMount)}function xw(e,t,n){if(oa(t.enabled,e)!==!1&&Gs(t.staleTime,e)!=="static"){const a=typeof n=="function"?n(e):n;return a==="always"||a!==!1&&Sw(e,t)}return!1}function Gk(e,t,n,a){return(e!==t||oa(a.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Sw(e,n)}function Sw(e,t){return oa(t.enabled,e)!==!1&&e.isStaleByTime(Gs(t.staleTime,e))}function UL(e,t){return!zg(e.getCurrentResult(),t)}function Zk(e){return{onFetch:(t,n)=>{const a=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const v=async()=>{let b=!1;const w=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},S=jk(t.options,t.fetchOptions),k=async(A,O,_)=>{if(b)return Promise.reject();if(O==null&&A.pages.length)return Promise.resolve(A);const I=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:O,direction:_?"backward":"forward",meta:t.options.meta};return w(V),V})(),M=await S(I),{maxPages:Y}=t.options,Q=_?TL:DL;return{pages:Q(A.pages,M,Y),pageParams:Q(A.pageParams,O,Y)}};if(r&&s.length){const A=r==="backward",O=A?BL:Yk,_={pages:s,pageParams:c},T=O(a,_);h=await k(_,T,A)}else{const A=e??s.length;do{const O=p===0?c[0]??a.initialPageParam:Yk(a,h);if(p>0&&O==null)break;h=await k(h,O),p++}while(p<A)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(v,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=v}}}function Yk(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function BL(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var FL=class extends Bk{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Wk(),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.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Uk({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",r=!this.#i.canStart();try{if(a)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:r})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Wk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $k=class extends Kc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const a=new FL({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){this.#e.add(e);const t=Ig(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ig(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ig(e);if(typeof t=="string"){const a=this.#t.get(t)?.find(r=>r.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=Ig(e);return typeof t=="string"?this.#t.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>zk(t,n))}findAll(e={}){return this.getAll().filter(t=>zk(e,t))}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Gr))))}};function Ig(e){return e.options.scope?.id}var HL=class extends Kc{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),zg(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ru(n.mutationKey)!==ru(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??Wk();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){qn.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,a=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,a,r),this.#i.onSettled?.(t.data,null,n,a,r)):t?.type==="error"&&(this.#i.onError?.(t.error,n,a,r),this.#i.onSettled?.(void 0,t.error,n,a,r))}this.listeners.forEach(n=>{n(this.#t)})})}},qk=class extends Kc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const a=t.queryKey,r=t.queryHash??mw(a,t);let s=this.get(r);return s||(s=new jL({client:e,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Ck(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Ck(e,n)):t}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},QL=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new qk,this.#t=e.mutationCache||new $k,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=yw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Mg.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(a.queryHash)?.state.data,c=kL(t,s);if(c!==void 0)return this.#e.build(this,a).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return qn.batch(()=>this.#e.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;qn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return qn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=qn.batch(()=>this.#e.findAll(e).map(r=>r.cancel(n)));return Promise.all(a).then(Gr).catch(Gr)}invalidateQueries(e,t={}){return qn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=qn.batch(()=>this.#e.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(Gr)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(a).then(Gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Gs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gr).catch(Gr)}fetchInfiniteQuery(e){return e.behavior=Zk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gr).catch(Gr)}ensureInfiniteQueryData(e){return e.behavior=Zk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mg.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(ru(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(a=>{uh(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ru(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(a=>{uh(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===vw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Vk=R.createContext(void 0),Ow=e=>{const t=R.useContext(Vk);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},GL=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(Vk.Provider,{value:e,children:t})),Kk=R.createContext(!1),ZL=()=>R.useContext(Kk);Kk.Provider;function YL(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var WL=R.createContext(YL()),$L=()=>R.useContext(WL),qL=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},VL=e=>{R.useEffect(()=>{e.clearReset()},[e])},KL=({result:e,errorResetBoundary:t,throwOnError:n,query:a,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(r&&e.data===void 0||Pk(n,[e.error,a])),XL=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...r)=>n(a(...r)):n(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},JL=(e,t)=>e.isLoading&&e.isFetching&&!t,eU=(e,t)=>e?.suspense&&t.isPending,Xk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tU(e,t,n){const a=ZL(),r=$L(),s=Ow(),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=a?"isRestoring":"optimistic",XL(c),qL(c,r),VL(r);const h=!s.getQueryCache().get(c.queryHash),[p]=R.useState(()=>new t(s,c)),v=p.getOptimisticResult(c),b=!a&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(w=>{const S=b?p.subscribe(qn.batchCalls(w)):Gr;return p.updateResult(),S},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),R.useEffect(()=>{p.setOptions(c)},[c,p]),eU(c,v))throw Xk(c,p,r);if(KL({result:v,errorResetBoundary:r,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw v.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,v),c.experimental_prefetchInRender&&!Qs&&JL(v,a)&&(h?Xk(c,p,r):s.getQueryCache().get(c.queryHash)?.promise)?.catch(Gr).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?v:p.trackResult(v)}function Aw(e,t){return tU(e,PL)}function nU(e,t){const n=Ow(),a=n.getQueryCache();return R.useSyncExternalStore(R.useCallback(r=>a.subscribe(qn.batchCalls(r)),[a]),()=>n.isFetching(e),()=>n.isFetching(e))}function rU(e,t){const n=Ow(),[a]=R.useState(()=>new HL(n,e));R.useEffect(()=>{a.setOptions(e)},[a,e]);const r=R.useSyncExternalStore(R.useCallback(c=>a.subscribe(qn.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=R.useCallback((c,h)=>{a.mutate(c,h).catch(Gr)},[a]);if(r.error&&Pk(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}const iU={DEV:!1},{DEV:aU}=iU,oU=aU,sU="https://api.easea.app/graphql",lU="1.2.3",Jk=e=>{let t;const n=new Set,a=(v,b)=>{const w=typeof v=="function"?v(t):v;if(!Object.is(w,t)){const S=t;t=b??(typeof w!="object"||w===null)?w:Object.assign({},t,w),n.forEach(k=>k(t,S))}},r=()=>t,h={setState:a,getState:r,getInitialState:()=>p,subscribe:v=>(n.add(v),()=>n.delete(v))},p=t=e(a,r,h);return h},uU=(e=>e?Jk(e):Jk),cU=e=>e;function dU(e,t=cU){const n=Ae.useSyncExternalStore(e.subscribe,Ae.useCallback(()=>t(e.getState()),[e,t]),Ae.useCallback(()=>t(e.getInitialState()),[e,t]));return Ae.useDebugValue(n),n}const fU=e=>{const t=uU(e),n=a=>dU(t,a);return Object.assign(n,t),n},hU=(e=>fU),e_={BASE_URL:"/",DEV:!1,MODE:"widget",PROD:!0,SSR:!1},ch=new Map,Rg=e=>{const t=ch.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,a])=>[n,a.getState()])):{}},mU=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const a=ch.get(n.name);if(a)return{type:"tracked",store:e,...a};const r={connection:t.connect(n),stores:{}};return ch.set(n.name,r),{type:"tracked",store:e,...r}},pU=(e,t)=>{if(t===void 0)return;const n=ch.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&ch.delete(e))},gU=e=>{var t,n;if(!e)return;const a=e.split(`
228
228
  `),r=a.findIndex(c=>c.includes("api.setState"));if(r<0)return;const s=((t=a[r+1])==null?void 0:t.trim())||"";return(n=/.+ (.+) .+/.exec(s))==null?void 0:n[1]},vU=(e,t={})=>(n,a,r)=>{const{enabled:s,anonymousActionType:c,store:h,...p}=t;let v;try{v=(s??(e_?"widget":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!v)return e(n,a,r);const{connection:b,...w}=mU(h,v,p);let S=!0;r.setState=((O,_,T)=>{const I=n(O,_);if(!S)return I;const M=T===void 0?{type:c||gU(new Error().stack)||"anonymous"}:typeof T=="string"?{type:T}:T;return h===void 0?(b?.send(M,a()),I):(b?.send({...M,type:`${h}/${M.type}`},{...Rg(p.name),[h]:r.getState()}),I)}),r.devtools={cleanup:()=>{b&&typeof b.unsubscribe=="function"&&b.unsubscribe(),pU(p.name,h)}};const k=(...O)=>{const _=S;S=!1,n(...O),S=_},A=e(r.setState,a,r);if(w.type==="untracked"?b?.init(A):(w.stores[w.store]=r,b?.init(Object.fromEntries(Object.entries(w.stores).map(([O,_])=>[O,O===w.store?A:_.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let O=!1;const _=r.dispatch;r.dispatch=(...T)=>{(e_?"widget":void 0)!=="production"&&T[0].type==="__setState"&&!O&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),O=!0),_(...T)}}return b.subscribe(O=>{var _;switch(O.type){case"ACTION":if(typeof O.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Nw(O.payload,T=>{if(T.type==="__setState"){if(h===void 0){k(T.state);return}Object.keys(T.state).length!==1&&console.error(`
229
229
  [zustand devtools middleware] Unsupported __setState action format.
230
230
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
@@ -277,7 +277,7 @@ __p += '`),jt&&(ze+=`' +
277
277
  function print() { __p += __j.call(arguments, '') }
278
278
  `:`;
279
279
  `)+ze+`return __p
280
- }`;var At=Gp(function(){return _t(U,qe+"return "+ze).apply(n,K)});if(At.source=ze,Mf(At))throw At;return At}function Ho(u){return Zt(u).toLowerCase()}function Qo(u){return Zt(u).toUpperCase()}function Go(u,f,g){if(u=Zt(u),u&&(g||f===n))return ms(u);if(!u||!(f=Ir(f)))return u;var x=xn(u),D=xn(f),U=cm(x,D),K=dm(x,D)+1;return Ki(x,U,K).join("")}function Cc(u,f,g){if(u=Zt(u),u&&(g||f===n))return u.slice(0,rl(u)+1);if(!u||!(f=Ir(f)))return u;var x=xn(u),D=dm(x,xn(f))+1;return Ki(x,0,D).join("")}function zc(u,f,g){if(u=Zt(u),u&&(g||f===n))return u.replace(hd,"");if(!u||!(f=Ir(f)))return u;var x=xn(u),D=cm(x,xn(f));return Ki(x,D).join("")}function Zo(u,f){var g=G,x=q;if(yn(f)){var D="separator"in f?f.separator:D;g="length"in f?rt(f.length):g,x="omission"in f?Ir(f.omission):x}u=Zt(u);var U=u.length;if(ps(u)){var K=xn(u);U=K.length}if(g>=U)return u;var ne=g-nl(x);if(ne<1)return x;var ue=K?Ki(K,0,ne).join(""):u.slice(0,ne);if(D===n)return ue+x;if(K&&(ne+=ue.length-ne),kc(D)){if(u.slice(ne).search(D)){var ke,_e=ue;for(D.global||(D=jd(D.source,Zt(md.exec(D))+"g")),D.lastIndex=0;ke=D.exec(_e);)var ze=ke.index;ue=ue.slice(0,ze===n?ne:ze)}}else if(u.indexOf(Ir(D),ne)!=ne){var Le=ue.lastIndexOf(D);Le>-1&&(ue=ue.slice(0,Le))}return ue+x}function nO(u){return u=Zt(u),u&&wt.test(u)?u.replace(Lt,my):u}var Jb=ks(function(u,f,g){return u+(g?" ":"")+f.toUpperCase()}),zs=Hm("toUpperCase");function e0(u,f,g){return u=Zt(u),f=g?n:f,f===n?fm(u)?vy(u):dS(u):u.match(f)||[]}var Gp=vt(function(u,f){try{return Vr(u,n,f)}catch(g){return Mf(g)?g:new lt(g)}}),Zf=ga(function(u,f){return Kr(f,function(g){g=Rr(g),ni(u,g,Df(u[g],u))}),u});function t0(u){var f=u==null?0:u.length,g=Je();return u=f?pn(u,function(x){if(typeof x[1]!="function")throw new Jr(c);return[g(x[0]),x[1]]}):[],vt(function(x){for(var D=-1;++D<f;){var U=u[D];if(Vr(U[0],this,x))return Vr(U[1],this,x)}})}function rO(u){return Ey(br(u,w))}function Zl(u){return function(){return u}}function Yf(u,f){return u==null||u!==u?f:u}var n0=_l(),Yl=_l(!0);function Sr(u){return u}function Mc(u){return xl(typeof u=="function"?u:br(u,w))}function Wf(u){return tf(br(u,w))}function r0(u,f){return Am(u,br(f,w))}var iO=vt(function(u,f){return function(g){return Ei(g,u,f)}}),$f=vt(function(u,f){return function(g){return Ei(u,g,f)}});function i(u,f,g){var x=nr(f),D=Ha(f,x);g==null&&!(yn(f)&&(D.length||!x.length))&&(g=f,f=u,u=this,D=Ha(f,nr(f)));var U=!(yn(g)&&"chain"in g)||!!g.chain,K=di(u);return Kr(D,function(ne){var ue=f[ne];u[ne]=ue,K&&(u.prototype[ne]=function(){var ke=this.__chain__;if(U||ke){var _e=u(this.__wrapped__),ze=_e.__actions__=wr(this.__actions__);return ze.push({func:ue,args:arguments,thisArg:u}),_e.__chain__=ke,_e}return ue.apply(u,bo([this.value()],arguments))})}),u}function o(){return Gn._===this&&(Gn._=yi),this}function l(){}function d(u){return u=rt(u),vt(function(f){return nf(f,u)})}var m=cf(pn),y=cf(sy),N=cf(om);function j(u){return oc(u)?hs(Rr(u)):Mn(u)}function J(u){return function(f){return u==null?n:pa(u,f)}}var he=df(),xe=df(!0);function Ne(){return[]}function me(){return!1}function ye(){return{}}function He(){return""}function et(){return!0}function Jt(u,f){if(u=rt(u),u<1||u>B)return[];var g=F,x=Ln(u,F);f=Je(f),u-=F;for(var D=zd(x,f);++g<u;)f(g);return D}function se(u){return ut(u)?pn(u,Rr):Fr(u)?[u]:wr(tp(Zt(u)))}function re(u){var f=++by;return Zt(u)+f}var fe=Xu(function(u,f){return u+f},0),Oe=ec("ceil"),Ke=Xu(function(u,f){return u/f},1),Ut=ec("floor");function $e(u){return u&&u.length?$i(u,Sr,Hu):n}function yt(u,f){return u&&u.length?$i(u,Je(f,2),Hu):n}function Ct(u){return Td(u,Sr)}function Bt(u,f){return Td(u,Je(f,2))}function Yo(u){return u&&u.length?$i(u,Sr,vn):n}function aO(u,f){return u&&u.length?$i(u,Je(f,2),vn):n}var eY=Xu(function(u,f){return u*f},1),tY=ec("round"),nY=Xu(function(u,f){return u-f},0);function rY(u){return u&&u.length?Cd(u,Sr):0}function iY(u,f){return u&&u.length?Cd(u,Je(f,2)):0}return P.after=bb,P.ary=yp,P.assign=Mb,P.assignIn=jf,P.assignInWith=Ll,P.assignWith=QS,P.at=Ti,P.before=bp,P.bind=Df,P.bindAll=Zf,P.bindKey=wp,P.castArray=PS,P.chain=gc,P.chunk=Vy,P.compact=np,P.concat=rp,P.cond=t0,P.conforms=rO,P.constant=Zl,P.countBy=ub,P.create=Rp,P.curry=wc,P.curryRight=xp,P.debounce=Sp,P.defaults=Ib,P.defaultsDeep=Rb,P.defer=qt,P.delay=Op,P.difference=Sf,P.differenceBy=Ky,P.differenceWith=Ya,P.drop=Fn,P.dropRight=ip,P.dropRightWhile=Xy,P.dropWhile=tr,P.fill=_S,P.filter=pp,P.flatMap=Ur,P.flatMapDeep=db,P.flatMapDepth=fb,P.flatten=dn,P.flattenDeep=jr,P.flattenDepth=Wa,P.flip=IS,P.flow=n0,P.flowRight=Yl,P.fromPairs=Jy,P.functions=GS,P.functionsIn=ZS,P.groupBy=kf,P.initial=ES,P.intersection=Of,P.intersectionBy=Pr,P.intersectionWith=Ji,P.invert=YS,P.invertBy=WS,P.invokeMap=Rl,P.iteratee=Mc,P.keyBy=mb,P.keys=nr,P.keysIn=Hr,P.map=yc,P.mapKeys=qS,P.mapValues=Ub,P.matches=Wf,P.matchesProperty=r0,P.memoize=xc,P.merge=Ul,P.mergeWith=Bl,P.method=iO,P.methodOf=$f,P.mixin=i,P.negate=Tf,P.nthArg=d,P.omit=Bb,P.omitBy=VS,P.once=RS,P.orderBy=pb,P.over=m,P.overArgs=jS,P.overEvery=y,P.overSome=N,P.partial=Pl,P.partialRight=Ts,P.partition=gb,P.pick=Fl,P.pickBy=Hl,P.property=j,P.propertyOf=J,P.pull=_s,P.pullAll=ya,P.pullAllBy=lp,P.pullAllWith=up,P.pullAt=ea,P.range=he,P.rangeRight=xe,P.rearg=Ap,P.reject=CS,P.remove=rb,P.rest=Cf,P.reverse=Mo,P.sampleSize=MS,P.set=Lf,P.setWith=Pp,P.shuffle=vb,P.slice=fc,P.sortBy=Ef,P.sortedUniq=Af,P.sortedUniqBy=sb,P.split=Gf,P.spread=Np,P.tail=DS,P.take=TS,P.takeRight=Ht,P.takeRightWhile=on,P.takeWhile=Et,P.tap=lb,P.throttle=Lo,P.thru=Ds,P.toArray=zb,P.toPairs=Uf,P.toPairsIn=Tc,P.toPath=se,P.toPlainObject=Rf,P.transform=Hb,P.unary=ba,P.union=Tt,P.unionBy=$t,P.unionWith=si,P.uniq=Io,P.uniqBy=zl,P.uniqWith=cp,P.unset=Qb,P.unzip=ta,P.unzipWith=On,P.update=KS,P.updateWith=Gb,P.values=Ql,P.valuesIn=Lp,P.without=Ro,P.words=e0,P.wrap=Sc,P.xor=Es,P.xorBy=dp,P.xorWith=li,P.zip=Ml,P.zipObject=pc,P.zipObjectDeep=Lr,P.zipWith=fp,P.entries=Uf,P.entriesIn=Tc,P.extend=jf,P.extendWith=Ll,i(P,P),P.add=fe,P.attempt=Gp,P.camelCase=Hf,P.capitalize=Zb,P.ceil=Oe,P.clamp=XS,P.clone=wb,P.cloneDeep=Sb,P.cloneDeepWith=Ob,P.cloneWith=xb,P.conformsTo=LS,P.deburr=Gl,P.defaultTo=Yf,P.divide=Ke,P.endsWith=JS,P.eq=ci,P.escape=Yb,P.escapeRegExp=Wb,P.every=vc,P.find=ui,P.findIndex=ap,P.findKey=jb,P.findLast=cb,P.findLastIndex=op,P.findLastKey=Dc,P.floor=Ut,P.forEach=hb,P.forEachRight=Va,P.forIn=Ci,P.forInRight=Pb,P.forOwn=Pf,P.forOwnRight=Xa,P.get=Fo,P.gt=Ab,P.gte=Nb,P.has=Lb,P.hasIn=jp,P.head=sp,P.identity=Sr,P.includes=gp,P.indexOf=eb,P.inRange=Bf,P.invoke=$S,P.isArguments=Cs,P.isArray=ut,P.isArrayBuffer=kp,P.isArrayLike=Br,P.isArrayLikeObject=In,P.isBoolean=Oc,P.isBuffer=Uo,P.isDate=kb,P.isElement=Dt,P.isEmpty=_p,P.isEqual=zf,P.isEqualWith=Ep,P.isError=Mf,P.isFinite=Dp,P.isFunction=di,P.isInteger=Ac,P.isLength=If,P.isMap=_b,P.isMatch=Eb,P.isMatchWith=Db,P.isNaN=Xt,P.isNative=Tp,P.isNil=US,P.isNull=fr,P.isNumber=Cp,P.isObject=yn,P.isObjectLike=_n,P.isPlainObject=Nc,P.isRegExp=kc,P.isSafeInteger=zp,P.isSet=_c,P.isString=Ec,P.isSymbol=Fr,P.isTypedArray=Bo,P.isUndefined=Mp,P.isWeakMap=BS,P.isWeakSet=Tb,P.join=tb,P.kebabCase=$b,P.last=fn,P.lastIndexOf=nb,P.lowerCase=qb,P.lowerFirst=Up,P.lt=FS,P.lte=Cb,P.max=$e,P.maxBy=yt,P.mean=Ct,P.meanBy=Bt,P.min=Yo,P.minBy=aO,P.stubArray=Ne,P.stubFalse=me,P.stubObject=ye,P.stubString=He,P.stubTrue=et,P.multiply=eY,P.nth=$a,P.noConflict=o,P.noop=l,P.now=bc,P.pad=Vb,P.padEnd=Kb,P.padStart=Qf,P.parseInt=eO,P.random=Ff,P.reduce=_f,P.reduceRight=vp,P.repeat=tO,P.replace=Bp,P.result=Fb,P.round=tY,P.runInContext=ae,P.sample=zS,P.size=yb,P.snakeCase=Fp,P.some=jl,P.sortedIndex=hc,P.sortedIndexBy=Cl,P.sortedIndexOf=ib,P.sortedLastIndex=ab,P.sortedLastIndexBy=mc,P.sortedLastIndexOf=ob,P.startCase=Hp,P.startsWith=Xb,P.subtract=nY,P.sum=rY,P.sumBy=iY,P.template=Qp,P.times=Jt,P.toFinite=Ka,P.toInteger=rt,P.toLength=Ip,P.toLower=Ho,P.toNumber=fi,P.toSafeInteger=HS,P.toString=Zt,P.toUpper=Qo,P.trim=Go,P.trimEnd=Cc,P.trimStart=zc,P.truncate=Zo,P.unescape=nO,P.uniqueId=re,P.upperCase=Jb,P.upperFirst=zs,P.each=hb,P.eachRight=Va,P.first=sp,i(P,(function(){var u={};return qi(P,function(f,g){Qt.call(P.prototype,g)||(u[g]=f)}),u})(),{chain:!1}),P.VERSION=a,Kr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){P[u].placeholder=P}),Kr(["drop","take"],function(u,f){pt.prototype[u]=function(g){g=g===n?1:An(rt(g),0);var x=this.__filtered__&&!f?new pt(this):this.clone();return x.__filtered__?x.__takeCount__=Ln(g,x.__takeCount__):x.__views__.push({size:Ln(g,F),type:u+(x.__dir__<0?"Right":"")}),x},pt.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),Kr(["filter","map","takeWhile"],function(u,f){var g=f+1,x=g==Z||g==C;pt.prototype[u]=function(D){var U=this.clone();return U.__iteratees__.push({iteratee:Je(D,3),type:g}),U.__filtered__=U.__filtered__||x,U}}),Kr(["head","last"],function(u,f){var g="take"+(f?"Right":"");pt.prototype[u]=function(){return this[g](1).value()[0]}}),Kr(["initial","tail"],function(u,f){var g="drop"+(f?"":"Right");pt.prototype[u]=function(){return this.__filtered__?new pt(this):this[g](1)}}),pt.prototype.compact=function(){return this.filter(Sr)},pt.prototype.find=function(u){return this.filter(u).head()},pt.prototype.findLast=function(u){return this.reverse().find(u)},pt.prototype.invokeMap=vt(function(u,f){return typeof u=="function"?new pt(this):this.map(function(g){return Ei(g,u,f)})}),pt.prototype.reject=function(u){return this.filter(Tf(Je(u)))},pt.prototype.slice=function(u,f){u=rt(u);var g=this;return g.__filtered__&&(u>0||f<0)?new pt(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),f!==n&&(f=rt(f),g=f<0?g.dropRight(-f):g.take(f-u)),g)},pt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},pt.prototype.toArray=function(){return this.take(F)},qi(pt.prototype,function(u,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),x=/^(?:head|last)$/.test(f),D=P[x?"take"+(f=="last"?"Right":""):f],U=x||/^find/.test(f);D&&(P.prototype[f]=function(){var K=this.__wrapped__,ne=x?[1]:arguments,ue=K instanceof pt,ke=ne[0],_e=ue||ut(K),ze=function(It){var jt=D.apply(P,bo([It],ne));return x&&Le?jt[0]:jt};_e&&g&&typeof ke=="function"&&ke.length!=1&&(ue=_e=!1);var Le=this.__chain__,qe=!!this.__actions__.length,it=U&&!Le,At=ue&&!qe;if(!U&&_e){K=At?K:new pt(this);var at=u.apply(K,ne);return at.__actions__.push({func:Ds,args:[ze],thisArg:n}),new zr(at,Le)}return it&&At?u.apply(this,ne):(at=this.thru(ze),it?x?at.value()[0]:at.value():at)})}),Kr(["pop","push","shift","sort","splice","unshift"],function(u){var f=Mu[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",x=/^(?:pop|shift)$/.test(u);P.prototype[u]=function(){var D=arguments;if(x&&!this.__chain__){var U=this.value();return f.apply(ut(U)?U:[],D)}return this[g](function(K){return f.apply(ut(K)?K:[],D)})}}),qi(pt.prototype,function(u,f){var g=P[f];if(g){var x=g.name+"";Qt.call(Gt,x)||(Gt[x]=[]),Gt[x].push({name:f,func:g})}}),Gt[El(n,T).name]=[{name:"wrapper",func:n}],pt.prototype.clone=Ua,pt.prototype.reverse=No,pt.prototype.value=Ba,P.prototype.at=Nf,P.prototype.chain=jo,P.prototype.commit=Yn,P.prototype.next=Po,P.prototype.plant=qa,P.prototype.reverse=hp,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=mp,P.prototype.first=P.prototype.head,lr&&(P.prototype[lr]=Il),P}),il=pm();Qi?((Qi.exports=il)._=il,_u._=il):Gn._=il}).call(NF)})(Ih,Ih.exports)),Ih.exports}var _a=kF();const _F=eo(_a),Rh=t_("tz",e=>({timezone:null,actions:{setTimezone:t=>e({timezone:t})}}));var Sv={exports:{}},EF=Sv.exports,_2;function E2(){return _2||(_2=1,(function(e,t){(function(n,a){e.exports=a()})(EF,(function(){var n=1e3,a=6e4,r=36e5,s="millisecond",c="second",h="minute",p="hour",v="day",b="week",w="month",S="quarter",k="year",A="date",O="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var W=["th","st","nd","rd"],C=Z%100;return"["+Z+(W[(C-20)%10]||W[C]||W[0])+"]"}},M=function(Z,W,C){var $=String(Z);return!$||$.length>=W?Z:""+Array(W+1-$.length).join(C)+Z},Y={s:M,z:function(Z){var W=-Z.utcOffset(),C=Math.abs(W),$=Math.floor(C/60),B=C%60;return(W<=0?"+":"-")+M($,2,"0")+":"+M(B,2,"0")},m:function Z(W,C){if(W.date()<C.date())return-Z(C,W);var $=12*(C.year()-W.year())+(C.month()-W.month()),B=W.clone().add($,w),ie=C-B<0,pe=W.clone().add($+(ie?-1:1),w);return+(-($+(C-B)/(ie?B-pe:pe-B))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:w,y:k,w:b,d:v,D:A,h:p,m:h,s:c,ms:s,Q:S}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},Q="en",V={};V[Q]=I;var z="$isDayjsObject",L=function(Z){return Z instanceof ee||!(!Z||!Z[z])},X=function Z(W,C,$){var B;if(!W)return Q;if(typeof W=="string"){var ie=W.toLowerCase();V[ie]&&(B=ie),C&&(V[ie]=C,B=ie);var pe=W.split("-");if(!B&&pe.length>1)return Z(pe[0])}else{var F=W.name;V[F]=W,B=F}return!$&&B&&(Q=B),B||!$&&Q},G=function(Z,W){if(L(Z))return Z.clone();var C=typeof W=="object"?W:{};return C.date=Z,C.args=arguments,new ee(C)},q=Y;q.l=X,q.i=L,q.w=function(Z,W){return G(Z,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var ee=(function(){function Z(C){this.$L=X(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[z]=!0}var W=Z.prototype;return W.parse=function(C){this.$d=(function($){var B=$.date,ie=$.utc;if(B===null)return new Date(NaN);if(q.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var pe=B.match(_);if(pe){var F=pe[2]-1||0,le=(pe[7]||"0").substring(0,3);return ie?new Date(Date.UTC(pe[1],F,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,le)):new Date(pe[1],F,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,le)}}return new Date(B)})(C),this.init()},W.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},W.$utils=function(){return q},W.isValid=function(){return this.$d.toString()!==O},W.isSame=function(C,$){var B=G(C);return this.startOf($)<=B&&B<=this.endOf($)},W.isAfter=function(C,$){return G(C)<this.startOf($)},W.isBefore=function(C,$){return this.endOf($)<G(C)},W.$g=function(C,$,B){return q.u(C)?this[$]:this.set(B,C)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(C,$){var B=this,ie=!!q.u($)||$,pe=q.p(C),F=function(Fe,Ze){var Ve=q.w(B.$u?Date.UTC(B.$y,Ze,Fe):new Date(B.$y,Ze,Fe),B);return ie?Ve:Ve.endOf(v)},le=function(Fe,Ze){return q.w(B.toDate()[Fe].apply(B.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(Ze)),B)},ge=this.$W,be=this.$M,De=this.$D,je="set"+(this.$u?"UTC":"");switch(pe){case k:return ie?F(1,0):F(31,11);case w:return ie?F(1,be):F(0,be+1);case b:var Se=this.$locale().weekStart||0,Ue=(ge<Se?ge+7:ge)-Se;return F(ie?De-Ue:De+(6-Ue),be);case v:case A:return le(je+"Hours",0);case p:return le(je+"Minutes",1);case h:return le(je+"Seconds",2);case c:return le(je+"Milliseconds",3);default:return this.clone()}},W.endOf=function(C){return this.startOf(C,!1)},W.$set=function(C,$){var B,ie=q.p(C),pe="set"+(this.$u?"UTC":""),F=(B={},B[v]=pe+"Date",B[A]=pe+"Date",B[w]=pe+"Month",B[k]=pe+"FullYear",B[p]=pe+"Hours",B[h]=pe+"Minutes",B[c]=pe+"Seconds",B[s]=pe+"Milliseconds",B)[ie],le=ie===v?this.$D+($-this.$W):$;if(ie===w||ie===k){var ge=this.clone().set(A,1);ge.$d[F](le),ge.init(),this.$d=ge.set(A,Math.min(this.$D,ge.daysInMonth())).$d}else F&&this.$d[F](le);return this.init(),this},W.set=function(C,$){return this.clone().$set(C,$)},W.get=function(C){return this[q.p(C)]()},W.add=function(C,$){var B,ie=this;C=Number(C);var pe=q.p($),F=function(be){var De=G(ie);return q.w(De.date(De.date()+Math.round(be*C)),ie)};if(pe===w)return this.set(w,this.$M+C);if(pe===k)return this.set(k,this.$y+C);if(pe===v)return F(1);if(pe===b)return F(7);var le=(B={},B[h]=a,B[p]=r,B[c]=n,B)[pe]||1,ge=this.$d.getTime()+C*le;return q.w(ge,this)},W.subtract=function(C,$){return this.add(-1*C,$)},W.format=function(C){var $=this,B=this.$locale();if(!this.isValid())return B.invalidDate||O;var ie=C||"YYYY-MM-DDTHH:mm:ssZ",pe=q.z(this),F=this.$H,le=this.$m,ge=this.$M,be=B.weekdays,De=B.months,je=B.meridiem,Se=function(Ze,Ve,tt,Pt){return Ze&&(Ze[Ve]||Ze($,ie))||tt[Ve].slice(0,Pt)},Ue=function(Ze){return q.s(F%12||12,Ze,"0")},Fe=je||function(Ze,Ve,tt){var Pt=Ze<12?"AM":"PM";return tt?Pt.toLowerCase():Pt};return ie.replace(T,(function(Ze,Ve){return Ve||(function(tt){switch(tt){case"YY":return String($.$y).slice(-2);case"YYYY":return q.s($.$y,4,"0");case"M":return ge+1;case"MM":return q.s(ge+1,2,"0");case"MMM":return Se(B.monthsShort,ge,De,3);case"MMMM":return Se(De,ge);case"D":return $.$D;case"DD":return q.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Se(B.weekdaysMin,$.$W,be,2);case"ddd":return Se(B.weekdaysShort,$.$W,be,3);case"dddd":return be[$.$W];case"H":return String(F);case"HH":return q.s(F,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return Fe(F,le,!0);case"A":return Fe(F,le,!1);case"m":return String(le);case"mm":return q.s(le,2,"0");case"s":return String($.$s);case"ss":return q.s($.$s,2,"0");case"SSS":return q.s($.$ms,3,"0");case"Z":return pe}return null})(Ze)||pe.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(C,$,B){var ie,pe=this,F=q.p($),le=G(C),ge=(le.utcOffset()-this.utcOffset())*a,be=this-le,De=function(){return q.m(pe,le)};switch(F){case k:ie=De()/12;break;case w:ie=De();break;case S:ie=De()/3;break;case b:ie=(be-ge)/6048e5;break;case v:ie=(be-ge)/864e5;break;case p:ie=be/r;break;case h:ie=be/a;break;case c:ie=be/n;break;default:ie=be}return B?ie:q.a(ie)},W.daysInMonth=function(){return this.endOf(w).$D},W.$locale=function(){return V[this.$L]},W.locale=function(C,$){if(!C)return this.$L;var B=this.clone(),ie=X(C,$,!0);return ie&&(B.$L=ie),B},W.clone=function(){return q.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},Z})(),H=ee.prototype;return G.prototype=H,[["$ms",s],["$s",c],["$m",h],["$H",p],["$W",v],["$M",w],["$y",k],["$D",A]].forEach((function(Z){H[Z[1]]=function(W){return this.$g(W,Z[0],Z[1])}})),G.extend=function(Z,W){return Z.$i||(Z(W,ee,G),Z.$i=!0),G},G.locale=X,G.isDayjs=L,G.unix=function(Z){return G(1e3*Z)},G.en=V[Q],G.Ls=V,G.p={},G}))})(Sv)),Sv.exports}var DF=E2();const co=eo(DF);var Ov={exports:{}},TF=Ov.exports,D2;function CF(){return D2||(D2=1,(function(e,t){(function(n,a){e.exports=a()})(TF,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,s=/\d\d/,c=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,p={},v=function(_){return(_=+_)+(_>68?1900:2e3)},b=function(_){return function(T){this[_]=+T}},w=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=(function(T){if(!T||T==="Z")return 0;var I=T.match(/([+-]|\d\d)/g),M=60*I[1]+(+I[2]||0);return M===0?0:I[0]==="+"?-M:M})(_)}],S=function(_){var T=p[_];return T&&(T.indexOf?T:T.s.concat(T.f))},k=function(_,T){var I,M=p.meridiem;if(M){for(var Y=1;Y<=24;Y+=1)if(_.indexOf(M(Y,0,T))>-1){I=Y>12;break}}else I=_===(T?"pm":"PM");return I},A={A:[h,function(_){this.afternoon=k(_,!1)}],a:[h,function(_){this.afternoon=k(_,!0)}],Q:[r,function(_){this.month=3*(_-1)+1}],S:[r,function(_){this.milliseconds=100*+_}],SS:[s,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[c,b("seconds")],ss:[c,b("seconds")],m:[c,b("minutes")],mm:[c,b("minutes")],H:[c,b("hours")],h:[c,b("hours")],HH:[c,b("hours")],hh:[c,b("hours")],D:[c,b("day")],DD:[s,b("day")],Do:[h,function(_){var T=p.ordinal,I=_.match(/\d+/);if(this.day=I[0],T)for(var M=1;M<=31;M+=1)T(M).replace(/\[|\]/g,"")===_&&(this.day=M)}],w:[c,b("week")],ww:[s,b("week")],M:[c,b("month")],MM:[s,b("month")],MMM:[h,function(_){var T=S("months"),I=(S("monthsShort")||T.map((function(M){return M.slice(0,3)}))).indexOf(_)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[h,function(_){var T=S("months").indexOf(_)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,b("year")],YY:[s,function(_){this.year=v(_)}],YYYY:[/\d{4}/,b("year")],Z:w,ZZ:w};function O(_){var T,I;T=_,I=p&&p.formats;for(var M=(_=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(G,q,ee){var H=ee&&ee.toUpperCase();return q||I[ee]||n[ee]||I[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(Z,W,C){return W||C.slice(1)}))}))).match(a),Y=M.length,Q=0;Q<Y;Q+=1){var V=M[Q],z=A[V],L=z&&z[0],X=z&&z[1];M[Q]=X?{regex:L,parser:X}:V.replace(/^\[|\]$/g,"")}return function(G){for(var q={},ee=0,H=0;ee<Y;ee+=1){var Z=M[ee];if(typeof Z=="string")H+=Z.length;else{var W=Z.regex,C=Z.parser,$=G.slice(H),B=W.exec($)[0];C.call(q,B),G=G.replace(B,"")}}return(function(ie){var pe=ie.afternoon;if(pe!==void 0){var F=ie.hours;pe?F<12&&(ie.hours+=12):F===12&&(ie.hours=0),delete ie.afternoon}})(q),q}}return function(_,T,I){I.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(v=_.parseTwoDigitYear);var M=T.prototype,Y=M.parse;M.parse=function(Q){var V=Q.date,z=Q.utc,L=Q.args;this.$u=z;var X=L[1];if(typeof X=="string"){var G=L[2]===!0,q=L[3]===!0,ee=G||q,H=L[2];q&&(H=L[2]),p=this.$locale(),!G&&H&&(p=I.Ls[H]),this.$d=(function($,B,ie,pe){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*$);var F=O(B)($),le=F.year,ge=F.month,be=F.day,De=F.hours,je=F.minutes,Se=F.seconds,Ue=F.milliseconds,Fe=F.zone,Ze=F.week,Ve=new Date,tt=be||(le||ge?1:Ve.getDate()),Pt=le||Ve.getFullYear(),bt=0;le&&!ge||(bt=ge>0?ge-1:Ve.getMonth());var wn,or=De||0,mn=je||0,gi=Se||0,kr=Ue||0;return Fe?new Date(Date.UTC(Pt,bt,tt,or,mn,gi,kr+60*Fe.offset*1e3)):ie?new Date(Date.UTC(Pt,bt,tt,or,mn,gi,kr)):(wn=new Date(Pt,bt,tt,or,mn,gi,kr),Ze&&(wn=pe(wn).week(Ze).toDate()),wn)}catch{return new Date("")}})(V,X,z,I),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),ee&&V!=this.format(X)&&(this.$d=new Date("")),p={}}else if(X instanceof Array)for(var Z=X.length,W=1;W<=Z;W+=1){L[1]=X[W-1];var C=I.apply(this,L);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}W===Z&&(this.$d=new Date(""))}else Y.call(this,Q)}}}))})(Ov)),Ov.exports}var zF=CF();const MF=eo(zF);var Av={exports:{}},IF=Av.exports,T2;function RF(){return T2||(T2=1,(function(e,t){(function(n,a){e.exports=a()})(IF,(function(){var n="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,c,h){var p=c.prototype;h.utc=function(O){var _={date:O,utc:!0,args:arguments};return new c(_)},p.utc=function(O){var _=h(this.toDate(),{locale:this.$L,utc:!0});return O?_.add(this.utcOffset(),n):_},p.local=function(){return h(this.toDate(),{locale:this.$L,utc:!1})};var v=p.parse;p.parse=function(O){O.utc&&(this.$u=!0),this.$utils().u(O.$offset)||(this.$offset=O.$offset),v.call(this,O)};var b=p.init;p.init=function(){if(this.$u){var O=this.$d;this.$y=O.getUTCFullYear(),this.$M=O.getUTCMonth(),this.$D=O.getUTCDate(),this.$W=O.getUTCDay(),this.$H=O.getUTCHours(),this.$m=O.getUTCMinutes(),this.$s=O.getUTCSeconds(),this.$ms=O.getUTCMilliseconds()}else b.call(this)};var w=p.utcOffset;p.utcOffset=function(O,_){var T=this.$utils().u;if(T(O))return this.$u?0:T(this.$offset)?w.call(this):this.$offset;if(typeof O=="string"&&(O=(function(Q){Q===void 0&&(Q="");var V=Q.match(a);if(!V)return null;var z=(""+V[0]).match(r)||["-",0,0],L=z[0],X=60*+z[1]+ +z[2];return X===0?0:L==="+"?X:-X})(O),O===null))return this;var I=Math.abs(O)<=16?60*O:O;if(I===0)return this.utc(_);var M=this.clone();if(_)return M.$offset=I,M.$u=!1,M;var Y=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(M=this.local().add(I+Y,n)).$offset=I,M.$x.$localOffset=Y,M};var S=p.format;p.format=function(O){var _=O||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return S.call(this,_)},p.valueOf=function(){var O=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*O},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var k=p.toDate;p.toDate=function(O){return O==="s"&&this.$offset?h(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():k.call(this)};var A=p.diff;p.diff=function(O,_,T){if(O&&this.$u===O.$u)return A.call(this,O,_,T);var I=this.local(),M=h(O).local();return A.call(I,M,_,T)}}}))})(Av)),Av.exports}var jF=RF();const PF=eo(jF);var Nv={exports:{}},LF=Nv.exports,C2;function UF(){return C2||(C2=1,(function(e,t){(function(n,a){e.exports=a()})(LF,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(r,s,c){var h,p=function(S,k,A){A===void 0&&(A={});var O=new Date(S),_=(function(T,I){I===void 0&&(I={});var M=I.timeZoneName||"short",Y=T+"|"+M,Q=a[Y];return Q||(Q=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),a[Y]=Q),Q})(k,A);return _.formatToParts(O)},v=function(S,k){for(var A=p(S,k),O=[],_=0;_<A.length;_+=1){var T=A[_],I=T.type,M=T.value,Y=n[I];Y>=0&&(O[Y]=parseInt(M,10))}var Q=O[3],V=Q===24?0:Q,z=O[0]+"-"+O[1]+"-"+O[2]+" "+V+":"+O[4]+":"+O[5]+":000",L=+S;return(c.utc(z).valueOf()-(L-=L%1e3))/6e4},b=s.prototype;b.tz=function(S,k){S===void 0&&(S=h);var A,O=this.utcOffset(),_=this.toDate(),T=_.toLocaleString("en-US",{timeZone:S}),I=Math.round((_-new Date(T))/1e3/60),M=15*-Math.round(_.getTimezoneOffset()/15)-I;if(!Number(M))A=this.utcOffset(0,k);else if(A=c(T,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),k){var Y=A.utcOffset();A=A.add(O-Y,"minute")}return A.$x.$timezone=S,A},b.offsetName=function(S){var k=this.$x.$timezone||c.tz.guess(),A=p(this.valueOf(),k,{timeZoneName:S}).find((function(O){return O.type.toLowerCase()==="timezonename"}));return A&&A.value};var w=b.startOf;b.startOf=function(S,k){if(!this.$x||!this.$x.$timezone)return w.call(this,S,k);var A=c(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return w.call(A,S,k).tz(this.$x.$timezone,!0)},c.tz=function(S,k,A){var O=A&&k,_=A||k||h,T=v(+c(),_);if(typeof S!="string")return c(S).tz(_);var I=(function(V,z,L){var X=V-60*z*1e3,G=v(X,L);if(z===G)return[X,z];var q=v(X-=60*(G-z)*1e3,L);return G===q?[X,G]:[V-60*Math.min(G,q)*1e3,Math.max(G,q)]})(c.utc(S,O).valueOf(),T,_),M=I[0],Y=I[1],Q=c(M).utcOffset(Y);return Q.$x.$timezone=_,Q},c.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},c.tz.setDefault=function(S){h=S}}}))})(Nv)),Nv.exports}var BF=UF();const FF=eo(BF);var kv={exports:{}},HF=kv.exports,z2;function QF(){return z2||(z2=1,(function(e,t){(function(n,a){e.exports=a()})(HF,(function(){var n,a,r=1e3,s=6e4,c=36e5,h=864e5,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v=31536e6,b=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,S={years:v,months:b,days:h,hours:c,minutes:s,seconds:r,milliseconds:1,weeks:6048e5},k=function(V){return V instanceof Y},A=function(V,z,L){return new Y(V,L,z.$l)},O=function(V){return a.p(V)+"s"},_=function(V){return V<0},T=function(V){return _(V)?Math.ceil(V):Math.floor(V)},I=function(V){return Math.abs(V)},M=function(V,z){return V?_(V)?{negative:!0,format:""+I(V)+z}:{negative:!1,format:""+V+z}:{negative:!1,format:""}},Y=(function(){function V(L,X,G){var q=this;if(this.$d={},this.$l=G,L===void 0&&(this.$ms=0,this.parseFromMilliseconds()),X)return A(L*S[O(X)],this);if(typeof L=="number")return this.$ms=L,this.parseFromMilliseconds(),this;if(typeof L=="object")return Object.keys(L).forEach((function(Z){q.$d[O(Z)]=L[Z]})),this.calMilliseconds(),this;if(typeof L=="string"){var ee=L.match(w);if(ee){var H=ee.slice(2).map((function(Z){return Z!=null?Number(Z):0}));return this.$d.years=H[0],this.$d.months=H[1],this.$d.weeks=H[2],this.$d.days=H[3],this.$d.hours=H[4],this.$d.minutes=H[5],this.$d.seconds=H[6],this.calMilliseconds(),this}}return this}var z=V.prototype;return z.calMilliseconds=function(){var L=this;this.$ms=Object.keys(this.$d).reduce((function(X,G){return X+(L.$d[G]||0)*S[G]}),0)},z.parseFromMilliseconds=function(){var L=this.$ms;this.$d.years=T(L/v),L%=v,this.$d.months=T(L/b),L%=b,this.$d.days=T(L/h),L%=h,this.$d.hours=T(L/c),L%=c,this.$d.minutes=T(L/s),L%=s,this.$d.seconds=T(L/r),L%=r,this.$d.milliseconds=L},z.toISOString=function(){var L=M(this.$d.years,"Y"),X=M(this.$d.months,"M"),G=+this.$d.days||0;this.$d.weeks&&(G+=7*this.$d.weeks);var q=M(G,"D"),ee=M(this.$d.hours,"H"),H=M(this.$d.minutes,"M"),Z=this.$d.seconds||0;this.$d.milliseconds&&(Z+=this.$d.milliseconds/1e3,Z=Math.round(1e3*Z)/1e3);var W=M(Z,"S"),C=L.negative||X.negative||q.negative||ee.negative||H.negative||W.negative,$=ee.format||H.format||W.format?"T":"",B=(C?"-":"")+"P"+L.format+X.format+q.format+$+ee.format+H.format+W.format;return B==="P"||B==="-P"?"P0D":B},z.toJSON=function(){return this.toISOString()},z.format=function(L){var X=L||"YYYY-MM-DDTHH:mm:ss",G={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return X.replace(p,(function(q,ee){return ee||String(G[q])}))},z.as=function(L){return this.$ms/S[O(L)]},z.get=function(L){var X=this.$ms,G=O(L);return G==="milliseconds"?X%=1e3:X=G==="weeks"?T(X/S[G]):this.$d[G],X||0},z.add=function(L,X,G){var q;return q=X?L*S[O(X)]:k(L)?L.$ms:A(L,this).$ms,A(this.$ms+q*(G?-1:1),this)},z.subtract=function(L,X){return this.add(L,X,!0)},z.locale=function(L){var X=this.clone();return X.$l=L,X},z.clone=function(){return A(this.$ms,this)},z.humanize=function(L){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!L)},z.valueOf=function(){return this.asMilliseconds()},z.milliseconds=function(){return this.get("milliseconds")},z.asMilliseconds=function(){return this.as("milliseconds")},z.seconds=function(){return this.get("seconds")},z.asSeconds=function(){return this.as("seconds")},z.minutes=function(){return this.get("minutes")},z.asMinutes=function(){return this.as("minutes")},z.hours=function(){return this.get("hours")},z.asHours=function(){return this.as("hours")},z.days=function(){return this.get("days")},z.asDays=function(){return this.as("days")},z.weeks=function(){return this.get("weeks")},z.asWeeks=function(){return this.as("weeks")},z.months=function(){return this.get("months")},z.asMonths=function(){return this.as("months")},z.years=function(){return this.get("years")},z.asYears=function(){return this.as("years")},V})(),Q=function(V,z,L){return V.add(z.years()*L,"y").add(z.months()*L,"M").add(z.days()*L,"d").add(z.hours()*L,"h").add(z.minutes()*L,"m").add(z.seconds()*L,"s").add(z.milliseconds()*L,"ms")};return function(V,z,L){n=L,a=L().$utils(),L.duration=function(q,ee){var H=L.locale();return A(q,{$l:H},ee)},L.isDuration=k;var X=z.prototype.add,G=z.prototype.subtract;z.prototype.add=function(q,ee){return k(q)?Q(this,q,1):X.bind(this)(q,ee)},z.prototype.subtract=function(q,ee){return k(q)?Q(this,q,-1):G.bind(this)(q,ee)}}}))})(kv)),kv.exports}var GF=QF();const ZF=eo(GF);var _v={exports:{}},YF=_v.exports,M2;function WF(){return M2||(M2=1,(function(e,t){(function(n,a){e.exports=a()})(YF,(function(){return function(n,a){a.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}}))})(_v)),_v.exports}var $F=WF();const qF=eo($F);var Ev={exports:{}},VF=Ev.exports,I2;function KF(){return I2||(I2=1,(function(e,t){(function(n,a){e.exports=a(E2())})(VF,(function(n){function a(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var r=a(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(c){return c+"º"}};return r.default.locale(s,null,!0),s}))})(Ev)),Ev.exports}KF();var Dv={exports:{}},XF=Dv.exports,R2;function JF(){return R2||(R2=1,(function(e,t){(function(n,a){e.exports=a()})(XF,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var a=["th","st","nd","rd"],r=n%100;return"["+n+(a[(r-20)%10]||a[r]||a[0])+"]"}}}))})(Dv)),Dv.exports}JF();var Tv={exports:{}},eH=Tv.exports,j2;function tH(){return j2||(j2=1,(function(e,t){(function(n,a){e.exports=a()})(eH,(function(){var n="day";return function(a,r,s){var c=function(v){return v.add(4-v.isoWeekday(),n)},h=r.prototype;h.isoWeekYear=function(){return c(this).year()},h.isoWeek=function(v){if(!this.$utils().u(v))return this.add(7*(v-this.isoWeek()),n);var b,w,S,k,A=c(this),O=(b=this.isoWeekYear(),w=this.$u,S=(w?s.utc:s)().year(b).startOf("year"),k=4-S.isoWeekday(),S.isoWeekday()>4&&(k+=7),S.add(k,n));return A.diff(O,"week")+1},h.isoWeekday=function(v){return this.$utils().u(v)?this.day()||7:this.day(this.day()%7?v:v-7)};var p=h.startOf;h.startOf=function(v,b){var w=this.$utils(),S=!!w.u(b)||b;return w.p(v)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):p.bind(this)(v,b)}}}))})(Tv)),Tv.exports}var nH=tH();const rH=eo(nH),P2="it";co.extend(PF),co.extend(FF),co.extend(MF),co.extend(rH),co.extend(ZF),co.extend(qF),co.locale(P2);const od="Europe/Rome";co.tz.setDefault(od);class cn{_date;_lang;constructor(t){this._lang=P2,t instanceof cn?this._date=co(t._date):this._date=co(t);const n=Rh.getState().timezone;this._date=this._date.tz(n||od)}startOfDay=()=>(this._date=this._date.startOf("day"),this);endOfDay=()=>(this._date=this._date.endOf("day"),this);startOfWeek=()=>(this._date=this._date.startOf("week"),this);endOfWeek=()=>(this._date=this._date.endOf("week"),this);startOfMonth=()=>(this._date=this._date.startOf("month"),this);endOfMonth=()=>(this._date=this._date.endOf("month"),this);startOfMinute=()=>(this._date=this._date.startOf("minute"),this);endOfMinute=()=>(this._date=this._date.endOf("minute"),this);setLocale=t=>(this._lang=t,this);diff=t=>{const n=new cn(t);return this._date.diff(n._date)};differenceInDays=t=>{const n=new cn(t);return this._date.diff(n._date,"days")};differenceInHours=t=>{const n=new cn(t);return this._date.diff(n._date,"hours")};differenceInMilliseconds=t=>{const n=new cn(t);return this._date.diff(n._date,"milliseconds")};setTimezone=t=>(this._date=this._date.tz(t),this);isValid=()=>this._date.isValid();getTime=()=>this._date.valueOf();getDate=()=>this._date.get("date");getDay=()=>this._date.get("day");getMonth=()=>this._date.get("month");getYear=()=>this._date.get("year");getHours=()=>this._date.get("hours");getMinutes=()=>this._date.get("minutes");setDate=t=>(this._date=this._date.set("date",t),this);setMonth=t=>(this._date=this._date.set("month",t),this);setYear=t=>(this._date=this._date.set("year",t),this);setHours=t=>(this._date=this._date.set("hours",t),this);setMinutes=t=>(this._date=this._date.set("minutes",t),this);setSeconds=t=>(this._date=this._date.set("seconds",t),this);toDate=()=>this._date.toDate();addTime=(t,n)=>(this._date=this._date.add(t,n),this);subtractTime=(t,n)=>(this._date=this._date.subtract(t,n),this);isAfter=(t,n)=>this._date.isAfter(t instanceof cn?t._date:t,n);isBefore=(t,n)=>this._date.isBefore(t instanceof cn?t._date:t,n);isSame=t=>this._date.isSame(t instanceof cn?t._date:t);isSameOrBefore=t=>this._date.isSameOrBefore(t instanceof cn?t._date:t);isSameDay=t=>this._date.isSame(t instanceof cn?t._date:t,"day");isSameDate=t=>this._date.isSame(t instanceof cn?t._date:t,"date");isSameMonth=t=>this._date.isSame(t instanceof cn?t._date:t,"month");isSameYear=t=>this._date.isSame(t instanceof cn?t._date:t,"year");isSameHour=t=>this._date.isSame(t instanceof cn?t._date:t,"hour");isSameMinute=t=>this._date.isSame(t instanceof cn?t._date:t,"minute");format=(t="DD/MM/YYYY")=>this._date.locale(this._lang).format(t);formatTime=(t="HH:mm")=>this._date.locale(this._lang).format(t);static now=()=>new cn().valueOf()}const iH=tu`
280
+ }`;var At=Gp(function(){return _t(U,qe+"return "+ze).apply(n,K)});if(At.source=ze,Mf(At))throw At;return At}function Ho(u){return Zt(u).toLowerCase()}function Qo(u){return Zt(u).toUpperCase()}function Go(u,f,g){if(u=Zt(u),u&&(g||f===n))return ms(u);if(!u||!(f=Ir(f)))return u;var x=xn(u),D=xn(f),U=cm(x,D),K=dm(x,D)+1;return Ki(x,U,K).join("")}function Cc(u,f,g){if(u=Zt(u),u&&(g||f===n))return u.slice(0,rl(u)+1);if(!u||!(f=Ir(f)))return u;var x=xn(u),D=dm(x,xn(f))+1;return Ki(x,0,D).join("")}function zc(u,f,g){if(u=Zt(u),u&&(g||f===n))return u.replace(hd,"");if(!u||!(f=Ir(f)))return u;var x=xn(u),D=cm(x,xn(f));return Ki(x,D).join("")}function Zo(u,f){var g=G,x=q;if(yn(f)){var D="separator"in f?f.separator:D;g="length"in f?rt(f.length):g,x="omission"in f?Ir(f.omission):x}u=Zt(u);var U=u.length;if(ps(u)){var K=xn(u);U=K.length}if(g>=U)return u;var ne=g-nl(x);if(ne<1)return x;var ue=K?Ki(K,0,ne).join(""):u.slice(0,ne);if(D===n)return ue+x;if(K&&(ne+=ue.length-ne),kc(D)){if(u.slice(ne).search(D)){var ke,_e=ue;for(D.global||(D=jd(D.source,Zt(md.exec(D))+"g")),D.lastIndex=0;ke=D.exec(_e);)var ze=ke.index;ue=ue.slice(0,ze===n?ne:ze)}}else if(u.indexOf(Ir(D),ne)!=ne){var Le=ue.lastIndexOf(D);Le>-1&&(ue=ue.slice(0,Le))}return ue+x}function nO(u){return u=Zt(u),u&&wt.test(u)?u.replace(Lt,my):u}var Jb=ks(function(u,f,g){return u+(g?" ":"")+f.toUpperCase()}),zs=Hm("toUpperCase");function e0(u,f,g){return u=Zt(u),f=g?n:f,f===n?fm(u)?vy(u):dS(u):u.match(f)||[]}var Gp=vt(function(u,f){try{return Vr(u,n,f)}catch(g){return Mf(g)?g:new lt(g)}}),Zf=ga(function(u,f){return Kr(f,function(g){g=Rr(g),ni(u,g,Df(u[g],u))}),u});function t0(u){var f=u==null?0:u.length,g=Je();return u=f?pn(u,function(x){if(typeof x[1]!="function")throw new Jr(c);return[g(x[0]),x[1]]}):[],vt(function(x){for(var D=-1;++D<f;){var U=u[D];if(Vr(U[0],this,x))return Vr(U[1],this,x)}})}function rO(u){return Ey(br(u,w))}function Zl(u){return function(){return u}}function Yf(u,f){return u==null||u!==u?f:u}var n0=_l(),Yl=_l(!0);function Sr(u){return u}function Mc(u){return xl(typeof u=="function"?u:br(u,w))}function Wf(u){return tf(br(u,w))}function r0(u,f){return Am(u,br(f,w))}var iO=vt(function(u,f){return function(g){return Ei(g,u,f)}}),$f=vt(function(u,f){return function(g){return Ei(u,g,f)}});function i(u,f,g){var x=nr(f),D=Ha(f,x);g==null&&!(yn(f)&&(D.length||!x.length))&&(g=f,f=u,u=this,D=Ha(f,nr(f)));var U=!(yn(g)&&"chain"in g)||!!g.chain,K=di(u);return Kr(D,function(ne){var ue=f[ne];u[ne]=ue,K&&(u.prototype[ne]=function(){var ke=this.__chain__;if(U||ke){var _e=u(this.__wrapped__),ze=_e.__actions__=wr(this.__actions__);return ze.push({func:ue,args:arguments,thisArg:u}),_e.__chain__=ke,_e}return ue.apply(u,bo([this.value()],arguments))})}),u}function o(){return Gn._===this&&(Gn._=yi),this}function l(){}function d(u){return u=rt(u),vt(function(f){return nf(f,u)})}var m=cf(pn),y=cf(sy),N=cf(om);function j(u){return oc(u)?hs(Rr(u)):Mn(u)}function J(u){return function(f){return u==null?n:pa(u,f)}}var he=df(),xe=df(!0);function Ne(){return[]}function me(){return!1}function ye(){return{}}function He(){return""}function et(){return!0}function Jt(u,f){if(u=rt(u),u<1||u>B)return[];var g=F,x=Ln(u,F);f=Je(f),u-=F;for(var D=zd(x,f);++g<u;)f(g);return D}function se(u){return ut(u)?pn(u,Rr):Fr(u)?[u]:wr(tp(Zt(u)))}function re(u){var f=++by;return Zt(u)+f}var fe=Xu(function(u,f){return u+f},0),Oe=ec("ceil"),Ke=Xu(function(u,f){return u/f},1),Ut=ec("floor");function $e(u){return u&&u.length?$i(u,Sr,Hu):n}function yt(u,f){return u&&u.length?$i(u,Je(f,2),Hu):n}function Ct(u){return Td(u,Sr)}function Bt(u,f){return Td(u,Je(f,2))}function Yo(u){return u&&u.length?$i(u,Sr,vn):n}function aO(u,f){return u&&u.length?$i(u,Je(f,2),vn):n}var eY=Xu(function(u,f){return u*f},1),tY=ec("round"),nY=Xu(function(u,f){return u-f},0);function rY(u){return u&&u.length?Cd(u,Sr):0}function iY(u,f){return u&&u.length?Cd(u,Je(f,2)):0}return P.after=bb,P.ary=yp,P.assign=Mb,P.assignIn=jf,P.assignInWith=Ll,P.assignWith=QS,P.at=Ti,P.before=bp,P.bind=Df,P.bindAll=Zf,P.bindKey=wp,P.castArray=PS,P.chain=gc,P.chunk=Vy,P.compact=np,P.concat=rp,P.cond=t0,P.conforms=rO,P.constant=Zl,P.countBy=ub,P.create=Rp,P.curry=wc,P.curryRight=xp,P.debounce=Sp,P.defaults=Ib,P.defaultsDeep=Rb,P.defer=qt,P.delay=Op,P.difference=Sf,P.differenceBy=Ky,P.differenceWith=Ya,P.drop=Fn,P.dropRight=ip,P.dropRightWhile=Xy,P.dropWhile=tr,P.fill=_S,P.filter=pp,P.flatMap=Ur,P.flatMapDeep=db,P.flatMapDepth=fb,P.flatten=dn,P.flattenDeep=jr,P.flattenDepth=Wa,P.flip=IS,P.flow=n0,P.flowRight=Yl,P.fromPairs=Jy,P.functions=GS,P.functionsIn=ZS,P.groupBy=kf,P.initial=ES,P.intersection=Of,P.intersectionBy=Pr,P.intersectionWith=Ji,P.invert=YS,P.invertBy=WS,P.invokeMap=Rl,P.iteratee=Mc,P.keyBy=mb,P.keys=nr,P.keysIn=Hr,P.map=yc,P.mapKeys=qS,P.mapValues=Ub,P.matches=Wf,P.matchesProperty=r0,P.memoize=xc,P.merge=Ul,P.mergeWith=Bl,P.method=iO,P.methodOf=$f,P.mixin=i,P.negate=Tf,P.nthArg=d,P.omit=Bb,P.omitBy=VS,P.once=RS,P.orderBy=pb,P.over=m,P.overArgs=jS,P.overEvery=y,P.overSome=N,P.partial=Pl,P.partialRight=Ts,P.partition=gb,P.pick=Fl,P.pickBy=Hl,P.property=j,P.propertyOf=J,P.pull=_s,P.pullAll=ya,P.pullAllBy=lp,P.pullAllWith=up,P.pullAt=ea,P.range=he,P.rangeRight=xe,P.rearg=Ap,P.reject=CS,P.remove=rb,P.rest=Cf,P.reverse=Mo,P.sampleSize=MS,P.set=Lf,P.setWith=Pp,P.shuffle=vb,P.slice=fc,P.sortBy=Ef,P.sortedUniq=Af,P.sortedUniqBy=sb,P.split=Gf,P.spread=Np,P.tail=DS,P.take=TS,P.takeRight=Ht,P.takeRightWhile=on,P.takeWhile=Et,P.tap=lb,P.throttle=Lo,P.thru=Ds,P.toArray=zb,P.toPairs=Uf,P.toPairsIn=Tc,P.toPath=se,P.toPlainObject=Rf,P.transform=Hb,P.unary=ba,P.union=Tt,P.unionBy=$t,P.unionWith=si,P.uniq=Io,P.uniqBy=zl,P.uniqWith=cp,P.unset=Qb,P.unzip=ta,P.unzipWith=On,P.update=KS,P.updateWith=Gb,P.values=Ql,P.valuesIn=Lp,P.without=Ro,P.words=e0,P.wrap=Sc,P.xor=Es,P.xorBy=dp,P.xorWith=li,P.zip=Ml,P.zipObject=pc,P.zipObjectDeep=Lr,P.zipWith=fp,P.entries=Uf,P.entriesIn=Tc,P.extend=jf,P.extendWith=Ll,i(P,P),P.add=fe,P.attempt=Gp,P.camelCase=Hf,P.capitalize=Zb,P.ceil=Oe,P.clamp=XS,P.clone=wb,P.cloneDeep=Sb,P.cloneDeepWith=Ob,P.cloneWith=xb,P.conformsTo=LS,P.deburr=Gl,P.defaultTo=Yf,P.divide=Ke,P.endsWith=JS,P.eq=ci,P.escape=Yb,P.escapeRegExp=Wb,P.every=vc,P.find=ui,P.findIndex=ap,P.findKey=jb,P.findLast=cb,P.findLastIndex=op,P.findLastKey=Dc,P.floor=Ut,P.forEach=hb,P.forEachRight=Va,P.forIn=Ci,P.forInRight=Pb,P.forOwn=Pf,P.forOwnRight=Xa,P.get=Fo,P.gt=Ab,P.gte=Nb,P.has=Lb,P.hasIn=jp,P.head=sp,P.identity=Sr,P.includes=gp,P.indexOf=eb,P.inRange=Bf,P.invoke=$S,P.isArguments=Cs,P.isArray=ut,P.isArrayBuffer=kp,P.isArrayLike=Br,P.isArrayLikeObject=In,P.isBoolean=Oc,P.isBuffer=Uo,P.isDate=kb,P.isElement=Dt,P.isEmpty=_p,P.isEqual=zf,P.isEqualWith=Ep,P.isError=Mf,P.isFinite=Dp,P.isFunction=di,P.isInteger=Ac,P.isLength=If,P.isMap=_b,P.isMatch=Eb,P.isMatchWith=Db,P.isNaN=Xt,P.isNative=Tp,P.isNil=US,P.isNull=fr,P.isNumber=Cp,P.isObject=yn,P.isObjectLike=_n,P.isPlainObject=Nc,P.isRegExp=kc,P.isSafeInteger=zp,P.isSet=_c,P.isString=Ec,P.isSymbol=Fr,P.isTypedArray=Bo,P.isUndefined=Mp,P.isWeakMap=BS,P.isWeakSet=Tb,P.join=tb,P.kebabCase=$b,P.last=fn,P.lastIndexOf=nb,P.lowerCase=qb,P.lowerFirst=Up,P.lt=FS,P.lte=Cb,P.max=$e,P.maxBy=yt,P.mean=Ct,P.meanBy=Bt,P.min=Yo,P.minBy=aO,P.stubArray=Ne,P.stubFalse=me,P.stubObject=ye,P.stubString=He,P.stubTrue=et,P.multiply=eY,P.nth=$a,P.noConflict=o,P.noop=l,P.now=bc,P.pad=Vb,P.padEnd=Kb,P.padStart=Qf,P.parseInt=eO,P.random=Ff,P.reduce=_f,P.reduceRight=vp,P.repeat=tO,P.replace=Bp,P.result=Fb,P.round=tY,P.runInContext=ae,P.sample=zS,P.size=yb,P.snakeCase=Fp,P.some=jl,P.sortedIndex=hc,P.sortedIndexBy=Cl,P.sortedIndexOf=ib,P.sortedLastIndex=ab,P.sortedLastIndexBy=mc,P.sortedLastIndexOf=ob,P.startCase=Hp,P.startsWith=Xb,P.subtract=nY,P.sum=rY,P.sumBy=iY,P.template=Qp,P.times=Jt,P.toFinite=Ka,P.toInteger=rt,P.toLength=Ip,P.toLower=Ho,P.toNumber=fi,P.toSafeInteger=HS,P.toString=Zt,P.toUpper=Qo,P.trim=Go,P.trimEnd=Cc,P.trimStart=zc,P.truncate=Zo,P.unescape=nO,P.uniqueId=re,P.upperCase=Jb,P.upperFirst=zs,P.each=hb,P.eachRight=Va,P.first=sp,i(P,(function(){var u={};return qi(P,function(f,g){Qt.call(P.prototype,g)||(u[g]=f)}),u})(),{chain:!1}),P.VERSION=a,Kr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){P[u].placeholder=P}),Kr(["drop","take"],function(u,f){pt.prototype[u]=function(g){g=g===n?1:An(rt(g),0);var x=this.__filtered__&&!f?new pt(this):this.clone();return x.__filtered__?x.__takeCount__=Ln(g,x.__takeCount__):x.__views__.push({size:Ln(g,F),type:u+(x.__dir__<0?"Right":"")}),x},pt.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),Kr(["filter","map","takeWhile"],function(u,f){var g=f+1,x=g==Z||g==C;pt.prototype[u]=function(D){var U=this.clone();return U.__iteratees__.push({iteratee:Je(D,3),type:g}),U.__filtered__=U.__filtered__||x,U}}),Kr(["head","last"],function(u,f){var g="take"+(f?"Right":"");pt.prototype[u]=function(){return this[g](1).value()[0]}}),Kr(["initial","tail"],function(u,f){var g="drop"+(f?"":"Right");pt.prototype[u]=function(){return this.__filtered__?new pt(this):this[g](1)}}),pt.prototype.compact=function(){return this.filter(Sr)},pt.prototype.find=function(u){return this.filter(u).head()},pt.prototype.findLast=function(u){return this.reverse().find(u)},pt.prototype.invokeMap=vt(function(u,f){return typeof u=="function"?new pt(this):this.map(function(g){return Ei(g,u,f)})}),pt.prototype.reject=function(u){return this.filter(Tf(Je(u)))},pt.prototype.slice=function(u,f){u=rt(u);var g=this;return g.__filtered__&&(u>0||f<0)?new pt(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),f!==n&&(f=rt(f),g=f<0?g.dropRight(-f):g.take(f-u)),g)},pt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},pt.prototype.toArray=function(){return this.take(F)},qi(pt.prototype,function(u,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),x=/^(?:head|last)$/.test(f),D=P[x?"take"+(f=="last"?"Right":""):f],U=x||/^find/.test(f);D&&(P.prototype[f]=function(){var K=this.__wrapped__,ne=x?[1]:arguments,ue=K instanceof pt,ke=ne[0],_e=ue||ut(K),ze=function(It){var jt=D.apply(P,bo([It],ne));return x&&Le?jt[0]:jt};_e&&g&&typeof ke=="function"&&ke.length!=1&&(ue=_e=!1);var Le=this.__chain__,qe=!!this.__actions__.length,it=U&&!Le,At=ue&&!qe;if(!U&&_e){K=At?K:new pt(this);var at=u.apply(K,ne);return at.__actions__.push({func:Ds,args:[ze],thisArg:n}),new zr(at,Le)}return it&&At?u.apply(this,ne):(at=this.thru(ze),it?x?at.value()[0]:at.value():at)})}),Kr(["pop","push","shift","sort","splice","unshift"],function(u){var f=Mu[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",x=/^(?:pop|shift)$/.test(u);P.prototype[u]=function(){var D=arguments;if(x&&!this.__chain__){var U=this.value();return f.apply(ut(U)?U:[],D)}return this[g](function(K){return f.apply(ut(K)?K:[],D)})}}),qi(pt.prototype,function(u,f){var g=P[f];if(g){var x=g.name+"";Qt.call(Gt,x)||(Gt[x]=[]),Gt[x].push({name:f,func:g})}}),Gt[El(n,T).name]=[{name:"wrapper",func:n}],pt.prototype.clone=Ua,pt.prototype.reverse=No,pt.prototype.value=Ba,P.prototype.at=Nf,P.prototype.chain=jo,P.prototype.commit=Yn,P.prototype.next=Po,P.prototype.plant=qa,P.prototype.reverse=hp,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=mp,P.prototype.first=P.prototype.head,lr&&(P.prototype[lr]=Il),P}),il=pm();Qi?((Qi.exports=il)._=il,_u._=il):Gn._=il}).call(NF)})(Ih,Ih.exports)),Ih.exports}var _a=kF();const _F=eo(_a),Rh=t_("tz",e=>({timezone:null,actions:{setTimezone:t=>e({timezone:t})}}));var Sv={exports:{}},EF=Sv.exports,_2;function E2(){return _2||(_2=1,(function(e,t){(function(n,a){e.exports=a()})(EF,(function(){var n=1e3,a=6e4,r=36e5,s="millisecond",c="second",h="minute",p="hour",v="day",b="week",w="month",S="quarter",k="year",A="date",O="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var W=["th","st","nd","rd"],C=Z%100;return"["+Z+(W[(C-20)%10]||W[C]||W[0])+"]"}},M=function(Z,W,C){var $=String(Z);return!$||$.length>=W?Z:""+Array(W+1-$.length).join(C)+Z},Y={s:M,z:function(Z){var W=-Z.utcOffset(),C=Math.abs(W),$=Math.floor(C/60),B=C%60;return(W<=0?"+":"-")+M($,2,"0")+":"+M(B,2,"0")},m:function Z(W,C){if(W.date()<C.date())return-Z(C,W);var $=12*(C.year()-W.year())+(C.month()-W.month()),B=W.clone().add($,w),ie=C-B<0,pe=W.clone().add($+(ie?-1:1),w);return+(-($+(C-B)/(ie?B-pe:pe-B))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:w,y:k,w:b,d:v,D:A,h:p,m:h,s:c,ms:s,Q:S}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},Q="en",V={};V[Q]=I;var z="$isDayjsObject",L=function(Z){return Z instanceof ee||!(!Z||!Z[z])},X=function Z(W,C,$){var B;if(!W)return Q;if(typeof W=="string"){var ie=W.toLowerCase();V[ie]&&(B=ie),C&&(V[ie]=C,B=ie);var pe=W.split("-");if(!B&&pe.length>1)return Z(pe[0])}else{var F=W.name;V[F]=W,B=F}return!$&&B&&(Q=B),B||!$&&Q},G=function(Z,W){if(L(Z))return Z.clone();var C=typeof W=="object"?W:{};return C.date=Z,C.args=arguments,new ee(C)},q=Y;q.l=X,q.i=L,q.w=function(Z,W){return G(Z,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var ee=(function(){function Z(C){this.$L=X(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[z]=!0}var W=Z.prototype;return W.parse=function(C){this.$d=(function($){var B=$.date,ie=$.utc;if(B===null)return new Date(NaN);if(q.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var pe=B.match(_);if(pe){var F=pe[2]-1||0,le=(pe[7]||"0").substring(0,3);return ie?new Date(Date.UTC(pe[1],F,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,le)):new Date(pe[1],F,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,le)}}return new Date(B)})(C),this.init()},W.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},W.$utils=function(){return q},W.isValid=function(){return this.$d.toString()!==O},W.isSame=function(C,$){var B=G(C);return this.startOf($)<=B&&B<=this.endOf($)},W.isAfter=function(C,$){return G(C)<this.startOf($)},W.isBefore=function(C,$){return this.endOf($)<G(C)},W.$g=function(C,$,B){return q.u(C)?this[$]:this.set(B,C)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(C,$){var B=this,ie=!!q.u($)||$,pe=q.p(C),F=function(Fe,Ze){var Ve=q.w(B.$u?Date.UTC(B.$y,Ze,Fe):new Date(B.$y,Ze,Fe),B);return ie?Ve:Ve.endOf(v)},le=function(Fe,Ze){return q.w(B.toDate()[Fe].apply(B.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(Ze)),B)},ge=this.$W,be=this.$M,De=this.$D,je="set"+(this.$u?"UTC":"");switch(pe){case k:return ie?F(1,0):F(31,11);case w:return ie?F(1,be):F(0,be+1);case b:var Se=this.$locale().weekStart||0,Ue=(ge<Se?ge+7:ge)-Se;return F(ie?De-Ue:De+(6-Ue),be);case v:case A:return le(je+"Hours",0);case p:return le(je+"Minutes",1);case h:return le(je+"Seconds",2);case c:return le(je+"Milliseconds",3);default:return this.clone()}},W.endOf=function(C){return this.startOf(C,!1)},W.$set=function(C,$){var B,ie=q.p(C),pe="set"+(this.$u?"UTC":""),F=(B={},B[v]=pe+"Date",B[A]=pe+"Date",B[w]=pe+"Month",B[k]=pe+"FullYear",B[p]=pe+"Hours",B[h]=pe+"Minutes",B[c]=pe+"Seconds",B[s]=pe+"Milliseconds",B)[ie],le=ie===v?this.$D+($-this.$W):$;if(ie===w||ie===k){var ge=this.clone().set(A,1);ge.$d[F](le),ge.init(),this.$d=ge.set(A,Math.min(this.$D,ge.daysInMonth())).$d}else F&&this.$d[F](le);return this.init(),this},W.set=function(C,$){return this.clone().$set(C,$)},W.get=function(C){return this[q.p(C)]()},W.add=function(C,$){var B,ie=this;C=Number(C);var pe=q.p($),F=function(be){var De=G(ie);return q.w(De.date(De.date()+Math.round(be*C)),ie)};if(pe===w)return this.set(w,this.$M+C);if(pe===k)return this.set(k,this.$y+C);if(pe===v)return F(1);if(pe===b)return F(7);var le=(B={},B[h]=a,B[p]=r,B[c]=n,B)[pe]||1,ge=this.$d.getTime()+C*le;return q.w(ge,this)},W.subtract=function(C,$){return this.add(-1*C,$)},W.format=function(C){var $=this,B=this.$locale();if(!this.isValid())return B.invalidDate||O;var ie=C||"YYYY-MM-DDTHH:mm:ssZ",pe=q.z(this),F=this.$H,le=this.$m,ge=this.$M,be=B.weekdays,De=B.months,je=B.meridiem,Se=function(Ze,Ve,tt,Pt){return Ze&&(Ze[Ve]||Ze($,ie))||tt[Ve].slice(0,Pt)},Ue=function(Ze){return q.s(F%12||12,Ze,"0")},Fe=je||function(Ze,Ve,tt){var Pt=Ze<12?"AM":"PM";return tt?Pt.toLowerCase():Pt};return ie.replace(T,(function(Ze,Ve){return Ve||(function(tt){switch(tt){case"YY":return String($.$y).slice(-2);case"YYYY":return q.s($.$y,4,"0");case"M":return ge+1;case"MM":return q.s(ge+1,2,"0");case"MMM":return Se(B.monthsShort,ge,De,3);case"MMMM":return Se(De,ge);case"D":return $.$D;case"DD":return q.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Se(B.weekdaysMin,$.$W,be,2);case"ddd":return Se(B.weekdaysShort,$.$W,be,3);case"dddd":return be[$.$W];case"H":return String(F);case"HH":return q.s(F,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return Fe(F,le,!0);case"A":return Fe(F,le,!1);case"m":return String(le);case"mm":return q.s(le,2,"0");case"s":return String($.$s);case"ss":return q.s($.$s,2,"0");case"SSS":return q.s($.$ms,3,"0");case"Z":return pe}return null})(Ze)||pe.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(C,$,B){var ie,pe=this,F=q.p($),le=G(C),ge=(le.utcOffset()-this.utcOffset())*a,be=this-le,De=function(){return q.m(pe,le)};switch(F){case k:ie=De()/12;break;case w:ie=De();break;case S:ie=De()/3;break;case b:ie=(be-ge)/6048e5;break;case v:ie=(be-ge)/864e5;break;case p:ie=be/r;break;case h:ie=be/a;break;case c:ie=be/n;break;default:ie=be}return B?ie:q.a(ie)},W.daysInMonth=function(){return this.endOf(w).$D},W.$locale=function(){return V[this.$L]},W.locale=function(C,$){if(!C)return this.$L;var B=this.clone(),ie=X(C,$,!0);return ie&&(B.$L=ie),B},W.clone=function(){return q.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},Z})(),H=ee.prototype;return G.prototype=H,[["$ms",s],["$s",c],["$m",h],["$H",p],["$W",v],["$M",w],["$y",k],["$D",A]].forEach((function(Z){H[Z[1]]=function(W){return this.$g(W,Z[0],Z[1])}})),G.extend=function(Z,W){return Z.$i||(Z(W,ee,G),Z.$i=!0),G},G.locale=X,G.isDayjs=L,G.unix=function(Z){return G(1e3*Z)},G.en=V[Q],G.Ls=V,G.p={},G}))})(Sv)),Sv.exports}var DF=E2();const co=eo(DF);var Ov={exports:{}},TF=Ov.exports,D2;function CF(){return D2||(D2=1,(function(e,t){(function(n,a){e.exports=a()})(TF,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,s=/\d\d/,c=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,p={},v=function(_){return(_=+_)+(_>68?1900:2e3)},b=function(_){return function(T){this[_]=+T}},w=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=(function(T){if(!T||T==="Z")return 0;var I=T.match(/([+-]|\d\d)/g),M=60*I[1]+(+I[2]||0);return M===0?0:I[0]==="+"?-M:M})(_)}],S=function(_){var T=p[_];return T&&(T.indexOf?T:T.s.concat(T.f))},k=function(_,T){var I,M=p.meridiem;if(M){for(var Y=1;Y<=24;Y+=1)if(_.indexOf(M(Y,0,T))>-1){I=Y>12;break}}else I=_===(T?"pm":"PM");return I},A={A:[h,function(_){this.afternoon=k(_,!1)}],a:[h,function(_){this.afternoon=k(_,!0)}],Q:[r,function(_){this.month=3*(_-1)+1}],S:[r,function(_){this.milliseconds=100*+_}],SS:[s,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[c,b("seconds")],ss:[c,b("seconds")],m:[c,b("minutes")],mm:[c,b("minutes")],H:[c,b("hours")],h:[c,b("hours")],HH:[c,b("hours")],hh:[c,b("hours")],D:[c,b("day")],DD:[s,b("day")],Do:[h,function(_){var T=p.ordinal,I=_.match(/\d+/);if(this.day=I[0],T)for(var M=1;M<=31;M+=1)T(M).replace(/\[|\]/g,"")===_&&(this.day=M)}],w:[c,b("week")],ww:[s,b("week")],M:[c,b("month")],MM:[s,b("month")],MMM:[h,function(_){var T=S("months"),I=(S("monthsShort")||T.map((function(M){return M.slice(0,3)}))).indexOf(_)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[h,function(_){var T=S("months").indexOf(_)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,b("year")],YY:[s,function(_){this.year=v(_)}],YYYY:[/\d{4}/,b("year")],Z:w,ZZ:w};function O(_){var T,I;T=_,I=p&&p.formats;for(var M=(_=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(G,q,ee){var H=ee&&ee.toUpperCase();return q||I[ee]||n[ee]||I[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(Z,W,C){return W||C.slice(1)}))}))).match(a),Y=M.length,Q=0;Q<Y;Q+=1){var V=M[Q],z=A[V],L=z&&z[0],X=z&&z[1];M[Q]=X?{regex:L,parser:X}:V.replace(/^\[|\]$/g,"")}return function(G){for(var q={},ee=0,H=0;ee<Y;ee+=1){var Z=M[ee];if(typeof Z=="string")H+=Z.length;else{var W=Z.regex,C=Z.parser,$=G.slice(H),B=W.exec($)[0];C.call(q,B),G=G.replace(B,"")}}return(function(ie){var pe=ie.afternoon;if(pe!==void 0){var F=ie.hours;pe?F<12&&(ie.hours+=12):F===12&&(ie.hours=0),delete ie.afternoon}})(q),q}}return function(_,T,I){I.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(v=_.parseTwoDigitYear);var M=T.prototype,Y=M.parse;M.parse=function(Q){var V=Q.date,z=Q.utc,L=Q.args;this.$u=z;var X=L[1];if(typeof X=="string"){var G=L[2]===!0,q=L[3]===!0,ee=G||q,H=L[2];q&&(H=L[2]),p=this.$locale(),!G&&H&&(p=I.Ls[H]),this.$d=(function($,B,ie,pe){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*$);var F=O(B)($),le=F.year,ge=F.month,be=F.day,De=F.hours,je=F.minutes,Se=F.seconds,Ue=F.milliseconds,Fe=F.zone,Ze=F.week,Ve=new Date,tt=be||(le||ge?1:Ve.getDate()),Pt=le||Ve.getFullYear(),bt=0;le&&!ge||(bt=ge>0?ge-1:Ve.getMonth());var wn,or=De||0,mn=je||0,gi=Se||0,kr=Ue||0;return Fe?new Date(Date.UTC(Pt,bt,tt,or,mn,gi,kr+60*Fe.offset*1e3)):ie?new Date(Date.UTC(Pt,bt,tt,or,mn,gi,kr)):(wn=new Date(Pt,bt,tt,or,mn,gi,kr),Ze&&(wn=pe(wn).week(Ze).toDate()),wn)}catch{return new Date("")}})(V,X,z,I),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),ee&&V!=this.format(X)&&(this.$d=new Date("")),p={}}else if(X instanceof Array)for(var Z=X.length,W=1;W<=Z;W+=1){L[1]=X[W-1];var C=I.apply(this,L);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}W===Z&&(this.$d=new Date(""))}else Y.call(this,Q)}}}))})(Ov)),Ov.exports}var zF=CF();const MF=eo(zF);var Av={exports:{}},IF=Av.exports,T2;function RF(){return T2||(T2=1,(function(e,t){(function(n,a){e.exports=a()})(IF,(function(){var n="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,c,h){var p=c.prototype;h.utc=function(O){var _={date:O,utc:!0,args:arguments};return new c(_)},p.utc=function(O){var _=h(this.toDate(),{locale:this.$L,utc:!0});return O?_.add(this.utcOffset(),n):_},p.local=function(){return h(this.toDate(),{locale:this.$L,utc:!1})};var v=p.parse;p.parse=function(O){O.utc&&(this.$u=!0),this.$utils().u(O.$offset)||(this.$offset=O.$offset),v.call(this,O)};var b=p.init;p.init=function(){if(this.$u){var O=this.$d;this.$y=O.getUTCFullYear(),this.$M=O.getUTCMonth(),this.$D=O.getUTCDate(),this.$W=O.getUTCDay(),this.$H=O.getUTCHours(),this.$m=O.getUTCMinutes(),this.$s=O.getUTCSeconds(),this.$ms=O.getUTCMilliseconds()}else b.call(this)};var w=p.utcOffset;p.utcOffset=function(O,_){var T=this.$utils().u;if(T(O))return this.$u?0:T(this.$offset)?w.call(this):this.$offset;if(typeof O=="string"&&(O=(function(Q){Q===void 0&&(Q="");var V=Q.match(a);if(!V)return null;var z=(""+V[0]).match(r)||["-",0,0],L=z[0],X=60*+z[1]+ +z[2];return X===0?0:L==="+"?X:-X})(O),O===null))return this;var I=Math.abs(O)<=16?60*O:O;if(I===0)return this.utc(_);var M=this.clone();if(_)return M.$offset=I,M.$u=!1,M;var Y=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(M=this.local().add(I+Y,n)).$offset=I,M.$x.$localOffset=Y,M};var S=p.format;p.format=function(O){var _=O||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return S.call(this,_)},p.valueOf=function(){var O=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*O},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var k=p.toDate;p.toDate=function(O){return O==="s"&&this.$offset?h(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():k.call(this)};var A=p.diff;p.diff=function(O,_,T){if(O&&this.$u===O.$u)return A.call(this,O,_,T);var I=this.local(),M=h(O).local();return A.call(I,M,_,T)}}}))})(Av)),Av.exports}var jF=RF();const PF=eo(jF);var Nv={exports:{}},LF=Nv.exports,C2;function UF(){return C2||(C2=1,(function(e,t){(function(n,a){e.exports=a()})(LF,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(r,s,c){var h,p=function(S,k,A){A===void 0&&(A={});var O=new Date(S),_=(function(T,I){I===void 0&&(I={});var M=I.timeZoneName||"short",Y=T+"|"+M,Q=a[Y];return Q||(Q=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),a[Y]=Q),Q})(k,A);return _.formatToParts(O)},v=function(S,k){for(var A=p(S,k),O=[],_=0;_<A.length;_+=1){var T=A[_],I=T.type,M=T.value,Y=n[I];Y>=0&&(O[Y]=parseInt(M,10))}var Q=O[3],V=Q===24?0:Q,z=O[0]+"-"+O[1]+"-"+O[2]+" "+V+":"+O[4]+":"+O[5]+":000",L=+S;return(c.utc(z).valueOf()-(L-=L%1e3))/6e4},b=s.prototype;b.tz=function(S,k){S===void 0&&(S=h);var A,O=this.utcOffset(),_=this.toDate(),T=_.toLocaleString("en-US",{timeZone:S}),I=Math.round((_-new Date(T))/1e3/60),M=15*-Math.round(_.getTimezoneOffset()/15)-I;if(!Number(M))A=this.utcOffset(0,k);else if(A=c(T,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),k){var Y=A.utcOffset();A=A.add(O-Y,"minute")}return A.$x.$timezone=S,A},b.offsetName=function(S){var k=this.$x.$timezone||c.tz.guess(),A=p(this.valueOf(),k,{timeZoneName:S}).find((function(O){return O.type.toLowerCase()==="timezonename"}));return A&&A.value};var w=b.startOf;b.startOf=function(S,k){if(!this.$x||!this.$x.$timezone)return w.call(this,S,k);var A=c(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return w.call(A,S,k).tz(this.$x.$timezone,!0)},c.tz=function(S,k,A){var O=A&&k,_=A||k||h,T=v(+c(),_);if(typeof S!="string")return c(S).tz(_);var I=(function(V,z,L){var X=V-60*z*1e3,G=v(X,L);if(z===G)return[X,z];var q=v(X-=60*(G-z)*1e3,L);return G===q?[X,G]:[V-60*Math.min(G,q)*1e3,Math.max(G,q)]})(c.utc(S,O).valueOf(),T,_),M=I[0],Y=I[1],Q=c(M).utcOffset(Y);return Q.$x.$timezone=_,Q},c.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},c.tz.setDefault=function(S){h=S}}}))})(Nv)),Nv.exports}var BF=UF();const FF=eo(BF);var kv={exports:{}},HF=kv.exports,z2;function QF(){return z2||(z2=1,(function(e,t){(function(n,a){e.exports=a()})(HF,(function(){var n,a,r=1e3,s=6e4,c=36e5,h=864e5,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v=31536e6,b=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,S={years:v,months:b,days:h,hours:c,minutes:s,seconds:r,milliseconds:1,weeks:6048e5},k=function(V){return V instanceof Y},A=function(V,z,L){return new Y(V,L,z.$l)},O=function(V){return a.p(V)+"s"},_=function(V){return V<0},T=function(V){return _(V)?Math.ceil(V):Math.floor(V)},I=function(V){return Math.abs(V)},M=function(V,z){return V?_(V)?{negative:!0,format:""+I(V)+z}:{negative:!1,format:""+V+z}:{negative:!1,format:""}},Y=(function(){function V(L,X,G){var q=this;if(this.$d={},this.$l=G,L===void 0&&(this.$ms=0,this.parseFromMilliseconds()),X)return A(L*S[O(X)],this);if(typeof L=="number")return this.$ms=L,this.parseFromMilliseconds(),this;if(typeof L=="object")return Object.keys(L).forEach((function(Z){q.$d[O(Z)]=L[Z]})),this.calMilliseconds(),this;if(typeof L=="string"){var ee=L.match(w);if(ee){var H=ee.slice(2).map((function(Z){return Z!=null?Number(Z):0}));return this.$d.years=H[0],this.$d.months=H[1],this.$d.weeks=H[2],this.$d.days=H[3],this.$d.hours=H[4],this.$d.minutes=H[5],this.$d.seconds=H[6],this.calMilliseconds(),this}}return this}var z=V.prototype;return z.calMilliseconds=function(){var L=this;this.$ms=Object.keys(this.$d).reduce((function(X,G){return X+(L.$d[G]||0)*S[G]}),0)},z.parseFromMilliseconds=function(){var L=this.$ms;this.$d.years=T(L/v),L%=v,this.$d.months=T(L/b),L%=b,this.$d.days=T(L/h),L%=h,this.$d.hours=T(L/c),L%=c,this.$d.minutes=T(L/s),L%=s,this.$d.seconds=T(L/r),L%=r,this.$d.milliseconds=L},z.toISOString=function(){var L=M(this.$d.years,"Y"),X=M(this.$d.months,"M"),G=+this.$d.days||0;this.$d.weeks&&(G+=7*this.$d.weeks);var q=M(G,"D"),ee=M(this.$d.hours,"H"),H=M(this.$d.minutes,"M"),Z=this.$d.seconds||0;this.$d.milliseconds&&(Z+=this.$d.milliseconds/1e3,Z=Math.round(1e3*Z)/1e3);var W=M(Z,"S"),C=L.negative||X.negative||q.negative||ee.negative||H.negative||W.negative,$=ee.format||H.format||W.format?"T":"",B=(C?"-":"")+"P"+L.format+X.format+q.format+$+ee.format+H.format+W.format;return B==="P"||B==="-P"?"P0D":B},z.toJSON=function(){return this.toISOString()},z.format=function(L){var X=L||"YYYY-MM-DDTHH:mm:ss",G={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return X.replace(p,(function(q,ee){return ee||String(G[q])}))},z.as=function(L){return this.$ms/S[O(L)]},z.get=function(L){var X=this.$ms,G=O(L);return G==="milliseconds"?X%=1e3:X=G==="weeks"?T(X/S[G]):this.$d[G],X||0},z.add=function(L,X,G){var q;return q=X?L*S[O(X)]:k(L)?L.$ms:A(L,this).$ms,A(this.$ms+q*(G?-1:1),this)},z.subtract=function(L,X){return this.add(L,X,!0)},z.locale=function(L){var X=this.clone();return X.$l=L,X},z.clone=function(){return A(this.$ms,this)},z.humanize=function(L){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!L)},z.valueOf=function(){return this.asMilliseconds()},z.milliseconds=function(){return this.get("milliseconds")},z.asMilliseconds=function(){return this.as("milliseconds")},z.seconds=function(){return this.get("seconds")},z.asSeconds=function(){return this.as("seconds")},z.minutes=function(){return this.get("minutes")},z.asMinutes=function(){return this.as("minutes")},z.hours=function(){return this.get("hours")},z.asHours=function(){return this.as("hours")},z.days=function(){return this.get("days")},z.asDays=function(){return this.as("days")},z.weeks=function(){return this.get("weeks")},z.asWeeks=function(){return this.as("weeks")},z.months=function(){return this.get("months")},z.asMonths=function(){return this.as("months")},z.years=function(){return this.get("years")},z.asYears=function(){return this.as("years")},V})(),Q=function(V,z,L){return V.add(z.years()*L,"y").add(z.months()*L,"M").add(z.days()*L,"d").add(z.hours()*L,"h").add(z.minutes()*L,"m").add(z.seconds()*L,"s").add(z.milliseconds()*L,"ms")};return function(V,z,L){n=L,a=L().$utils(),L.duration=function(q,ee){var H=L.locale();return A(q,{$l:H},ee)},L.isDuration=k;var X=z.prototype.add,G=z.prototype.subtract;z.prototype.add=function(q,ee){return k(q)?Q(this,q,1):X.bind(this)(q,ee)},z.prototype.subtract=function(q,ee){return k(q)?Q(this,q,-1):G.bind(this)(q,ee)}}}))})(kv)),kv.exports}var GF=QF();const ZF=eo(GF);var _v={exports:{}},YF=_v.exports,M2;function WF(){return M2||(M2=1,(function(e,t){(function(n,a){e.exports=a()})(YF,(function(){return function(n,a){a.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}}))})(_v)),_v.exports}var $F=WF();const qF=eo($F);var Ev={exports:{}},VF=Ev.exports,I2;function KF(){return I2||(I2=1,(function(e,t){(function(n,a){e.exports=a(E2())})(VF,(function(n){function a(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var r=a(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(c){return c+"º"}};return r.default.locale(s,null,!0),s}))})(Ev)),Ev.exports}KF();var Dv={exports:{}},XF=Dv.exports,R2;function JF(){return R2||(R2=1,(function(e,t){(function(n,a){e.exports=a()})(XF,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var a=["th","st","nd","rd"],r=n%100;return"["+n+(a[(r-20)%10]||a[r]||a[0])+"]"}}}))})(Dv)),Dv.exports}JF();var Tv={exports:{}},eH=Tv.exports,j2;function tH(){return j2||(j2=1,(function(e,t){(function(n,a){e.exports=a()})(eH,(function(){var n="day";return function(a,r,s){var c=function(v){return v.add(4-v.isoWeekday(),n)},h=r.prototype;h.isoWeekYear=function(){return c(this).year()},h.isoWeek=function(v){if(!this.$utils().u(v))return this.add(7*(v-this.isoWeek()),n);var b,w,S,k,A=c(this),O=(b=this.isoWeekYear(),w=this.$u,S=(w?s.utc:s)().year(b).startOf("year"),k=4-S.isoWeekday(),S.isoWeekday()>4&&(k+=7),S.add(k,n));return A.diff(O,"week")+1},h.isoWeekday=function(v){return this.$utils().u(v)?this.day()||7:this.day(this.day()%7?v:v-7)};var p=h.startOf;h.startOf=function(v,b){var w=this.$utils(),S=!!w.u(b)||b;return w.p(v)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):p.bind(this)(v,b)}}}))})(Tv)),Tv.exports}var nH=tH();const rH=eo(nH),P2="it";co.extend(PF),co.extend(FF),co.extend(MF),co.extend(rH),co.extend(ZF),co.extend(qF),co.locale(P2);const od="Europe/Rome";co.tz.setDefault(od);class cn{_date;_lang;constructor(t){this._lang=P2,t instanceof cn?this._date=co(t._date):this._date=co(t);const n=Rh.getState().timezone;this._date=this._date.tz(n||od)}startOfDay=()=>(this._date=this._date.startOf("day"),this);endOfDay=()=>(this._date=this._date.endOf("day"),this);startOfWeek=()=>(this._date=this._date.startOf("week"),this);endOfWeek=()=>(this._date=this._date.endOf("week"),this);startOfMonth=()=>(this._date=this._date.startOf("month"),this);endOfMonth=()=>(this._date=this._date.endOf("month"),this);startOfMinute=()=>(this._date=this._date.startOf("minute"),this);endOfMinute=()=>(this._date=this._date.endOf("minute"),this);setLocale=t=>(this._lang=t,this);diff=t=>{const n=new cn(t);return this._date.diff(n._date)};differenceInDays=t=>{const n=new cn(t);return this._date.diff(n._date,"days")};differenceInHours=t=>{const n=new cn(t);return this._date.diff(n._date,"hours")};differenceInMilliseconds=t=>{const n=new cn(t);return this._date.diff(n._date,"milliseconds")};setTimezone=t=>(this._date=this._date.tz(t),this);isValid=()=>this._date.isValid();getTime=()=>this._date.valueOf();getDate=()=>this._date.get("date");getDay=()=>this._date.get("day");getMonth=()=>this._date.get("month");getYear=()=>this._date.get("year");getHours=()=>this._date.get("hours");getMinutes=()=>this._date.get("minutes");setDate=t=>(this._date=this._date.set("date",t),this);setMonth=t=>(this._date=this._date.set("month",t),this);setYear=t=>(this._date=this._date.set("year",t),this);setHours=t=>(this._date=this._date.set("hours",t),this._date=this._date.set("millisecond",0),this);setMinutes=t=>(this._date=this._date.set("minutes",t),this._date=this._date.set("millisecond",0),this);setSeconds=t=>(this._date=this._date.set("seconds",t),this._date=this._date.set("millisecond",0),this);toDate=()=>this._date.toDate();addTime=(t,n)=>(this._date=this._date.add(t,n),this);subtractTime=(t,n)=>(this._date=this._date.subtract(t,n),this);isAfter=(t,n)=>this._date.isAfter(t instanceof cn?t._date:t,n);isBefore=(t,n)=>this._date.isBefore(t instanceof cn?t._date:t,n);isSame=t=>this._date.isSame(t instanceof cn?t._date:t);isSameOrBefore=t=>this._date.isSameOrBefore(t instanceof cn?t._date:t);isSameDay=t=>this._date.isSame(t instanceof cn?t._date:t,"day");isSameDate=t=>this._date.isSame(t instanceof cn?t._date:t,"date");isSameMonth=t=>this._date.isSame(t instanceof cn?t._date:t,"month");isSameYear=t=>this._date.isSame(t instanceof cn?t._date:t,"year");isSameHour=t=>this._date.isSame(t instanceof cn?t._date:t,"hour");isSameMinute=t=>this._date.isSame(t instanceof cn?t._date:t,"minute");format=(t="DD/MM/YYYY")=>this._date.locale(this._lang).format(t);formatTime=(t="HH:mm")=>this._date.locale(this._lang).format(t);static now=()=>new cn().valueOf()}const iH=tu`
281
281
  query GetWidgetConfg($widgetKey: String!) {
282
282
  getWidgetConfig(widgetKey: $widgetKey) {
283
283
  active
@@ -224,7 +224,7 @@ spurious results.`)}}return!1};class wk{constructor(t,n="GraphQL request",a={lin
224
224
  `))}function Sk(e){var t;return(t=e?.some(n=>n.includes(`
225
225
  `)))!==null&&t!==void 0?t:!1}const Ok="Accept",uw="Content-Type",cw="application/json",Ak="application/graphql-response+json",Nk=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),hL=e=>{const t=e.toLowerCase();return t.includes(Ak)||t.includes(cw)},kk=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(_k)};if(_g(e))return{_tag:"Single",executionResult:_k(e)};throw new Error(`Invalid execution result: result is not object or array.
226
226
  Got:
227
- ${String(e)}`)}catch(t){return t}},_k=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,a;if("errors"in e){if(!_g(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!_g(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!_g(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");a=e.extensions}return{data:n,errors:t,extensions:a}},mL=e=>e._tag==="Batch"?e.executionResults.some(Ek):Ek(e.executionResult),Ek=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Dk=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===nt.OPERATION_DEFINITION,pL=e=>{let t;const n=e.definitions.filter(Dk);return n.length===1&&(t=n[0].name?.value),t},gL=e=>{let t=!1;const n=e.definitions.filter(Dk);return n.length===1&&(t=n[0].operation==="mutation"),t},dw=(e,t)=>{const n=typeof e=="string"?e:cL(e);let a=!1,r;if(t)return{expression:n,isMutation:a,operationName:r};const s=xP(()=>typeof e=="string"?tL(e):e);return s instanceof Error?{expression:n,isMutation:a,operationName:r}:(r=pL(s),a=gL(s),{expression:n,operationName:r,isMutation:a})},fw=JSON,hw=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":ak(e.method??"post"):e.request.hasMutations?"POST":ak(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},a=await yL(t.method)(t);if(!a.ok)return new Jl({status:a.status,headers:a.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const r=await vL(a,e.fetchOptions.jsonSerializer??fw);if(r instanceof Error)throw r;const s={status:a.status,headers:a.headers};if(mL(r)&&t.fetchOptions.errorPolicy==="none"){const c=r._tag==="Batch"?{...r.executionResults,...s}:{...r.executionResult,...s};return new Jl(c,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(r._tag){case"Single":return{...s,...Tk(t)(r.executionResult)};case"Batch":return{...s,data:r.executionResults.map(Tk(t))};default:nw(r)}},Tk=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),vL=async(e,t)=>{const n=e.headers.get(uw),a=await e.text();return n&&hL(n)?kk(t.parse(a)):kk(a)},yL=e=>async t=>{const n=new Headers(t.headers);let a=null,r;n.has(Ok)||n.set(Ok,[Ak,cw].join(", ")),e==="POST"?(r=(t.fetchOptions.jsonSerializer??fw).stringify(bL(t)),typeof r=="string"&&!n.has(uw)&&n.set(uw,cw)):a=wL(t);const s={method:e,headers:n,body:r,...t.fetchOptions};let c=new URL(t.url),h=s;if(t.middleware){const v=await Promise.resolve(t.middleware({...s,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:b,...w}=v;c=new URL(b),h=w}return a&&a.forEach((v,b)=>{c.searchParams.append(b,v)}),await(t.fetch??fetch)(c,h)},bL=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return ok(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw nw(e.request)}},wL=e=>{const t=e.fetchOptions.jsonSerializer??fw,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",Nk(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const a=e.request.variables?.map(c=>t.stringify(c))??[],r=e.request.query.map(Nk),s=ok(r,a).map(([c,h])=>({query:c,variables:h}));return n.append("query",t.stringify(s)),n}default:throw nw(e.request)}};class xL{url;requestConfig;constructor(t,n={}){this.url=t,this.requestConfig=n}rawRequest=async(...t)=>{const[n,a,r]=t,s=AP(n,a,r),{headers:c,fetch:h=globalThis.fetch,method:p="POST",requestMiddleware:v,responseMiddleware:b,excludeOperationName:w,...S}=this.requestConfig,{url:k}=this;s.signal!==void 0&&(S.signal=s.signal);const A=dw(s.query,w),O=await hw({url:k,request:{_tag:"Single",document:A,variables:s.variables},headers:{...$c(tw(c)),...$c(s.requestHeaders)},fetch:h,method:p,fetchOptions:S,middleware:v});if(b&&await b(O,{operationName:A.operationName,variables:a,url:this.url}),O instanceof Error)throw O;return O};async request(t,...n){const[a,r]=n,s=SL(t,a,r),{headers:c,fetch:h=globalThis.fetch,method:p="POST",requestMiddleware:v,responseMiddleware:b,excludeOperationName:w,...S}=this.requestConfig,{url:k}=this;s.signal!==void 0&&(S.signal=s.signal);const A=dw(s.document,w),O=await hw({url:k,request:{_tag:"Single",document:A,variables:s.variables},headers:{...$c(tw(c)),...$c(s.requestHeaders)},fetch:h,method:p,fetchOptions:S,middleware:v});if(b&&await b(O,{operationName:A.operationName,variables:s.variables,url:this.url}),O instanceof Error)throw O;return O.data}async batchRequests(t,n){const a=OP(t,n),{headers:r,excludeOperationName:s,...c}=this.requestConfig;a.signal!==void 0&&(c.signal=a.signal);const h=a.documents.map(({document:S})=>dw(S,s)),p=h.map(({expression:S})=>S),v=h.some(({isMutation:S})=>S),b=a.documents.map(({variables:S})=>S),w=await hw({url:this.url,request:{_tag:"Batch",operationName:void 0,query:p,hasMutations:v,variables:b},headers:{...$c(tw(r)),...$c(a.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:c,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(w,{operationName:void 0,variables:b,url:this.url}),w instanceof Error)throw w;return w.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:a}=this.requestConfig;return a?a[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const SL=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},tu=(e,...t)=>e.reduce((n,a,r)=>`${n}${a}${r in t?String(t[r]):""}`,"");var Kc=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(){}},OL={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},AL=class{#e=OL;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},nu=new AL;function NL(e){setTimeout(e,0)}var Qs=typeof window>"u"||"Deno"in globalThis;function Gr(){}function kL(e,t){return typeof e=="function"?e(t):e}function mw(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ck(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gs(e,t){return typeof e=="function"?e(t):e}function oa(e,t){return typeof e=="function"?e(t):e}function zk(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:s,queryKey:c,stale:h}=e;if(c){if(a){if(t.queryHash!==pw(c,t.options))return!1}else if(!uh(t.queryKey,c))return!1}if(n!=="all"){const p=t.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||r&&r!==t.state.fetchStatus||s&&!s(t))}function Mk(e,t){const{exact:n,status:a,predicate:r,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ru(t.options.mutationKey)!==ru(s))return!1}else if(!uh(t.options.mutationKey,s))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function pw(e,t){return(t?.queryKeyHashFn||ru)(e)}function ru(e){return JSON.stringify(e,(t,n)=>gw(n)?Object.keys(n).sort().reduce((a,r)=>(a[r]=n[r],a),{}):n)}function uh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>uh(e[n],t[n])):!1}var _L=Object.prototype.hasOwnProperty;function Ik(e,t){if(e===t)return e;const n=Rk(e)&&Rk(t);if(!n&&!(gw(e)&&gw(t)))return t;const r=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),c=s.length,h=n?new Array(c):{};let p=0;for(let v=0;v<c;v++){const b=n?v:s[v],w=e[b],S=t[b];if(w===S){h[b]=w,(n?v<r:_L.call(e,b))&&p++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){h[b]=S;continue}const k=Ik(w,S);h[b]=k,k===w&&p++}return r===c&&p===r?e:h}function Mg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Rk(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gw(e){if(!jk(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!jk(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jk(e){return Object.prototype.toString.call(e)==="[object Object]"}function EL(e){return new Promise(t=>{nu.setTimeout(t,e)})}function vw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ik(e,t):t}function DL(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function TL(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var yw=Symbol();function Pk(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===yw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lk(e,t){return typeof e=="function"?e(...t):!!e}var CL=class extends Kc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},bw=new CL;function ww(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});n.status="pending",n.catch(()=>{});function a(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{a({status:"fulfilled",value:r}),e(r)},n.reject=r=>{a({status:"rejected",reason:r}),t(r)},n}var zL=NL;function ML(){let e=[],t=0,n=h=>{h()},a=h=>{h()},r=zL;const s=h=>{t?e.push(h):r(()=>{n(h)})},c=()=>{const h=e;e=[],h.length&&r(()=>{a(()=>{h.forEach(p=>{n(p)})})})};return{batch:h=>{let p;t++;try{p=h()}finally{t--,t||c()}return p},batchCalls:h=>(...p)=>{s(()=>{h(...p)})},schedule:s,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{r=h}}}var qn=ML(),IL=class extends Kc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ig=new IL;function RL(e){return Math.min(1e3*2**e,3e4)}function Uk(e){return(e??"online")==="online"?Ig.isOnline():!0}var xw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Bk(e){let t=!1,n=0,a;const r=ww(),s=()=>r.status!=="pending",c=O=>{if(!s()){const _=new xw(O);S(_),e.onCancel?.(_)}},h=()=>{t=!0},p=()=>{t=!1},v=()=>bw.isFocused()&&(e.networkMode==="always"||Ig.isOnline())&&e.canRun(),b=()=>Uk(e.networkMode)&&e.canRun(),w=O=>{s()||(a?.(),r.resolve(O))},S=O=>{s()||(a?.(),r.reject(O))},k=()=>new Promise(O=>{a=_=>{(s()||v())&&O(_)},e.onPause?.()}).then(()=>{a=void 0,s()||e.onContinue?.()}),A=()=>{if(s())return;let O;const _=n===0?e.initialPromise:void 0;try{O=_??e.fn()}catch(T){O=Promise.reject(T)}Promise.resolve(O).then(w).catch(T=>{if(s())return;const I=e.retry??(Qs?0:3),M=e.retryDelay??RL,Y=typeof M=="function"?M(n,T):M,Q=I===!0||typeof I=="number"&&n<I||typeof I=="function"&&I(n,T);if(t||!Q){S(T);return}n++,e.onFail?.(n,T),EL(Y).then(()=>v()?void 0:k()).then(()=>{t?S(T):A()})})};return{promise:r,status:()=>r.status,cancel:c,continue:()=>(a?.(),r),cancelRetry:h,continueRetry:p,canStart:b,start:()=>(b()?A():k().then(A),r)}}var Fk=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mw(this.gcTime)&&(this.#e=nu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qs?1/0:300*1e3))}clearGcTimeout(){this.#e&&(nu.clearTimeout(this.#e),this.#e=void 0)}},jL=class extends Fk{#e;#t;#n;#i;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Qk(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Qk(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=vw(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Gr).catch(Gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>oa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yw||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Gs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Ck(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},r=()=>{const h=Pk(this.options,t),v=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return a(b),b})();return this.#s=!1,this.options.persister?this.options.persister(h,v,this):h(v)},c=(()=>{const h={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return a(h),h})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=Bk({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:h=>{h instanceof xw&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(h,p)=>{this.#a({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof xw){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#a({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Hk(n.data,this.options),fetchMeta:e.meta??null};case"success":const a={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?a:void 0,a;case"error":const r=e.error;return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),qn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Hk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Uk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Qk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var PL=class extends Kc{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=ww(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#o;#s;#a;#p;#f;#h;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Gk(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Sw(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Sw(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof oa(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Mg(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&Zk(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),a&&(this.#t!==n||oa(this.options.enabled,this.#t)!==oa(t.enabled,this.#t)||Gs(this.options.staleTime,this.#t)!==Gs(t.staleTime,this.#t))&&this.#g();const r=this.#v();a&&(this.#t!==n||oa(this.options.enabled,this.#t)!==oa(t.enabled,this.#t)||r!==this.#l)&&this.#y(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return UL(this,n)&&(this.#i=n,this.#o=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),t?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Gr)),t}#g(){this.#w();const e=Gs(this.options.staleTime,this.#t);if(Qs||this.#i.isStale||!mw(e))return;const n=Ck(this.#i.dataUpdatedAt,e)+1;this.#u=nu.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#x(),this.#l=e,!(Qs||oa(this.options.enabled,this.#t)===!1||!mw(this.#l)||this.#l===0)&&(this.#c=nu.setInterval(()=>{(this.options.refetchIntervalInBackground||bw.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#w(){this.#u&&(nu.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(nu.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,a=this.options,r=this.#i,s=this.#r,c=this.#o,p=e!==n?e.state:this.#n,{state:v}=e;let b={...v},w=!1,S;if(t._optimisticResults){const L=this.hasListeners(),X=!L&&Gk(e,t),G=L&&Zk(e,n,t,a);(X||G)&&(b={...b,...Hk(v.data,e.options)}),t._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:k,errorUpdatedAt:A,status:O}=b;S=b.data;let _=!1;if(t.placeholderData!==void 0&&S===void 0&&O==="pending"){let L;r?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(L=r.data,_=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(O="success",S=vw(r?.data,L,t),w=!0)}if(t.select&&S!==void 0&&!_)if(r&&S===s?.data&&t.select===this.#p)S=this.#f;else try{this.#p=t.select,S=t.select(S),S=vw(r?.data,S,t),this.#f=S,this.#a=null}catch(L){this.#a=L}this.#a&&(k=this.#a,S=this.#f,A=Date.now(),O="error");const T=b.fetchStatus==="fetching",I=O==="pending",M=O==="error",Y=I&&T,Q=S!==void 0,z={status:O,fetchStatus:b.fetchStatus,isPending:I,isSuccess:O==="success",isError:M,isInitialLoading:Y,isLoading:Y,data:S,dataUpdatedAt:b.dataUpdatedAt,error:k,errorUpdatedAt:A,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:T,isRefetching:T&&!I,isLoadingError:M&&!Q,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:M&&Q,isStale:Ow(e,t),refetch:this.refetch,promise:this.#s,isEnabled:oa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=q=>{z.status==="error"?q.reject(z.error):z.data!==void 0&&q.resolve(z.data)},X=()=>{const q=this.#s=z.promise=ww();L(q)},G=this.#s;switch(G.status){case"pending":e.queryHash===n.queryHash&&L(G);break;case"fulfilled":(z.status==="error"||z.data!==G.value)&&X();break;case"rejected":(z.status!=="error"||z.error!==G.reason)&&X();break}}return z}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#h=this.#t),Mg(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,r=typeof a=="function"?a():a;if(r==="all"||!r&&!this.#m.size)return!0;const s=new Set(r??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(c=>{const h=c;return this.#i[h]!==e[h]&&s.has(h)})};this.#O({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#O(e){qn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function LL(e,t){return oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Gk(e,t){return LL(e,t)||e.state.data!==void 0&&Sw(e,t,t.refetchOnMount)}function Sw(e,t,n){if(oa(t.enabled,e)!==!1&&Gs(t.staleTime,e)!=="static"){const a=typeof n=="function"?n(e):n;return a==="always"||a!==!1&&Ow(e,t)}return!1}function Zk(e,t,n,a){return(e!==t||oa(a.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ow(e,n)}function Ow(e,t){return oa(t.enabled,e)!==!1&&e.isStaleByTime(Gs(t.staleTime,e))}function UL(e,t){return!Mg(e.getCurrentResult(),t)}function Yk(e){return{onFetch:(t,n)=>{const a=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const v=async()=>{let b=!1;const w=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},S=Pk(t.options,t.fetchOptions),k=async(A,O,_)=>{if(b)return Promise.reject();if(O==null&&A.pages.length)return Promise.resolve(A);const I=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:O,direction:_?"backward":"forward",meta:t.options.meta};return w(V),V})(),M=await S(I),{maxPages:Y}=t.options,Q=_?TL:DL;return{pages:Q(A.pages,M,Y),pageParams:Q(A.pageParams,O,Y)}};if(r&&s.length){const A=r==="backward",O=A?BL:Wk,_={pages:s,pageParams:c},T=O(a,_);h=await k(_,T,A)}else{const A=e??s.length;do{const O=p===0?c[0]??a.initialPageParam:Wk(a,h);if(p>0&&O==null)break;h=await k(h,O),p++}while(p<A)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(v,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=v}}}function Wk(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function BL(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var FL=class extends Fk{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||$k(),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.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Bk({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",r=!this.#i.canStart();try{if(a)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:r})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function $k(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qk=class extends Kc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const a=new FL({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){this.#e.add(e);const t=Rg(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Rg(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Rg(e);if(typeof t=="string"){const a=this.#t.get(t)?.find(r=>r.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=Rg(e);return typeof t=="string"?this.#t.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Mk(t,n))}findAll(e={}){return this.getAll().filter(t=>Mk(e,t))}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Gr))))}};function Rg(e){return e.options.scope?.id}var HL=class extends Kc{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Mg(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ru(n.mutationKey)!==ru(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??$k();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){qn.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,a=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,a,r),this.#i.onSettled?.(t.data,null,n,a,r)):t?.type==="error"&&(this.#i.onError?.(t.error,n,a,r),this.#i.onSettled?.(void 0,t.error,n,a,r))}this.listeners.forEach(n=>{n(this.#t)})})}},Vk=class extends Kc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const a=t.queryKey,r=t.queryHash??pw(a,t);let s=this.get(r);return s||(s=new jL({client:e,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>zk(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>zk(e,n)):t}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},QL=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new Vk,this.#t=e.mutationCache||new qk,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=bw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Ig.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(a.queryHash)?.state.data,c=kL(t,s);if(c!==void 0)return this.#e.build(this,a).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return qn.batch(()=>this.#e.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;qn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return qn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=qn.batch(()=>this.#e.findAll(e).map(r=>r.cancel(n)));return Promise.all(a).then(Gr).catch(Gr)}invalidateQueries(e,t={}){return qn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=qn.batch(()=>this.#e.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(Gr)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(a).then(Gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Gs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gr).catch(Gr)}fetchInfiniteQuery(e){return e.behavior=Yk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gr).catch(Gr)}ensureInfiniteQueryData(e){return e.behavior=Yk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ig.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(ru(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(a=>{uh(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ru(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(a=>{uh(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===yw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Kk=R.createContext(void 0),Aw=e=>{const t=R.useContext(Kk);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},GL=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(Kk.Provider,{value:e,children:t})),Xk=R.createContext(!1),ZL=()=>R.useContext(Xk);Xk.Provider;function YL(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var WL=R.createContext(YL()),$L=()=>R.useContext(WL),qL=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},VL=e=>{R.useEffect(()=>{e.clearReset()},[e])},KL=({result:e,errorResetBoundary:t,throwOnError:n,query:a,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(r&&e.data===void 0||Lk(n,[e.error,a])),XL=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...r)=>n(a(...r)):n(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},JL=(e,t)=>e.isLoading&&e.isFetching&&!t,eU=(e,t)=>e?.suspense&&t.isPending,Jk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tU(e,t,n){const a=ZL(),r=$L(),s=Aw(),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=a?"isRestoring":"optimistic",XL(c),qL(c,r),VL(r);const h=!s.getQueryCache().get(c.queryHash),[p]=R.useState(()=>new t(s,c)),v=p.getOptimisticResult(c),b=!a&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(w=>{const S=b?p.subscribe(qn.batchCalls(w)):Gr;return p.updateResult(),S},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),R.useEffect(()=>{p.setOptions(c)},[c,p]),eU(c,v))throw Jk(c,p,r);if(KL({result:v,errorResetBoundary:r,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw v.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,v),c.experimental_prefetchInRender&&!Qs&&JL(v,a)&&(h?Jk(c,p,r):s.getQueryCache().get(c.queryHash)?.promise)?.catch(Gr).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?v:p.trackResult(v)}function Nw(e,t){return tU(e,PL)}function nU(e,t){const n=Aw(),a=n.getQueryCache();return R.useSyncExternalStore(R.useCallback(r=>a.subscribe(qn.batchCalls(r)),[a]),()=>n.isFetching(e),()=>n.isFetching(e))}function rU(e,t){const n=Aw(),[a]=R.useState(()=>new HL(n,e));R.useEffect(()=>{a.setOptions(e)},[a,e]);const r=R.useSyncExternalStore(R.useCallback(c=>a.subscribe(qn.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=R.useCallback((c,h)=>{a.mutate(c,h).catch(Gr)},[a]);if(r.error&&Lk(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}const iU={DEV:!1},{DEV:aU}=iU,oU=aU,sU="https://api.easea.app/graphql",lU="1.2.2",e_=e=>{let t;const n=new Set,a=(v,b)=>{const w=typeof v=="function"?v(t):v;if(!Object.is(w,t)){const S=t;t=b??(typeof w!="object"||w===null)?w:Object.assign({},t,w),n.forEach(k=>k(t,S))}},r=()=>t,h={setState:a,getState:r,getInitialState:()=>p,subscribe:v=>(n.add(v),()=>n.delete(v))},p=t=e(a,r,h);return h},uU=(e=>e?e_(e):e_),cU=e=>e;function dU(e,t=cU){const n=Ae.useSyncExternalStore(e.subscribe,Ae.useCallback(()=>t(e.getState()),[e,t]),Ae.useCallback(()=>t(e.getInitialState()),[e,t]));return Ae.useDebugValue(n),n}const fU=e=>{const t=uU(e),n=a=>dU(t,a);return Object.assign(n,t),n},hU=(e=>fU),t_={BASE_URL:"/",DEV:!1,MODE:"widget",PROD:!0,SSR:!1},ch=new Map,jg=e=>{const t=ch.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,a])=>[n,a.getState()])):{}},mU=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const a=ch.get(n.name);if(a)return{type:"tracked",store:e,...a};const r={connection:t.connect(n),stores:{}};return ch.set(n.name,r),{type:"tracked",store:e,...r}},pU=(e,t)=>{if(t===void 0)return;const n=ch.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&ch.delete(e))},gU=e=>{var t,n;if(!e)return;const a=e.split(`
227
+ ${String(e)}`)}catch(t){return t}},_k=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,a;if("errors"in e){if(!_g(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!_g(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!_g(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");a=e.extensions}return{data:n,errors:t,extensions:a}},mL=e=>e._tag==="Batch"?e.executionResults.some(Ek):Ek(e.executionResult),Ek=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Dk=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===nt.OPERATION_DEFINITION,pL=e=>{let t;const n=e.definitions.filter(Dk);return n.length===1&&(t=n[0].name?.value),t},gL=e=>{let t=!1;const n=e.definitions.filter(Dk);return n.length===1&&(t=n[0].operation==="mutation"),t},dw=(e,t)=>{const n=typeof e=="string"?e:cL(e);let a=!1,r;if(t)return{expression:n,isMutation:a,operationName:r};const s=xP(()=>typeof e=="string"?tL(e):e);return s instanceof Error?{expression:n,isMutation:a,operationName:r}:(r=pL(s),a=gL(s),{expression:n,operationName:r,isMutation:a})},fw=JSON,hw=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":ak(e.method??"post"):e.request.hasMutations?"POST":ak(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},a=await yL(t.method)(t);if(!a.ok)return new Jl({status:a.status,headers:a.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const r=await vL(a,e.fetchOptions.jsonSerializer??fw);if(r instanceof Error)throw r;const s={status:a.status,headers:a.headers};if(mL(r)&&t.fetchOptions.errorPolicy==="none"){const c=r._tag==="Batch"?{...r.executionResults,...s}:{...r.executionResult,...s};return new Jl(c,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(r._tag){case"Single":return{...s,...Tk(t)(r.executionResult)};case"Batch":return{...s,data:r.executionResults.map(Tk(t))};default:nw(r)}},Tk=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),vL=async(e,t)=>{const n=e.headers.get(uw),a=await e.text();return n&&hL(n)?kk(t.parse(a)):kk(a)},yL=e=>async t=>{const n=new Headers(t.headers);let a=null,r;n.has(Ok)||n.set(Ok,[Ak,cw].join(", ")),e==="POST"?(r=(t.fetchOptions.jsonSerializer??fw).stringify(bL(t)),typeof r=="string"&&!n.has(uw)&&n.set(uw,cw)):a=wL(t);const s={method:e,headers:n,body:r,...t.fetchOptions};let c=new URL(t.url),h=s;if(t.middleware){const v=await Promise.resolve(t.middleware({...s,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:b,...w}=v;c=new URL(b),h=w}return a&&a.forEach((v,b)=>{c.searchParams.append(b,v)}),await(t.fetch??fetch)(c,h)},bL=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return ok(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw nw(e.request)}},wL=e=>{const t=e.fetchOptions.jsonSerializer??fw,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",Nk(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const a=e.request.variables?.map(c=>t.stringify(c))??[],r=e.request.query.map(Nk),s=ok(r,a).map(([c,h])=>({query:c,variables:h}));return n.append("query",t.stringify(s)),n}default:throw nw(e.request)}};class xL{url;requestConfig;constructor(t,n={}){this.url=t,this.requestConfig=n}rawRequest=async(...t)=>{const[n,a,r]=t,s=AP(n,a,r),{headers:c,fetch:h=globalThis.fetch,method:p="POST",requestMiddleware:v,responseMiddleware:b,excludeOperationName:w,...S}=this.requestConfig,{url:k}=this;s.signal!==void 0&&(S.signal=s.signal);const A=dw(s.query,w),O=await hw({url:k,request:{_tag:"Single",document:A,variables:s.variables},headers:{...$c(tw(c)),...$c(s.requestHeaders)},fetch:h,method:p,fetchOptions:S,middleware:v});if(b&&await b(O,{operationName:A.operationName,variables:a,url:this.url}),O instanceof Error)throw O;return O};async request(t,...n){const[a,r]=n,s=SL(t,a,r),{headers:c,fetch:h=globalThis.fetch,method:p="POST",requestMiddleware:v,responseMiddleware:b,excludeOperationName:w,...S}=this.requestConfig,{url:k}=this;s.signal!==void 0&&(S.signal=s.signal);const A=dw(s.document,w),O=await hw({url:k,request:{_tag:"Single",document:A,variables:s.variables},headers:{...$c(tw(c)),...$c(s.requestHeaders)},fetch:h,method:p,fetchOptions:S,middleware:v});if(b&&await b(O,{operationName:A.operationName,variables:s.variables,url:this.url}),O instanceof Error)throw O;return O.data}async batchRequests(t,n){const a=OP(t,n),{headers:r,excludeOperationName:s,...c}=this.requestConfig;a.signal!==void 0&&(c.signal=a.signal);const h=a.documents.map(({document:S})=>dw(S,s)),p=h.map(({expression:S})=>S),v=h.some(({isMutation:S})=>S),b=a.documents.map(({variables:S})=>S),w=await hw({url:this.url,request:{_tag:"Batch",operationName:void 0,query:p,hasMutations:v,variables:b},headers:{...$c(tw(r)),...$c(a.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:c,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(w,{operationName:void 0,variables:b,url:this.url}),w instanceof Error)throw w;return w.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:a}=this.requestConfig;return a?a[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const SL=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},tu=(e,...t)=>e.reduce((n,a,r)=>`${n}${a}${r in t?String(t[r]):""}`,"");var Kc=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(){}},OL={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},AL=class{#e=OL;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},nu=new AL;function NL(e){setTimeout(e,0)}var Qs=typeof window>"u"||"Deno"in globalThis;function Gr(){}function kL(e,t){return typeof e=="function"?e(t):e}function mw(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ck(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gs(e,t){return typeof e=="function"?e(t):e}function oa(e,t){return typeof e=="function"?e(t):e}function zk(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:s,queryKey:c,stale:h}=e;if(c){if(a){if(t.queryHash!==pw(c,t.options))return!1}else if(!uh(t.queryKey,c))return!1}if(n!=="all"){const p=t.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||r&&r!==t.state.fetchStatus||s&&!s(t))}function Mk(e,t){const{exact:n,status:a,predicate:r,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ru(t.options.mutationKey)!==ru(s))return!1}else if(!uh(t.options.mutationKey,s))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function pw(e,t){return(t?.queryKeyHashFn||ru)(e)}function ru(e){return JSON.stringify(e,(t,n)=>gw(n)?Object.keys(n).sort().reduce((a,r)=>(a[r]=n[r],a),{}):n)}function uh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>uh(e[n],t[n])):!1}var _L=Object.prototype.hasOwnProperty;function Ik(e,t){if(e===t)return e;const n=Rk(e)&&Rk(t);if(!n&&!(gw(e)&&gw(t)))return t;const r=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),c=s.length,h=n?new Array(c):{};let p=0;for(let v=0;v<c;v++){const b=n?v:s[v],w=e[b],S=t[b];if(w===S){h[b]=w,(n?v<r:_L.call(e,b))&&p++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){h[b]=S;continue}const k=Ik(w,S);h[b]=k,k===w&&p++}return r===c&&p===r?e:h}function Mg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Rk(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gw(e){if(!jk(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!jk(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jk(e){return Object.prototype.toString.call(e)==="[object Object]"}function EL(e){return new Promise(t=>{nu.setTimeout(t,e)})}function vw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ik(e,t):t}function DL(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function TL(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var yw=Symbol();function Pk(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===yw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lk(e,t){return typeof e=="function"?e(...t):!!e}var CL=class extends Kc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},bw=new CL;function ww(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});n.status="pending",n.catch(()=>{});function a(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{a({status:"fulfilled",value:r}),e(r)},n.reject=r=>{a({status:"rejected",reason:r}),t(r)},n}var zL=NL;function ML(){let e=[],t=0,n=h=>{h()},a=h=>{h()},r=zL;const s=h=>{t?e.push(h):r(()=>{n(h)})},c=()=>{const h=e;e=[],h.length&&r(()=>{a(()=>{h.forEach(p=>{n(p)})})})};return{batch:h=>{let p;t++;try{p=h()}finally{t--,t||c()}return p},batchCalls:h=>(...p)=>{s(()=>{h(...p)})},schedule:s,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{r=h}}}var qn=ML(),IL=class extends Kc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Qs&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ig=new IL;function RL(e){return Math.min(1e3*2**e,3e4)}function Uk(e){return(e??"online")==="online"?Ig.isOnline():!0}var xw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Bk(e){let t=!1,n=0,a;const r=ww(),s=()=>r.status!=="pending",c=O=>{if(!s()){const _=new xw(O);S(_),e.onCancel?.(_)}},h=()=>{t=!0},p=()=>{t=!1},v=()=>bw.isFocused()&&(e.networkMode==="always"||Ig.isOnline())&&e.canRun(),b=()=>Uk(e.networkMode)&&e.canRun(),w=O=>{s()||(a?.(),r.resolve(O))},S=O=>{s()||(a?.(),r.reject(O))},k=()=>new Promise(O=>{a=_=>{(s()||v())&&O(_)},e.onPause?.()}).then(()=>{a=void 0,s()||e.onContinue?.()}),A=()=>{if(s())return;let O;const _=n===0?e.initialPromise:void 0;try{O=_??e.fn()}catch(T){O=Promise.reject(T)}Promise.resolve(O).then(w).catch(T=>{if(s())return;const I=e.retry??(Qs?0:3),M=e.retryDelay??RL,Y=typeof M=="function"?M(n,T):M,Q=I===!0||typeof I=="number"&&n<I||typeof I=="function"&&I(n,T);if(t||!Q){S(T);return}n++,e.onFail?.(n,T),EL(Y).then(()=>v()?void 0:k()).then(()=>{t?S(T):A()})})};return{promise:r,status:()=>r.status,cancel:c,continue:()=>(a?.(),r),cancelRetry:h,continueRetry:p,canStart:b,start:()=>(b()?A():k().then(A),r)}}var Fk=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mw(this.gcTime)&&(this.#e=nu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qs?1/0:300*1e3))}clearGcTimeout(){this.#e&&(nu.clearTimeout(this.#e),this.#e=void 0)}},jL=class extends Fk{#e;#t;#n;#i;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Qk(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Qk(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=vw(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Gr).catch(Gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>oa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===yw||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Gs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Ck(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},r=()=>{const h=Pk(this.options,t),v=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return a(b),b})();return this.#s=!1,this.options.persister?this.options.persister(h,v,this):h(v)},c=(()=>{const h={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return a(h),h})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=Bk({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:h=>{h instanceof xw&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(h,p)=>{this.#a({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof xw){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#a({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Hk(n.data,this.options),fetchMeta:e.meta??null};case"success":const a={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?a:void 0,a;case"error":const r=e.error;return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),qn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Hk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Uk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Qk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var PL=class extends Kc{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=ww(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#o;#s;#a;#p;#f;#h;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Gk(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Sw(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Sw(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#x(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof oa(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Mg(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&Zk(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),a&&(this.#t!==n||oa(this.options.enabled,this.#t)!==oa(t.enabled,this.#t)||Gs(this.options.staleTime,this.#t)!==Gs(t.staleTime,this.#t))&&this.#g();const r=this.#v();a&&(this.#t!==n||oa(this.options.enabled,this.#t)!==oa(t.enabled,this.#t)||r!==this.#l)&&this.#y(r)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return UL(this,n)&&(this.#i=n,this.#o=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),t?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Gr)),t}#g(){this.#w();const e=Gs(this.options.staleTime,this.#t);if(Qs||this.#i.isStale||!mw(e))return;const n=Ck(this.#i.dataUpdatedAt,e)+1;this.#u=nu.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#x(),this.#l=e,!(Qs||oa(this.options.enabled,this.#t)===!1||!mw(this.#l)||this.#l===0)&&(this.#c=nu.setInterval(()=>{(this.options.refetchIntervalInBackground||bw.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#w(){this.#u&&(nu.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(nu.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,a=this.options,r=this.#i,s=this.#r,c=this.#o,p=e!==n?e.state:this.#n,{state:v}=e;let b={...v},w=!1,S;if(t._optimisticResults){const L=this.hasListeners(),X=!L&&Gk(e,t),G=L&&Zk(e,n,t,a);(X||G)&&(b={...b,...Hk(v.data,e.options)}),t._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:k,errorUpdatedAt:A,status:O}=b;S=b.data;let _=!1;if(t.placeholderData!==void 0&&S===void 0&&O==="pending"){let L;r?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(L=r.data,_=!0):L=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,L!==void 0&&(O="success",S=vw(r?.data,L,t),w=!0)}if(t.select&&S!==void 0&&!_)if(r&&S===s?.data&&t.select===this.#p)S=this.#f;else try{this.#p=t.select,S=t.select(S),S=vw(r?.data,S,t),this.#f=S,this.#a=null}catch(L){this.#a=L}this.#a&&(k=this.#a,S=this.#f,A=Date.now(),O="error");const T=b.fetchStatus==="fetching",I=O==="pending",M=O==="error",Y=I&&T,Q=S!==void 0,z={status:O,fetchStatus:b.fetchStatus,isPending:I,isSuccess:O==="success",isError:M,isInitialLoading:Y,isLoading:Y,data:S,dataUpdatedAt:b.dataUpdatedAt,error:k,errorUpdatedAt:A,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:T,isRefetching:T&&!I,isLoadingError:M&&!Q,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:M&&Q,isStale:Ow(e,t),refetch:this.refetch,promise:this.#s,isEnabled:oa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=q=>{z.status==="error"?q.reject(z.error):z.data!==void 0&&q.resolve(z.data)},X=()=>{const q=this.#s=z.promise=ww();L(q)},G=this.#s;switch(G.status){case"pending":e.queryHash===n.queryHash&&L(G);break;case"fulfilled":(z.status==="error"||z.data!==G.value)&&X();break;case"rejected":(z.status!=="error"||z.error!==G.reason)&&X();break}}return z}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#h=this.#t),Mg(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,r=typeof a=="function"?a():a;if(r==="all"||!r&&!this.#m.size)return!0;const s=new Set(r??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(c=>{const h=c;return this.#i[h]!==e[h]&&s.has(h)})};this.#O({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#O(e){qn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function LL(e,t){return oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Gk(e,t){return LL(e,t)||e.state.data!==void 0&&Sw(e,t,t.refetchOnMount)}function Sw(e,t,n){if(oa(t.enabled,e)!==!1&&Gs(t.staleTime,e)!=="static"){const a=typeof n=="function"?n(e):n;return a==="always"||a!==!1&&Ow(e,t)}return!1}function Zk(e,t,n,a){return(e!==t||oa(a.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ow(e,n)}function Ow(e,t){return oa(t.enabled,e)!==!1&&e.isStaleByTime(Gs(t.staleTime,e))}function UL(e,t){return!Mg(e.getCurrentResult(),t)}function Yk(e){return{onFetch:(t,n)=>{const a=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const v=async()=>{let b=!1;const w=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},S=Pk(t.options,t.fetchOptions),k=async(A,O,_)=>{if(b)return Promise.reject();if(O==null&&A.pages.length)return Promise.resolve(A);const I=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:O,direction:_?"backward":"forward",meta:t.options.meta};return w(V),V})(),M=await S(I),{maxPages:Y}=t.options,Q=_?TL:DL;return{pages:Q(A.pages,M,Y),pageParams:Q(A.pageParams,O,Y)}};if(r&&s.length){const A=r==="backward",O=A?BL:Wk,_={pages:s,pageParams:c},T=O(a,_);h=await k(_,T,A)}else{const A=e??s.length;do{const O=p===0?c[0]??a.initialPageParam:Wk(a,h);if(p>0&&O==null)break;h=await k(h,O),p++}while(p<A)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(v,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=v}}}function Wk(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function BL(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var FL=class extends Fk{#e;#t;#n;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||$k(),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.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Bk({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",r=!this.#i.canStart();try{if(a)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:r})}const s=await this.#i.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),qn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function $k(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qk=class extends Kc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const a=new FL({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){this.#e.add(e);const t=Rg(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Rg(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Rg(e);if(typeof t=="string"){const a=this.#t.get(t)?.find(r=>r.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=Rg(e);return typeof t=="string"?this.#t.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Mk(t,n))}findAll(e={}){return this.getAll().filter(t=>Mk(e,t))}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Gr))))}};function Rg(e){return e.options.scope?.id}var HL=class extends Kc{#e;#t=void 0;#n;#i;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),Mg(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ru(n.mutationKey)!==ru(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??$k();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){qn.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,a=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,a,r),this.#i.onSettled?.(t.data,null,n,a,r)):t?.type==="error"&&(this.#i.onError?.(t.error,n,a,r),this.#i.onSettled?.(void 0,t.error,n,a,r))}this.listeners.forEach(n=>{n(this.#t)})})}},Vk=class extends Kc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const a=t.queryKey,r=t.queryHash??pw(a,t);let s=this.get(r);return s||(s=new jL({client:e,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){qn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>zk(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>zk(e,n)):t}notify(e){qn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},QL=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new Vk,this.#t=e.mutationCache||new qk,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=bw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Ig.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(a.queryHash)?.state.data,c=kL(t,s);if(c!==void 0)return this.#e.build(this,a).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return qn.batch(()=>this.#e.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;qn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return qn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=qn.batch(()=>this.#e.findAll(e).map(r=>r.cancel(n)));return Promise.all(a).then(Gr).catch(Gr)}invalidateQueries(e,t={}){return qn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=qn.batch(()=>this.#e.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(Gr)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(a).then(Gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Gs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gr).catch(Gr)}fetchInfiniteQuery(e){return e.behavior=Yk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gr).catch(Gr)}ensureInfiniteQueryData(e){return e.behavior=Yk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ig.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(ru(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(a=>{uh(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(ru(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(a=>{uh(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===yw&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Kk=R.createContext(void 0),Aw=e=>{const t=R.useContext(Kk);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},GL=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(Kk.Provider,{value:e,children:t})),Xk=R.createContext(!1),ZL=()=>R.useContext(Xk);Xk.Provider;function YL(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var WL=R.createContext(YL()),$L=()=>R.useContext(WL),qL=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},VL=e=>{R.useEffect(()=>{e.clearReset()},[e])},KL=({result:e,errorResetBoundary:t,throwOnError:n,query:a,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(r&&e.data===void 0||Lk(n,[e.error,a])),XL=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...r)=>n(a(...r)):n(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},JL=(e,t)=>e.isLoading&&e.isFetching&&!t,eU=(e,t)=>e?.suspense&&t.isPending,Jk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tU(e,t,n){const a=ZL(),r=$L(),s=Aw(),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=a?"isRestoring":"optimistic",XL(c),qL(c,r),VL(r);const h=!s.getQueryCache().get(c.queryHash),[p]=R.useState(()=>new t(s,c)),v=p.getOptimisticResult(c),b=!a&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(w=>{const S=b?p.subscribe(qn.batchCalls(w)):Gr;return p.updateResult(),S},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),R.useEffect(()=>{p.setOptions(c)},[c,p]),eU(c,v))throw Jk(c,p,r);if(KL({result:v,errorResetBoundary:r,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw v.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,v),c.experimental_prefetchInRender&&!Qs&&JL(v,a)&&(h?Jk(c,p,r):s.getQueryCache().get(c.queryHash)?.promise)?.catch(Gr).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?v:p.trackResult(v)}function Nw(e,t){return tU(e,PL)}function nU(e,t){const n=Aw(),a=n.getQueryCache();return R.useSyncExternalStore(R.useCallback(r=>a.subscribe(qn.batchCalls(r)),[a]),()=>n.isFetching(e),()=>n.isFetching(e))}function rU(e,t){const n=Aw(),[a]=R.useState(()=>new HL(n,e));R.useEffect(()=>{a.setOptions(e)},[a,e]);const r=R.useSyncExternalStore(R.useCallback(c=>a.subscribe(qn.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=R.useCallback((c,h)=>{a.mutate(c,h).catch(Gr)},[a]);if(r.error&&Lk(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}const iU={DEV:!1},{DEV:aU}=iU,oU=aU,sU="https://api.easea.app/graphql",lU="1.2.3",e_=e=>{let t;const n=new Set,a=(v,b)=>{const w=typeof v=="function"?v(t):v;if(!Object.is(w,t)){const S=t;t=b??(typeof w!="object"||w===null)?w:Object.assign({},t,w),n.forEach(k=>k(t,S))}},r=()=>t,h={setState:a,getState:r,getInitialState:()=>p,subscribe:v=>(n.add(v),()=>n.delete(v))},p=t=e(a,r,h);return h},uU=(e=>e?e_(e):e_),cU=e=>e;function dU(e,t=cU){const n=Ae.useSyncExternalStore(e.subscribe,Ae.useCallback(()=>t(e.getState()),[e,t]),Ae.useCallback(()=>t(e.getInitialState()),[e,t]));return Ae.useDebugValue(n),n}const fU=e=>{const t=uU(e),n=a=>dU(t,a);return Object.assign(n,t),n},hU=(e=>fU),t_={BASE_URL:"/",DEV:!1,MODE:"widget",PROD:!0,SSR:!1},ch=new Map,jg=e=>{const t=ch.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,a])=>[n,a.getState()])):{}},mU=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const a=ch.get(n.name);if(a)return{type:"tracked",store:e,...a};const r={connection:t.connect(n),stores:{}};return ch.set(n.name,r),{type:"tracked",store:e,...r}},pU=(e,t)=>{if(t===void 0)return;const n=ch.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&ch.delete(e))},gU=e=>{var t,n;if(!e)return;const a=e.split(`
228
228
  `),r=a.findIndex(c=>c.includes("api.setState"));if(r<0)return;const s=((t=a[r+1])==null?void 0:t.trim())||"";return(n=/.+ (.+) .+/.exec(s))==null?void 0:n[1]},vU=(e,t={})=>(n,a,r)=>{const{enabled:s,anonymousActionType:c,store:h,...p}=t;let v;try{v=(s??(t_?"widget":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!v)return e(n,a,r);const{connection:b,...w}=mU(h,v,p);let S=!0;r.setState=((O,_,T)=>{const I=n(O,_);if(!S)return I;const M=T===void 0?{type:c||gU(new Error().stack)||"anonymous"}:typeof T=="string"?{type:T}:T;return h===void 0?(b?.send(M,a()),I):(b?.send({...M,type:`${h}/${M.type}`},{...jg(p.name),[h]:r.getState()}),I)}),r.devtools={cleanup:()=>{b&&typeof b.unsubscribe=="function"&&b.unsubscribe(),pU(p.name,h)}};const k=(...O)=>{const _=S;S=!1,n(...O),S=_},A=e(r.setState,a,r);if(w.type==="untracked"?b?.init(A):(w.stores[w.store]=r,b?.init(Object.fromEntries(Object.entries(w.stores).map(([O,_])=>[O,O===w.store?A:_.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let O=!1;const _=r.dispatch;r.dispatch=(...T)=>{(t_?"widget":void 0)!=="production"&&T[0].type==="__setState"&&!O&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),O=!0),_(...T)}}return b.subscribe(O=>{var _;switch(O.type){case"ACTION":if(typeof O.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return kw(O.payload,T=>{if(T.type==="__setState"){if(h===void 0){k(T.state);return}Object.keys(T.state).length!==1&&console.error(`
229
229
  [zustand devtools middleware] Unsupported __setState action format.
230
230
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
@@ -277,7 +277,7 @@ __p += '`),jt&&(ze+=`' +
277
277
  function print() { __p += __j.call(arguments, '') }
278
278
  `:`;
279
279
  `)+ze+`return __p
280
- }`;var At=Gp(function(){return _t(U,qe+"return "+ze).apply(n,K)});if(At.source=ze,Mf(At))throw At;return At}function Ho(u){return Zt(u).toLowerCase()}function Qo(u){return Zt(u).toUpperCase()}function Go(u,f,g){if(u=Zt(u),u&&(g||f===n))return ms(u);if(!u||!(f=Ir(f)))return u;var x=xn(u),D=xn(f),U=cm(x,D),K=dm(x,D)+1;return Ki(x,U,K).join("")}function Cc(u,f,g){if(u=Zt(u),u&&(g||f===n))return u.slice(0,rl(u)+1);if(!u||!(f=Ir(f)))return u;var x=xn(u),D=dm(x,xn(f))+1;return Ki(x,0,D).join("")}function zc(u,f,g){if(u=Zt(u),u&&(g||f===n))return u.replace(hd,"");if(!u||!(f=Ir(f)))return u;var x=xn(u),D=cm(x,xn(f));return Ki(x,D).join("")}function Zo(u,f){var g=G,x=q;if(yn(f)){var D="separator"in f?f.separator:D;g="length"in f?rt(f.length):g,x="omission"in f?Ir(f.omission):x}u=Zt(u);var U=u.length;if(ps(u)){var K=xn(u);U=K.length}if(g>=U)return u;var ne=g-nl(x);if(ne<1)return x;var ue=K?Ki(K,0,ne).join(""):u.slice(0,ne);if(D===n)return ue+x;if(K&&(ne+=ue.length-ne),kc(D)){if(u.slice(ne).search(D)){var ke,_e=ue;for(D.global||(D=jd(D.source,Zt(md.exec(D))+"g")),D.lastIndex=0;ke=D.exec(_e);)var ze=ke.index;ue=ue.slice(0,ze===n?ne:ze)}}else if(u.indexOf(Ir(D),ne)!=ne){var Le=ue.lastIndexOf(D);Le>-1&&(ue=ue.slice(0,Le))}return ue+x}function rO(u){return u=Zt(u),u&&wt.test(u)?u.replace(Lt,py):u}var e0=ks(function(u,f,g){return u+(g?" ":"")+f.toUpperCase()}),zs=Hm("toUpperCase");function t0(u,f,g){return u=Zt(u),f=g?n:f,f===n?fm(u)?yy(u):fS(u):u.match(f)||[]}var Gp=vt(function(u,f){try{return Vr(u,n,f)}catch(g){return Mf(g)?g:new lt(g)}}),Zf=ga(function(u,f){return Kr(f,function(g){g=Rr(g),ni(u,g,Df(u[g],u))}),u});function n0(u){var f=u==null?0:u.length,g=Je();return u=f?pn(u,function(x){if(typeof x[1]!="function")throw new Jr(c);return[g(x[0]),x[1]]}):[],vt(function(x){for(var D=-1;++D<f;){var U=u[D];if(Vr(U[0],this,x))return Vr(U[1],this,x)}})}function iO(u){return Dy(br(u,w))}function Zl(u){return function(){return u}}function Yf(u,f){return u==null||u!==u?f:u}var r0=_l(),Yl=_l(!0);function Sr(u){return u}function Mc(u){return xl(typeof u=="function"?u:br(u,w))}function Wf(u){return tf(br(u,w))}function i0(u,f){return Am(u,br(f,w))}var aO=vt(function(u,f){return function(g){return Ei(g,u,f)}}),$f=vt(function(u,f){return function(g){return Ei(u,g,f)}});function i(u,f,g){var x=nr(f),D=Ha(f,x);g==null&&!(yn(f)&&(D.length||!x.length))&&(g=f,f=u,u=this,D=Ha(f,nr(f)));var U=!(yn(g)&&"chain"in g)||!!g.chain,K=di(u);return Kr(D,function(ne){var ue=f[ne];u[ne]=ue,K&&(u.prototype[ne]=function(){var ke=this.__chain__;if(U||ke){var _e=u(this.__wrapped__),ze=_e.__actions__=wr(this.__actions__);return ze.push({func:ue,args:arguments,thisArg:u}),_e.__chain__=ke,_e}return ue.apply(u,bo([this.value()],arguments))})}),u}function o(){return Gn._===this&&(Gn._=yi),this}function l(){}function d(u){return u=rt(u),vt(function(f){return nf(f,u)})}var m=cf(pn),y=cf(ly),N=cf(om);function j(u){return oc(u)?hs(Rr(u)):Mn(u)}function J(u){return function(f){return u==null?n:pa(u,f)}}var he=df(),xe=df(!0);function Ne(){return[]}function me(){return!1}function ye(){return{}}function He(){return""}function et(){return!0}function Jt(u,f){if(u=rt(u),u<1||u>B)return[];var g=F,x=Ln(u,F);f=Je(f),u-=F;for(var D=zd(x,f);++g<u;)f(g);return D}function se(u){return ut(u)?pn(u,Rr):Fr(u)?[u]:wr(tp(Zt(u)))}function re(u){var f=++wy;return Zt(u)+f}var fe=Xu(function(u,f){return u+f},0),Oe=ec("ceil"),Ke=Xu(function(u,f){return u/f},1),Ut=ec("floor");function $e(u){return u&&u.length?$i(u,Sr,Hu):n}function yt(u,f){return u&&u.length?$i(u,Je(f,2),Hu):n}function Ct(u){return Td(u,Sr)}function Bt(u,f){return Td(u,Je(f,2))}function Yo(u){return u&&u.length?$i(u,Sr,vn):n}function oO(u,f){return u&&u.length?$i(u,Je(f,2),vn):n}var eY=Xu(function(u,f){return u*f},1),tY=ec("round"),nY=Xu(function(u,f){return u-f},0);function rY(u){return u&&u.length?Cd(u,Sr):0}function iY(u,f){return u&&u.length?Cd(u,Je(f,2)):0}return P.after=wb,P.ary=yp,P.assign=Ib,P.assignIn=jf,P.assignInWith=Ll,P.assignWith=GS,P.at=Ti,P.before=bp,P.bind=Df,P.bindAll=Zf,P.bindKey=wp,P.castArray=LS,P.chain=gc,P.chunk=Ky,P.compact=np,P.concat=rp,P.cond=n0,P.conforms=iO,P.constant=Zl,P.countBy=cb,P.create=Rp,P.curry=wc,P.curryRight=xp,P.debounce=Sp,P.defaults=Rb,P.defaultsDeep=jb,P.defer=qt,P.delay=Op,P.difference=Sf,P.differenceBy=Xy,P.differenceWith=Ya,P.drop=Fn,P.dropRight=ip,P.dropRightWhile=Jy,P.dropWhile=tr,P.fill=ES,P.filter=pp,P.flatMap=Ur,P.flatMapDeep=fb,P.flatMapDepth=hb,P.flatten=dn,P.flattenDeep=jr,P.flattenDepth=Wa,P.flip=RS,P.flow=r0,P.flowRight=Yl,P.fromPairs=eb,P.functions=ZS,P.functionsIn=YS,P.groupBy=kf,P.initial=DS,P.intersection=Of,P.intersectionBy=Pr,P.intersectionWith=Ji,P.invert=WS,P.invertBy=$S,P.invokeMap=Rl,P.iteratee=Mc,P.keyBy=pb,P.keys=nr,P.keysIn=Hr,P.map=yc,P.mapKeys=VS,P.mapValues=Bb,P.matches=Wf,P.matchesProperty=i0,P.memoize=xc,P.merge=Ul,P.mergeWith=Bl,P.method=aO,P.methodOf=$f,P.mixin=i,P.negate=Tf,P.nthArg=d,P.omit=Fb,P.omitBy=KS,P.once=jS,P.orderBy=gb,P.over=m,P.overArgs=PS,P.overEvery=y,P.overSome=N,P.partial=Pl,P.partialRight=Ts,P.partition=vb,P.pick=Fl,P.pickBy=Hl,P.property=j,P.propertyOf=J,P.pull=_s,P.pullAll=ya,P.pullAllBy=lp,P.pullAllWith=up,P.pullAt=ea,P.range=he,P.rangeRight=xe,P.rearg=Ap,P.reject=zS,P.remove=ib,P.rest=Cf,P.reverse=Mo,P.sampleSize=IS,P.set=Lf,P.setWith=Pp,P.shuffle=yb,P.slice=fc,P.sortBy=Ef,P.sortedUniq=Af,P.sortedUniqBy=lb,P.split=Gf,P.spread=Np,P.tail=TS,P.take=CS,P.takeRight=Ht,P.takeRightWhile=on,P.takeWhile=Et,P.tap=ub,P.throttle=Lo,P.thru=Ds,P.toArray=Mb,P.toPairs=Uf,P.toPairsIn=Tc,P.toPath=se,P.toPlainObject=Rf,P.transform=Qb,P.unary=ba,P.union=Tt,P.unionBy=$t,P.unionWith=si,P.uniq=Io,P.uniqBy=zl,P.uniqWith=cp,P.unset=Gb,P.unzip=ta,P.unzipWith=On,P.update=XS,P.updateWith=Zb,P.values=Ql,P.valuesIn=Lp,P.without=Ro,P.words=t0,P.wrap=Sc,P.xor=Es,P.xorBy=dp,P.xorWith=li,P.zip=Ml,P.zipObject=pc,P.zipObjectDeep=Lr,P.zipWith=fp,P.entries=Uf,P.entriesIn=Tc,P.extend=jf,P.extendWith=Ll,i(P,P),P.add=fe,P.attempt=Gp,P.camelCase=Hf,P.capitalize=Yb,P.ceil=Oe,P.clamp=JS,P.clone=xb,P.cloneDeep=Ob,P.cloneDeepWith=Ab,P.cloneWith=Sb,P.conformsTo=US,P.deburr=Gl,P.defaultTo=Yf,P.divide=Ke,P.endsWith=eO,P.eq=ci,P.escape=Wb,P.escapeRegExp=$b,P.every=vc,P.find=ui,P.findIndex=ap,P.findKey=Pb,P.findLast=db,P.findLastIndex=op,P.findLastKey=Dc,P.floor=Ut,P.forEach=mb,P.forEachRight=Va,P.forIn=Ci,P.forInRight=Lb,P.forOwn=Pf,P.forOwnRight=Xa,P.get=Fo,P.gt=Nb,P.gte=kb,P.has=Ub,P.hasIn=jp,P.head=sp,P.identity=Sr,P.includes=gp,P.indexOf=tb,P.inRange=Bf,P.invoke=qS,P.isArguments=Cs,P.isArray=ut,P.isArrayBuffer=kp,P.isArrayLike=Br,P.isArrayLikeObject=In,P.isBoolean=Oc,P.isBuffer=Uo,P.isDate=_b,P.isElement=Dt,P.isEmpty=_p,P.isEqual=zf,P.isEqualWith=Ep,P.isError=Mf,P.isFinite=Dp,P.isFunction=di,P.isInteger=Ac,P.isLength=If,P.isMap=Eb,P.isMatch=Db,P.isMatchWith=Tb,P.isNaN=Xt,P.isNative=Tp,P.isNil=BS,P.isNull=fr,P.isNumber=Cp,P.isObject=yn,P.isObjectLike=_n,P.isPlainObject=Nc,P.isRegExp=kc,P.isSafeInteger=zp,P.isSet=_c,P.isString=Ec,P.isSymbol=Fr,P.isTypedArray=Bo,P.isUndefined=Mp,P.isWeakMap=FS,P.isWeakSet=Cb,P.join=nb,P.kebabCase=qb,P.last=fn,P.lastIndexOf=rb,P.lowerCase=Vb,P.lowerFirst=Up,P.lt=HS,P.lte=zb,P.max=$e,P.maxBy=yt,P.mean=Ct,P.meanBy=Bt,P.min=Yo,P.minBy=oO,P.stubArray=Ne,P.stubFalse=me,P.stubObject=ye,P.stubString=He,P.stubTrue=et,P.multiply=eY,P.nth=$a,P.noConflict=o,P.noop=l,P.now=bc,P.pad=Kb,P.padEnd=Xb,P.padStart=Qf,P.parseInt=tO,P.random=Ff,P.reduce=_f,P.reduceRight=vp,P.repeat=nO,P.replace=Bp,P.result=Hb,P.round=tY,P.runInContext=ae,P.sample=MS,P.size=bb,P.snakeCase=Fp,P.some=jl,P.sortedIndex=hc,P.sortedIndexBy=Cl,P.sortedIndexOf=ab,P.sortedLastIndex=ob,P.sortedLastIndexBy=mc,P.sortedLastIndexOf=sb,P.startCase=Hp,P.startsWith=Jb,P.subtract=nY,P.sum=rY,P.sumBy=iY,P.template=Qp,P.times=Jt,P.toFinite=Ka,P.toInteger=rt,P.toLength=Ip,P.toLower=Ho,P.toNumber=fi,P.toSafeInteger=QS,P.toString=Zt,P.toUpper=Qo,P.trim=Go,P.trimEnd=Cc,P.trimStart=zc,P.truncate=Zo,P.unescape=rO,P.uniqueId=re,P.upperCase=e0,P.upperFirst=zs,P.each=mb,P.eachRight=Va,P.first=sp,i(P,(function(){var u={};return qi(P,function(f,g){Qt.call(P.prototype,g)||(u[g]=f)}),u})(),{chain:!1}),P.VERSION=a,Kr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){P[u].placeholder=P}),Kr(["drop","take"],function(u,f){pt.prototype[u]=function(g){g=g===n?1:An(rt(g),0);var x=this.__filtered__&&!f?new pt(this):this.clone();return x.__filtered__?x.__takeCount__=Ln(g,x.__takeCount__):x.__views__.push({size:Ln(g,F),type:u+(x.__dir__<0?"Right":"")}),x},pt.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),Kr(["filter","map","takeWhile"],function(u,f){var g=f+1,x=g==Z||g==C;pt.prototype[u]=function(D){var U=this.clone();return U.__iteratees__.push({iteratee:Je(D,3),type:g}),U.__filtered__=U.__filtered__||x,U}}),Kr(["head","last"],function(u,f){var g="take"+(f?"Right":"");pt.prototype[u]=function(){return this[g](1).value()[0]}}),Kr(["initial","tail"],function(u,f){var g="drop"+(f?"":"Right");pt.prototype[u]=function(){return this.__filtered__?new pt(this):this[g](1)}}),pt.prototype.compact=function(){return this.filter(Sr)},pt.prototype.find=function(u){return this.filter(u).head()},pt.prototype.findLast=function(u){return this.reverse().find(u)},pt.prototype.invokeMap=vt(function(u,f){return typeof u=="function"?new pt(this):this.map(function(g){return Ei(g,u,f)})}),pt.prototype.reject=function(u){return this.filter(Tf(Je(u)))},pt.prototype.slice=function(u,f){u=rt(u);var g=this;return g.__filtered__&&(u>0||f<0)?new pt(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),f!==n&&(f=rt(f),g=f<0?g.dropRight(-f):g.take(f-u)),g)},pt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},pt.prototype.toArray=function(){return this.take(F)},qi(pt.prototype,function(u,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),x=/^(?:head|last)$/.test(f),D=P[x?"take"+(f=="last"?"Right":""):f],U=x||/^find/.test(f);D&&(P.prototype[f]=function(){var K=this.__wrapped__,ne=x?[1]:arguments,ue=K instanceof pt,ke=ne[0],_e=ue||ut(K),ze=function(It){var jt=D.apply(P,bo([It],ne));return x&&Le?jt[0]:jt};_e&&g&&typeof ke=="function"&&ke.length!=1&&(ue=_e=!1);var Le=this.__chain__,qe=!!this.__actions__.length,it=U&&!Le,At=ue&&!qe;if(!U&&_e){K=At?K:new pt(this);var at=u.apply(K,ne);return at.__actions__.push({func:Ds,args:[ze],thisArg:n}),new zr(at,Le)}return it&&At?u.apply(this,ne):(at=this.thru(ze),it?x?at.value()[0]:at.value():at)})}),Kr(["pop","push","shift","sort","splice","unshift"],function(u){var f=Mu[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",x=/^(?:pop|shift)$/.test(u);P.prototype[u]=function(){var D=arguments;if(x&&!this.__chain__){var U=this.value();return f.apply(ut(U)?U:[],D)}return this[g](function(K){return f.apply(ut(K)?K:[],D)})}}),qi(pt.prototype,function(u,f){var g=P[f];if(g){var x=g.name+"";Qt.call(Gt,x)||(Gt[x]=[]),Gt[x].push({name:f,func:g})}}),Gt[El(n,T).name]=[{name:"wrapper",func:n}],pt.prototype.clone=Ua,pt.prototype.reverse=No,pt.prototype.value=Ba,P.prototype.at=Nf,P.prototype.chain=jo,P.prototype.commit=Yn,P.prototype.next=Po,P.prototype.plant=qa,P.prototype.reverse=hp,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=mp,P.prototype.first=P.prototype.head,lr&&(P.prototype[lr]=Il),P}),il=pm();Qi?((Qi.exports=il)._=il,_u._=il):Gn._=il}).call(NF)})(Ih,Ih.exports)),Ih.exports}var _a=kF();const _F=eo(_a),Rh=n_("tz",e=>({timezone:null,actions:{setTimezone:t=>e({timezone:t})}}));var Ov={exports:{}},EF=Ov.exports,E2;function D2(){return E2||(E2=1,(function(e,t){(function(n,a){e.exports=a()})(EF,(function(){var n=1e3,a=6e4,r=36e5,s="millisecond",c="second",h="minute",p="hour",v="day",b="week",w="month",S="quarter",k="year",A="date",O="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var W=["th","st","nd","rd"],C=Z%100;return"["+Z+(W[(C-20)%10]||W[C]||W[0])+"]"}},M=function(Z,W,C){var $=String(Z);return!$||$.length>=W?Z:""+Array(W+1-$.length).join(C)+Z},Y={s:M,z:function(Z){var W=-Z.utcOffset(),C=Math.abs(W),$=Math.floor(C/60),B=C%60;return(W<=0?"+":"-")+M($,2,"0")+":"+M(B,2,"0")},m:function Z(W,C){if(W.date()<C.date())return-Z(C,W);var $=12*(C.year()-W.year())+(C.month()-W.month()),B=W.clone().add($,w),ie=C-B<0,pe=W.clone().add($+(ie?-1:1),w);return+(-($+(C-B)/(ie?B-pe:pe-B))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:w,y:k,w:b,d:v,D:A,h:p,m:h,s:c,ms:s,Q:S}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},Q="en",V={};V[Q]=I;var z="$isDayjsObject",L=function(Z){return Z instanceof ee||!(!Z||!Z[z])},X=function Z(W,C,$){var B;if(!W)return Q;if(typeof W=="string"){var ie=W.toLowerCase();V[ie]&&(B=ie),C&&(V[ie]=C,B=ie);var pe=W.split("-");if(!B&&pe.length>1)return Z(pe[0])}else{var F=W.name;V[F]=W,B=F}return!$&&B&&(Q=B),B||!$&&Q},G=function(Z,W){if(L(Z))return Z.clone();var C=typeof W=="object"?W:{};return C.date=Z,C.args=arguments,new ee(C)},q=Y;q.l=X,q.i=L,q.w=function(Z,W){return G(Z,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var ee=(function(){function Z(C){this.$L=X(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[z]=!0}var W=Z.prototype;return W.parse=function(C){this.$d=(function($){var B=$.date,ie=$.utc;if(B===null)return new Date(NaN);if(q.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var pe=B.match(_);if(pe){var F=pe[2]-1||0,le=(pe[7]||"0").substring(0,3);return ie?new Date(Date.UTC(pe[1],F,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,le)):new Date(pe[1],F,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,le)}}return new Date(B)})(C),this.init()},W.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},W.$utils=function(){return q},W.isValid=function(){return this.$d.toString()!==O},W.isSame=function(C,$){var B=G(C);return this.startOf($)<=B&&B<=this.endOf($)},W.isAfter=function(C,$){return G(C)<this.startOf($)},W.isBefore=function(C,$){return this.endOf($)<G(C)},W.$g=function(C,$,B){return q.u(C)?this[$]:this.set(B,C)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(C,$){var B=this,ie=!!q.u($)||$,pe=q.p(C),F=function(Fe,Ze){var Ve=q.w(B.$u?Date.UTC(B.$y,Ze,Fe):new Date(B.$y,Ze,Fe),B);return ie?Ve:Ve.endOf(v)},le=function(Fe,Ze){return q.w(B.toDate()[Fe].apply(B.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(Ze)),B)},ge=this.$W,be=this.$M,De=this.$D,je="set"+(this.$u?"UTC":"");switch(pe){case k:return ie?F(1,0):F(31,11);case w:return ie?F(1,be):F(0,be+1);case b:var Se=this.$locale().weekStart||0,Ue=(ge<Se?ge+7:ge)-Se;return F(ie?De-Ue:De+(6-Ue),be);case v:case A:return le(je+"Hours",0);case p:return le(je+"Minutes",1);case h:return le(je+"Seconds",2);case c:return le(je+"Milliseconds",3);default:return this.clone()}},W.endOf=function(C){return this.startOf(C,!1)},W.$set=function(C,$){var B,ie=q.p(C),pe="set"+(this.$u?"UTC":""),F=(B={},B[v]=pe+"Date",B[A]=pe+"Date",B[w]=pe+"Month",B[k]=pe+"FullYear",B[p]=pe+"Hours",B[h]=pe+"Minutes",B[c]=pe+"Seconds",B[s]=pe+"Milliseconds",B)[ie],le=ie===v?this.$D+($-this.$W):$;if(ie===w||ie===k){var ge=this.clone().set(A,1);ge.$d[F](le),ge.init(),this.$d=ge.set(A,Math.min(this.$D,ge.daysInMonth())).$d}else F&&this.$d[F](le);return this.init(),this},W.set=function(C,$){return this.clone().$set(C,$)},W.get=function(C){return this[q.p(C)]()},W.add=function(C,$){var B,ie=this;C=Number(C);var pe=q.p($),F=function(be){var De=G(ie);return q.w(De.date(De.date()+Math.round(be*C)),ie)};if(pe===w)return this.set(w,this.$M+C);if(pe===k)return this.set(k,this.$y+C);if(pe===v)return F(1);if(pe===b)return F(7);var le=(B={},B[h]=a,B[p]=r,B[c]=n,B)[pe]||1,ge=this.$d.getTime()+C*le;return q.w(ge,this)},W.subtract=function(C,$){return this.add(-1*C,$)},W.format=function(C){var $=this,B=this.$locale();if(!this.isValid())return B.invalidDate||O;var ie=C||"YYYY-MM-DDTHH:mm:ssZ",pe=q.z(this),F=this.$H,le=this.$m,ge=this.$M,be=B.weekdays,De=B.months,je=B.meridiem,Se=function(Ze,Ve,tt,Pt){return Ze&&(Ze[Ve]||Ze($,ie))||tt[Ve].slice(0,Pt)},Ue=function(Ze){return q.s(F%12||12,Ze,"0")},Fe=je||function(Ze,Ve,tt){var Pt=Ze<12?"AM":"PM";return tt?Pt.toLowerCase():Pt};return ie.replace(T,(function(Ze,Ve){return Ve||(function(tt){switch(tt){case"YY":return String($.$y).slice(-2);case"YYYY":return q.s($.$y,4,"0");case"M":return ge+1;case"MM":return q.s(ge+1,2,"0");case"MMM":return Se(B.monthsShort,ge,De,3);case"MMMM":return Se(De,ge);case"D":return $.$D;case"DD":return q.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Se(B.weekdaysMin,$.$W,be,2);case"ddd":return Se(B.weekdaysShort,$.$W,be,3);case"dddd":return be[$.$W];case"H":return String(F);case"HH":return q.s(F,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return Fe(F,le,!0);case"A":return Fe(F,le,!1);case"m":return String(le);case"mm":return q.s(le,2,"0");case"s":return String($.$s);case"ss":return q.s($.$s,2,"0");case"SSS":return q.s($.$ms,3,"0");case"Z":return pe}return null})(Ze)||pe.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(C,$,B){var ie,pe=this,F=q.p($),le=G(C),ge=(le.utcOffset()-this.utcOffset())*a,be=this-le,De=function(){return q.m(pe,le)};switch(F){case k:ie=De()/12;break;case w:ie=De();break;case S:ie=De()/3;break;case b:ie=(be-ge)/6048e5;break;case v:ie=(be-ge)/864e5;break;case p:ie=be/r;break;case h:ie=be/a;break;case c:ie=be/n;break;default:ie=be}return B?ie:q.a(ie)},W.daysInMonth=function(){return this.endOf(w).$D},W.$locale=function(){return V[this.$L]},W.locale=function(C,$){if(!C)return this.$L;var B=this.clone(),ie=X(C,$,!0);return ie&&(B.$L=ie),B},W.clone=function(){return q.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},Z})(),H=ee.prototype;return G.prototype=H,[["$ms",s],["$s",c],["$m",h],["$H",p],["$W",v],["$M",w],["$y",k],["$D",A]].forEach((function(Z){H[Z[1]]=function(W){return this.$g(W,Z[0],Z[1])}})),G.extend=function(Z,W){return Z.$i||(Z(W,ee,G),Z.$i=!0),G},G.locale=X,G.isDayjs=L,G.unix=function(Z){return G(1e3*Z)},G.en=V[Q],G.Ls=V,G.p={},G}))})(Ov)),Ov.exports}var DF=D2();const co=eo(DF);var Av={exports:{}},TF=Av.exports,T2;function CF(){return T2||(T2=1,(function(e,t){(function(n,a){e.exports=a()})(TF,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,s=/\d\d/,c=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,p={},v=function(_){return(_=+_)+(_>68?1900:2e3)},b=function(_){return function(T){this[_]=+T}},w=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=(function(T){if(!T||T==="Z")return 0;var I=T.match(/([+-]|\d\d)/g),M=60*I[1]+(+I[2]||0);return M===0?0:I[0]==="+"?-M:M})(_)}],S=function(_){var T=p[_];return T&&(T.indexOf?T:T.s.concat(T.f))},k=function(_,T){var I,M=p.meridiem;if(M){for(var Y=1;Y<=24;Y+=1)if(_.indexOf(M(Y,0,T))>-1){I=Y>12;break}}else I=_===(T?"pm":"PM");return I},A={A:[h,function(_){this.afternoon=k(_,!1)}],a:[h,function(_){this.afternoon=k(_,!0)}],Q:[r,function(_){this.month=3*(_-1)+1}],S:[r,function(_){this.milliseconds=100*+_}],SS:[s,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[c,b("seconds")],ss:[c,b("seconds")],m:[c,b("minutes")],mm:[c,b("minutes")],H:[c,b("hours")],h:[c,b("hours")],HH:[c,b("hours")],hh:[c,b("hours")],D:[c,b("day")],DD:[s,b("day")],Do:[h,function(_){var T=p.ordinal,I=_.match(/\d+/);if(this.day=I[0],T)for(var M=1;M<=31;M+=1)T(M).replace(/\[|\]/g,"")===_&&(this.day=M)}],w:[c,b("week")],ww:[s,b("week")],M:[c,b("month")],MM:[s,b("month")],MMM:[h,function(_){var T=S("months"),I=(S("monthsShort")||T.map((function(M){return M.slice(0,3)}))).indexOf(_)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[h,function(_){var T=S("months").indexOf(_)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,b("year")],YY:[s,function(_){this.year=v(_)}],YYYY:[/\d{4}/,b("year")],Z:w,ZZ:w};function O(_){var T,I;T=_,I=p&&p.formats;for(var M=(_=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(G,q,ee){var H=ee&&ee.toUpperCase();return q||I[ee]||n[ee]||I[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(Z,W,C){return W||C.slice(1)}))}))).match(a),Y=M.length,Q=0;Q<Y;Q+=1){var V=M[Q],z=A[V],L=z&&z[0],X=z&&z[1];M[Q]=X?{regex:L,parser:X}:V.replace(/^\[|\]$/g,"")}return function(G){for(var q={},ee=0,H=0;ee<Y;ee+=1){var Z=M[ee];if(typeof Z=="string")H+=Z.length;else{var W=Z.regex,C=Z.parser,$=G.slice(H),B=W.exec($)[0];C.call(q,B),G=G.replace(B,"")}}return(function(ie){var pe=ie.afternoon;if(pe!==void 0){var F=ie.hours;pe?F<12&&(ie.hours+=12):F===12&&(ie.hours=0),delete ie.afternoon}})(q),q}}return function(_,T,I){I.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(v=_.parseTwoDigitYear);var M=T.prototype,Y=M.parse;M.parse=function(Q){var V=Q.date,z=Q.utc,L=Q.args;this.$u=z;var X=L[1];if(typeof X=="string"){var G=L[2]===!0,q=L[3]===!0,ee=G||q,H=L[2];q&&(H=L[2]),p=this.$locale(),!G&&H&&(p=I.Ls[H]),this.$d=(function($,B,ie,pe){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*$);var F=O(B)($),le=F.year,ge=F.month,be=F.day,De=F.hours,je=F.minutes,Se=F.seconds,Ue=F.milliseconds,Fe=F.zone,Ze=F.week,Ve=new Date,tt=be||(le||ge?1:Ve.getDate()),Pt=le||Ve.getFullYear(),bt=0;le&&!ge||(bt=ge>0?ge-1:Ve.getMonth());var wn,or=De||0,mn=je||0,gi=Se||0,kr=Ue||0;return Fe?new Date(Date.UTC(Pt,bt,tt,or,mn,gi,kr+60*Fe.offset*1e3)):ie?new Date(Date.UTC(Pt,bt,tt,or,mn,gi,kr)):(wn=new Date(Pt,bt,tt,or,mn,gi,kr),Ze&&(wn=pe(wn).week(Ze).toDate()),wn)}catch{return new Date("")}})(V,X,z,I),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),ee&&V!=this.format(X)&&(this.$d=new Date("")),p={}}else if(X instanceof Array)for(var Z=X.length,W=1;W<=Z;W+=1){L[1]=X[W-1];var C=I.apply(this,L);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}W===Z&&(this.$d=new Date(""))}else Y.call(this,Q)}}}))})(Av)),Av.exports}var zF=CF();const MF=eo(zF);var Nv={exports:{}},IF=Nv.exports,C2;function RF(){return C2||(C2=1,(function(e,t){(function(n,a){e.exports=a()})(IF,(function(){var n="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,c,h){var p=c.prototype;h.utc=function(O){var _={date:O,utc:!0,args:arguments};return new c(_)},p.utc=function(O){var _=h(this.toDate(),{locale:this.$L,utc:!0});return O?_.add(this.utcOffset(),n):_},p.local=function(){return h(this.toDate(),{locale:this.$L,utc:!1})};var v=p.parse;p.parse=function(O){O.utc&&(this.$u=!0),this.$utils().u(O.$offset)||(this.$offset=O.$offset),v.call(this,O)};var b=p.init;p.init=function(){if(this.$u){var O=this.$d;this.$y=O.getUTCFullYear(),this.$M=O.getUTCMonth(),this.$D=O.getUTCDate(),this.$W=O.getUTCDay(),this.$H=O.getUTCHours(),this.$m=O.getUTCMinutes(),this.$s=O.getUTCSeconds(),this.$ms=O.getUTCMilliseconds()}else b.call(this)};var w=p.utcOffset;p.utcOffset=function(O,_){var T=this.$utils().u;if(T(O))return this.$u?0:T(this.$offset)?w.call(this):this.$offset;if(typeof O=="string"&&(O=(function(Q){Q===void 0&&(Q="");var V=Q.match(a);if(!V)return null;var z=(""+V[0]).match(r)||["-",0,0],L=z[0],X=60*+z[1]+ +z[2];return X===0?0:L==="+"?X:-X})(O),O===null))return this;var I=Math.abs(O)<=16?60*O:O;if(I===0)return this.utc(_);var M=this.clone();if(_)return M.$offset=I,M.$u=!1,M;var Y=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(M=this.local().add(I+Y,n)).$offset=I,M.$x.$localOffset=Y,M};var S=p.format;p.format=function(O){var _=O||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return S.call(this,_)},p.valueOf=function(){var O=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*O},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var k=p.toDate;p.toDate=function(O){return O==="s"&&this.$offset?h(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():k.call(this)};var A=p.diff;p.diff=function(O,_,T){if(O&&this.$u===O.$u)return A.call(this,O,_,T);var I=this.local(),M=h(O).local();return A.call(I,M,_,T)}}}))})(Nv)),Nv.exports}var jF=RF();const PF=eo(jF);var kv={exports:{}},LF=kv.exports,z2;function UF(){return z2||(z2=1,(function(e,t){(function(n,a){e.exports=a()})(LF,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(r,s,c){var h,p=function(S,k,A){A===void 0&&(A={});var O=new Date(S),_=(function(T,I){I===void 0&&(I={});var M=I.timeZoneName||"short",Y=T+"|"+M,Q=a[Y];return Q||(Q=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),a[Y]=Q),Q})(k,A);return _.formatToParts(O)},v=function(S,k){for(var A=p(S,k),O=[],_=0;_<A.length;_+=1){var T=A[_],I=T.type,M=T.value,Y=n[I];Y>=0&&(O[Y]=parseInt(M,10))}var Q=O[3],V=Q===24?0:Q,z=O[0]+"-"+O[1]+"-"+O[2]+" "+V+":"+O[4]+":"+O[5]+":000",L=+S;return(c.utc(z).valueOf()-(L-=L%1e3))/6e4},b=s.prototype;b.tz=function(S,k){S===void 0&&(S=h);var A,O=this.utcOffset(),_=this.toDate(),T=_.toLocaleString("en-US",{timeZone:S}),I=Math.round((_-new Date(T))/1e3/60),M=15*-Math.round(_.getTimezoneOffset()/15)-I;if(!Number(M))A=this.utcOffset(0,k);else if(A=c(T,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),k){var Y=A.utcOffset();A=A.add(O-Y,"minute")}return A.$x.$timezone=S,A},b.offsetName=function(S){var k=this.$x.$timezone||c.tz.guess(),A=p(this.valueOf(),k,{timeZoneName:S}).find((function(O){return O.type.toLowerCase()==="timezonename"}));return A&&A.value};var w=b.startOf;b.startOf=function(S,k){if(!this.$x||!this.$x.$timezone)return w.call(this,S,k);var A=c(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return w.call(A,S,k).tz(this.$x.$timezone,!0)},c.tz=function(S,k,A){var O=A&&k,_=A||k||h,T=v(+c(),_);if(typeof S!="string")return c(S).tz(_);var I=(function(V,z,L){var X=V-60*z*1e3,G=v(X,L);if(z===G)return[X,z];var q=v(X-=60*(G-z)*1e3,L);return G===q?[X,G]:[V-60*Math.min(G,q)*1e3,Math.max(G,q)]})(c.utc(S,O).valueOf(),T,_),M=I[0],Y=I[1],Q=c(M).utcOffset(Y);return Q.$x.$timezone=_,Q},c.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},c.tz.setDefault=function(S){h=S}}}))})(kv)),kv.exports}var BF=UF();const FF=eo(BF);var _v={exports:{}},HF=_v.exports,M2;function QF(){return M2||(M2=1,(function(e,t){(function(n,a){e.exports=a()})(HF,(function(){var n,a,r=1e3,s=6e4,c=36e5,h=864e5,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v=31536e6,b=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,S={years:v,months:b,days:h,hours:c,minutes:s,seconds:r,milliseconds:1,weeks:6048e5},k=function(V){return V instanceof Y},A=function(V,z,L){return new Y(V,L,z.$l)},O=function(V){return a.p(V)+"s"},_=function(V){return V<0},T=function(V){return _(V)?Math.ceil(V):Math.floor(V)},I=function(V){return Math.abs(V)},M=function(V,z){return V?_(V)?{negative:!0,format:""+I(V)+z}:{negative:!1,format:""+V+z}:{negative:!1,format:""}},Y=(function(){function V(L,X,G){var q=this;if(this.$d={},this.$l=G,L===void 0&&(this.$ms=0,this.parseFromMilliseconds()),X)return A(L*S[O(X)],this);if(typeof L=="number")return this.$ms=L,this.parseFromMilliseconds(),this;if(typeof L=="object")return Object.keys(L).forEach((function(Z){q.$d[O(Z)]=L[Z]})),this.calMilliseconds(),this;if(typeof L=="string"){var ee=L.match(w);if(ee){var H=ee.slice(2).map((function(Z){return Z!=null?Number(Z):0}));return this.$d.years=H[0],this.$d.months=H[1],this.$d.weeks=H[2],this.$d.days=H[3],this.$d.hours=H[4],this.$d.minutes=H[5],this.$d.seconds=H[6],this.calMilliseconds(),this}}return this}var z=V.prototype;return z.calMilliseconds=function(){var L=this;this.$ms=Object.keys(this.$d).reduce((function(X,G){return X+(L.$d[G]||0)*S[G]}),0)},z.parseFromMilliseconds=function(){var L=this.$ms;this.$d.years=T(L/v),L%=v,this.$d.months=T(L/b),L%=b,this.$d.days=T(L/h),L%=h,this.$d.hours=T(L/c),L%=c,this.$d.minutes=T(L/s),L%=s,this.$d.seconds=T(L/r),L%=r,this.$d.milliseconds=L},z.toISOString=function(){var L=M(this.$d.years,"Y"),X=M(this.$d.months,"M"),G=+this.$d.days||0;this.$d.weeks&&(G+=7*this.$d.weeks);var q=M(G,"D"),ee=M(this.$d.hours,"H"),H=M(this.$d.minutes,"M"),Z=this.$d.seconds||0;this.$d.milliseconds&&(Z+=this.$d.milliseconds/1e3,Z=Math.round(1e3*Z)/1e3);var W=M(Z,"S"),C=L.negative||X.negative||q.negative||ee.negative||H.negative||W.negative,$=ee.format||H.format||W.format?"T":"",B=(C?"-":"")+"P"+L.format+X.format+q.format+$+ee.format+H.format+W.format;return B==="P"||B==="-P"?"P0D":B},z.toJSON=function(){return this.toISOString()},z.format=function(L){var X=L||"YYYY-MM-DDTHH:mm:ss",G={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return X.replace(p,(function(q,ee){return ee||String(G[q])}))},z.as=function(L){return this.$ms/S[O(L)]},z.get=function(L){var X=this.$ms,G=O(L);return G==="milliseconds"?X%=1e3:X=G==="weeks"?T(X/S[G]):this.$d[G],X||0},z.add=function(L,X,G){var q;return q=X?L*S[O(X)]:k(L)?L.$ms:A(L,this).$ms,A(this.$ms+q*(G?-1:1),this)},z.subtract=function(L,X){return this.add(L,X,!0)},z.locale=function(L){var X=this.clone();return X.$l=L,X},z.clone=function(){return A(this.$ms,this)},z.humanize=function(L){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!L)},z.valueOf=function(){return this.asMilliseconds()},z.milliseconds=function(){return this.get("milliseconds")},z.asMilliseconds=function(){return this.as("milliseconds")},z.seconds=function(){return this.get("seconds")},z.asSeconds=function(){return this.as("seconds")},z.minutes=function(){return this.get("minutes")},z.asMinutes=function(){return this.as("minutes")},z.hours=function(){return this.get("hours")},z.asHours=function(){return this.as("hours")},z.days=function(){return this.get("days")},z.asDays=function(){return this.as("days")},z.weeks=function(){return this.get("weeks")},z.asWeeks=function(){return this.as("weeks")},z.months=function(){return this.get("months")},z.asMonths=function(){return this.as("months")},z.years=function(){return this.get("years")},z.asYears=function(){return this.as("years")},V})(),Q=function(V,z,L){return V.add(z.years()*L,"y").add(z.months()*L,"M").add(z.days()*L,"d").add(z.hours()*L,"h").add(z.minutes()*L,"m").add(z.seconds()*L,"s").add(z.milliseconds()*L,"ms")};return function(V,z,L){n=L,a=L().$utils(),L.duration=function(q,ee){var H=L.locale();return A(q,{$l:H},ee)},L.isDuration=k;var X=z.prototype.add,G=z.prototype.subtract;z.prototype.add=function(q,ee){return k(q)?Q(this,q,1):X.bind(this)(q,ee)},z.prototype.subtract=function(q,ee){return k(q)?Q(this,q,-1):G.bind(this)(q,ee)}}}))})(_v)),_v.exports}var GF=QF();const ZF=eo(GF);var Ev={exports:{}},YF=Ev.exports,I2;function WF(){return I2||(I2=1,(function(e,t){(function(n,a){e.exports=a()})(YF,(function(){return function(n,a){a.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}}))})(Ev)),Ev.exports}var $F=WF();const qF=eo($F);var Dv={exports:{}},VF=Dv.exports,R2;function KF(){return R2||(R2=1,(function(e,t){(function(n,a){e.exports=a(D2())})(VF,(function(n){function a(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var r=a(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(c){return c+"º"}};return r.default.locale(s,null,!0),s}))})(Dv)),Dv.exports}KF();var Tv={exports:{}},XF=Tv.exports,j2;function JF(){return j2||(j2=1,(function(e,t){(function(n,a){e.exports=a()})(XF,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var a=["th","st","nd","rd"],r=n%100;return"["+n+(a[(r-20)%10]||a[r]||a[0])+"]"}}}))})(Tv)),Tv.exports}JF();var Cv={exports:{}},eH=Cv.exports,P2;function tH(){return P2||(P2=1,(function(e,t){(function(n,a){e.exports=a()})(eH,(function(){var n="day";return function(a,r,s){var c=function(v){return v.add(4-v.isoWeekday(),n)},h=r.prototype;h.isoWeekYear=function(){return c(this).year()},h.isoWeek=function(v){if(!this.$utils().u(v))return this.add(7*(v-this.isoWeek()),n);var b,w,S,k,A=c(this),O=(b=this.isoWeekYear(),w=this.$u,S=(w?s.utc:s)().year(b).startOf("year"),k=4-S.isoWeekday(),S.isoWeekday()>4&&(k+=7),S.add(k,n));return A.diff(O,"week")+1},h.isoWeekday=function(v){return this.$utils().u(v)?this.day()||7:this.day(this.day()%7?v:v-7)};var p=h.startOf;h.startOf=function(v,b){var w=this.$utils(),S=!!w.u(b)||b;return w.p(v)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):p.bind(this)(v,b)}}}))})(Cv)),Cv.exports}var nH=tH();const rH=eo(nH),L2="it";co.extend(PF),co.extend(FF),co.extend(MF),co.extend(rH),co.extend(ZF),co.extend(qF),co.locale(L2);const od="Europe/Rome";co.tz.setDefault(od);class cn{_date;_lang;constructor(t){this._lang=L2,t instanceof cn?this._date=co(t._date):this._date=co(t);const n=Rh.getState().timezone;this._date=this._date.tz(n||od)}startOfDay=()=>(this._date=this._date.startOf("day"),this);endOfDay=()=>(this._date=this._date.endOf("day"),this);startOfWeek=()=>(this._date=this._date.startOf("week"),this);endOfWeek=()=>(this._date=this._date.endOf("week"),this);startOfMonth=()=>(this._date=this._date.startOf("month"),this);endOfMonth=()=>(this._date=this._date.endOf("month"),this);startOfMinute=()=>(this._date=this._date.startOf("minute"),this);endOfMinute=()=>(this._date=this._date.endOf("minute"),this);setLocale=t=>(this._lang=t,this);diff=t=>{const n=new cn(t);return this._date.diff(n._date)};differenceInDays=t=>{const n=new cn(t);return this._date.diff(n._date,"days")};differenceInHours=t=>{const n=new cn(t);return this._date.diff(n._date,"hours")};differenceInMilliseconds=t=>{const n=new cn(t);return this._date.diff(n._date,"milliseconds")};setTimezone=t=>(this._date=this._date.tz(t),this);isValid=()=>this._date.isValid();getTime=()=>this._date.valueOf();getDate=()=>this._date.get("date");getDay=()=>this._date.get("day");getMonth=()=>this._date.get("month");getYear=()=>this._date.get("year");getHours=()=>this._date.get("hours");getMinutes=()=>this._date.get("minutes");setDate=t=>(this._date=this._date.set("date",t),this);setMonth=t=>(this._date=this._date.set("month",t),this);setYear=t=>(this._date=this._date.set("year",t),this);setHours=t=>(this._date=this._date.set("hours",t),this);setMinutes=t=>(this._date=this._date.set("minutes",t),this);setSeconds=t=>(this._date=this._date.set("seconds",t),this);toDate=()=>this._date.toDate();addTime=(t,n)=>(this._date=this._date.add(t,n),this);subtractTime=(t,n)=>(this._date=this._date.subtract(t,n),this);isAfter=(t,n)=>this._date.isAfter(t instanceof cn?t._date:t,n);isBefore=(t,n)=>this._date.isBefore(t instanceof cn?t._date:t,n);isSame=t=>this._date.isSame(t instanceof cn?t._date:t);isSameOrBefore=t=>this._date.isSameOrBefore(t instanceof cn?t._date:t);isSameDay=t=>this._date.isSame(t instanceof cn?t._date:t,"day");isSameDate=t=>this._date.isSame(t instanceof cn?t._date:t,"date");isSameMonth=t=>this._date.isSame(t instanceof cn?t._date:t,"month");isSameYear=t=>this._date.isSame(t instanceof cn?t._date:t,"year");isSameHour=t=>this._date.isSame(t instanceof cn?t._date:t,"hour");isSameMinute=t=>this._date.isSame(t instanceof cn?t._date:t,"minute");format=(t="DD/MM/YYYY")=>this._date.locale(this._lang).format(t);formatTime=(t="HH:mm")=>this._date.locale(this._lang).format(t);static now=()=>new cn().valueOf()}const iH=tu`
280
+ }`;var At=Gp(function(){return _t(U,qe+"return "+ze).apply(n,K)});if(At.source=ze,Mf(At))throw At;return At}function Ho(u){return Zt(u).toLowerCase()}function Qo(u){return Zt(u).toUpperCase()}function Go(u,f,g){if(u=Zt(u),u&&(g||f===n))return ms(u);if(!u||!(f=Ir(f)))return u;var x=xn(u),D=xn(f),U=cm(x,D),K=dm(x,D)+1;return Ki(x,U,K).join("")}function Cc(u,f,g){if(u=Zt(u),u&&(g||f===n))return u.slice(0,rl(u)+1);if(!u||!(f=Ir(f)))return u;var x=xn(u),D=dm(x,xn(f))+1;return Ki(x,0,D).join("")}function zc(u,f,g){if(u=Zt(u),u&&(g||f===n))return u.replace(hd,"");if(!u||!(f=Ir(f)))return u;var x=xn(u),D=cm(x,xn(f));return Ki(x,D).join("")}function Zo(u,f){var g=G,x=q;if(yn(f)){var D="separator"in f?f.separator:D;g="length"in f?rt(f.length):g,x="omission"in f?Ir(f.omission):x}u=Zt(u);var U=u.length;if(ps(u)){var K=xn(u);U=K.length}if(g>=U)return u;var ne=g-nl(x);if(ne<1)return x;var ue=K?Ki(K,0,ne).join(""):u.slice(0,ne);if(D===n)return ue+x;if(K&&(ne+=ue.length-ne),kc(D)){if(u.slice(ne).search(D)){var ke,_e=ue;for(D.global||(D=jd(D.source,Zt(md.exec(D))+"g")),D.lastIndex=0;ke=D.exec(_e);)var ze=ke.index;ue=ue.slice(0,ze===n?ne:ze)}}else if(u.indexOf(Ir(D),ne)!=ne){var Le=ue.lastIndexOf(D);Le>-1&&(ue=ue.slice(0,Le))}return ue+x}function rO(u){return u=Zt(u),u&&wt.test(u)?u.replace(Lt,py):u}var e0=ks(function(u,f,g){return u+(g?" ":"")+f.toUpperCase()}),zs=Hm("toUpperCase");function t0(u,f,g){return u=Zt(u),f=g?n:f,f===n?fm(u)?yy(u):fS(u):u.match(f)||[]}var Gp=vt(function(u,f){try{return Vr(u,n,f)}catch(g){return Mf(g)?g:new lt(g)}}),Zf=ga(function(u,f){return Kr(f,function(g){g=Rr(g),ni(u,g,Df(u[g],u))}),u});function n0(u){var f=u==null?0:u.length,g=Je();return u=f?pn(u,function(x){if(typeof x[1]!="function")throw new Jr(c);return[g(x[0]),x[1]]}):[],vt(function(x){for(var D=-1;++D<f;){var U=u[D];if(Vr(U[0],this,x))return Vr(U[1],this,x)}})}function iO(u){return Dy(br(u,w))}function Zl(u){return function(){return u}}function Yf(u,f){return u==null||u!==u?f:u}var r0=_l(),Yl=_l(!0);function Sr(u){return u}function Mc(u){return xl(typeof u=="function"?u:br(u,w))}function Wf(u){return tf(br(u,w))}function i0(u,f){return Am(u,br(f,w))}var aO=vt(function(u,f){return function(g){return Ei(g,u,f)}}),$f=vt(function(u,f){return function(g){return Ei(u,g,f)}});function i(u,f,g){var x=nr(f),D=Ha(f,x);g==null&&!(yn(f)&&(D.length||!x.length))&&(g=f,f=u,u=this,D=Ha(f,nr(f)));var U=!(yn(g)&&"chain"in g)||!!g.chain,K=di(u);return Kr(D,function(ne){var ue=f[ne];u[ne]=ue,K&&(u.prototype[ne]=function(){var ke=this.__chain__;if(U||ke){var _e=u(this.__wrapped__),ze=_e.__actions__=wr(this.__actions__);return ze.push({func:ue,args:arguments,thisArg:u}),_e.__chain__=ke,_e}return ue.apply(u,bo([this.value()],arguments))})}),u}function o(){return Gn._===this&&(Gn._=yi),this}function l(){}function d(u){return u=rt(u),vt(function(f){return nf(f,u)})}var m=cf(pn),y=cf(ly),N=cf(om);function j(u){return oc(u)?hs(Rr(u)):Mn(u)}function J(u){return function(f){return u==null?n:pa(u,f)}}var he=df(),xe=df(!0);function Ne(){return[]}function me(){return!1}function ye(){return{}}function He(){return""}function et(){return!0}function Jt(u,f){if(u=rt(u),u<1||u>B)return[];var g=F,x=Ln(u,F);f=Je(f),u-=F;for(var D=zd(x,f);++g<u;)f(g);return D}function se(u){return ut(u)?pn(u,Rr):Fr(u)?[u]:wr(tp(Zt(u)))}function re(u){var f=++wy;return Zt(u)+f}var fe=Xu(function(u,f){return u+f},0),Oe=ec("ceil"),Ke=Xu(function(u,f){return u/f},1),Ut=ec("floor");function $e(u){return u&&u.length?$i(u,Sr,Hu):n}function yt(u,f){return u&&u.length?$i(u,Je(f,2),Hu):n}function Ct(u){return Td(u,Sr)}function Bt(u,f){return Td(u,Je(f,2))}function Yo(u){return u&&u.length?$i(u,Sr,vn):n}function oO(u,f){return u&&u.length?$i(u,Je(f,2),vn):n}var eY=Xu(function(u,f){return u*f},1),tY=ec("round"),nY=Xu(function(u,f){return u-f},0);function rY(u){return u&&u.length?Cd(u,Sr):0}function iY(u,f){return u&&u.length?Cd(u,Je(f,2)):0}return P.after=wb,P.ary=yp,P.assign=Ib,P.assignIn=jf,P.assignInWith=Ll,P.assignWith=GS,P.at=Ti,P.before=bp,P.bind=Df,P.bindAll=Zf,P.bindKey=wp,P.castArray=LS,P.chain=gc,P.chunk=Ky,P.compact=np,P.concat=rp,P.cond=n0,P.conforms=iO,P.constant=Zl,P.countBy=cb,P.create=Rp,P.curry=wc,P.curryRight=xp,P.debounce=Sp,P.defaults=Rb,P.defaultsDeep=jb,P.defer=qt,P.delay=Op,P.difference=Sf,P.differenceBy=Xy,P.differenceWith=Ya,P.drop=Fn,P.dropRight=ip,P.dropRightWhile=Jy,P.dropWhile=tr,P.fill=ES,P.filter=pp,P.flatMap=Ur,P.flatMapDeep=fb,P.flatMapDepth=hb,P.flatten=dn,P.flattenDeep=jr,P.flattenDepth=Wa,P.flip=RS,P.flow=r0,P.flowRight=Yl,P.fromPairs=eb,P.functions=ZS,P.functionsIn=YS,P.groupBy=kf,P.initial=DS,P.intersection=Of,P.intersectionBy=Pr,P.intersectionWith=Ji,P.invert=WS,P.invertBy=$S,P.invokeMap=Rl,P.iteratee=Mc,P.keyBy=pb,P.keys=nr,P.keysIn=Hr,P.map=yc,P.mapKeys=VS,P.mapValues=Bb,P.matches=Wf,P.matchesProperty=i0,P.memoize=xc,P.merge=Ul,P.mergeWith=Bl,P.method=aO,P.methodOf=$f,P.mixin=i,P.negate=Tf,P.nthArg=d,P.omit=Fb,P.omitBy=KS,P.once=jS,P.orderBy=gb,P.over=m,P.overArgs=PS,P.overEvery=y,P.overSome=N,P.partial=Pl,P.partialRight=Ts,P.partition=vb,P.pick=Fl,P.pickBy=Hl,P.property=j,P.propertyOf=J,P.pull=_s,P.pullAll=ya,P.pullAllBy=lp,P.pullAllWith=up,P.pullAt=ea,P.range=he,P.rangeRight=xe,P.rearg=Ap,P.reject=zS,P.remove=ib,P.rest=Cf,P.reverse=Mo,P.sampleSize=IS,P.set=Lf,P.setWith=Pp,P.shuffle=yb,P.slice=fc,P.sortBy=Ef,P.sortedUniq=Af,P.sortedUniqBy=lb,P.split=Gf,P.spread=Np,P.tail=TS,P.take=CS,P.takeRight=Ht,P.takeRightWhile=on,P.takeWhile=Et,P.tap=ub,P.throttle=Lo,P.thru=Ds,P.toArray=Mb,P.toPairs=Uf,P.toPairsIn=Tc,P.toPath=se,P.toPlainObject=Rf,P.transform=Qb,P.unary=ba,P.union=Tt,P.unionBy=$t,P.unionWith=si,P.uniq=Io,P.uniqBy=zl,P.uniqWith=cp,P.unset=Gb,P.unzip=ta,P.unzipWith=On,P.update=XS,P.updateWith=Zb,P.values=Ql,P.valuesIn=Lp,P.without=Ro,P.words=t0,P.wrap=Sc,P.xor=Es,P.xorBy=dp,P.xorWith=li,P.zip=Ml,P.zipObject=pc,P.zipObjectDeep=Lr,P.zipWith=fp,P.entries=Uf,P.entriesIn=Tc,P.extend=jf,P.extendWith=Ll,i(P,P),P.add=fe,P.attempt=Gp,P.camelCase=Hf,P.capitalize=Yb,P.ceil=Oe,P.clamp=JS,P.clone=xb,P.cloneDeep=Ob,P.cloneDeepWith=Ab,P.cloneWith=Sb,P.conformsTo=US,P.deburr=Gl,P.defaultTo=Yf,P.divide=Ke,P.endsWith=eO,P.eq=ci,P.escape=Wb,P.escapeRegExp=$b,P.every=vc,P.find=ui,P.findIndex=ap,P.findKey=Pb,P.findLast=db,P.findLastIndex=op,P.findLastKey=Dc,P.floor=Ut,P.forEach=mb,P.forEachRight=Va,P.forIn=Ci,P.forInRight=Lb,P.forOwn=Pf,P.forOwnRight=Xa,P.get=Fo,P.gt=Nb,P.gte=kb,P.has=Ub,P.hasIn=jp,P.head=sp,P.identity=Sr,P.includes=gp,P.indexOf=tb,P.inRange=Bf,P.invoke=qS,P.isArguments=Cs,P.isArray=ut,P.isArrayBuffer=kp,P.isArrayLike=Br,P.isArrayLikeObject=In,P.isBoolean=Oc,P.isBuffer=Uo,P.isDate=_b,P.isElement=Dt,P.isEmpty=_p,P.isEqual=zf,P.isEqualWith=Ep,P.isError=Mf,P.isFinite=Dp,P.isFunction=di,P.isInteger=Ac,P.isLength=If,P.isMap=Eb,P.isMatch=Db,P.isMatchWith=Tb,P.isNaN=Xt,P.isNative=Tp,P.isNil=BS,P.isNull=fr,P.isNumber=Cp,P.isObject=yn,P.isObjectLike=_n,P.isPlainObject=Nc,P.isRegExp=kc,P.isSafeInteger=zp,P.isSet=_c,P.isString=Ec,P.isSymbol=Fr,P.isTypedArray=Bo,P.isUndefined=Mp,P.isWeakMap=FS,P.isWeakSet=Cb,P.join=nb,P.kebabCase=qb,P.last=fn,P.lastIndexOf=rb,P.lowerCase=Vb,P.lowerFirst=Up,P.lt=HS,P.lte=zb,P.max=$e,P.maxBy=yt,P.mean=Ct,P.meanBy=Bt,P.min=Yo,P.minBy=oO,P.stubArray=Ne,P.stubFalse=me,P.stubObject=ye,P.stubString=He,P.stubTrue=et,P.multiply=eY,P.nth=$a,P.noConflict=o,P.noop=l,P.now=bc,P.pad=Kb,P.padEnd=Xb,P.padStart=Qf,P.parseInt=tO,P.random=Ff,P.reduce=_f,P.reduceRight=vp,P.repeat=nO,P.replace=Bp,P.result=Hb,P.round=tY,P.runInContext=ae,P.sample=MS,P.size=bb,P.snakeCase=Fp,P.some=jl,P.sortedIndex=hc,P.sortedIndexBy=Cl,P.sortedIndexOf=ab,P.sortedLastIndex=ob,P.sortedLastIndexBy=mc,P.sortedLastIndexOf=sb,P.startCase=Hp,P.startsWith=Jb,P.subtract=nY,P.sum=rY,P.sumBy=iY,P.template=Qp,P.times=Jt,P.toFinite=Ka,P.toInteger=rt,P.toLength=Ip,P.toLower=Ho,P.toNumber=fi,P.toSafeInteger=QS,P.toString=Zt,P.toUpper=Qo,P.trim=Go,P.trimEnd=Cc,P.trimStart=zc,P.truncate=Zo,P.unescape=rO,P.uniqueId=re,P.upperCase=e0,P.upperFirst=zs,P.each=mb,P.eachRight=Va,P.first=sp,i(P,(function(){var u={};return qi(P,function(f,g){Qt.call(P.prototype,g)||(u[g]=f)}),u})(),{chain:!1}),P.VERSION=a,Kr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){P[u].placeholder=P}),Kr(["drop","take"],function(u,f){pt.prototype[u]=function(g){g=g===n?1:An(rt(g),0);var x=this.__filtered__&&!f?new pt(this):this.clone();return x.__filtered__?x.__takeCount__=Ln(g,x.__takeCount__):x.__views__.push({size:Ln(g,F),type:u+(x.__dir__<0?"Right":"")}),x},pt.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),Kr(["filter","map","takeWhile"],function(u,f){var g=f+1,x=g==Z||g==C;pt.prototype[u]=function(D){var U=this.clone();return U.__iteratees__.push({iteratee:Je(D,3),type:g}),U.__filtered__=U.__filtered__||x,U}}),Kr(["head","last"],function(u,f){var g="take"+(f?"Right":"");pt.prototype[u]=function(){return this[g](1).value()[0]}}),Kr(["initial","tail"],function(u,f){var g="drop"+(f?"":"Right");pt.prototype[u]=function(){return this.__filtered__?new pt(this):this[g](1)}}),pt.prototype.compact=function(){return this.filter(Sr)},pt.prototype.find=function(u){return this.filter(u).head()},pt.prototype.findLast=function(u){return this.reverse().find(u)},pt.prototype.invokeMap=vt(function(u,f){return typeof u=="function"?new pt(this):this.map(function(g){return Ei(g,u,f)})}),pt.prototype.reject=function(u){return this.filter(Tf(Je(u)))},pt.prototype.slice=function(u,f){u=rt(u);var g=this;return g.__filtered__&&(u>0||f<0)?new pt(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),f!==n&&(f=rt(f),g=f<0?g.dropRight(-f):g.take(f-u)),g)},pt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},pt.prototype.toArray=function(){return this.take(F)},qi(pt.prototype,function(u,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),x=/^(?:head|last)$/.test(f),D=P[x?"take"+(f=="last"?"Right":""):f],U=x||/^find/.test(f);D&&(P.prototype[f]=function(){var K=this.__wrapped__,ne=x?[1]:arguments,ue=K instanceof pt,ke=ne[0],_e=ue||ut(K),ze=function(It){var jt=D.apply(P,bo([It],ne));return x&&Le?jt[0]:jt};_e&&g&&typeof ke=="function"&&ke.length!=1&&(ue=_e=!1);var Le=this.__chain__,qe=!!this.__actions__.length,it=U&&!Le,At=ue&&!qe;if(!U&&_e){K=At?K:new pt(this);var at=u.apply(K,ne);return at.__actions__.push({func:Ds,args:[ze],thisArg:n}),new zr(at,Le)}return it&&At?u.apply(this,ne):(at=this.thru(ze),it?x?at.value()[0]:at.value():at)})}),Kr(["pop","push","shift","sort","splice","unshift"],function(u){var f=Mu[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",x=/^(?:pop|shift)$/.test(u);P.prototype[u]=function(){var D=arguments;if(x&&!this.__chain__){var U=this.value();return f.apply(ut(U)?U:[],D)}return this[g](function(K){return f.apply(ut(K)?K:[],D)})}}),qi(pt.prototype,function(u,f){var g=P[f];if(g){var x=g.name+"";Qt.call(Gt,x)||(Gt[x]=[]),Gt[x].push({name:f,func:g})}}),Gt[El(n,T).name]=[{name:"wrapper",func:n}],pt.prototype.clone=Ua,pt.prototype.reverse=No,pt.prototype.value=Ba,P.prototype.at=Nf,P.prototype.chain=jo,P.prototype.commit=Yn,P.prototype.next=Po,P.prototype.plant=qa,P.prototype.reverse=hp,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=mp,P.prototype.first=P.prototype.head,lr&&(P.prototype[lr]=Il),P}),il=pm();Qi?((Qi.exports=il)._=il,_u._=il):Gn._=il}).call(NF)})(Ih,Ih.exports)),Ih.exports}var _a=kF();const _F=eo(_a),Rh=n_("tz",e=>({timezone:null,actions:{setTimezone:t=>e({timezone:t})}}));var Ov={exports:{}},EF=Ov.exports,E2;function D2(){return E2||(E2=1,(function(e,t){(function(n,a){e.exports=a()})(EF,(function(){var n=1e3,a=6e4,r=36e5,s="millisecond",c="second",h="minute",p="hour",v="day",b="week",w="month",S="quarter",k="year",A="date",O="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var W=["th","st","nd","rd"],C=Z%100;return"["+Z+(W[(C-20)%10]||W[C]||W[0])+"]"}},M=function(Z,W,C){var $=String(Z);return!$||$.length>=W?Z:""+Array(W+1-$.length).join(C)+Z},Y={s:M,z:function(Z){var W=-Z.utcOffset(),C=Math.abs(W),$=Math.floor(C/60),B=C%60;return(W<=0?"+":"-")+M($,2,"0")+":"+M(B,2,"0")},m:function Z(W,C){if(W.date()<C.date())return-Z(C,W);var $=12*(C.year()-W.year())+(C.month()-W.month()),B=W.clone().add($,w),ie=C-B<0,pe=W.clone().add($+(ie?-1:1),w);return+(-($+(C-B)/(ie?B-pe:pe-B))||0)},a:function(Z){return Z<0?Math.ceil(Z)||0:Math.floor(Z)},p:function(Z){return{M:w,y:k,w:b,d:v,D:A,h:p,m:h,s:c,ms:s,Q:S}[Z]||String(Z||"").toLowerCase().replace(/s$/,"")},u:function(Z){return Z===void 0}},Q="en",V={};V[Q]=I;var z="$isDayjsObject",L=function(Z){return Z instanceof ee||!(!Z||!Z[z])},X=function Z(W,C,$){var B;if(!W)return Q;if(typeof W=="string"){var ie=W.toLowerCase();V[ie]&&(B=ie),C&&(V[ie]=C,B=ie);var pe=W.split("-");if(!B&&pe.length>1)return Z(pe[0])}else{var F=W.name;V[F]=W,B=F}return!$&&B&&(Q=B),B||!$&&Q},G=function(Z,W){if(L(Z))return Z.clone();var C=typeof W=="object"?W:{};return C.date=Z,C.args=arguments,new ee(C)},q=Y;q.l=X,q.i=L,q.w=function(Z,W){return G(Z,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var ee=(function(){function Z(C){this.$L=X(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[z]=!0}var W=Z.prototype;return W.parse=function(C){this.$d=(function($){var B=$.date,ie=$.utc;if(B===null)return new Date(NaN);if(q.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var pe=B.match(_);if(pe){var F=pe[2]-1||0,le=(pe[7]||"0").substring(0,3);return ie?new Date(Date.UTC(pe[1],F,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,le)):new Date(pe[1],F,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,le)}}return new Date(B)})(C),this.init()},W.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},W.$utils=function(){return q},W.isValid=function(){return this.$d.toString()!==O},W.isSame=function(C,$){var B=G(C);return this.startOf($)<=B&&B<=this.endOf($)},W.isAfter=function(C,$){return G(C)<this.startOf($)},W.isBefore=function(C,$){return this.endOf($)<G(C)},W.$g=function(C,$,B){return q.u(C)?this[$]:this.set(B,C)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(C,$){var B=this,ie=!!q.u($)||$,pe=q.p(C),F=function(Fe,Ze){var Ve=q.w(B.$u?Date.UTC(B.$y,Ze,Fe):new Date(B.$y,Ze,Fe),B);return ie?Ve:Ve.endOf(v)},le=function(Fe,Ze){return q.w(B.toDate()[Fe].apply(B.toDate("s"),(ie?[0,0,0,0]:[23,59,59,999]).slice(Ze)),B)},ge=this.$W,be=this.$M,De=this.$D,je="set"+(this.$u?"UTC":"");switch(pe){case k:return ie?F(1,0):F(31,11);case w:return ie?F(1,be):F(0,be+1);case b:var Se=this.$locale().weekStart||0,Ue=(ge<Se?ge+7:ge)-Se;return F(ie?De-Ue:De+(6-Ue),be);case v:case A:return le(je+"Hours",0);case p:return le(je+"Minutes",1);case h:return le(je+"Seconds",2);case c:return le(je+"Milliseconds",3);default:return this.clone()}},W.endOf=function(C){return this.startOf(C,!1)},W.$set=function(C,$){var B,ie=q.p(C),pe="set"+(this.$u?"UTC":""),F=(B={},B[v]=pe+"Date",B[A]=pe+"Date",B[w]=pe+"Month",B[k]=pe+"FullYear",B[p]=pe+"Hours",B[h]=pe+"Minutes",B[c]=pe+"Seconds",B[s]=pe+"Milliseconds",B)[ie],le=ie===v?this.$D+($-this.$W):$;if(ie===w||ie===k){var ge=this.clone().set(A,1);ge.$d[F](le),ge.init(),this.$d=ge.set(A,Math.min(this.$D,ge.daysInMonth())).$d}else F&&this.$d[F](le);return this.init(),this},W.set=function(C,$){return this.clone().$set(C,$)},W.get=function(C){return this[q.p(C)]()},W.add=function(C,$){var B,ie=this;C=Number(C);var pe=q.p($),F=function(be){var De=G(ie);return q.w(De.date(De.date()+Math.round(be*C)),ie)};if(pe===w)return this.set(w,this.$M+C);if(pe===k)return this.set(k,this.$y+C);if(pe===v)return F(1);if(pe===b)return F(7);var le=(B={},B[h]=a,B[p]=r,B[c]=n,B)[pe]||1,ge=this.$d.getTime()+C*le;return q.w(ge,this)},W.subtract=function(C,$){return this.add(-1*C,$)},W.format=function(C){var $=this,B=this.$locale();if(!this.isValid())return B.invalidDate||O;var ie=C||"YYYY-MM-DDTHH:mm:ssZ",pe=q.z(this),F=this.$H,le=this.$m,ge=this.$M,be=B.weekdays,De=B.months,je=B.meridiem,Se=function(Ze,Ve,tt,Pt){return Ze&&(Ze[Ve]||Ze($,ie))||tt[Ve].slice(0,Pt)},Ue=function(Ze){return q.s(F%12||12,Ze,"0")},Fe=je||function(Ze,Ve,tt){var Pt=Ze<12?"AM":"PM";return tt?Pt.toLowerCase():Pt};return ie.replace(T,(function(Ze,Ve){return Ve||(function(tt){switch(tt){case"YY":return String($.$y).slice(-2);case"YYYY":return q.s($.$y,4,"0");case"M":return ge+1;case"MM":return q.s(ge+1,2,"0");case"MMM":return Se(B.monthsShort,ge,De,3);case"MMMM":return Se(De,ge);case"D":return $.$D;case"DD":return q.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Se(B.weekdaysMin,$.$W,be,2);case"ddd":return Se(B.weekdaysShort,$.$W,be,3);case"dddd":return be[$.$W];case"H":return String(F);case"HH":return q.s(F,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return Fe(F,le,!0);case"A":return Fe(F,le,!1);case"m":return String(le);case"mm":return q.s(le,2,"0");case"s":return String($.$s);case"ss":return q.s($.$s,2,"0");case"SSS":return q.s($.$ms,3,"0");case"Z":return pe}return null})(Ze)||pe.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(C,$,B){var ie,pe=this,F=q.p($),le=G(C),ge=(le.utcOffset()-this.utcOffset())*a,be=this-le,De=function(){return q.m(pe,le)};switch(F){case k:ie=De()/12;break;case w:ie=De();break;case S:ie=De()/3;break;case b:ie=(be-ge)/6048e5;break;case v:ie=(be-ge)/864e5;break;case p:ie=be/r;break;case h:ie=be/a;break;case c:ie=be/n;break;default:ie=be}return B?ie:q.a(ie)},W.daysInMonth=function(){return this.endOf(w).$D},W.$locale=function(){return V[this.$L]},W.locale=function(C,$){if(!C)return this.$L;var B=this.clone(),ie=X(C,$,!0);return ie&&(B.$L=ie),B},W.clone=function(){return q.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},Z})(),H=ee.prototype;return G.prototype=H,[["$ms",s],["$s",c],["$m",h],["$H",p],["$W",v],["$M",w],["$y",k],["$D",A]].forEach((function(Z){H[Z[1]]=function(W){return this.$g(W,Z[0],Z[1])}})),G.extend=function(Z,W){return Z.$i||(Z(W,ee,G),Z.$i=!0),G},G.locale=X,G.isDayjs=L,G.unix=function(Z){return G(1e3*Z)},G.en=V[Q],G.Ls=V,G.p={},G}))})(Ov)),Ov.exports}var DF=D2();const co=eo(DF);var Av={exports:{}},TF=Av.exports,T2;function CF(){return T2||(T2=1,(function(e,t){(function(n,a){e.exports=a()})(TF,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,s=/\d\d/,c=/\d\d?/,h=/\d*[^-_:/,()\s\d]+/,p={},v=function(_){return(_=+_)+(_>68?1900:2e3)},b=function(_){return function(T){this[_]=+T}},w=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=(function(T){if(!T||T==="Z")return 0;var I=T.match(/([+-]|\d\d)/g),M=60*I[1]+(+I[2]||0);return M===0?0:I[0]==="+"?-M:M})(_)}],S=function(_){var T=p[_];return T&&(T.indexOf?T:T.s.concat(T.f))},k=function(_,T){var I,M=p.meridiem;if(M){for(var Y=1;Y<=24;Y+=1)if(_.indexOf(M(Y,0,T))>-1){I=Y>12;break}}else I=_===(T?"pm":"PM");return I},A={A:[h,function(_){this.afternoon=k(_,!1)}],a:[h,function(_){this.afternoon=k(_,!0)}],Q:[r,function(_){this.month=3*(_-1)+1}],S:[r,function(_){this.milliseconds=100*+_}],SS:[s,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[c,b("seconds")],ss:[c,b("seconds")],m:[c,b("minutes")],mm:[c,b("minutes")],H:[c,b("hours")],h:[c,b("hours")],HH:[c,b("hours")],hh:[c,b("hours")],D:[c,b("day")],DD:[s,b("day")],Do:[h,function(_){var T=p.ordinal,I=_.match(/\d+/);if(this.day=I[0],T)for(var M=1;M<=31;M+=1)T(M).replace(/\[|\]/g,"")===_&&(this.day=M)}],w:[c,b("week")],ww:[s,b("week")],M:[c,b("month")],MM:[s,b("month")],MMM:[h,function(_){var T=S("months"),I=(S("monthsShort")||T.map((function(M){return M.slice(0,3)}))).indexOf(_)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[h,function(_){var T=S("months").indexOf(_)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,b("year")],YY:[s,function(_){this.year=v(_)}],YYYY:[/\d{4}/,b("year")],Z:w,ZZ:w};function O(_){var T,I;T=_,I=p&&p.formats;for(var M=(_=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(G,q,ee){var H=ee&&ee.toUpperCase();return q||I[ee]||n[ee]||I[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(Z,W,C){return W||C.slice(1)}))}))).match(a),Y=M.length,Q=0;Q<Y;Q+=1){var V=M[Q],z=A[V],L=z&&z[0],X=z&&z[1];M[Q]=X?{regex:L,parser:X}:V.replace(/^\[|\]$/g,"")}return function(G){for(var q={},ee=0,H=0;ee<Y;ee+=1){var Z=M[ee];if(typeof Z=="string")H+=Z.length;else{var W=Z.regex,C=Z.parser,$=G.slice(H),B=W.exec($)[0];C.call(q,B),G=G.replace(B,"")}}return(function(ie){var pe=ie.afternoon;if(pe!==void 0){var F=ie.hours;pe?F<12&&(ie.hours+=12):F===12&&(ie.hours=0),delete ie.afternoon}})(q),q}}return function(_,T,I){I.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(v=_.parseTwoDigitYear);var M=T.prototype,Y=M.parse;M.parse=function(Q){var V=Q.date,z=Q.utc,L=Q.args;this.$u=z;var X=L[1];if(typeof X=="string"){var G=L[2]===!0,q=L[3]===!0,ee=G||q,H=L[2];q&&(H=L[2]),p=this.$locale(),!G&&H&&(p=I.Ls[H]),this.$d=(function($,B,ie,pe){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*$);var F=O(B)($),le=F.year,ge=F.month,be=F.day,De=F.hours,je=F.minutes,Se=F.seconds,Ue=F.milliseconds,Fe=F.zone,Ze=F.week,Ve=new Date,tt=be||(le||ge?1:Ve.getDate()),Pt=le||Ve.getFullYear(),bt=0;le&&!ge||(bt=ge>0?ge-1:Ve.getMonth());var wn,or=De||0,mn=je||0,gi=Se||0,kr=Ue||0;return Fe?new Date(Date.UTC(Pt,bt,tt,or,mn,gi,kr+60*Fe.offset*1e3)):ie?new Date(Date.UTC(Pt,bt,tt,or,mn,gi,kr)):(wn=new Date(Pt,bt,tt,or,mn,gi,kr),Ze&&(wn=pe(wn).week(Ze).toDate()),wn)}catch{return new Date("")}})(V,X,z,I),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),ee&&V!=this.format(X)&&(this.$d=new Date("")),p={}}else if(X instanceof Array)for(var Z=X.length,W=1;W<=Z;W+=1){L[1]=X[W-1];var C=I.apply(this,L);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}W===Z&&(this.$d=new Date(""))}else Y.call(this,Q)}}}))})(Av)),Av.exports}var zF=CF();const MF=eo(zF);var Nv={exports:{}},IF=Nv.exports,C2;function RF(){return C2||(C2=1,(function(e,t){(function(n,a){e.exports=a()})(IF,(function(){var n="minute",a=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,c,h){var p=c.prototype;h.utc=function(O){var _={date:O,utc:!0,args:arguments};return new c(_)},p.utc=function(O){var _=h(this.toDate(),{locale:this.$L,utc:!0});return O?_.add(this.utcOffset(),n):_},p.local=function(){return h(this.toDate(),{locale:this.$L,utc:!1})};var v=p.parse;p.parse=function(O){O.utc&&(this.$u=!0),this.$utils().u(O.$offset)||(this.$offset=O.$offset),v.call(this,O)};var b=p.init;p.init=function(){if(this.$u){var O=this.$d;this.$y=O.getUTCFullYear(),this.$M=O.getUTCMonth(),this.$D=O.getUTCDate(),this.$W=O.getUTCDay(),this.$H=O.getUTCHours(),this.$m=O.getUTCMinutes(),this.$s=O.getUTCSeconds(),this.$ms=O.getUTCMilliseconds()}else b.call(this)};var w=p.utcOffset;p.utcOffset=function(O,_){var T=this.$utils().u;if(T(O))return this.$u?0:T(this.$offset)?w.call(this):this.$offset;if(typeof O=="string"&&(O=(function(Q){Q===void 0&&(Q="");var V=Q.match(a);if(!V)return null;var z=(""+V[0]).match(r)||["-",0,0],L=z[0],X=60*+z[1]+ +z[2];return X===0?0:L==="+"?X:-X})(O),O===null))return this;var I=Math.abs(O)<=16?60*O:O;if(I===0)return this.utc(_);var M=this.clone();if(_)return M.$offset=I,M.$u=!1,M;var Y=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(M=this.local().add(I+Y,n)).$offset=I,M.$x.$localOffset=Y,M};var S=p.format;p.format=function(O){var _=O||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return S.call(this,_)},p.valueOf=function(){var O=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*O},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var k=p.toDate;p.toDate=function(O){return O==="s"&&this.$offset?h(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():k.call(this)};var A=p.diff;p.diff=function(O,_,T){if(O&&this.$u===O.$u)return A.call(this,O,_,T);var I=this.local(),M=h(O).local();return A.call(I,M,_,T)}}}))})(Nv)),Nv.exports}var jF=RF();const PF=eo(jF);var kv={exports:{}},LF=kv.exports,z2;function UF(){return z2||(z2=1,(function(e,t){(function(n,a){e.exports=a()})(LF,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(r,s,c){var h,p=function(S,k,A){A===void 0&&(A={});var O=new Date(S),_=(function(T,I){I===void 0&&(I={});var M=I.timeZoneName||"short",Y=T+"|"+M,Q=a[Y];return Q||(Q=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),a[Y]=Q),Q})(k,A);return _.formatToParts(O)},v=function(S,k){for(var A=p(S,k),O=[],_=0;_<A.length;_+=1){var T=A[_],I=T.type,M=T.value,Y=n[I];Y>=0&&(O[Y]=parseInt(M,10))}var Q=O[3],V=Q===24?0:Q,z=O[0]+"-"+O[1]+"-"+O[2]+" "+V+":"+O[4]+":"+O[5]+":000",L=+S;return(c.utc(z).valueOf()-(L-=L%1e3))/6e4},b=s.prototype;b.tz=function(S,k){S===void 0&&(S=h);var A,O=this.utcOffset(),_=this.toDate(),T=_.toLocaleString("en-US",{timeZone:S}),I=Math.round((_-new Date(T))/1e3/60),M=15*-Math.round(_.getTimezoneOffset()/15)-I;if(!Number(M))A=this.utcOffset(0,k);else if(A=c(T,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),k){var Y=A.utcOffset();A=A.add(O-Y,"minute")}return A.$x.$timezone=S,A},b.offsetName=function(S){var k=this.$x.$timezone||c.tz.guess(),A=p(this.valueOf(),k,{timeZoneName:S}).find((function(O){return O.type.toLowerCase()==="timezonename"}));return A&&A.value};var w=b.startOf;b.startOf=function(S,k){if(!this.$x||!this.$x.$timezone)return w.call(this,S,k);var A=c(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return w.call(A,S,k).tz(this.$x.$timezone,!0)},c.tz=function(S,k,A){var O=A&&k,_=A||k||h,T=v(+c(),_);if(typeof S!="string")return c(S).tz(_);var I=(function(V,z,L){var X=V-60*z*1e3,G=v(X,L);if(z===G)return[X,z];var q=v(X-=60*(G-z)*1e3,L);return G===q?[X,G]:[V-60*Math.min(G,q)*1e3,Math.max(G,q)]})(c.utc(S,O).valueOf(),T,_),M=I[0],Y=I[1],Q=c(M).utcOffset(Y);return Q.$x.$timezone=_,Q},c.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},c.tz.setDefault=function(S){h=S}}}))})(kv)),kv.exports}var BF=UF();const FF=eo(BF);var _v={exports:{}},HF=_v.exports,M2;function QF(){return M2||(M2=1,(function(e,t){(function(n,a){e.exports=a()})(HF,(function(){var n,a,r=1e3,s=6e4,c=36e5,h=864e5,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v=31536e6,b=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,S={years:v,months:b,days:h,hours:c,minutes:s,seconds:r,milliseconds:1,weeks:6048e5},k=function(V){return V instanceof Y},A=function(V,z,L){return new Y(V,L,z.$l)},O=function(V){return a.p(V)+"s"},_=function(V){return V<0},T=function(V){return _(V)?Math.ceil(V):Math.floor(V)},I=function(V){return Math.abs(V)},M=function(V,z){return V?_(V)?{negative:!0,format:""+I(V)+z}:{negative:!1,format:""+V+z}:{negative:!1,format:""}},Y=(function(){function V(L,X,G){var q=this;if(this.$d={},this.$l=G,L===void 0&&(this.$ms=0,this.parseFromMilliseconds()),X)return A(L*S[O(X)],this);if(typeof L=="number")return this.$ms=L,this.parseFromMilliseconds(),this;if(typeof L=="object")return Object.keys(L).forEach((function(Z){q.$d[O(Z)]=L[Z]})),this.calMilliseconds(),this;if(typeof L=="string"){var ee=L.match(w);if(ee){var H=ee.slice(2).map((function(Z){return Z!=null?Number(Z):0}));return this.$d.years=H[0],this.$d.months=H[1],this.$d.weeks=H[2],this.$d.days=H[3],this.$d.hours=H[4],this.$d.minutes=H[5],this.$d.seconds=H[6],this.calMilliseconds(),this}}return this}var z=V.prototype;return z.calMilliseconds=function(){var L=this;this.$ms=Object.keys(this.$d).reduce((function(X,G){return X+(L.$d[G]||0)*S[G]}),0)},z.parseFromMilliseconds=function(){var L=this.$ms;this.$d.years=T(L/v),L%=v,this.$d.months=T(L/b),L%=b,this.$d.days=T(L/h),L%=h,this.$d.hours=T(L/c),L%=c,this.$d.minutes=T(L/s),L%=s,this.$d.seconds=T(L/r),L%=r,this.$d.milliseconds=L},z.toISOString=function(){var L=M(this.$d.years,"Y"),X=M(this.$d.months,"M"),G=+this.$d.days||0;this.$d.weeks&&(G+=7*this.$d.weeks);var q=M(G,"D"),ee=M(this.$d.hours,"H"),H=M(this.$d.minutes,"M"),Z=this.$d.seconds||0;this.$d.milliseconds&&(Z+=this.$d.milliseconds/1e3,Z=Math.round(1e3*Z)/1e3);var W=M(Z,"S"),C=L.negative||X.negative||q.negative||ee.negative||H.negative||W.negative,$=ee.format||H.format||W.format?"T":"",B=(C?"-":"")+"P"+L.format+X.format+q.format+$+ee.format+H.format+W.format;return B==="P"||B==="-P"?"P0D":B},z.toJSON=function(){return this.toISOString()},z.format=function(L){var X=L||"YYYY-MM-DDTHH:mm:ss",G={Y:this.$d.years,YY:a.s(this.$d.years,2,"0"),YYYY:a.s(this.$d.years,4,"0"),M:this.$d.months,MM:a.s(this.$d.months,2,"0"),D:this.$d.days,DD:a.s(this.$d.days,2,"0"),H:this.$d.hours,HH:a.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:a.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:a.s(this.$d.seconds,2,"0"),SSS:a.s(this.$d.milliseconds,3,"0")};return X.replace(p,(function(q,ee){return ee||String(G[q])}))},z.as=function(L){return this.$ms/S[O(L)]},z.get=function(L){var X=this.$ms,G=O(L);return G==="milliseconds"?X%=1e3:X=G==="weeks"?T(X/S[G]):this.$d[G],X||0},z.add=function(L,X,G){var q;return q=X?L*S[O(X)]:k(L)?L.$ms:A(L,this).$ms,A(this.$ms+q*(G?-1:1),this)},z.subtract=function(L,X){return this.add(L,X,!0)},z.locale=function(L){var X=this.clone();return X.$l=L,X},z.clone=function(){return A(this.$ms,this)},z.humanize=function(L){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!L)},z.valueOf=function(){return this.asMilliseconds()},z.milliseconds=function(){return this.get("milliseconds")},z.asMilliseconds=function(){return this.as("milliseconds")},z.seconds=function(){return this.get("seconds")},z.asSeconds=function(){return this.as("seconds")},z.minutes=function(){return this.get("minutes")},z.asMinutes=function(){return this.as("minutes")},z.hours=function(){return this.get("hours")},z.asHours=function(){return this.as("hours")},z.days=function(){return this.get("days")},z.asDays=function(){return this.as("days")},z.weeks=function(){return this.get("weeks")},z.asWeeks=function(){return this.as("weeks")},z.months=function(){return this.get("months")},z.asMonths=function(){return this.as("months")},z.years=function(){return this.get("years")},z.asYears=function(){return this.as("years")},V})(),Q=function(V,z,L){return V.add(z.years()*L,"y").add(z.months()*L,"M").add(z.days()*L,"d").add(z.hours()*L,"h").add(z.minutes()*L,"m").add(z.seconds()*L,"s").add(z.milliseconds()*L,"ms")};return function(V,z,L){n=L,a=L().$utils(),L.duration=function(q,ee){var H=L.locale();return A(q,{$l:H},ee)},L.isDuration=k;var X=z.prototype.add,G=z.prototype.subtract;z.prototype.add=function(q,ee){return k(q)?Q(this,q,1):X.bind(this)(q,ee)},z.prototype.subtract=function(q,ee){return k(q)?Q(this,q,-1):G.bind(this)(q,ee)}}}))})(_v)),_v.exports}var GF=QF();const ZF=eo(GF);var Ev={exports:{}},YF=Ev.exports,I2;function WF(){return I2||(I2=1,(function(e,t){(function(n,a){e.exports=a()})(YF,(function(){return function(n,a){a.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}}))})(Ev)),Ev.exports}var $F=WF();const qF=eo($F);var Dv={exports:{}},VF=Dv.exports,R2;function KF(){return R2||(R2=1,(function(e,t){(function(n,a){e.exports=a(D2())})(VF,(function(n){function a(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var r=a(n),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(c){return c+"º"}};return r.default.locale(s,null,!0),s}))})(Dv)),Dv.exports}KF();var Tv={exports:{}},XF=Tv.exports,j2;function JF(){return j2||(j2=1,(function(e,t){(function(n,a){e.exports=a()})(XF,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var a=["th","st","nd","rd"],r=n%100;return"["+n+(a[(r-20)%10]||a[r]||a[0])+"]"}}}))})(Tv)),Tv.exports}JF();var Cv={exports:{}},eH=Cv.exports,P2;function tH(){return P2||(P2=1,(function(e,t){(function(n,a){e.exports=a()})(eH,(function(){var n="day";return function(a,r,s){var c=function(v){return v.add(4-v.isoWeekday(),n)},h=r.prototype;h.isoWeekYear=function(){return c(this).year()},h.isoWeek=function(v){if(!this.$utils().u(v))return this.add(7*(v-this.isoWeek()),n);var b,w,S,k,A=c(this),O=(b=this.isoWeekYear(),w=this.$u,S=(w?s.utc:s)().year(b).startOf("year"),k=4-S.isoWeekday(),S.isoWeekday()>4&&(k+=7),S.add(k,n));return A.diff(O,"week")+1},h.isoWeekday=function(v){return this.$utils().u(v)?this.day()||7:this.day(this.day()%7?v:v-7)};var p=h.startOf;h.startOf=function(v,b){var w=this.$utils(),S=!!w.u(b)||b;return w.p(v)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):p.bind(this)(v,b)}}}))})(Cv)),Cv.exports}var nH=tH();const rH=eo(nH),L2="it";co.extend(PF),co.extend(FF),co.extend(MF),co.extend(rH),co.extend(ZF),co.extend(qF),co.locale(L2);const od="Europe/Rome";co.tz.setDefault(od);class cn{_date;_lang;constructor(t){this._lang=L2,t instanceof cn?this._date=co(t._date):this._date=co(t);const n=Rh.getState().timezone;this._date=this._date.tz(n||od)}startOfDay=()=>(this._date=this._date.startOf("day"),this);endOfDay=()=>(this._date=this._date.endOf("day"),this);startOfWeek=()=>(this._date=this._date.startOf("week"),this);endOfWeek=()=>(this._date=this._date.endOf("week"),this);startOfMonth=()=>(this._date=this._date.startOf("month"),this);endOfMonth=()=>(this._date=this._date.endOf("month"),this);startOfMinute=()=>(this._date=this._date.startOf("minute"),this);endOfMinute=()=>(this._date=this._date.endOf("minute"),this);setLocale=t=>(this._lang=t,this);diff=t=>{const n=new cn(t);return this._date.diff(n._date)};differenceInDays=t=>{const n=new cn(t);return this._date.diff(n._date,"days")};differenceInHours=t=>{const n=new cn(t);return this._date.diff(n._date,"hours")};differenceInMilliseconds=t=>{const n=new cn(t);return this._date.diff(n._date,"milliseconds")};setTimezone=t=>(this._date=this._date.tz(t),this);isValid=()=>this._date.isValid();getTime=()=>this._date.valueOf();getDate=()=>this._date.get("date");getDay=()=>this._date.get("day");getMonth=()=>this._date.get("month");getYear=()=>this._date.get("year");getHours=()=>this._date.get("hours");getMinutes=()=>this._date.get("minutes");setDate=t=>(this._date=this._date.set("date",t),this);setMonth=t=>(this._date=this._date.set("month",t),this);setYear=t=>(this._date=this._date.set("year",t),this);setHours=t=>(this._date=this._date.set("hours",t),this._date=this._date.set("millisecond",0),this);setMinutes=t=>(this._date=this._date.set("minutes",t),this._date=this._date.set("millisecond",0),this);setSeconds=t=>(this._date=this._date.set("seconds",t),this._date=this._date.set("millisecond",0),this);toDate=()=>this._date.toDate();addTime=(t,n)=>(this._date=this._date.add(t,n),this);subtractTime=(t,n)=>(this._date=this._date.subtract(t,n),this);isAfter=(t,n)=>this._date.isAfter(t instanceof cn?t._date:t,n);isBefore=(t,n)=>this._date.isBefore(t instanceof cn?t._date:t,n);isSame=t=>this._date.isSame(t instanceof cn?t._date:t);isSameOrBefore=t=>this._date.isSameOrBefore(t instanceof cn?t._date:t);isSameDay=t=>this._date.isSame(t instanceof cn?t._date:t,"day");isSameDate=t=>this._date.isSame(t instanceof cn?t._date:t,"date");isSameMonth=t=>this._date.isSame(t instanceof cn?t._date:t,"month");isSameYear=t=>this._date.isSame(t instanceof cn?t._date:t,"year");isSameHour=t=>this._date.isSame(t instanceof cn?t._date:t,"hour");isSameMinute=t=>this._date.isSame(t instanceof cn?t._date:t,"minute");format=(t="DD/MM/YYYY")=>this._date.locale(this._lang).format(t);formatTime=(t="HH:mm")=>this._date.locale(this._lang).format(t);static now=()=>new cn().valueOf()}const iH=tu`
281
281
  query GetWidgetConfg($widgetKey: String!) {
282
282
  getWidgetConfig(widgetKey: $widgetKey) {
283
283
  active
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "easea-app-widget",
3
3
  "private": false,
4
- "version": "1.2.2",
4
+ "version": "1.2.3",
5
5
  "type": "module",
6
6
  "description": "Easea App widget allow you to get a booking box into yor website",
7
7
  "main": "dist/widget/index.umd.js",