import{g as Dh,a as p_,u as g_}from"./app-DrgD6EWn.js";function y_(t,a){for(var r=0;ri[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Cd={exports:{}},_o={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var rv;function v_(){if(rv)return _o;rv=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,l,u){var f=null;if(u!==void 0&&(f=""+u),l.key!==void 0&&(f=""+l.key),"key"in l){u={};for(var h in l)h!=="key"&&(u[h]=l[h])}else u=l;return l=u.ref,{$$typeof:t,type:i,key:f,ref:l!==void 0?l:null,props:u}}return _o.Fragment=a,_o.jsx=r,_o.jsxs=r,_o}var sv;function b_(){return sv||(sv=1,Cd.exports=v_()),Cd.exports}var _=b_(),gi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},rs=typeof window>"u"||"Deno"in globalThis;function an(){}function x_(t,a){return typeof t=="function"?t(a):t}function eh(t){return typeof t=="number"&&t>=0&&t!==1/0}function qb(t,a){return Math.max(t+(a||0)-Date.now(),0)}function _r(t,a){return typeof t=="function"?t(a):t}function Bn(t,a){return typeof t=="function"?t(a):t}function iv(t,a){const{type:r="all",exact:i,fetchStatus:l,predicate:u,queryKey:f,stale:h}=t;if(f){if(i){if(a.queryHash!==kh(f,a.options))return!1}else if(!ko(a.queryKey,f))return!1}if(r!=="all"){const p=a.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||l&&l!==a.state.fetchStatus||u&&!u(a))}function ov(t,a){const{exact:r,status:i,predicate:l,mutationKey:u}=t;if(u){if(!a.options.mutationKey)return!1;if(r){if(ss(a.options.mutationKey)!==ss(u))return!1}else if(!ko(a.options.mutationKey,u))return!1}return!(i&&a.state.status!==i||l&&!l(a))}function kh(t,a){return(a?.queryKeyHashFn||ss)(t)}function ss(t){return JSON.stringify(t,(a,r)=>th(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function ko(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(r=>ko(t[r],a[r])):!1}function Pb(t,a){if(t===a)return t;const r=lv(t)&&lv(a);if(r||th(t)&&th(a)){const i=r?t:Object.keys(t),l=i.length,u=r?a:Object.keys(a),f=u.length,h=r?[]:{},p=new Set(i);let m=0;for(let g=0;g{setTimeout(a,t)})}function nh(t,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,a):r.structuralSharing!==!1?Pb(t,a):a}function w_(t,a,r=0){const i=[...t,a];return r&&i.length>r?i.slice(1):i}function __(t,a,r=0){const i=[a,...t];return r&&i.length>r?i.slice(0,-1):i}var jh=Symbol();function Fb(t,a){return!t.queryFn&&a?.initialPromise?()=>a.initialPromise:!t.queryFn||t.queryFn===jh?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Gb(t,a){return typeof t=="function"?t(...a):!!t}var E_=class extends gi{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!rs&&window.addEventListener){const a=()=>t();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(a=>{a(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},zh=new E_,T_=class extends gi{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!rs&&window.addEventListener){const a=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(r=>{r(t)}))}isOnline(){return this.#t}},Lu=new T_;function ah(){let t,a;const r=new Promise((l,u)=>{t=l,a=u});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),t(l)},r.reject=l=>{i({status:"rejected",reason:l}),a(l)},r}function A_(t){return Math.min(1e3*2**t,3e4)}function Zb(t){return(t??"online")==="online"?Lu.isOnline():!0}var Yb=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ib(t){let a=!1,r=0,i;const l=ah(),u=()=>l.status!=="pending",f=x=>{u()||(w(new Yb(x)),t.abort?.())},h=()=>{a=!0},p=()=>{a=!1},m=()=>zh.isFocused()&&(t.networkMode==="always"||Lu.isOnline())&&t.canRun(),g=()=>Zb(t.networkMode)&&t.canRun(),y=x=>{u()||(i?.(),l.resolve(x))},w=x=>{u()||(i?.(),l.reject(x))},O=()=>new Promise(x=>{i=E=>{(u()||m())&&x(E)},t.onPause?.()}).then(()=>{i=void 0,u()||t.onContinue?.()}),T=()=>{if(u())return;let x;const E=r===0?t.initialPromise:void 0;try{x=E??t.fn()}catch(D){x=Promise.reject(D)}Promise.resolve(x).then(y).catch(D=>{if(u())return;const C=t.retry??(rs?0:3),j=t.retryDelay??A_,z=typeof j=="function"?j(r,D):j,U=C===!0||typeof C=="number"&&rm()?void 0:O()).then(()=>{a?w(D):T()})})};return{promise:l,status:()=>l.status,cancel:f,continue:()=>(i?.(),l),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?T():O().then(T),l)}}var R_=t=>setTimeout(t,0);function O_(){let t=[],a=0,r=h=>{h()},i=h=>{h()},l=R_;const u=h=>{a?t.push(h):l(()=>{r(h)})},f=()=>{const h=t;t=[],h.length&&l(()=>{i(()=>{h.forEach(p=>{r(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||f()}return p},batchCalls:h=>(...p)=>{u(()=>{h(...p)})},schedule:u,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{l=h}}}var Bt=O_(),Qb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eh(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(rs?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},C_=class extends Qb{#t;#e;#n;#a;#r;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#a=t.client,this.#n=this.#a.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=N_(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,a){const r=nh(this.state.data,t,this.options);return this.#s({data:r,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),r}setState(t,a){this.#s({type:"setState",state:t,setStateOptions:a})}cancel(t){const a=this.#r?.promise;return this.#r?.cancel(t),a?a.then(an).catch(an):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(t=>Bn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>_r(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!qb(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(a=>a!==t),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(t,a){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},l=()=>{const h=Fb(this.options,a),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(g),g})();return this.#o=!1,this.options.persister?this.options.persister(h,m,this):h(m)},f=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:l};return i(h),h})();this.options.behavior?.onFetch(f,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#s({type:"fetch",meta:f.fetchOptions?.meta}),this.#r=Ib({initialPromise:a?.initialPromise,fn:f.fetchFn,abort:r.abort.bind(r),onFail:(h,p)=>{this.#s({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.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 Yb){if(h.silent)return this.#r.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(t){const a=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Xb(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=t.manual?i:void 0,i;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=a(this.state),Bt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function Xb(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zb(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function N_(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,r=a!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var M_=class extends gi{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,a,r){const i=a.queryKey,l=a.queryHash??kh(i,a);let u=this.get(l);return u||(u=new C_({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(a),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const a=this.#t.get(t.queryHash);a&&(t.destroy(),a===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const a={exact:!0,...t};return this.getAll().find(r=>iv(a,r))}findAll(t={}){const a=this.getAll();return Object.keys(t).length>0?a.filter(r=>iv(t,r)):a}notify(t){Bt.batch(()=>{this.listeners.forEach(a=>{a(t)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},D_=class extends Qb{#t;#e;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#t=[],this.state=t.state||Kb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(a=>a!==t),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const a=()=>{this.#a({type:"continue"})};this.#n=Ib({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(l,u)=>{this.#a({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",i=!this.#n.canStart();try{if(r)a();else{this.#a({type:"pending",variables:t,isPaused:i}),await this.#e.config.onMutate?.(t,this);const u=await this.options.onMutate?.(t);u!==this.state.context&&this.#a({type:"pending",context:u,variables:t,isPaused:i})}const l=await this.#n.start();return await this.#e.config.onSuccess?.(l,t,this.state.context,this),await this.options.onSuccess?.(l,t,this.state.context),await this.#e.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,t,this.state.context),this.#a({type:"success",data:l}),l}catch(l){try{throw await this.#e.config.onError?.(l,t,this.state.context,this),await this.options.onError?.(l,t,this.state.context),await this.#e.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,t,this.state.context),l}finally{this.#a({type:"error",error:l})}}finally{this.#e.runNext(this)}}#a(t){const a=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Bt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function Kb(){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 gi{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,a,r){const i=new D_({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(a),state:r});return this.add(i),i}add(t){this.#t.add(t);const a=yu(t);if(typeof a=="string"){const r=this.#e.get(a);r?r.push(t):this.#e.set(a,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const a=yu(t);if(typeof a=="string"){const r=this.#e.get(a);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&this.#e.delete(a)}}this.notify({type:"removed",mutation:t})}canRun(t){const a=yu(t);if(typeof a=="string"){const i=this.#e.get(a)?.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){const a=yu(t);return typeof a=="string"?this.#e.get(a)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Bt.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){const a={exact:!0,...t};return this.getAll().find(r=>ov(a,r))}findAll(t={}){return this.getAll().filter(a=>ov(t,a))}notify(t){Bt.batch(()=>{this.listeners.forEach(a=>{a(t)})})}resumePausedMutations(){const t=this.getAll().filter(a=>a.state.isPaused);return Bt.batch(()=>Promise.all(t.map(a=>a.continue().catch(an))))}};function yu(t){return t.options.scope?.id}function cv(t){return{onFetch:(a,r)=>{const i=a.options,l=a.fetchOptions?.meta?.fetchMore?.direction,u=a.state.data?.pages||[],f=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const y=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(a.signal.aborted?g=!0:a.signal.addEventListener("abort",()=>{g=!0}),a.signal)})},w=Fb(a.options,a.fetchOptions),O=async(T,x,E)=>{if(g)return Promise.reject();if(x==null&&T.pages.length)return Promise.resolve(T);const C=(()=>{const te={client:a.client,queryKey:a.queryKey,pageParam:x,direction:E?"backward":"forward",meta:a.options.meta};return y(te),te})(),j=await w(C),{maxPages:z}=a.options,U=E?__:w_;return{pages:U(T.pages,j,z),pageParams:U(T.pageParams,x,z)}};if(l&&u.length){const T=l==="backward",x=T?j_:fv,E={pages:u,pageParams:f},D=x(i,E);h=await O(E,D,T)}else{const T=t??u.length;do{const x=p===0?f[0]??i.initialPageParam:fv(i,h);if(p>0&&x==null)break;h=await O(h,x),p++}while(pa.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r):a.fetchFn=m}}}function fv(t,{pages:a,pageParams:r}){const i=a.length-1;return a.length>0?t.getNextPageParam(a[i],a,r[i],r):void 0}function j_(t,{pages:a,pageParams:r}){return a.length>0?t.getPreviousPageParam?.(a[0],a,r[0],r):void 0}var z_=class{#t;#e;#n;#a;#r;#i;#o;#s;constructor(t={}){this.#t=t.queryCache||new M_,this.#e=t.mutationCache||new k_,this.#n=t.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=zh.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Lu.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#e.findAll({...t,status:"pending"}).length}getQueryData(t){const a=this.defaultQueryOptions({queryKey:t});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),r=this.#t.build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(_r(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(t,a,r){const i=this.defaultQueryOptions({queryKey:t}),u=this.#t.get(i.queryHash)?.state.data,f=x_(a,u);if(f!==void 0)return this.#t.build(this,i).setData(f,{...r,manual:!0})}setQueriesData(t,a,r){return Bt.batch(()=>this.#t.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(t){const a=this.defaultQueryOptions({queryKey:t});return this.#t.get(a.queryHash)?.state}removeQueries(t){const a=this.#t;Bt.batch(()=>{a.findAll(t).forEach(r=>{a.remove(r)})})}resetQueries(t,a){const r=this.#t;return Bt.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const r={revert:!0,...a},i=Bt.batch(()=>this.#t.findAll(t).map(l=>l.cancel(r)));return Promise.all(i).then(an).catch(an)}invalidateQueries(t,a={}){return Bt.batch(()=>(this.#t.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},a)))}refetchQueries(t,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=Bt.batch(()=>this.#t.findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,r);return r.throwOnError||(u=u.catch(an)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(an)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const r=this.#t.build(this,a);return r.isStaleByTime(_r(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(an).catch(an)}fetchInfiniteQuery(t){return t.behavior=cv(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(an).catch(an)}ensureInfiniteQueryData(t){return t.behavior=cv(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Lu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,a){this.#a.set(ss(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...this.#a.values()],r={};return a.forEach(i=>{ko(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,a){this.#r.set(ss(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...this.#r.values()],r={};return a.forEach(i=>{ko(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const a={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=kh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===jh&&(a.enabled=!1),a}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},U_=class extends gi{constructor(t,a){super(),this.options=a,this.#t=t,this.#s=null,this.#o=ah(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#o;#s;#p;#d;#h;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),dv(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(t){const a=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Bn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),a._defaulted&&!Uu(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&hv(this.#e,r,this.options,a)&&this.#f(),this.updateResult(),i&&(this.#e!==r||Bn(this.options.enabled,this.#e)!==Bn(a.enabled,this.#e)||_r(this.options.staleTime,this.#e)!==_r(a.staleTime,this.#e))&&this.#g();const l=this.#y();i&&(this.#e!==r||Bn(this.options.enabled,this.#e)!==Bn(a.enabled,this.#e)||l!==this.#l)&&this.#v(l)}getOptimisticResult(t){const a=this.#t.getQueryCache().build(this.#t,t),r=this.createResult(a,t);return B_(this,r)&&(this.#a=r,this.#i=this.options,this.#r=this.#e.state),r}getCurrentResult(){return this.#a}trackResult(t,a){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),a?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const a=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,a);return r.fetch().then(()=>this.createResult(r,a))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(t){this.#w();let a=this.#e.fetch(this.options,t);return t?.throwOnError||(a=a.catch(an)),a}#g(){this.#x();const t=_r(this.options.staleTime,this.#e);if(rs||this.#a.isStale||!eh(t))return;const r=qb(this.#a.dataUpdatedAt,t)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(t){this.#S(),this.#l=t,!(rs||Bn(this.options.enabled,this.#e)===!1||!eh(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||zh.isFocused())&&this.#f()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#x(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(t,a){const r=this.#e,i=this.options,l=this.#a,u=this.#r,f=this.#i,p=t!==r?t.state:this.#n,{state:m}=t;let g={...m},y=!1,w;if(a._optimisticResults){const G=this.hasListeners(),le=!G&&dv(t,a),we=G&&hv(t,r,a,i);(le||we)&&(g={...g,...Xb(m.data,t.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:O,errorUpdatedAt:T,status:x}=g;w=g.data;let E=!1;if(a.placeholderData!==void 0&&w===void 0&&x==="pending"){let G;l?.isPlaceholderData&&a.placeholderData===f?.placeholderData?(G=l.data,E=!0):G=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,G!==void 0&&(x="success",w=nh(l?.data,G,a),y=!0)}if(a.select&&w!==void 0&&!E)if(l&&w===u?.data&&a.select===this.#p)w=this.#d;else try{this.#p=a.select,w=a.select(w),w=nh(l?.data,w,a),this.#d=w,this.#s=null}catch(G){this.#s=G}this.#s&&(O=this.#s,w=this.#d,T=Date.now(),x="error");const D=g.fetchStatus==="fetching",C=x==="pending",j=x==="error",z=C&&D,U=w!==void 0,K={status:x,fetchStatus:g.fetchStatus,isPending:C,isSuccess:x==="success",isError:j,isInitialLoading:z,isLoading:z,data:w,dataUpdatedAt:g.dataUpdatedAt,error:O,errorUpdatedAt:T,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:D,isRefetching:D&&!C,isLoadingError:j&&!U,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:j&&U,isStale:Uh(t,a),refetch:this.refetch,promise:this.#o,isEnabled:Bn(a.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const G=_e=>{K.status==="error"?_e.reject(K.error):K.data!==void 0&&_e.resolve(K.data)},le=()=>{const _e=this.#o=K.promise=ah();G(_e)},we=this.#o;switch(we.status){case"pending":t.queryHash===r.queryHash&&G(we);break;case"fulfilled":(K.status==="error"||K.data!==we.value)&&le();break;case"rejected":(K.status!=="error"||K.error!==we.reason)&&le();break}}return K}updateResult(){const t=this.#a,a=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#h=this.#e),Uu(a,t))return;this.#a=a;const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#m.size)return!0;const u=new Set(l??this.#m);return this.options.throwOnError&&u.add("error"),Object.keys(this.#a).some(f=>{const h=f;return this.#a[h]!==t[h]&&u.has(h)})};this.#_({listeners:r()})}#w(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const a=this.#e;this.#e=t,this.#n=t.state,this.hasListeners()&&(a?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(t){Bt.batch(()=>{t.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function L_(t,a){return Bn(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&a.retryOnMount===!1)}function dv(t,a){return L_(t,a)||t.state.data!==void 0&&rh(t,a,a.refetchOnMount)}function rh(t,a,r){if(Bn(a.enabled,t)!==!1&&_r(a.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&Uh(t,a)}return!1}function hv(t,a,r,i){return(t!==a||Bn(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&Uh(t,r)}function Uh(t,a){return Bn(a.enabled,t)!==!1&&t.isStaleByTime(_r(a.staleTime,t))}function B_(t,a){return!Uu(t.getCurrentResult(),a)}var V_=class extends gi{#t;#e=void 0;#n;#a;constructor(a,r){super(),this.#t=a,this.setOptions(r),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const r=this.options;this.options=this.#t.defaultMutationOptions(a),Uu(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&ss(r.mutationKey)!==ss(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#r(),this.#i(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(a,r){return this.#a=r,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(a)}#r(){const a=this.#n?.state??Kb();this.#e={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#i(a){Bt.batch(()=>{if(this.#a&&this.hasListeners()){const r=this.#e.variables,i=this.#e.context;a?.type==="success"?(this.#a.onSuccess?.(a.data,r,i),this.#a.onSettled?.(a.data,null,r,i)):a?.type==="error"&&(this.#a.onError?.(a.error,r,i),this.#a.onSettled?.(void 0,a.error,r,i))}this.listeners.forEach(r=>{r(this.#e)})})}},Nd={exports:{}},Ve={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var mv;function H_(){if(mv)return Ve;mv=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,x={};function E(A,$,oe){this.props=A,this.context=$,this.refs=x,this.updater=oe||O}E.prototype.isReactComponent={},E.prototype.setState=function(A,$){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,$,"setState")},E.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function D(){}D.prototype=E.prototype;function C(A,$,oe){this.props=A,this.context=$,this.refs=x,this.updater=oe||O}var j=C.prototype=new D;j.constructor=C,T(j,E.prototype),j.isPureReactComponent=!0;var z=Array.isArray,U={H:null,A:null,T:null,S:null,V:null},te=Object.prototype.hasOwnProperty;function K(A,$,oe,X,ne,ve){return oe=ve.ref,{$$typeof:t,type:A,key:$,ref:oe!==void 0?oe:null,props:ve}}function G(A,$){return K(A.type,$,void 0,void 0,void 0,A.props)}function le(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function we(A){var $={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(oe){return $[oe]})}var _e=/\/+/g;function se(A,$){return typeof A=="object"&&A!==null&&A.key!=null?we(""+A.key):$.toString(36)}function ue(){}function pe(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ue,ue):(A.status="pending",A.then(function($){A.status==="pending"&&(A.status="fulfilled",A.value=$)},function($){A.status==="pending"&&(A.status="rejected",A.reason=$)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function ge(A,$,oe,X,ne){var ve=typeof A;(ve==="undefined"||ve==="boolean")&&(A=null);var be=!1;if(A===null)be=!0;else switch(ve){case"bigint":case"string":case"number":be=!0;break;case"object":switch(A.$$typeof){case t:case a:be=!0;break;case g:return be=A._init,ge(be(A._payload),$,oe,X,ne)}}if(be)return ne=ne(A),be=X===""?"."+se(A,0):X,z(ne)?(oe="",be!=null&&(oe=be.replace(_e,"$&/")+"/"),ge(ne,$,oe,"",function(He){return He})):ne!=null&&(le(ne)&&(ne=G(ne,oe+(ne.key==null||A&&A.key===ne.key?"":(""+ne.key).replace(_e,"$&/")+"/")+be)),$.push(ne)),1;be=0;var re=X===""?".":X+":";if(z(A))for(var de=0;de{const a=S.useContext(Jb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},bD=({client:t,children:a})=>(S.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),_.jsx(Jb.Provider,{value:t,children:a})),e0=S.createContext(!1),q_=()=>S.useContext(e0);e0.Provider;function P_(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var F_=S.createContext(P_()),G_=()=>S.useContext(F_),Z_=(t,a)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(a.isReset()||(t.retryOnMount=!1))},Y_=t=>{S.useEffect(()=>{t.clearReset()},[t])},I_=({result:t,errorResetBoundary:a,throwOnError:r,query:i,suspense:l})=>t.isError&&!a.isReset()&&!t.isFetching&&i&&(l&&t.data===void 0||Gb(r,[t.error,i])),Q_=t=>{if(t.suspense){const a=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>a(r(...i)):a(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},X_=(t,a)=>t.isLoading&&t.isFetching&&!a,K_=(t,a)=>t?.suspense&&a.isPending,gv=(t,a,r)=>a.fetchOptimistic(t).catch(()=>{r.clearReset()});function $_(t,a,r){const i=q_(),l=G_(),u=Wb(),f=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(f),f._optimisticResults=i?"isRestoring":"optimistic",Q_(f),Z_(f,l),Y_(l);const h=!u.getQueryCache().get(f.queryHash),[p]=S.useState(()=>new a(u,f)),m=p.getOptimisticResult(f),g=!i&&t.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(y=>{const w=g?p.subscribe(Bt.batchCalls(y)):an;return p.updateResult(),w},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),S.useEffect(()=>{p.setOptions(f)},[f,p]),K_(f,m))throw gv(f,p,l);if(I_({result:m,errorResetBoundary:l,throwOnError:f.throwOnError,query:u.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw m.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(f,m),f.experimental_prefetchInRender&&!rs&&X_(m,i)&&(h?gv(f,p,l):u.getQueryCache().get(f.queryHash)?.promise)?.catch(an).finally(()=>{p.updateResult()}),f.notifyOnChangeProps?m:p.trackResult(m)}function J_(t,a){return $_(t,U_)}function t0(t,a){const r=Wb(),[i]=S.useState(()=>new V_(r,t));S.useEffect(()=>{i.setOptions(t)},[i,t]);const l=S.useSyncExternalStore(S.useCallback(f=>i.subscribe(Bt.batchCalls(f)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=S.useCallback((f,h)=>{i.mutate(f,h).catch(an)},[i]);if(l.error&&Gb(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}const xD=new z_({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var Md={exports:{}},Eo={},Dd={exports:{}},kd={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var yv;function W_(){return yv||(yv=1,(function(t){function a(N,Z){var q=N.length;N.push(Z);e:for(;0>>1,A=N[ye];if(0>>1;ye<$;){var oe=2*(ye+1)-1,X=N[oe],ne=oe+1,ve=N[ne];if(0>l(X,q))nel(ve,X)?(N[ye]=ve,N[ne]=q,ye=ne):(N[ye]=X,N[oe]=q,ye=oe);else if(nel(ve,q))N[ye]=ve,N[ne]=q,ye=ne;else break e}}return Z}function l(N,Z){var q=N.sortIndex-Z.sortIndex;return q!==0?q:N.id-Z.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var p=[],m=[],g=1,y=null,w=3,O=!1,T=!1,x=!1,E=!1,D=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function z(N){for(var Z=r(m);Z!==null;){if(Z.callback===null)i(m);else if(Z.startTime<=N)i(m),Z.sortIndex=Z.expirationTime,a(p,Z);else break;Z=r(m)}}function U(N){if(x=!1,z(N),!T)if(r(p)!==null)T=!0,te||(te=!0,se());else{var Z=r(m);Z!==null&&ge(U,Z.startTime-N)}}var te=!1,K=-1,G=5,le=-1;function we(){return E?!0:!(t.unstable_now()-leN&&we());){var ye=y.callback;if(typeof ye=="function"){y.callback=null,w=y.priorityLevel;var A=ye(y.expirationTime<=N);if(N=t.unstable_now(),typeof A=="function"){y.callback=A,z(N),Z=!0;break t}y===r(p)&&i(p),z(N)}else i(p);y=r(p)}if(y!==null)Z=!0;else{var $=r(m);$!==null&&ge(U,$.startTime-N),Z=!1}}break e}finally{y=null,w=q,O=!1}Z=void 0}}finally{Z?se():te=!1}}}var se;if(typeof j=="function")se=function(){j(_e)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,pe=ue.port2;ue.port1.onmessage=_e,se=function(){pe.postMessage(null)}}else se=function(){D(_e,0)};function ge(N,Z){K=D(function(){N(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_forceFrameRate=function(N){0>N||125ye?(N.sortIndex=q,a(m,N),r(p)===null&&N===r(m)&&(x?(C(K),K=-1):x=!0,ge(U,q-ye))):(N.sortIndex=A,a(p,N),T||O||(T=!0,te||(te=!0,se()))),N},t.unstable_shouldYield=we,t.unstable_wrapCallback=function(N){var Z=w;return function(){var q=w;w=Z;try{return N.apply(this,arguments)}finally{w=q}}}})(kd)),kd}var vv;function eE(){return vv||(vv=1,Dd.exports=W_()),Dd.exports}var jd={exports:{}},Kt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bv;function tE(){if(bv)return Kt;bv=1;var t=Lh();function a(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),jd.exports=tE(),jd.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Sv;function nE(){if(Sv)return Eo;Sv=1;var t=eE(),a=Lh(),r=n0();function i(e){var n="https://react.dev/errors/"+e;if(1A||(e.current=ye[A],ye[A]=null,A--)}function X(e,n){A++,ye[A]=e.current,e.current=n}var ne=$(null),ve=$(null),be=$(null),re=$(null);function de(e,n){switch(X(be,n),X(ve,e),X(ne,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Dy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Dy(n),e=ky(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}oe(ne),X(ne,e)}function He(){oe(ne),oe(ve),oe(be)}function Ue(e){e.memoizedState!==null&&X(re,e);var n=ne.current,s=ky(n,e.type);n!==s&&(X(ve,e),X(ne,s))}function qe(e){ve.current===e&&(oe(ne),oe(ve)),re.current===e&&(oe(re),vo._currentValue=q)}var Fe=Object.prototype.hasOwnProperty,Ot=t.unstable_scheduleCallback,Vt=t.unstable_cancelCallback,Wn=t.unstable_shouldYield,ea=t.unstable_requestPaint,gt=t.unstable_now,Ai=t.unstable_getCurrentPriorityLevel,en=t.unstable_ImmediatePriority,M=t.unstable_UserBlockingPriority,H=t.unstable_NormalPriority,Q=t.unstable_LowPriority,fe=t.unstable_IdlePriority,ce=t.log,ie=t.unstable_setDisableYieldValue,Se=null,je=null;function Ye(e){if(typeof ce=="function"&&ie(e),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(Se,e)}catch{}}var nt=Math.clz32?Math.clz32:ta,pn=Math.log,gn=Math.LN2;function ta(e){return e>>>=0,e===0?32:31-(pn(e)/gn|0)|0}var na=256,aa=4194304;function On(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ra(e,n,s){var o=e.pendingLanes;if(o===0)return 0;var c=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var b=o&134217727;return b!==0?(o=b&~d,o!==0?c=On(o):(v&=b,v!==0?c=On(v):s||(s=b&~e,s!==0&&(c=On(s))))):(b=o&~d,b!==0?c=On(b):v!==0?c=On(v):s||(s=o&~e,s!==0&&(c=On(s)))),c===0?0:n!==0&&n!==c&&(n&d)===0&&(d=c&-c,s=n&-n,d>=s||d===32&&(s&4194048)!==0)?n:c}function wa(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ka(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vn(){var e=na;return na<<=1,(na&4194048)===0&&(na=256),e}function sl(){var e=aa;return aa<<=1,(aa&62914560)===0&&(aa=4194304),e}function Ri(e){for(var n=[],s=0;31>s;s++)n.push(e);return n}function $a(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function il(e,n,s,o,c,d){var v=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var b=e.entanglements,R=e.expirationTimes,V=e.hiddenUpdates;for(s=v&~s;0)":-1c||R[o]!==V[c]){var J=` `+R[o].replace(" at new "," at ");return e.displayName&&J.includes("")&&(J=J.replace("",e.displayName)),J}while(1<=o&&0<=c);break}}}finally{_c=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?xs(s):""}function uw(e){switch(e.tag){case 26:case 27:case 5:return xs(e.type);case 16:return xs("Lazy");case 13:return xs("Suspense");case 19:return xs("SuspenseList");case 0:case 15:return Ec(e.type,!1);case 11:return Ec(e.type.render,!1);case 1:return Ec(e.type,!0);case 31:return xs("Activity");default:return""}}function Am(e){try{var n="";do n+=uw(e),e=e.return;while(e);return n}catch(s){return` Error generating stack: `+s.message+` `+s.stack}}function Cn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function cw(e){var n=Rm(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,d=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(v){o=""+v,d.call(this,v)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ul(e){e._valueTracker||(e._valueTracker=cw(e))}function Om(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var s=n.getValue(),o="";return e&&(o=Rm(e)?e.checked?"true":"false":e.value),e=o,e!==s?(n.setValue(e),!0):!1}function cl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var fw=/[\n"\\]/g;function Nn(e){return e.replace(fw,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Tc(e,n,s,o,c,d,v,b){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),n!=null?v==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Cn(n)):e.value!==""+Cn(n)&&(e.value=""+Cn(n)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),n!=null?Ac(e,v,Cn(n)):s!=null?Ac(e,v,Cn(s)):o!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Cn(b):e.removeAttribute("name")}function Cm(e,n,s,o,c,d,v,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;s=s!=null?""+Cn(s):"",n=n!=null?""+Cn(n):s,b||n===e.value||(e.value=n),e.defaultValue=n}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=b?e.checked:!!o,e.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function Ac(e,n,s){n==="number"&&cl(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Ss(e,n,s,o){if(e=e.options,n){n={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mc=!1;if(Ta)try{var Mi={};Object.defineProperty(Mi,"passive",{get:function(){Mc=!0}}),window.addEventListener("test",Mi,Mi),window.removeEventListener("test",Mi,Mi)}catch{Mc=!1}var Ja=null,Dc=null,dl=null;function Um(){if(dl)return dl;var e,n=Dc,s=n.length,o,c="value"in Ja?Ja.value:Ja.textContent,d=c.length;for(e=0;e=ji),Pm=" ",Fm=!1;function Gm(e,n){switch(e){case"keyup":return Vw.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ts=!1;function qw(e,n){switch(e){case"compositionend":return Zm(n);case"keypress":return n.which!==32?null:(Fm=!0,Pm);case"textInput":return e=n.data,e===Pm&&Fm?null:e;default:return null}}function Pw(e,n){if(Ts)return e==="compositionend"||!Lc&&Gm(e,n)?(e=Um(),dl=Dc=Ja=null,Ts=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:s,offset:n-e};e=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Wm(s)}}function tp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?tp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function np(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=cl(e.document);n instanceof e.HTMLIFrameElement;){try{var s=typeof n.contentWindow.location.href=="string"}catch{s=!1}if(s)e=n.contentWindow;else break;n=cl(e.document)}return n}function Hc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Kw=Ta&&"documentMode"in document&&11>=document.documentMode,As=null,qc=null,Bi=null,Pc=!1;function ap(e,n,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Pc||As==null||As!==cl(o)||(o=As,"selectionStart"in o&&Hc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Bi&&Li(Bi,o)||(Bi=o,o=nu(qc,"onSelect"),0>=v,c-=v,Ra=1<<32-nt(n)+c|s<d?d:8;var v=N.T,b={};N.T=b,Of(e,!1,n,s);try{var R=c(),V=N.S;if(V!==null&&V(b,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var J=s1(R,o);Wi(e,n,J,wn(e))}else Wi(e,n,o,wn(e))}catch(ee){Wi(e,n,{then:function(){},status:"rejected",reason:ee},wn())}finally{Z.p=d,N.T=v}}function c1(){}function Af(e,n,s,o){if(e.tag!==5)throw Error(i(476));var c=rg(e).queue;ag(e,c,n,q,s===null?c1:function(){return sg(e),s(o)})}function rg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:q},next:null};var s={};return n.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:s},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function sg(e){var n=rg(e).next.queue;Wi(e,n,{},wn())}function Rf(){return Xt(vo)}function ig(){return Mt().memoizedState}function og(){return Mt().memoizedState}function f1(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var s=wn();e=tr(s);var o=nr(n,e,s);o!==null&&(_n(o,n,s),Ii(o,n,s)),n={cache:nf()},e.payload=n;return}n=n.return}}function d1(e,n,s){var o=wn();s={lane:o,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},Ul(e)?ug(n,s):(s=Yc(e,n,s,o),s!==null&&(_n(s,e,o),cg(s,n,o)))}function lg(e,n,s){var o=wn();Wi(e,n,s,o)}function Wi(e,n,s,o){var c={lane:o,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Ul(e))ug(n,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var v=n.lastRenderedState,b=d(v,s);if(c.hasEagerState=!0,c.eagerState=b,yn(b,v))return bl(e,n,c,0),ft===null&&vl(),!1}catch{}finally{}if(s=Yc(e,n,c,o),s!==null)return _n(s,e,o),cg(s,n,o),!0}return!1}function Of(e,n,s,o){if(o={lane:2,revertLane:id(),action:o,hasEagerState:!1,eagerState:null,next:null},Ul(e)){if(n)throw Error(i(479))}else n=Yc(e,s,o,2),n!==null&&_n(n,e,2)}function Ul(e){var n=e.alternate;return e===Ge||n!==null&&n===Ge}function ug(e,n){Us=Nl=!0;var s=e.pending;s===null?n.next=n:(n.next=s.next,s.next=n),e.pending=n}function cg(e,n,s){if((s&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,s|=o,n.lanes=s,xt(e,s)}}var Ll={readContext:Xt,use:Dl,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t},fg={readContext:Xt,use:Dl,useCallback:function(e,n){return ln().memoizedState=[e,n===void 0?null:n],e},useContext:Xt,useEffect:Qp,useImperativeHandle:function(e,n,s){s=s!=null?s.concat([e]):null,zl(4194308,4,Jp.bind(null,n,e),s)},useLayoutEffect:function(e,n){return zl(4194308,4,e,n)},useInsertionEffect:function(e,n){zl(4,2,e,n)},useMemo:function(e,n){var s=ln();n=n===void 0?null:n;var o=e();if(Ir){Ye(!0);try{e()}finally{Ye(!1)}}return s.memoizedState=[o,n],o},useReducer:function(e,n,s){var o=ln();if(s!==void 0){var c=s(n);if(Ir){Ye(!0);try{s(n)}finally{Ye(!1)}}}else c=n;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=d1.bind(null,Ge,e),[o.memoizedState,e]},useRef:function(e){var n=ln();return e={current:e},n.memoizedState=e},useState:function(e){e=wf(e);var n=e.queue,s=lg.bind(null,Ge,n);return n.dispatch=s,[e.memoizedState,s]},useDebugValue:Ef,useDeferredValue:function(e,n){var s=ln();return Tf(s,e,n)},useTransition:function(){var e=wf(!1);return e=ag.bind(null,Ge,e.queue,!0,!1),ln().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,s){var o=Ge,c=ln();if(tt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=n(),ft===null)throw Error(i(349));(Ke&124)!==0||Dp(o,n,s)}c.memoizedState=s;var d={value:s,getSnapshot:n};return c.queue=d,Qp(jp.bind(null,o,d,e),[e]),o.flags|=2048,Bs(9,jl(),kp.bind(null,o,d,s,n),null),s},useId:function(){var e=ln(),n=ft.identifierPrefix;if(tt){var s=Oa,o=Ra;s=(o&~(1<<32-nt(o)-1)).toString(32)+s,n="«"+n+"R"+s,s=Ml++,0Ne?(Gt=Oe,Oe=null):Gt=Oe.sibling;var Je=P(L,Oe,B[Ne],W);if(Je===null){Oe===null&&(Oe=Gt);break}e&&Oe&&Je.alternate===null&&n(L,Oe),k=d(Je,k,Ne),Ie===null?Ee=Je:Ie.sibling=Je,Ie=Je,Oe=Gt}if(Ne===B.length)return s(L,Oe),tt&&qr(L,Ne),Ee;if(Oe===null){for(;NeNe?(Gt=Oe,Oe=null):Gt=Oe.sibling;var br=P(L,Oe,Je.value,W);if(br===null){Oe===null&&(Oe=Gt);break}e&&Oe&&br.alternate===null&&n(L,Oe),k=d(br,k,Ne),Ie===null?Ee=br:Ie.sibling=br,Ie=br,Oe=Gt}if(Je.done)return s(L,Oe),tt&&qr(L,Ne),Ee;if(Oe===null){for(;!Je.done;Ne++,Je=B.next())Je=ee(L,Je.value,W),Je!==null&&(k=d(Je,k,Ne),Ie===null?Ee=Je:Ie.sibling=Je,Ie=Je);return tt&&qr(L,Ne),Ee}for(Oe=o(Oe);!Je.done;Ne++,Je=B.next())Je=F(Oe,L,Ne,Je.value,W),Je!==null&&(e&&Je.alternate!==null&&Oe.delete(Je.key===null?Ne:Je.key),k=d(Je,k,Ne),Ie===null?Ee=Je:Ie.sibling=Je,Ie=Je);return e&&Oe.forEach(function(m_){return n(L,m_)}),tt&&qr(L,Ne),Ee}function lt(L,k,B,W){if(typeof B=="object"&&B!==null&&B.type===T&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case w:e:{for(var Ee=B.key;k!==null;){if(k.key===Ee){if(Ee=B.type,Ee===T){if(k.tag===7){s(L,k.sibling),W=c(k,B.props.children),W.return=L,L=W;break e}}else if(k.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===G&&hg(Ee)===k.type){s(L,k.sibling),W=c(k,B.props),to(W,B),W.return=L,L=W;break e}s(L,k);break}else n(L,k);k=k.sibling}B.type===T?(W=Vr(B.props.children,L.mode,W,B.key),W.return=L,L=W):(W=Sl(B.type,B.key,B.props,null,L.mode,W),to(W,B),W.return=L,L=W)}return v(L);case O:e:{for(Ee=B.key;k!==null;){if(k.key===Ee)if(k.tag===4&&k.stateNode.containerInfo===B.containerInfo&&k.stateNode.implementation===B.implementation){s(L,k.sibling),W=c(k,B.children||[]),W.return=L,L=W;break e}else{s(L,k);break}else n(L,k);k=k.sibling}W=Xc(B,L.mode,W),W.return=L,L=W}return v(L);case G:return Ee=B._init,B=Ee(B._payload),lt(L,k,B,W)}if(ge(B))return ke(L,k,B,W);if(se(B)){if(Ee=se(B),typeof Ee!="function")throw Error(i(150));return B=Ee.call(B),Ce(L,k,B,W)}if(typeof B.then=="function")return lt(L,k,Bl(B),W);if(B.$$typeof===j)return lt(L,k,Tl(L,B),W);Vl(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,k!==null&&k.tag===6?(s(L,k.sibling),W=c(k,B),W.return=L,L=W):(s(L,k),W=Qc(B,L.mode,W),W.return=L,L=W),v(L)):s(L,k)}return function(L,k,B,W){try{eo=0;var Ee=lt(L,k,B,W);return Vs=null,Ee}catch(Oe){if(Oe===Zi||Oe===Rl)throw Oe;var Ie=vn(29,Oe,null,L.mode);return Ie.lanes=W,Ie.return=L,Ie}finally{}}}var Hs=mg(!0),pg=mg(!1),zn=$(null),ia=null;function rr(e){var n=e.alternate;X(zt,zt.current&1),X(zn,e),ia===null&&(n===null||zs.current!==null||n.memoizedState!==null)&&(ia=e)}function gg(e){if(e.tag===22){if(X(zt,zt.current),X(zn,e),ia===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(ia=e)}}else sr()}function sr(){X(zt,zt.current),X(zn,zn.current)}function Da(e){oe(zn),ia===e&&(ia=null),oe(zt)}var zt=$(0);function Hl(e){for(var n=e;n!==null;){if(n.tag===13){var s=n.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||vd(s)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Cf(e,n,s,o){n=e.memoizedState,s=s(o,n),s=s==null?n:g({},n,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Nf={enqueueSetState:function(e,n,s){e=e._reactInternals;var o=wn(),c=tr(o);c.payload=n,s!=null&&(c.callback=s),n=nr(e,c,o),n!==null&&(_n(n,e,o),Ii(n,e,o))},enqueueReplaceState:function(e,n,s){e=e._reactInternals;var o=wn(),c=tr(o);c.tag=1,c.payload=n,s!=null&&(c.callback=s),n=nr(e,c,o),n!==null&&(_n(n,e,o),Ii(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var s=wn(),o=tr(s);o.tag=2,n!=null&&(o.callback=n),n=nr(e,o,s),n!==null&&(_n(n,e,s),Ii(n,e,s))}};function yg(e,n,s,o,c,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,v):n.prototype&&n.prototype.isPureReactComponent?!Li(s,o)||!Li(c,d):!0}function vg(e,n,s,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(s,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(s,o),n.state!==e&&Nf.enqueueReplaceState(n,n.state,null)}function Qr(e,n){var s=n;if("ref"in n){s={};for(var o in n)o!=="ref"&&(s[o]=n[o])}if(e=e.defaultProps){s===n&&(s=g({},s));for(var c in e)s[c]===void 0&&(s[c]=e[c])}return s}var ql=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function bg(e){ql(e)}function xg(e){console.error(e)}function Sg(e){ql(e)}function Pl(e,n){try{var s=e.onUncaughtError;s(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function wg(e,n,s){try{var o=e.onCaughtError;o(s.value,{componentStack:s.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Mf(e,n,s){return s=tr(s),s.tag=3,s.payload={element:null},s.callback=function(){Pl(e,n)},s}function _g(e){return e=tr(e),e.tag=3,e}function Eg(e,n,s,o){var c=s.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;e.payload=function(){return c(d)},e.callback=function(){wg(n,s,o)}}var v=s.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){wg(n,s,o),typeof c!="function"&&(fr===null?fr=new Set([this]):fr.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})})}function m1(e,n,s,o,c){if(s.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=s.alternate,n!==null&&Pi(n,s,c,!0),s=zn.current,s!==null){switch(s.tag){case 13:return ia===null?td():s.alternate===null&&vt===0&&(vt=3),s.flags&=-257,s.flags|=65536,s.lanes=c,o===sf?s.flags|=16384:(n=s.updateQueue,n===null?s.updateQueue=new Set([o]):n.add(o),ad(e,o,c)),!1;case 22:return s.flags|=65536,o===sf?s.flags|=16384:(n=s.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},s.updateQueue=n):(s=n.retryQueue,s===null?n.retryQueue=new Set([o]):s.add(o)),ad(e,o,c)),!1}throw Error(i(435,s.tag))}return ad(e,o,c),td(),!1}if(tt)return n=zn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,o!==Jc&&(e=Error(i(422),{cause:o}),qi(Mn(e,s)))):(o!==Jc&&(n=Error(i(423),{cause:o}),qi(Mn(n,s))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=Mn(o,s),c=Mf(e.stateNode,o,c),uf(e,c),vt!==4&&(vt=2)),!1;var d=Error(i(520),{cause:o});if(d=Mn(d,s),lo===null?lo=[d]:lo.push(d),vt!==4&&(vt=2),n===null)return!0;o=Mn(o,s),s=n;do{switch(s.tag){case 3:return s.flags|=65536,e=c&-c,s.lanes|=e,e=Mf(s.stateNode,o,e),uf(s,e),!1;case 1:if(n=s.type,d=s.stateNode,(s.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(fr===null||!fr.has(d))))return s.flags|=65536,c&=-c,s.lanes|=c,c=_g(c),Eg(c,e,s,o),uf(s,c),!1}s=s.return}while(s!==null);return!1}var Tg=Error(i(461)),Pt=!1;function Yt(e,n,s,o){n.child=e===null?pg(n,null,s,o):Hs(n,e.child,s,o)}function Ag(e,n,s,o,c){s=s.render;var d=n.ref;if("ref"in o){var v={};for(var b in o)b!=="ref"&&(v[b]=o[b])}else v=o;return Zr(n),o=mf(e,n,s,v,d,c),b=pf(),e!==null&&!Pt?(gf(e,n,c),ka(e,n,c)):(tt&&b&&Kc(n),n.flags|=1,Yt(e,n,o,c),n.child)}function Rg(e,n,s,o,c){if(e===null){var d=s.type;return typeof d=="function"&&!Ic(d)&&d.defaultProps===void 0&&s.compare===null?(n.tag=15,n.type=d,Og(e,n,d,o,c)):(e=Sl(s.type,null,o,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Vf(e,c)){var v=d.memoizedProps;if(s=s.compare,s=s!==null?s:Li,s(v,o)&&e.ref===n.ref)return ka(e,n,c)}return n.flags|=1,e=Aa(d,o),e.ref=n.ref,e.return=n,n.child=e}function Og(e,n,s,o,c){if(e!==null){var d=e.memoizedProps;if(Li(d,o)&&e.ref===n.ref)if(Pt=!1,n.pendingProps=o=d,Vf(e,c))(e.flags&131072)!==0&&(Pt=!0);else return n.lanes=e.lanes,ka(e,n,c)}return Df(e,n,s,o,c)}function Cg(e,n,s){var o=n.pendingProps,c=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=d!==null?d.baseLanes|s:s,e!==null){for(c=n.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;n.childLanes=d&~o}else n.childLanes=0,n.child=null;return Ng(e,n,o,s)}if((s&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Al(n,d!==null?d.cachePool:null),d!==null?Op(n,d):ff(),gg(n);else return n.lanes=n.childLanes=536870912,Ng(e,n,d!==null?d.baseLanes|s:s,s)}else d!==null?(Al(n,d.cachePool),Op(n,d),sr(),n.memoizedState=null):(e!==null&&Al(n,null),ff(),sr());return Yt(e,n,c,s),n.child}function Ng(e,n,s,o){var c=rf();return c=c===null?null:{parent:jt._currentValue,pool:c},n.memoizedState={baseLanes:s,cachePool:c},e!==null&&Al(n,null),ff(),gg(n),e!==null&&Pi(e,n,o,!0),null}function Fl(e,n){var s=n.ref;if(s===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(e===null||e.ref!==s)&&(n.flags|=4194816)}}function Df(e,n,s,o,c){return Zr(n),s=mf(e,n,s,o,void 0,c),o=pf(),e!==null&&!Pt?(gf(e,n,c),ka(e,n,c)):(tt&&o&&Kc(n),n.flags|=1,Yt(e,n,s,c),n.child)}function Mg(e,n,s,o,c,d){return Zr(n),n.updateQueue=null,s=Np(n,o,s,c),Cp(e),o=pf(),e!==null&&!Pt?(gf(e,n,d),ka(e,n,d)):(tt&&o&&Kc(n),n.flags|=1,Yt(e,n,s,d),n.child)}function Dg(e,n,s,o,c){if(Zr(n),n.stateNode===null){var d=Ns,v=s.contextType;typeof v=="object"&&v!==null&&(d=Xt(v)),d=new s(o,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Nf,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=o,d.state=n.memoizedState,d.refs={},of(n),v=s.contextType,d.context=typeof v=="object"&&v!==null?Xt(v):Ns,d.state=n.memoizedState,v=s.getDerivedStateFromProps,typeof v=="function"&&(Cf(n,s,v,o),d.state=n.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&Nf.enqueueReplaceState(d,d.state,null),Xi(n,o,d,c),Qi(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){d=n.stateNode;var b=n.memoizedProps,R=Qr(s,b);d.props=R;var V=d.context,J=s.contextType;v=Ns,typeof J=="object"&&J!==null&&(v=Xt(J));var ee=s.getDerivedStateFromProps;J=typeof ee=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=n.pendingProps!==b,J||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||V!==v)&&vg(n,d,o,v),er=!1;var P=n.memoizedState;d.state=P,Xi(n,o,d,c),Qi(),V=n.memoizedState,b||P!==V||er?(typeof ee=="function"&&(Cf(n,s,ee,o),V=n.memoizedState),(R=er||yg(n,s,R,o,P,V,v))?(J||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=V),d.props=o,d.state=V,d.context=v,o=R):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{d=n.stateNode,lf(e,n),v=n.memoizedProps,J=Qr(s,v),d.props=J,ee=n.pendingProps,P=d.context,V=s.contextType,R=Ns,typeof V=="object"&&V!==null&&(R=Xt(V)),b=s.getDerivedStateFromProps,(V=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==ee||P!==R)&&vg(n,d,o,R),er=!1,P=n.memoizedState,d.state=P,Xi(n,o,d,c),Qi();var F=n.memoizedState;v!==ee||P!==F||er||e!==null&&e.dependencies!==null&&El(e.dependencies)?(typeof b=="function"&&(Cf(n,s,b,o),F=n.memoizedState),(J=er||yg(n,s,J,o,P,F,R)||e!==null&&e.dependencies!==null&&El(e.dependencies))?(V||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,F,R),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,F,R)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=F),d.props=o,d.state=F,d.context=R,o=J):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),o=!1)}return d=o,Fl(e,n),o=(n.flags&128)!==0,d||o?(d=n.stateNode,s=o&&typeof s.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&o?(n.child=Hs(n,e.child,null,c),n.child=Hs(n,null,s,c)):Yt(e,n,s,c),n.memoizedState=d.state,e=n.child):e=ka(e,n,c),e}function kg(e,n,s,o){return Hi(),n.flags|=256,Yt(e,n,s,o),n.child}var kf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jf(e){return{baseLanes:e,cachePool:xp()}}function zf(e,n,s){return e=e!==null?e.childLanes&~s:0,n&&(e|=Un),e}function jg(e,n,s){var o=n.pendingProps,c=!1,d=(n.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(zt.current&2)!==0),v&&(c=!0,n.flags&=-129),v=(n.flags&32)!==0,n.flags&=-33,e===null){if(tt){if(c?rr(n):sr(),tt){var b=yt,R;if(R=b){e:{for(R=b,b=sa;R.nodeType!==8;){if(!b){b=null;break e}if(R=Pn(R.nextSibling),R===null){b=null;break e}}b=R}b!==null?(n.memoizedState={dehydrated:b,treeContext:Hr!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},R=vn(18,null,null,0),R.stateNode=b,R.return=n,n.child=R,tn=n,yt=null,R=!0):R=!1}R||Fr(n)}if(b=n.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return vd(b)?n.lanes=32:n.lanes=536870912,null;Da(n)}return b=o.children,o=o.fallback,c?(sr(),c=n.mode,b=Gl({mode:"hidden",children:b},c),o=Vr(o,c,s,null),b.return=n,o.return=n,b.sibling=o,n.child=b,c=n.child,c.memoizedState=jf(s),c.childLanes=zf(e,v,s),n.memoizedState=kf,o):(rr(n),Uf(n,b))}if(R=e.memoizedState,R!==null&&(b=R.dehydrated,b!==null)){if(d)n.flags&256?(rr(n),n.flags&=-257,n=Lf(e,n,s)):n.memoizedState!==null?(sr(),n.child=e.child,n.flags|=128,n=null):(sr(),c=o.fallback,b=n.mode,o=Gl({mode:"visible",children:o.children},b),c=Vr(c,b,s,null),c.flags|=2,o.return=n,c.return=n,o.sibling=c,n.child=o,Hs(n,e.child,null,s),o=n.child,o.memoizedState=jf(s),o.childLanes=zf(e,v,s),n.memoizedState=kf,n=c);else if(rr(n),vd(b)){if(v=b.nextSibling&&b.nextSibling.dataset,v)var V=v.dgst;v=V,o=Error(i(419)),o.stack="",o.digest=v,qi({value:o,source:null,stack:null}),n=Lf(e,n,s)}else if(Pt||Pi(e,n,s,!1),v=(s&e.childLanes)!==0,Pt||v){if(v=ft,v!==null&&(o=s&-s,o=(o&42)!==0?1:Ct(o),o=(o&(v.suspendedLanes|s))!==0?0:o,o!==0&&o!==R.retryLane))throw R.retryLane=o,Cs(e,o),_n(v,e,o),Tg;b.data==="$?"||td(),n=Lf(e,n,s)}else b.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=R.treeContext,yt=Pn(b.nextSibling),tn=n,tt=!0,Pr=null,sa=!1,e!==null&&(kn[jn++]=Ra,kn[jn++]=Oa,kn[jn++]=Hr,Ra=e.id,Oa=e.overflow,Hr=n),n=Uf(n,o.children),n.flags|=4096);return n}return c?(sr(),c=o.fallback,b=n.mode,R=e.child,V=R.sibling,o=Aa(R,{mode:"hidden",children:o.children}),o.subtreeFlags=R.subtreeFlags&65011712,V!==null?c=Aa(V,c):(c=Vr(c,b,s,null),c.flags|=2),c.return=n,o.return=n,o.sibling=c,n.child=o,o=c,c=n.child,b=e.child.memoizedState,b===null?b=jf(s):(R=b.cachePool,R!==null?(V=jt._currentValue,R=R.parent!==V?{parent:V,pool:V}:R):R=xp(),b={baseLanes:b.baseLanes|s,cachePool:R}),c.memoizedState=b,c.childLanes=zf(e,v,s),n.memoizedState=kf,o):(rr(n),s=e.child,e=s.sibling,s=Aa(s,{mode:"visible",children:o.children}),s.return=n,s.sibling=null,e!==null&&(v=n.deletions,v===null?(n.deletions=[e],n.flags|=16):v.push(e)),n.child=s,n.memoizedState=null,s)}function Uf(e,n){return n=Gl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Gl(e,n){return e=vn(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Lf(e,n,s){return Hs(n,e.child,null,s),e=Uf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function zg(e,n,s){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),ef(e.return,n,s)}function Bf(e,n,s,o,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:c}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=s,d.tailMode=c)}function Ug(e,n,s){var o=n.pendingProps,c=o.revealOrder,d=o.tail;if(Yt(e,n,o.children,s),o=zt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zg(e,s,n);else if(e.tag===19)zg(e,s,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(X(zt,o),c){case"forwards":for(s=n.child,c=null;s!==null;)e=s.alternate,e!==null&&Hl(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=n.child,n.child=null):(c=s.sibling,s.sibling=null),Bf(n,!1,c,s,d);break;case"backwards":for(s=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&Hl(e)===null){n.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}Bf(n,!0,s,null,d);break;case"together":Bf(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ka(e,n,s){if(e!==null&&(n.dependencies=e.dependencies),cr|=n.lanes,(s&n.childLanes)===0)if(e!==null){if(Pi(e,n,s,!1),(s&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,s=Aa(e,e.pendingProps),n.child=s,s.return=n;e.sibling!==null;)e=e.sibling,s=s.sibling=Aa(e,e.pendingProps),s.return=n;s.sibling=null}return n.child}function Vf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&El(e)))}function p1(e,n,s){switch(n.tag){case 3:de(n,n.stateNode.containerInfo),Wa(n,jt,e.memoizedState.cache),Hi();break;case 27:case 5:Ue(n);break;case 4:de(n,n.stateNode.containerInfo);break;case 10:Wa(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(rr(n),n.flags|=128,null):(s&n.child.childLanes)!==0?jg(e,n,s):(rr(n),e=ka(e,n,s),e!==null?e.sibling:null);rr(n);break;case 19:var c=(e.flags&128)!==0;if(o=(s&n.childLanes)!==0,o||(Pi(e,n,s,!1),o=(s&n.childLanes)!==0),c){if(o)return Ug(e,n,s);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),X(zt,zt.current),o)break;return null;case 22:case 23:return n.lanes=0,Cg(e,n,s);case 24:Wa(n,jt,e.memoizedState.cache)}return ka(e,n,s)}function Lg(e,n,s){if(e!==null)if(e.memoizedProps!==n.pendingProps)Pt=!0;else{if(!Vf(e,s)&&(n.flags&128)===0)return Pt=!1,p1(e,n,s);Pt=(e.flags&131072)!==0}else Pt=!1,tt&&(n.flags&1048576)!==0&&hp(n,_l,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,c=o._init;if(o=c(o._payload),n.type=o,typeof o=="function")Ic(o)?(e=Qr(o,e),n.tag=1,n=Dg(null,n,o,e,s)):(n.tag=0,n=Df(null,n,o,e,s));else{if(o!=null){if(c=o.$$typeof,c===z){n.tag=11,n=Ag(null,n,o,e,s);break e}else if(c===K){n.tag=14,n=Rg(null,n,o,e,s);break e}}throw n=pe(o)||o,Error(i(306,n,""))}}return n;case 0:return Df(e,n,n.type,n.pendingProps,s);case 1:return o=n.type,c=Qr(o,n.pendingProps),Dg(e,n,o,c,s);case 3:e:{if(de(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var d=n.memoizedState;c=d.element,lf(e,n),Xi(n,o,null,s);var v=n.memoizedState;if(o=v.cache,Wa(n,jt,o),o!==d.cache&&tf(n,[jt],s,!0),Qi(),o=v.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=kg(e,n,o,s);break e}else if(o!==c){c=Mn(Error(i(424)),n),qi(c),n=kg(e,n,o,s);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(yt=Pn(e.firstChild),tn=n,tt=!0,Pr=null,sa=!0,s=pg(n,null,o,s),n.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Hi(),o===c){n=ka(e,n,s);break e}Yt(e,n,o,s)}n=n.child}return n;case 26:return Fl(e,n),e===null?(s=qy(n.type,null,n.pendingProps,null))?n.memoizedState=s:tt||(s=n.type,e=n.pendingProps,o=ru(be.current).createElement(s),o[wt]=n,o[ct]=e,Qt(o,s,e),qt(o),n.stateNode=o):n.memoizedState=qy(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ue(n),e===null&&tt&&(o=n.stateNode=By(n.type,n.pendingProps,be.current),tn=n,sa=!0,c=yt,mr(n.type)?(bd=c,yt=Pn(o.firstChild)):yt=c),Yt(e,n,n.pendingProps.children,s),Fl(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&tt&&((c=o=yt)&&(o=F1(o,n.type,n.pendingProps,sa),o!==null?(n.stateNode=o,tn=n,yt=Pn(o.firstChild),sa=!1,c=!0):c=!1),c||Fr(n)),Ue(n),c=n.type,d=n.pendingProps,v=e!==null?e.memoizedProps:null,o=d.children,pd(c,d)?o=null:v!==null&&pd(c,v)&&(n.flags|=32),n.memoizedState!==null&&(c=mf(e,n,o1,null,null,s),vo._currentValue=c),Fl(e,n),Yt(e,n,o,s),n.child;case 6:return e===null&&tt&&((e=s=yt)&&(s=G1(s,n.pendingProps,sa),s!==null?(n.stateNode=s,tn=n,yt=null,e=!0):e=!1),e||Fr(n)),null;case 13:return jg(e,n,s);case 4:return de(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Hs(n,null,o,s):Yt(e,n,o,s),n.child;case 11:return Ag(e,n,n.type,n.pendingProps,s);case 7:return Yt(e,n,n.pendingProps,s),n.child;case 8:return Yt(e,n,n.pendingProps.children,s),n.child;case 12:return Yt(e,n,n.pendingProps.children,s),n.child;case 10:return o=n.pendingProps,Wa(n,n.type,o.value),Yt(e,n,o.children,s),n.child;case 9:return c=n.type._context,o=n.pendingProps.children,Zr(n),c=Xt(c),o=o(c),n.flags|=1,Yt(e,n,o,s),n.child;case 14:return Rg(e,n,n.type,n.pendingProps,s);case 15:return Og(e,n,n.type,n.pendingProps,s);case 19:return Ug(e,n,s);case 31:return o=n.pendingProps,s=n.mode,o={mode:o.mode,children:o.children},e===null?(s=Gl(o,s),s.ref=n.ref,n.child=s,s.return=n,n=s):(s=Aa(e.child,o),s.ref=n.ref,n.child=s,s.return=n,n=s),n;case 22:return Cg(e,n,s);case 24:return Zr(n),o=Xt(jt),e===null?(c=rf(),c===null&&(c=ft,d=nf(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=s),c=d),n.memoizedState={parent:o,cache:c},of(n),Wa(n,jt,c)):((e.lanes&s)!==0&&(lf(e,n),Xi(n,null,null,s),Qi()),c=e.memoizedState,d=n.memoizedState,c.parent!==o?(c={parent:o,cache:o},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),Wa(n,jt,o)):(o=d.cache,Wa(n,jt,o),o!==c.cache&&tf(n,[jt],s,!0))),Yt(e,n,n.pendingProps.children,s),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function ja(e){e.flags|=4}function Bg(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yy(n)){if(n=zn.current,n!==null&&((Ke&4194048)===Ke?ia!==null:(Ke&62914560)!==Ke&&(Ke&536870912)===0||n!==ia))throw Yi=sf,Sp;e.flags|=8192}}function Zl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?sl():536870912,e.lanes|=n,Gs|=n)}function no(e,n){if(!tt)switch(e.tailMode){case"hidden":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function mt(e){var n=e.alternate!==null&&e.alternate.child===e.child,s=0,o=0;if(n)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=s,n}function g1(e,n,s){var o=n.pendingProps;switch($c(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(n),null;case 1:return mt(n),null;case 3:return s=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Na(jt),He(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Vi(n)?ja(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,gp())),mt(n),null;case 26:return s=n.memoizedState,e===null?(ja(n),s!==null?(mt(n),Bg(n,s)):(mt(n),n.flags&=-16777217)):s?s!==e.memoizedState?(ja(n),mt(n),Bg(n,s)):(mt(n),n.flags&=-16777217):(e.memoizedProps!==o&&ja(n),mt(n),n.flags&=-16777217),null;case 27:qe(n),s=be.current;var c=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&ja(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return mt(n),null}e=ne.current,Vi(n)?mp(n):(e=By(c,o,s),n.stateNode=e,ja(n))}return mt(n),null;case 5:if(qe(n),s=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&ja(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return mt(n),null}if(e=ne.current,Vi(n))mp(n);else{switch(c=ru(be.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":e=c.createElement("div"),e.innerHTML="