import{g as wh,u as U1}from"./base64-BbJB1hmJ.js";import{p as un}from"./product-api.service-DR0CE0o9.js";import{a as L1,r as P1}from"./app-C7VSS-q9.js";function V1(t,r){for(var s=0;si[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Td={exports:{}},ol={};/** * @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 oy;function B1(){if(oy)return ol;oy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(i,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:t,type:i,key:d,ref:o!==void 0?o:null,props:c}}return ol.Fragment=r,ol.jsx=s,ol.jsxs=s,ol}var cy;function H1(){return cy||(cy=1,Td.exports=B1()),Td.exports}var g=H1(),si=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(){}},Ia=typeof window>"u"||"Deno"in globalThis;function Ft(){}function q1(t,r){return typeof t=="function"?t(r):t}function Qd(t){return typeof t=="number"&&t>=0&&t!==1/0}function Nb(t,r){return Math.max(t+(r||0)-Date.now(),0)}function ca(t,r){return typeof t=="function"?t(r):t}function En(t,r){return typeof t=="function"?t(r):t}function uy(t,r){const{type:s="all",exact:i,fetchStatus:o,predicate:c,queryKey:d,stale:h}=t;if(d){if(i){if(r.queryHash!==Eh(d,r.options))return!1}else if(!gl(r.queryKey,d))return!1}if(s!=="all"){const p=r.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof h=="boolean"&&r.isStale()!==h||o&&o!==r.state.fetchStatus||c&&!c(r))}function fy(t,r){const{exact:s,status:i,predicate:o,mutationKey:c}=t;if(c){if(!r.options.mutationKey)return!1;if(s){if(Za(r.options.mutationKey)!==Za(c))return!1}else if(!gl(r.options.mutationKey,c))return!1}return!(i&&r.state.status!==i||o&&!o(r))}function Eh(t,r){return(r?.queryKeyHashFn||Za)(t)}function Za(t){return JSON.stringify(t,(r,s)=>Xd(s)?Object.keys(s).sort().reduce((i,o)=>(i[o]=s[o],i),{}):s)}function gl(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(s=>gl(t[s],r[s])):!1}function Db(t,r){if(t===r)return t;const s=dy(t)&&dy(r);if(s||Xd(t)&&Xd(r)){const i=s?t:Object.keys(t),o=i.length,c=s?r:Object.keys(r),d=c.length,h=s?[]:{},p=new Set(i);let m=0;for(let v=0;v{setTimeout(r,t)})}function Kd(t,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,r):s.structuralSharing!==!1?Db(t,r):r}function F1(t,r,s=0){const i=[...t,r];return s&&i.length>s?i.slice(1):i}function I1(t,r,s=0){const i=[r,...t];return s&&i.length>s?i.slice(0,-1):i}var Ch=Symbol();function jb(t,r){return!t.queryFn&&r?.initialPromise?()=>r.initialPromise:!t.queryFn||t.queryFn===Ch?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function kb(t,r){return typeof t=="function"?t(...r):!!t}var Z1=class extends si{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!Ia&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",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(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Th=new Z1,Y1=class extends si{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!Ia&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}}}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(s=>{s(t)}))}isOnline(){return this.#t}},wc=new Y1;function $d(){let t,r;const s=new Promise((o,c)=>{t=o,r=c});s.status="pending",s.catch(()=>{});function i(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{i({status:"fulfilled",value:o}),t(o)},s.reject=o=>{i({status:"rejected",reason:o}),r(o)},s}function Q1(t){return Math.min(1e3*2**t,3e4)}function zb(t){return(t??"online")==="online"?wc.isOnline():!0}var Ub=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Lb(t){let r=!1,s=0,i;const o=$d(),c=()=>o.status!=="pending",d=w=>{c()||(_(new Ub(w)),t.abort?.())},h=()=>{r=!0},p=()=>{r=!1},m=()=>Th.isFocused()&&(t.networkMode==="always"||wc.isOnline())&&t.canRun(),v=()=>zb(t.networkMode)&&t.canRun(),x=w=>{c()||(i?.(),o.resolve(w))},_=w=>{c()||(i?.(),o.reject(w))},E=()=>new Promise(w=>{i=A=>{(c()||m())&&w(A)},t.onPause?.()}).then(()=>{i=void 0,c()||t.onContinue?.()}),R=()=>{if(c())return;let w;const A=s===0?t.initialPromise:void 0;try{w=A??t.fn()}catch(U){w=Promise.reject(U)}Promise.resolve(w).then(x).catch(U=>{if(c())return;const N=t.retry??(Ia?0:3),L=t.retryDelay??Q1,k=typeof L=="function"?L(s,U):L,M=N===!0||typeof N=="number"&&sm()?void 0:E()).then(()=>{r?_(U):R()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(i?.(),o),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?R():E().then(R),o)}}var X1=t=>setTimeout(t,0);function K1(){let t=[],r=0,s=h=>{h()},i=h=>{h()},o=X1;const c=h=>{r?t.push(h):o(()=>{s(h)})},d=()=>{const h=t;t=[],h.length&&o(()=>{i(()=>{h.forEach(p=>{s(p)})})})};return{batch:h=>{let p;r++;try{p=h()}finally{r--,r||d()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{o=h}}}var Tt=K1(),Pb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qd(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ia?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},$1=class extends Pb{#t;#e;#n;#r;#a;#i;#l;constructor(t){super(),this.#l=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=W1(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.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,r){const s=Kd(this.state.data,t,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(t,r){this.#s({type:"setState",state:t,setStateOptions:r})}cancel(t){const r=this.#a?.promise;return this.#a?.cancel(t),r?r.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(t=>En(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ch||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ca(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:!Nb(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.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(r=>r!==t),this.observers.length||(this.#a&&(this.#l?this.#a.cancel({revert:!0}):this.#a.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,r){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#l=!0,s.signal)})},o=()=>{const h=jb(this.options,r),m=(()=>{const v={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(v),v})();return this.#l=!1,this.options.persister?this.options.persister(h,m,this):h(m)},d=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return i(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=Lb({initialPromise:r?.initialPromise,fn:d.fetchFn,abort:s.abort.bind(s),onFail:(h,p)=>{this.#s({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#a.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 Ub){if(h.silent)return this.#a.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 r=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Vb(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,data:t.data,dataUpdateCount:s.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 o=t.error;return{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=r(this.state),Tt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function Vb(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zb(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function W1(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,s=r!==void 0,i=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var J1=class extends si{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,r,s){const i=r.queryKey,o=r.queryHash??Eh(i,r);let c=this.get(o);return c||(c=new $1({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=this.#t.get(t.queryHash);r&&(t.destroy(),r===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const r={exact:!0,...t};return this.getAll().find(s=>uy(r,s))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(s=>uy(t,s)):r}notify(t){Tt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},eE=class extends Pb{#t;#e;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#t=[],this.state=t.state||Bb(),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(r=>r!==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 r=()=>{this.#r({type:"continue"})};this.#n=Lb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(o,c)=>{this.#r({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",i=!this.#n.canStart();try{if(s)r();else{this.#r({type:"pending",variables:t,isPaused:i}),await this.#e.config.onMutate?.(t,this);const c=await this.options.onMutate?.(t);c!==this.state.context&&this.#r({type:"pending",context:c,variables:t,isPaused:i})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,t,this.state.context,this),await this.options.onSuccess?.(o,t,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,t,this.state.context),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,t,this.state.context,this),await this.options.onError?.(o,t,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,t,this.state.context),o}finally{this.#r({type:"error",error:o})}}finally{this.#e.runNext(this)}}#r(t){const r=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,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{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Tt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function Bb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tE=class extends si{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,r,s){const i=new eE({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(r),state:s});return this.add(i),i}add(t){this.#t.add(t);const r=ic(t);if(typeof r=="string"){const s=this.#e.get(r);s?s.push(t):this.#e.set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const r=ic(t);if(typeof r=="string"){const s=this.#e.get(r);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&this.#e.delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=ic(t);if(typeof r=="string"){const i=this.#e.get(r)?.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){const r=ic(t);return typeof r=="string"?this.#e.get(r)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Tt.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 r={exact:!0,...t};return this.getAll().find(s=>fy(r,s))}findAll(t={}){return this.getAll().filter(r=>fy(t,r))}notify(t){Tt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Tt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Ft))))}};function ic(t){return t.options.scope?.id}function my(t){return{onFetch:(r,s)=>{const i=r.options,o=r.fetchOptions?.meta?.fetchMore?.direction,c=r.state.data?.pages||[],d=r.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let v=!1;const x=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(r.signal.aborted?v=!0:r.signal.addEventListener("abort",()=>{v=!0}),r.signal)})},_=jb(r.options,r.fetchOptions),E=async(R,w,A)=>{if(v)return Promise.reject();if(w==null&&R.pages.length)return Promise.resolve(R);const N=(()=>{const Z={client:r.client,queryKey:r.queryKey,pageParam:w,direction:A?"backward":"forward",meta:r.options.meta};return x(Z),Z})(),L=await _(N),{maxPages:k}=r.options,M=A?I1:F1;return{pages:M(R.pages,L,k),pageParams:M(R.pageParams,w,k)}};if(o&&c.length){const R=o==="backward",w=R?nE:py,A={pages:c,pageParams:d},U=w(i,A);h=await E(A,U,R)}else{const R=t??c.length;do{const w=p===0?d[0]??i.initialPageParam:py(i,h);if(p>0&&w==null)break;h=await E(h,w),p++}while(pr.options.persister?.(m,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=m}}}function py(t,{pages:r,pageParams:s}){const i=r.length-1;return r.length>0?t.getNextPageParam(r[i],r,s[i],s):void 0}function nE(t,{pages:r,pageParams:s}){return r.length>0?t.getPreviousPageParam?.(r[0],r,s[0],s):void 0}var rE=class{#t;#e;#n;#r;#a;#i;#l;#s;constructor(t={}){this.#t=t.queryCache||new J1,this.#e=t.mutationCache||new tE,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#l=Th.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=wc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#l?.(),this.#l=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 r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),s=this.#t.build(this,r),i=s.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(ca(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:r,state:s})=>{const i=s.data;return[r,i]})}setQueryData(t,r,s){const i=this.defaultQueryOptions({queryKey:t}),c=this.#t.get(i.queryHash)?.state.data,d=q1(r,c);if(d!==void 0)return this.#t.build(this,i).setData(d,{...s,manual:!0})}setQueriesData(t,r,s){return Tt.batch(()=>this.#t.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,s)]))}getQueryState(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state}removeQueries(t){const r=this.#t;Tt.batch(()=>{r.findAll(t).forEach(s=>{r.remove(s)})})}resetQueries(t,r){const s=this.#t;return Tt.batch(()=>(s.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const s={revert:!0,...r},i=Tt.batch(()=>this.#t.findAll(t).map(o=>o.cancel(s)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(t,r={}){return Tt.batch(()=>(this.#t.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},r)))}refetchQueries(t,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},i=Tt.batch(()=>this.#t.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,s);return s.throwOnError||(c=c.catch(Ft)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(Ft)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const s=this.#t.build(this,r);return s.isStaleByTime(ca(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ft).catch(Ft)}fetchInfiniteQuery(t){return t.behavior=my(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ft).catch(Ft)}ensureInfiniteQueryData(t){return t.behavior=my(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return wc.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,r){this.#r.set(Za(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...this.#r.values()],s={};return r.forEach(i=>{gl(t,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(t,r){this.#a.set(Za(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...this.#a.values()],s={};return r.forEach(i=>{gl(t,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const r={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=Eh(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Ch&&(r.enabled=!1),r}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()}},aE=class extends si{constructor(t,r){super(),this.options=r,this.#t=t,this.#s=null,this.#l=$d(),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#l;#s;#p;#d;#h;#c;#u;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),vy(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wd(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wd(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(t){const r=this.options,s=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 En(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),r._defaulted&&!_c(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&gy(this.#e,s,this.options,r)&&this.#f(),this.updateResult(),i&&(this.#e!==s||En(this.options.enabled,this.#e)!==En(r.enabled,this.#e)||ca(this.options.staleTime,this.#e)!==ca(r.staleTime,this.#e))&&this.#v();const o=this.#g();i&&(this.#e!==s||En(this.options.enabled,this.#e)!==En(r.enabled,this.#e)||o!==this.#o)&&this.#y(o)}getOptimisticResult(t){const r=this.#t.getQueryCache().build(this.#t,t),s=this.createResult(r,t);return iE(this,s)&&(this.#r=s,this.#i=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(t,r){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),r?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,i))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=this.#t.defaultQueryOptions(t),s=this.#t.getQueryCache().build(this.#t,r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(t){this.#_();let r=this.#e.fetch(this.options,t);return t?.throwOnError||(r=r.catch(Ft)),r}#v(){this.#x();const t=ca(this.options.staleTime,this.#e);if(Ia||this.#r.isStale||!Qd(t))return;const s=Nb(this.#r.dataUpdatedAt,t)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},s)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#o=t,!(Ia||En(this.options.enabled,this.#e)===!1||!Qd(this.#o)||this.#o===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Th.isFocused())&&this.#f()},this.#o))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(t,r){const s=this.#e,i=this.options,o=this.#r,c=this.#a,d=this.#i,p=t!==s?t.state:this.#n,{state:m}=t;let v={...m},x=!1,_;if(r._optimisticResults){const F=this.hasListeners(),te=!F&&vy(t,r),ie=F&&gy(t,s,r,i);(te||ie)&&(v={...v,...Vb(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:E,errorUpdatedAt:R,status:w}=v;_=v.data;let A=!1;if(r.placeholderData!==void 0&&_===void 0&&w==="pending"){let F;o?.isPlaceholderData&&r.placeholderData===d?.placeholderData?(F=o.data,A=!0):F=typeof r.placeholderData=="function"?r.placeholderData(this.#h?.state.data,this.#h):r.placeholderData,F!==void 0&&(w="success",_=Kd(o?.data,F,r),x=!0)}if(r.select&&_!==void 0&&!A)if(o&&_===c?.data&&r.select===this.#p)_=this.#d;else try{this.#p=r.select,_=r.select(_),_=Kd(o?.data,_,r),this.#d=_,this.#s=null}catch(F){this.#s=F}this.#s&&(E=this.#s,_=this.#d,R=Date.now(),w="error");const U=v.fetchStatus==="fetching",N=w==="pending",L=w==="error",k=N&&U,M=_!==void 0,I={status:w,fetchStatus:v.fetchStatus,isPending:N,isSuccess:w==="success",isError:L,isInitialLoading:k,isLoading:k,data:_,dataUpdatedAt:v.dataUpdatedAt,error:E,errorUpdatedAt:R,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:U,isRefetching:U&&!N,isLoadingError:L&&!M,isPaused:v.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:L&&M,isStale:Ah(t,r),refetch:this.refetch,promise:this.#l,isEnabled:En(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const F=ve=>{I.status==="error"?ve.reject(I.error):I.data!==void 0&&ve.resolve(I.data)},te=()=>{const ve=this.#l=I.promise=$d();F(ve)},ie=this.#l;switch(ie.status){case"pending":t.queryHash===s.queryHash&&F(ie);break;case"fulfilled":(I.status==="error"||I.data!==ie.value)&&te();break;case"rejected":(I.status!=="error"||I.error!==ie.reason)&&te();break}}return I}updateResult(){const t=this.#r,r=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#e),_c(r,t))return;this.#r=r;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(d=>{const h=d;return this.#r[h]!==t[h]&&c.has(h)})};this.#w({listeners:s()})}#_(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const r=this.#e;this.#e=t,this.#n=t.state,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(t){Tt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function sE(t,r){return En(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function vy(t,r){return sE(t,r)||t.state.data!==void 0&&Wd(t,r,r.refetchOnMount)}function Wd(t,r,s){if(En(r.enabled,t)!==!1&&ca(r.staleTime,t)!=="static"){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Ah(t,r)}return!1}function gy(t,r,s,i){return(t!==r||En(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ah(t,s)}function Ah(t,r){return En(r.enabled,t)!==!1&&t.isStaleByTime(ca(r.staleTime,t))}function iE(t,r){return!_c(t.getCurrentResult(),r)}var lE=class extends si{#t;#e=void 0;#n;#r;constructor(r,s){super(),this.#t=r,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const s=this.options;this.options=this.#t.defaultMutationOptions(r),_c(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&Za(s.mutationKey)!==Za(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#a(),this.#i(r)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(r,s){return this.#r=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(r)}#a(){const r=this.#n?.state??Bb();this.#e={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#i(r){Tt.batch(()=>{if(this.#r&&this.hasListeners()){const s=this.#e.variables,i=this.#e.context;r?.type==="success"?(this.#r.onSuccess?.(r.data,s,i),this.#r.onSettled?.(r.data,null,s,i)):r?.type==="error"&&(this.#r.onError?.(r.error,s,i),this.#r.onSettled?.(void 0,r.error,s,i))}this.listeners.forEach(s=>{s(this.#e)})})}},Ad={exports:{}},Le={};/** * @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 yy;function oE(){if(yy)return Le;yy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,w={};function A(T,Y,le){this.props=T,this.context=Y,this.refs=w,this.updater=le||E}A.prototype.isReactComponent={},A.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function U(){}U.prototype=A.prototype;function N(T,Y,le){this.props=T,this.context=Y,this.refs=w,this.updater=le||E}var L=N.prototype=new U;L.constructor=N,R(L,A.prototype),L.isPureReactComponent=!0;var k=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function I(T,Y,le,ee,ue,Oe){return le=Oe.ref,{$$typeof:t,type:T,key:Y,ref:le!==void 0?le:null,props:Oe}}function F(T,Y){return I(T.type,Y,void 0,void 0,void 0,T.props)}function te(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function ie(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(le){return Y[le]})}var ve=/\/+/g;function ae(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?ie(""+T.key):Y.toString(36)}function se(){}function ce(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(se,se):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function me(T,Y,le,ee,ue){var Oe=typeof T;(Oe==="undefined"||Oe==="boolean")&&(T=null);var _e=!1;if(T===null)_e=!0;else switch(Oe){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(T.$$typeof){case t:case r:_e=!0;break;case v:return _e=T._init,me(_e(T._payload),Y,le,ee,ue)}}if(_e)return ue=ue(T),_e=ee===""?"."+ae(T,0):ee,k(ue)?(le="",_e!=null&&(le=_e.replace(ve,"$&/")+"/"),me(ue,Y,le,"",function($e){return $e})):ue!=null&&(te(ue)&&(ue=F(ue,le+(ue.key==null||T&&T.key===ue.key?"":(""+ue.key).replace(ve,"$&/")+"/")+_e)),Y.push(ue)),1;_e=0;var ne=ee===""?".":ee+":";if(k(T))for(var Te=0;Te{const r=b.useContext(qb);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},$D=({client:t,children:r})=>(b.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),g.jsx(qb.Provider,{value:t,children:r})),Fb=b.createContext(!1),cE=()=>b.useContext(Fb);Fb.Provider;function uE(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var fE=b.createContext(uE()),dE=()=>b.useContext(fE),hE=(t,r)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(r.isReset()||(t.retryOnMount=!1))},mE=t=>{b.useEffect(()=>{t.clearReset()},[t])},pE=({result:t,errorResetBoundary:r,throwOnError:s,query:i,suspense:o})=>t.isError&&!r.isReset()&&!t.isFetching&&i&&(o&&t.data===void 0||kb(s,[t.error,i])),vE=t=>{if(t.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...i)=>r(s(...i)):r(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},gE=(t,r)=>t.isLoading&&t.isFetching&&!r,yE=(t,r)=>t?.suspense&&r.isPending,xy=(t,r,s)=>r.fetchOptimistic(t).catch(()=>{s.clearReset()});function bE(t,r,s){const i=cE(),o=dE(),c=Gb(),d=c.defaultQueryOptions(t);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=i?"isRestoring":"optimistic",vE(d),hE(d,o),mE(o);const h=!c.getQueryCache().get(d.queryHash),[p]=b.useState(()=>new r(c,d)),m=p.getOptimisticResult(d),v=!i&&t.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(x=>{const _=v?p.subscribe(Tt.batchCalls(x)):Ft;return p.updateResult(),_},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(d)},[d,p]),yE(d,m))throw xy(d,p,o);if(pE({result:m,errorResetBoundary:o,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!Ia&&gE(m,i)&&(h?xy(d,p,o):c.getQueryCache().get(d.queryHash)?.promise)?.catch(Ft).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function Jd(t,r){return bE(t,aE)}function Ib(t,r){const s=Gb(),[i]=b.useState(()=>new lE(s,t));b.useEffect(()=>{i.setOptions(t)},[i,t]);const o=b.useSyncExternalStore(b.useCallback(d=>i.subscribe(Tt.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=b.useCallback((d,h)=>{i.mutate(d,h).catch(Ft)},[i]);if(o.error&&kb(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}const WD=new rE({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var Rd={exports:{}},cl={},Od={exports:{}},Md={};/** * @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 Sy;function xE(){return Sy||(Sy=1,(function(t){function r(j,Q){var H=j.length;j.push(Q);e:for(;0>>1,T=j[J];if(0>>1;Jo(ee,H))ueo(Oe,ee)?(j[J]=Oe,j[ue]=H,J=ue):(j[J]=ee,j[le]=H,J=le);else if(ueo(Oe,H))j[J]=Oe,j[ue]=H,J=ue;else break e}}return Q}function o(j,Q){var H=j.sortIndex-Q.sortIndex;return H!==0?H:j.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var p=[],m=[],v=1,x=null,_=3,E=!1,R=!1,w=!1,A=!1,U=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var Q=s(m);Q!==null;){if(Q.callback===null)i(m);else if(Q.startTime<=j)i(m),Q.sortIndex=Q.expirationTime,r(p,Q);else break;Q=s(m)}}function M(j){if(w=!1,k(j),!R)if(s(p)!==null)R=!0,Z||(Z=!0,ae());else{var Q=s(m);Q!==null&&me(M,Q.startTime-j)}}var Z=!1,I=-1,F=5,te=-1;function ie(){return A?!0:!(t.unstable_now()-tej&&ie());){var J=x.callback;if(typeof J=="function"){x.callback=null,_=x.priorityLevel;var T=J(x.expirationTime<=j);if(j=t.unstable_now(),typeof T=="function"){x.callback=T,k(j),Q=!0;break t}x===s(p)&&i(p),k(j)}else i(p);x=s(p)}if(x!==null)Q=!0;else{var Y=s(m);Y!==null&&me(M,Y.startTime-j),Q=!1}}break e}finally{x=null,_=H,E=!1}Q=void 0}}finally{Q?ae():Z=!1}}}var ae;if(typeof L=="function")ae=function(){L(ve)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ve,ae=function(){ce.postMessage(null)}}else ae=function(){U(ve,0)};function me(j,Q){I=U(function(){j(t.unstable_now())},Q)}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(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125J?(j.sortIndex=H,r(m,j),s(p)===null&&j===s(m)&&(w?(N(I),I=-1):w=!0,me(M,H-J))):(j.sortIndex=T,r(p,j),R||E||(R=!0,Z||(Z=!0,ae()))),j},t.unstable_shouldYield=ie,t.unstable_wrapCallback=function(j){var Q=_;return function(){var H=_;_=Q;try{return j.apply(this,arguments)}finally{_=H}}}})(Md)),Md}var _y;function SE(){return _y||(_y=1,Od.exports=xE()),Od.exports}var Nd={exports:{}},Bt={};/** * @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 wy;function _E(){if(wy)return Bt;wy=1;var t=Rh();function r(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(r){console.error(r)}}return t(),Nd.exports=_E(),Nd.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 Cy;function wE(){if(Cy)return cl;Cy=1;var t=SE(),r=Rh(),s=Zb();function i(e){var n="https://react.dev/errors/"+e;if(1T||(e.current=J[T],J[T]=null,T--)}function ee(e,n){T++,J[T]=e.current,e.current=n}var ue=Y(null),Oe=Y(null),_e=Y(null),ne=Y(null);function Te(e,n){switch(ee(_e,n),ee(Oe,e),ee(ue,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Ug(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Ug(n),e=Lg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(ue),ee(ue,e)}function $e(){le(ue),le(Oe),le(_e)}function He(e){e.memoizedState!==null&&ee(ne,e);var n=ue.current,a=Lg(n,e.type);n!==a&&(ee(Oe,e),ee(ue,a))}function Ie(e){Oe.current===e&&(le(ue),le(Oe)),ne.current===e&&(le(ne),rl._currentValue=H)}var We=Object.prototype.hasOwnProperty,At=t.unstable_scheduleCallback,Qt=t.unstable_cancelCallback,kr=t.unstable_shouldYield,Sa=t.unstable_requestPaint,Lt=t.unstable_now,ym=t.unstable_getCurrentPriorityLevel,di=t.unstable_ImmediatePriority,O=t.unstable_UserBlockingPriority,B=t.unstable_NormalPriority,K=t.unstable_LowPriority,pe=t.unstable_IdlePriority,fe=t.log,oe=t.unstable_setDisableYieldValue,we=null,ze=null;function Ze(e){if(typeof fe=="function"&&oe(e),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(we,e)}catch{}}var ot=Math.clz32?Math.clz32:hu,ns=Math.log,Bn=Math.LN2;function hu(e){return e>>>=0,e===0?32:31-(ns(e)/Bn|0)|0}var zr=256,Ur=4194304;function ir(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 _a(e,n,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~f,l!==0?u=ir(l):(y&=S,y!==0?u=ir(y):a||(a=S&~e,a!==0&&(u=ir(a))))):(S=l&~f,S!==0?u=ir(S):y!==0?u=ir(y):a||(a=l&~e,a!==0&&(u=ir(a)))),u===0?0:n!==0&&n!==u&&(n&f)===0&&(f=u&-u,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:u}function wa(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ql(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 bm(){var e=zr;return zr<<=1,(zr&4194048)===0&&(zr=256),e}function xm(){var e=Ur;return Ur<<=1,(Ur&62914560)===0&&(Ur=4194304),e}function mu(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function hi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function E_(e,n,a,l,u,f){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,V=e.hiddenUpdates;for(a=y&~a;0)":-1u||C[l]!==V[u]){var X=` `+C[l].replace(" at new "," at ");return e.displayName&&X.includes("")&&(X=X.replace("",e.displayName)),X}while(1<=l&&0<=u);break}}}finally{xu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?os(a):""}function M_(e){switch(e.tag){case 26:case 27:case 5:return os(e.type);case 16:return os("Lazy");case 13:return os("Suspense");case 19:return os("SuspenseList");case 0:case 15:return Su(e.type,!1);case 11:return Su(e.type.render,!1);case 1:return Su(e.type,!0);case 31:return os("Activity");default:return""}}function Mm(e){try{var n="";do n+=M_(e),e=e.return;while(e);return n}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function N_(e){var n=Nm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,f=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(y){l=""+y,f.call(this,y)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function $l(e){e._valueTracker||(e._valueTracker=N_(e))}function Dm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=Nm(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function Wl(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 D_=/[\n"\\]/g;function vn(e){return e.replace(D_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function _u(e,n,a,l,u,f,y,S){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),n!=null?y==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+pn(n)):e.value!==""+pn(n)&&(e.value=""+pn(n)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),n!=null?wu(e,y,pn(n)):a!=null?wu(e,y,pn(a)):l!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+pn(S):e.removeAttribute("name")}function jm(e,n,a,l,u,f,y,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;a=a!=null?""+pn(a):"",n=n!=null?""+pn(n):a,S||n===e.value||(e.value=n),e.defaultValue=n}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y)}function wu(e,n,a){n==="number"&&Wl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function cs(e,n,a,l){if(e=e.options,n){n={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ru=!1;if(or)try{var gi={};Object.defineProperty(gi,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{Ru=!1}var Pr=null,Ou=null,eo=null;function Bm(){if(eo)return eo;var e,n=Ou,a=n.length,l,u="value"in Pr?Pr.value:Pr.textContent,f=u.length;for(e=0;e=xi),Zm=" ",Ym=!1;function Qm(e,n){switch(e){case"keyup":return iw.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hs=!1;function ow(e,n){switch(e){case"compositionend":return Xm(n);case"keypress":return n.which!==32?null:(Ym=!0,Zm);case"textInput":return e=n.data,e===Zm&&Ym?null:e;default:return null}}function cw(e,n){if(hs)return e==="compositionend"||!ku&&Qm(e,n)?(e=Bm(),eo=Ou=Pr=null,hs=!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:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=rp(a)}}function sp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?sp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ip(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Wl(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=Wl(e.document)}return n}function Lu(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 gw=or&&"documentMode"in document&&11>=document.documentMode,ms=null,Pu=null,Ei=null,Vu=!1;function lp(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vu||ms==null||ms!==Wl(l)||(l=ms,"selectionStart"in l&&Lu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ei&&wi(Ei,l)||(Ei=l,l=Io(Pu,"onSelect"),0>=y,u-=y,ur=1<<32-ot(n)+u|a<f?f:8;var y=j.T,S={};j.T=S,Cf(e,!1,n,a);try{var C=u(),V=j.S;if(V!==null&&V(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var X=Tw(C,l);Vi(e,n,X,on(e))}else Vi(e,n,l,on(e))}catch(W){Vi(e,n,{then:function(){},status:"rejected",reason:W},on())}finally{Q.p=f,j.T=y}}function Nw(){}function wf(e,n,a,l){if(e.tag!==5)throw Error(i(476));var u=ov(e).queue;lv(e,u,n,H,a===null?Nw:function(){return cv(e),a(l)})}function ov(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:H},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function cv(e){var n=ov(e).next.queue;Vi(e,n,{},on())}function Ef(){return Vt(rl)}function uv(){return xt().memoizedState}function fv(){return xt().memoizedState}function Dw(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=on();e=Hr(a);var l=qr(n,e,a);l!==null&&(cn(l,n,a),ji(l,n,a)),n={cache:Ju()},e.payload=n;return}n=n.return}}function jw(e,n,a){var l=on();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Co(e)?hv(n,a):(a=Gu(e,n,a,l),a!==null&&(cn(a,e,l),mv(a,n,l)))}function dv(e,n,a){var l=on();Vi(e,n,a,l)}function Vi(e,n,a,l){var u={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Co(e))hv(n,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var y=n.lastRenderedState,S=f(y,a);if(u.hasEagerState=!0,u.eagerState=S,nn(S,y))return lo(e,n,u,0),ct===null&&io(),!1}catch{}finally{}if(a=Gu(e,n,u,l),a!==null)return cn(a,e,l),mv(a,n,l),!0}return!1}function Cf(e,n,a,l){if(l={lane:2,revertLane:rd(),action:l,hasEagerState:!1,eagerState:null,next:null},Co(e)){if(n)throw Error(i(479))}else n=Gu(e,a,l,2),n!==null&&cn(n,e,2)}function Co(e){var n=e.alternate;return e===Ve||n!==null&&n===Ve}function hv(e,n){Es=bo=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function mv(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,_m(e,a)}}var To={readContext:Vt,use:So,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt},pv={readContext:Vt,use:So,useCallback:function(e,n){return $t().memoizedState=[e,n===void 0?null:n],e},useContext:Vt,useEffect:Wp,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Eo(4194308,4,nv.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Eo(4194308,4,e,n)},useInsertionEffect:function(e,n){Eo(4,2,e,n)},useMemo:function(e,n){var a=$t();n=n===void 0?null:n;var l=e();if(Ua){Ze(!0);try{e()}finally{Ze(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=$t();if(a!==void 0){var u=a(n);if(Ua){Ze(!0);try{a(n)}finally{Ze(!1)}}}else u=n;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=jw.bind(null,Ve,e),[l.memoizedState,e]},useRef:function(e){var n=$t();return e={current:e},n.memoizedState=e},useState:function(e){e=bf(e);var n=e.queue,a=dv.bind(null,Ve,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Sf,useDeferredValue:function(e,n){var a=$t();return _f(a,e,n)},useTransition:function(){var e=bf(!1);return e=lv.bind(null,Ve,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=Ve,u=$t();if(et){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),ct===null)throw Error(i(349));(Xe&124)!==0||Up(l,n,a)}u.memoizedState=a;var f={value:a,getSnapshot:n};return u.queue=f,Wp(Pp.bind(null,l,f,e),[e]),l.flags|=2048,Ts(9,wo(),Lp.bind(null,l,f,a,n),null),a},useId:function(){var e=$t(),n=ct.identifierPrefix;if(et){var a=fr,l=ur;a=(l&~(1<<32-ot(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=xo++,0Me?(Nt=Ce,Ce=null):Nt=Ce.sibling;var Je=q(z,Ce,P[Me],$);if(Je===null){Ce===null&&(Ce=Nt);break}e&&Ce&&Je.alternate===null&&n(z,Ce),D=f(Je,D,Me),qe===null?be=Je:qe.sibling=Je,qe=Je,Ce=Nt}if(Me===P.length)return a(z,Ce),et&&Ma(z,Me),be;if(Ce===null){for(;MeMe?(Nt=Ce,Ce=null):Nt=Ce.sibling;var sa=q(z,Ce,Je.value,$);if(sa===null){Ce===null&&(Ce=Nt);break}e&&Ce&&sa.alternate===null&&n(z,Ce),D=f(sa,D,Me),qe===null?be=sa:qe.sibling=sa,qe=sa,Ce=Nt}if(Je.done)return a(z,Ce),et&&Ma(z,Me),be;if(Ce===null){for(;!Je.done;Me++,Je=P.next())Je=W(z,Je.value,$),Je!==null&&(D=f(Je,D,Me),qe===null?be=Je:qe.sibling=Je,qe=Je);return et&&Ma(z,Me),be}for(Ce=l(Ce);!Je.done;Me++,Je=P.next())Je=G(Ce,z,Me,Je.value,$),Je!==null&&(e&&Je.alternate!==null&&Ce.delete(Je.key===null?Me:Je.key),D=f(Je,D,Me),qe===null?be=Je:qe.sibling=Je,qe=Je);return e&&Ce.forEach(function(z1){return n(z,z1)}),et&&Ma(z,Me),be}function it(z,D,P,$){if(typeof P=="object"&&P!==null&&P.type===R&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case _:e:{for(var be=P.key;D!==null;){if(D.key===be){if(be=P.type,be===R){if(D.tag===7){a(z,D.sibling),$=u(D,P.props.children),$.return=z,z=$;break e}}else if(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===F&&gv(be)===D.type){a(z,D.sibling),$=u(D,P.props),Hi($,P),$.return=z,z=$;break e}a(z,D);break}else n(z,D);D=D.sibling}P.type===R?($=Ra(P.props.children,z.mode,$,P.key),$.return=z,z=$):($=co(P.type,P.key,P.props,null,z.mode,$),Hi($,P),$.return=z,z=$)}return y(z);case E:e:{for(be=P.key;D!==null;){if(D.key===be)if(D.tag===4&&D.stateNode.containerInfo===P.containerInfo&&D.stateNode.implementation===P.implementation){a(z,D.sibling),$=u(D,P.children||[]),$.return=z,z=$;break e}else{a(z,D);break}else n(z,D);D=D.sibling}$=Zu(P,z.mode,$),$.return=z,z=$}return y(z);case F:return be=P._init,P=be(P._payload),it(z,D,P,$)}if(me(P))return je(z,D,P,$);if(ae(P)){if(be=ae(P),typeof be!="function")throw Error(i(150));return P=be.call(P),Re(z,D,P,$)}if(typeof P.then=="function")return it(z,D,Ao(P),$);if(P.$$typeof===L)return it(z,D,mo(z,P),$);Ro(z,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,D!==null&&D.tag===6?(a(z,D.sibling),$=u(D,P),$.return=z,z=$):(a(z,D),$=Iu(P,z.mode,$),$.return=z,z=$),y(z)):a(z,D)}return function(z,D,P,$){try{Bi=0;var be=it(z,D,P,$);return As=null,be}catch(Ce){if(Ce===Ni||Ce===vo)throw Ce;var qe=rn(29,Ce,null,z.mode);return qe.lanes=$,qe.return=z,qe}finally{}}}var Rs=yv(!0),bv=yv(!1),Sn=Y(null),qn=null;function Fr(e){var n=e.alternate;ee(wt,wt.current&1),ee(Sn,e),qn===null&&(n===null||ws.current!==null||n.memoizedState!==null)&&(qn=e)}function xv(e){if(e.tag===22){if(ee(wt,wt.current),ee(Sn,e),qn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(qn=e)}}else Ir()}function Ir(){ee(wt,wt.current),ee(Sn,Sn.current)}function pr(e){le(Sn),qn===e&&(qn=null),le(wt)}var wt=Y(0);function Oo(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||pd(a)))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 Tf(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:v({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Af={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=on(),u=Hr(l);u.payload=n,a!=null&&(u.callback=a),n=qr(e,u,l),n!==null&&(cn(n,e,l),ji(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=on(),u=Hr(l);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=qr(e,u,l),n!==null&&(cn(n,e,l),ji(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=on(),l=Hr(a);l.tag=2,n!=null&&(l.callback=n),n=qr(e,l,a),n!==null&&(cn(n,e,a),ji(n,e,a))}};function Sv(e,n,a,l,u,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,y):n.prototype&&n.prototype.isPureReactComponent?!wi(a,l)||!wi(u,f):!0}function _v(e,n,a,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,l),n.state!==e&&Af.enqueueReplaceState(n,n.state,null)}function La(e,n){var a=n;if("ref"in n){a={};for(var l in n)l!=="ref"&&(a[l]=n[l])}if(e=e.defaultProps){a===n&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var Mo=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 wv(e){Mo(e)}function Ev(e){console.error(e)}function Cv(e){Mo(e)}function No(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function Tv(e,n,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Rf(e,n,a){return a=Hr(a),a.tag=3,a.payload={element:null},a.callback=function(){No(e,n)},a}function Av(e){return e=Hr(e),e.tag=3,e}function Rv(e,n,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=l.value;e.payload=function(){return u(f)},e.callback=function(){Tv(n,a,l)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Tv(n,a,l),typeof u!="function"&&($r===null?$r=new Set([this]):$r.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function zw(e,n,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=a.alternate,n!==null&&Ri(n,a,u,!0),a=Sn.current,a!==null){switch(a.tag){case 13:return qn===null?Wf():a.alternate===null&&mt===0&&(mt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===nf?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),ed(e,l,u)),!1;case 22:return a.flags|=65536,l===nf?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([l]):a.add(l)),ed(e,l,u)),!1}throw Error(i(435,a.tag))}return ed(e,l,u),Wf(),!1}if(et)return n=Sn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,l!==Xu&&(e=Error(i(422),{cause:l}),Ai(gn(e,a)))):(l!==Xu&&(n=Error(i(423),{cause:l}),Ai(gn(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=gn(l,a),u=Rf(e.stateNode,l,u),sf(e,u),mt!==4&&(mt=2)),!1;var f=Error(i(520),{cause:l});if(f=gn(f,a),Qi===null?Qi=[f]:Qi.push(f),mt!==4&&(mt=2),n===null)return!0;l=gn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Rf(a.stateNode,l,e),sf(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&($r===null||!$r.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Av(u),Rv(u,e,a,l),sf(a,u),!1}a=a.return}while(a!==null);return!1}var Ov=Error(i(461)),Ot=!1;function Dt(e,n,a,l){n.child=e===null?bv(n,null,a,l):Rs(n,e.child,a,l)}function Mv(e,n,a,l,u){a=a.render;var f=n.ref;if("ref"in l){var y={};for(var S in l)S!=="ref"&&(y[S]=l[S])}else y=l;return ka(n),l=ff(e,n,a,y,f,u),S=df(),e!==null&&!Ot?(hf(e,n,u),vr(e,n,u)):(et&&S&&Yu(n),n.flags|=1,Dt(e,n,l,u),n.child)}function Nv(e,n,a,l,u){if(e===null){var f=a.type;return typeof f=="function"&&!Fu(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,Dv(e,n,f,l,u)):(e=co(a.type,null,l,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Uf(e,u)){var y=f.memoizedProps;if(a=a.compare,a=a!==null?a:wi,a(y,l)&&e.ref===n.ref)return vr(e,n,u)}return n.flags|=1,e=cr(f,l),e.ref=n.ref,e.return=n,n.child=e}function Dv(e,n,a,l,u){if(e!==null){var f=e.memoizedProps;if(wi(f,l)&&e.ref===n.ref)if(Ot=!1,n.pendingProps=l=f,Uf(e,u))(e.flags&131072)!==0&&(Ot=!0);else return n.lanes=e.lanes,vr(e,n,u)}return Of(e,n,a,l,u)}function jv(e,n,a){var l=n.pendingProps,u=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;n.childLanes=f&~l}else n.childLanes=0,n.child=null;return kv(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&po(n,f!==null?f.cachePool:null),f!==null?Dp(n,f):of(),xv(n);else return n.lanes=n.childLanes=536870912,kv(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(po(n,f.cachePool),Dp(n,f),Ir(),n.memoizedState=null):(e!==null&&po(n,null),of(),Ir());return Dt(e,n,u,a),n.child}function kv(e,n,a,l){var u=tf();return u=u===null?null:{parent:_t._currentValue,pool:u},n.memoizedState={baseLanes:a,cachePool:u},e!==null&&po(n,null),of(),xv(n),e!==null&&Ri(e,n,l,!0),null}function Do(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Of(e,n,a,l,u){return ka(n),a=ff(e,n,a,l,void 0,u),l=df(),e!==null&&!Ot?(hf(e,n,u),vr(e,n,u)):(et&&l&&Yu(n),n.flags|=1,Dt(e,n,a,u),n.child)}function zv(e,n,a,l,u,f){return ka(n),n.updateQueue=null,a=kp(n,l,a,u),jp(e),l=df(),e!==null&&!Ot?(hf(e,n,f),vr(e,n,f)):(et&&l&&Yu(n),n.flags|=1,Dt(e,n,a,f),n.child)}function Uv(e,n,a,l,u){if(ka(n),n.stateNode===null){var f=ys,y=a.contextType;typeof y=="object"&&y!==null&&(f=Vt(y)),f=new a(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Af,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},rf(n),y=a.contextType,f.context=typeof y=="object"&&y!==null?Vt(y):ys,f.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Tf(n,a,y,l),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(y=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),y!==f.state&&Af.enqueueReplaceState(f,f.state,null),zi(n,l,f,u),ki(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){f=n.stateNode;var S=n.memoizedProps,C=La(a,S);f.props=C;var V=f.context,X=a.contextType;y=ys,typeof X=="object"&&X!==null&&(y=Vt(X));var W=a.getDerivedStateFromProps;X=typeof W=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,X||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||V!==y)&&_v(n,f,l,y),Br=!1;var q=n.memoizedState;f.state=q,zi(n,l,f,u),ki(),V=n.memoizedState,S||q!==V||Br?(typeof W=="function"&&(Tf(n,a,W,l),V=n.memoizedState),(C=Br||Sv(n,a,C,l,q,V,y))?(X||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=V),f.props=l,f.state=V,f.context=y,l=C):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{f=n.stateNode,af(e,n),y=n.memoizedProps,X=La(a,y),f.props=X,W=n.pendingProps,q=f.context,V=a.contextType,C=ys,typeof V=="object"&&V!==null&&(C=Vt(V)),S=a.getDerivedStateFromProps,(V=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==W||q!==C)&&_v(n,f,l,C),Br=!1,q=n.memoizedState,f.state=q,zi(n,l,f,u),ki();var G=n.memoizedState;y!==W||q!==G||Br||e!==null&&e.dependencies!==null&&ho(e.dependencies)?(typeof S=="function"&&(Tf(n,a,S,l),G=n.memoizedState),(X=Br||Sv(n,a,X,l,q,G,C)||e!==null&&e.dependencies!==null&&ho(e.dependencies))?(V||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,G,C),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,G,C)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=G),f.props=l,f.state=G,f.context=C,l=X):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(n.flags|=1024),l=!1)}return f=l,Do(e,n),l=(n.flags&128)!==0,f||l?(f=n.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&l?(n.child=Rs(n,e.child,null,u),n.child=Rs(n,null,a,u)):Dt(e,n,a,u),n.memoizedState=f.state,e=n.child):e=vr(e,n,u),e}function Lv(e,n,a,l){return Ti(),n.flags|=256,Dt(e,n,a,l),n.child}var Mf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nf(e){return{baseLanes:e,cachePool:Ep()}}function Df(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=_n),e}function Pv(e,n,a){var l=n.pendingProps,u=!1,f=(n.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),y&&(u=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,e===null){if(et){if(u?Fr(n):Ir(),et){var S=ht,C;if(C=S){e:{for(C=S,S=Hn;C.nodeType!==8;){if(!S){S=null;break e}if(C=Mn(C.nextSibling),C===null){S=null;break e}}S=C}S!==null?(n.memoizedState={dehydrated:S,treeContext:Oa!==null?{id:ur,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},C=rn(18,null,null,0),C.stateNode=S,C.return=n,n.child=C,qt=n,ht=null,C=!0):C=!1}C||Da(n)}if(S=n.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return pd(S)?n.lanes=32:n.lanes=536870912,null;pr(n)}return S=l.children,l=l.fallback,u?(Ir(),u=n.mode,S=jo({mode:"hidden",children:S},u),l=Ra(l,u,a,null),S.return=n,l.return=n,S.sibling=l,n.child=S,u=n.child,u.memoizedState=Nf(a),u.childLanes=Df(e,y,a),n.memoizedState=Mf,l):(Fr(n),jf(n,S))}if(C=e.memoizedState,C!==null&&(S=C.dehydrated,S!==null)){if(f)n.flags&256?(Fr(n),n.flags&=-257,n=kf(e,n,a)):n.memoizedState!==null?(Ir(),n.child=e.child,n.flags|=128,n=null):(Ir(),u=l.fallback,S=n.mode,l=jo({mode:"visible",children:l.children},S),u=Ra(u,S,a,null),u.flags|=2,l.return=n,u.return=n,l.sibling=u,n.child=l,Rs(n,e.child,null,a),l=n.child,l.memoizedState=Nf(a),l.childLanes=Df(e,y,a),n.memoizedState=Mf,n=u);else if(Fr(n),pd(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var V=y.dgst;y=V,l=Error(i(419)),l.stack="",l.digest=y,Ai({value:l,source:null,stack:null}),n=kf(e,n,a)}else if(Ot||Ri(e,n,a,!1),y=(a&e.childLanes)!==0,Ot||y){if(y=ct,y!==null&&(l=a&-a,l=(l&42)!==0?1:pu(l),l=(l&(y.suspendedLanes|a))!==0?0:l,l!==0&&l!==C.retryLane))throw C.retryLane=l,gs(e,l),cn(y,e,l),Ov;S.data==="$?"||Wf(),n=kf(e,n,a)}else S.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=C.treeContext,ht=Mn(S.nextSibling),qt=n,et=!0,Na=null,Hn=!1,e!==null&&(bn[xn++]=ur,bn[xn++]=fr,bn[xn++]=Oa,ur=e.id,fr=e.overflow,Oa=n),n=jf(n,l.children),n.flags|=4096);return n}return u?(Ir(),u=l.fallback,S=n.mode,C=e.child,V=C.sibling,l=cr(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,V!==null?u=cr(V,u):(u=Ra(u,S,a,null),u.flags|=2),u.return=n,l.return=n,l.sibling=u,n.child=l,l=u,u=n.child,S=e.child.memoizedState,S===null?S=Nf(a):(C=S.cachePool,C!==null?(V=_t._currentValue,C=C.parent!==V?{parent:V,pool:V}:C):C=Ep(),S={baseLanes:S.baseLanes|a,cachePool:C}),u.memoizedState=S,u.childLanes=Df(e,y,a),n.memoizedState=Mf,l):(Fr(n),a=e.child,e=a.sibling,a=cr(a,{mode:"visible",children:l.children}),a.return=n,a.sibling=null,e!==null&&(y=n.deletions,y===null?(n.deletions=[e],n.flags|=16):y.push(e)),n.child=a,n.memoizedState=null,a)}function jf(e,n){return n=jo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function jo(e,n){return e=rn(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function kf(e,n,a){return Rs(n,e.child,null,a),e=jf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Vv(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),$u(e.return,n,a)}function zf(e,n,a,l,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=u)}function Bv(e,n,a){var l=n.pendingProps,u=l.revealOrder,f=l.tail;if(Dt(e,n,l.children,a),l=wt.current,(l&2)!==0)l=l&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&&Vv(e,a,n);else if(e.tag===19)Vv(e,a,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}l&=1}switch(ee(wt,l),u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&Oo(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),zf(n,!1,u,a,f);break;case"backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&Oo(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}zf(n,!0,a,null,f);break;case"together":zf(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function vr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Kr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ri(e,n,a,!1),(a&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,a=cr(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=cr(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Uf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&ho(e)))}function Uw(e,n,a){switch(n.tag){case 3:Te(n,n.stateNode.containerInfo),Vr(n,_t,e.memoizedState.cache),Ti();break;case 27:case 5:He(n);break;case 4:Te(n,n.stateNode.containerInfo);break;case 10:Vr(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(Fr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Pv(e,n,a):(Fr(n),e=vr(e,n,a),e!==null?e.sibling:null);Fr(n);break;case 19:var u=(e.flags&128)!==0;if(l=(a&n.childLanes)!==0,l||(Ri(e,n,a,!1),l=(a&n.childLanes)!==0),u){if(l)return Bv(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(wt,wt.current),l)break;return null;case 22:case 23:return n.lanes=0,jv(e,n,a);case 24:Vr(n,_t,e.memoizedState.cache)}return vr(e,n,a)}function Hv(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Ot=!0;else{if(!Uf(e,a)&&(n.flags&128)===0)return Ot=!1,Uw(e,n,a);Ot=(e.flags&131072)!==0}else Ot=!1,et&&(n.flags&1048576)!==0&&gp(n,fo,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var l=n.elementType,u=l._init;if(l=u(l._payload),n.type=l,typeof l=="function")Fu(l)?(e=La(l,e),n.tag=1,n=Uv(null,n,l,e,a)):(n.tag=0,n=Of(null,n,l,e,a));else{if(l!=null){if(u=l.$$typeof,u===k){n.tag=11,n=Mv(null,n,l,e,a);break e}else if(u===I){n.tag=14,n=Nv(null,n,l,e,a);break e}}throw n=ce(l)||l,Error(i(306,n,""))}}return n;case 0:return Of(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,u=La(l,n.pendingProps),Uv(e,n,l,u,a);case 3:e:{if(Te(n,n.stateNode.containerInfo),e===null)throw Error(i(387));l=n.pendingProps;var f=n.memoizedState;u=f.element,af(e,n),zi(n,l,null,a);var y=n.memoizedState;if(l=y.cache,Vr(n,_t,l),l!==f.cache&&Wu(n,[_t],a,!0),ki(),l=y.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=Lv(e,n,l,a);break e}else if(l!==u){u=gn(Error(i(424)),n),Ai(u),n=Lv(e,n,l,a);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(ht=Mn(e.firstChild),qt=n,et=!0,Na=null,Hn=!0,a=bv(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ti(),l===u){n=vr(e,n,a);break e}Dt(e,n,l,a)}n=n.child}return n;case 26:return Do(e,n),e===null?(a=Ig(n.type,null,n.pendingProps,null))?n.memoizedState=a:et||(a=n.type,e=n.pendingProps,l=Yo(_e.current).createElement(a),l[Pt]=n,l[Xt]=e,kt(l,a,e),Rt(l),n.stateNode=l):n.memoizedState=Ig(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return He(n),e===null&&et&&(l=n.stateNode=qg(n.type,n.pendingProps,_e.current),qt=n,Hn=!0,u=ht,ea(n.type)?(vd=u,ht=Mn(l.firstChild)):ht=u),Dt(e,n,n.pendingProps.children,a),Do(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&et&&((u=l=ht)&&(l=u1(l,n.type,n.pendingProps,Hn),l!==null?(n.stateNode=l,qt=n,ht=Mn(l.firstChild),Hn=!1,u=!0):u=!1),u||Da(n)),He(n),u=n.type,f=n.pendingProps,y=e!==null?e.memoizedProps:null,l=f.children,dd(u,f)?l=null:y!==null&&dd(u,y)&&(n.flags|=32),n.memoizedState!==null&&(u=ff(e,n,Rw,null,null,a),rl._currentValue=u),Do(e,n),Dt(e,n,l,a),n.child;case 6:return e===null&&et&&((e=a=ht)&&(a=f1(a,n.pendingProps,Hn),a!==null?(n.stateNode=a,qt=n,ht=null,e=!0):e=!1),e||Da(n)),null;case 13:return Pv(e,n,a);case 4:return Te(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Rs(n,null,l,a):Dt(e,n,l,a),n.child;case 11:return Mv(e,n,n.type,n.pendingProps,a);case 7:return Dt(e,n,n.pendingProps,a),n.child;case 8:return Dt(e,n,n.pendingProps.children,a),n.child;case 12:return Dt(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,Vr(n,n.type,l.value),Dt(e,n,l.children,a),n.child;case 9:return u=n.type._context,l=n.pendingProps.children,ka(n),u=Vt(u),l=l(u),n.flags|=1,Dt(e,n,l,a),n.child;case 14:return Nv(e,n,n.type,n.pendingProps,a);case 15:return Dv(e,n,n.type,n.pendingProps,a);case 19:return Bv(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=jo(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=cr(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return jv(e,n,a);case 24:return ka(n),l=Vt(_t),e===null?(u=tf(),u===null&&(u=ct,f=Ju(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),n.memoizedState={parent:l,cache:u},rf(n),Vr(n,_t,u)):((e.lanes&a)!==0&&(af(e,n),zi(n,null,null,a),ki()),u=e.memoizedState,f=n.memoizedState,u.parent!==l?(u={parent:l,cache:l},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Vr(n,_t,l)):(l=f.cache,Vr(n,_t,l),l!==u.cache&&Wu(n,[_t],a,!0))),Dt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function gr(e){e.flags|=4}function qv(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Kg(n)){if(n=Sn.current,n!==null&&((Xe&4194048)===Xe?qn!==null:(Xe&62914560)!==Xe&&(Xe&536870912)===0||n!==qn))throw Di=nf,Cp;e.flags|=8192}}function ko(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?xm():536870912,e.lanes|=n,Ds|=n)}function qi(e,n){if(!et)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,n}function Lw(e,n,a){var l=n.pendingProps;switch(Qu(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(n),null;case 1:return ft(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),hr(_t),$e(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ci(n)?gr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,xp())),ft(n),null;case 26:return a=n.memoizedState,e===null?(gr(n),a!==null?(ft(n),qv(n,a)):(ft(n),n.flags&=-16777217)):a?a!==e.memoizedState?(gr(n),ft(n),qv(n,a)):(ft(n),n.flags&=-16777217):(e.memoizedProps!==l&&gr(n),ft(n),n.flags&=-16777217),null;case 27:Ie(n),a=_e.current;var u=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&gr(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return ft(n),null}e=ue.current,Ci(n)?yp(n):(e=qg(u,l,a),n.stateNode=e,gr(n))}return ft(n),null;case 5:if(Ie(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&gr(n);else{if(!l){if(n.stateNode===null)throw Error(i(166));return ft(n),null}if(e=ue.current,Ci(n))yp(n);else{switch(u=Yo(_e.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="