@adonis-agora/media-dashboard 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +0,0 @@
1
- var W0=Object.defineProperty;var Sy=c=>{throw TypeError(c)};var P0=(c,i,f)=>i in c?W0(c,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):c[i]=f;var qf=(c,i,f)=>P0(c,typeof i!="symbol"?i+"":i,f),Qf=(c,i,f)=>i.has(c)||Sy("Cannot "+f);var y=(c,i,f)=>(Qf(c,i,"read from private field"),f?f.call(c):i.get(c)),et=(c,i,f)=>i.has(c)?Sy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(c):i.set(c,f),w=(c,i,f,r)=>(Qf(c,i,"write to private field"),r?r.call(c,f):i.set(c,f),f),ht=(c,i,f)=>(Qf(c,i,"access private method"),f);var fc=(c,i,f,r)=>({set _(h){w(c,i,h,f)},get _(){return y(c,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const b of h)if(b.type==="childList")for(const O of b.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&r(O)}).observe(document,{childList:!0,subtree:!0});function f(h){const b={};return h.integrity&&(b.integrity=h.integrity),h.referrerPolicy&&(b.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?b.credentials="include":h.crossOrigin==="anonymous"?b.credentials="omit":b.credentials="same-origin",b}function r(h){if(h.ep)return;h.ep=!0;const b=f(h);fetch(h.href,b)}})();var Bf={exports:{}},Uu={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Ty;function I0(){if(Ty)return Uu;Ty=1;var c=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function f(r,h,b){var O=null;if(b!==void 0&&(O=""+b),h.key!==void 0&&(O=""+h.key),"key"in h){b={};for(var R in h)R!=="key"&&(b[R]=h[R])}else b=h;return h=b.ref,{$$typeof:c,type:r,key:O,ref:h!==void 0?h:null,props:b}}return Uu.Fragment=i,Uu.jsx=f,Uu.jsxs=f,Uu}var Ey;function tg(){return Ey||(Ey=1,Bf.exports=I0()),Bf.exports}var g=tg(),Yn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(c){return this.listeners.add(c),this.onSubscribe(),()=>{this.listeners.delete(c),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Na,ta,Mn,Ky,eg=(Ky=class extends Yn{constructor(){super();et(this,Na);et(this,ta);et(this,Mn);w(this,Mn,i=>{if(typeof window<"u"&&window.addEventListener){const f=()=>i();return window.addEventListener("visibilitychange",f,!1),()=>{window.removeEventListener("visibilitychange",f)}}})}onSubscribe(){y(this,ta)||this.setEventListener(y(this,Mn))}onUnsubscribe(){var i;this.hasListeners()||((i=y(this,ta))==null||i.call(this),w(this,ta,void 0))}setEventListener(i){var f;w(this,Mn,i),(f=y(this,ta))==null||f.call(this),w(this,ta,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){y(this,Na)!==i&&(w(this,Na,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(f=>{f(i)})}isFocused(){var i;return typeof y(this,Na)=="boolean"?y(this,Na):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Na=new WeakMap,ta=new WeakMap,Mn=new WeakMap,Ky),fr=new eg,lg={setTimeout:(c,i)=>setTimeout(c,i),clearTimeout:c=>clearTimeout(c),setInterval:(c,i)=>setInterval(c,i),clearInterval:c=>clearInterval(c)},ea,sr,Vy,ag=(Vy=class{constructor(){et(this,ea,lg);et(this,sr,!1)}setTimeoutProvider(c){w(this,ea,c)}setTimeout(c,i){return y(this,ea).setTimeout(c,i)}clearTimeout(c){y(this,ea).clearTimeout(c)}setInterval(c,i){return y(this,ea).setInterval(c,i)}clearInterval(c){y(this,ea).clearInterval(c)}},ea=new WeakMap,sr=new WeakMap,Vy),ja=new ag;function ng(c){setTimeout(c,0)}var ug=typeof window>"u"||"Deno"in globalThis;function oe(){}function ig(c,i){return typeof c=="function"?c(i):c}function Vf(c){return typeof c=="number"&&c>=0&&c!==1/0}function lm(c,i){return Math.max(c+(i||0)-Date.now(),0)}function fa(c,i){return typeof c=="function"?c(i):c}function Ce(c,i){return typeof c=="function"?c(i):c}function zy(c,i){const{type:f="all",exact:r,fetchStatus:h,predicate:b,queryKey:O,stale:R}=c;if(O){if(r){if(i.queryHash!==rr(O,i.options))return!1}else if(!Bu(i.queryKey,O))return!1}if(f!=="all"){const j=i.isActive();if(f==="active"&&!j||f==="inactive"&&j)return!1}return!(typeof R=="boolean"&&i.isStale()!==R||h&&h!==i.state.fetchStatus||b&&!b(i))}function Ay(c,i){const{exact:f,status:r,predicate:h,mutationKey:b}=c;if(b){if(!i.options.mutationKey)return!1;if(f){if(Ga(i.options.mutationKey)!==Ga(b))return!1}else if(!Bu(i.options.mutationKey,b))return!1}return!(r&&i.state.status!==r||h&&!h(i))}function rr(c,i){return((i==null?void 0:i.queryKeyHashFn)||Ga)(c)}function Ga(c){return JSON.stringify(c,(i,f)=>Jf(f)?Object.keys(f).sort().reduce((r,h)=>(r[h]=f[h],r),{}):f)}function Bu(c,i){return c===i?!0:typeof c!=typeof i?!1:c&&i&&typeof c=="object"&&typeof i=="object"?Object.keys(i).every(f=>Bu(c[f],i[f])):!1}var cg=Object.prototype.hasOwnProperty;function am(c,i,f=0){if(c===i)return c;if(f>500)return i;const r=Oy(c)&&Oy(i);if(!r&&!(Jf(c)&&Jf(i)))return i;const b=(r?c:Object.keys(c)).length,O=r?i:Object.keys(i),R=O.length,j=r?new Array(R):{};let E=0;for(let q=0;q<R;q++){const x=r?q:O[q],L=c[x],Q=i[x];if(L===Q){j[x]=L,(r?q<b:cg.call(c,x))&&E++;continue}if(L===null||Q===null||typeof L!="object"||typeof Q!="object"){j[x]=Q;continue}const B=am(L,Q,f+1);j[x]=B,B===L&&E++}return b===R&&E===b?c:j}function mc(c,i){if(!i||Object.keys(c).length!==Object.keys(i).length)return!1;for(const f in c)if(c[f]!==i[f])return!1;return!0}function Oy(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function Jf(c){if(!My(c))return!1;const i=c.constructor;if(i===void 0)return!0;const f=i.prototype;return!(!My(f)||!f.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(c)!==Object.prototype)}function My(c){return Object.prototype.toString.call(c)==="[object Object]"}function sg(c){return new Promise(i=>{ja.setTimeout(i,c)})}function Ff(c,i,f){return typeof f.structuralSharing=="function"?f.structuralSharing(c,i):f.structuralSharing!==!1?am(c,i):i}function fg(c,i,f=0){const r=[...c,i];return f&&r.length>f?r.slice(1):r}function rg(c,i,f=0){const r=[i,...c];return f&&r.length>f?r.slice(0,-1):r}var or=Symbol();function nm(c,i){return!c.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!c.queryFn||c.queryFn===or?()=>Promise.reject(new Error(`Missing queryFn: '${c.queryHash}'`)):c.queryFn}function hr(c,i){return typeof c=="function"?c(...i):!!c}function og(c,i,f){let r=!1,h;return Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h??(h=i()),r||(r=!0,h.aborted?f():h.addEventListener("abort",f,{once:!0})),h)}),c}var Yu=(()=>{let c=()=>ug;return{isServer(){return c()},setIsServer(i){c=i}}})();function kf(){let c,i;const f=new Promise((h,b)=>{c=h,i=b});f.status="pending",f.catch(()=>{});function r(h){Object.assign(f,h),delete f.resolve,delete f.reject}return f.resolve=h=>{r({status:"fulfilled",value:h}),c(h)},f.reject=h=>{r({status:"rejected",reason:h}),i(h)},f}var hg=ng;function dg(){let c=[],i=0,f=R=>{R()},r=R=>{R()},h=hg;const b=R=>{i?c.push(R):h(()=>{f(R)})},O=()=>{const R=c;c=[],R.length&&h(()=>{r(()=>{R.forEach(j=>{f(j)})})})};return{batch:R=>{let j;i++;try{j=R()}finally{i--,i||O()}return j},batchCalls:R=>(...j)=>{b(()=>{R(...j)})},schedule:b,setNotifyFunction:R=>{f=R},setBatchNotifyFunction:R=>{r=R},setScheduler:R=>{h=R}}}var Wt=dg(),Dn,la,xn,Jy,yg=(Jy=class extends Yn{constructor(){super();et(this,Dn,!0);et(this,la);et(this,xn);w(this,xn,i=>{if(typeof window<"u"&&window.addEventListener){const f=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",f,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",f),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,la)||this.setEventListener(y(this,xn))}onUnsubscribe(){var i;this.hasListeners()||((i=y(this,la))==null||i.call(this),w(this,la,void 0))}setEventListener(i){var f;w(this,xn,i),(f=y(this,la))==null||f.call(this),w(this,la,i(this.setOnline.bind(this)))}setOnline(i){y(this,Dn)!==i&&(w(this,Dn,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return y(this,Dn)}},Dn=new WeakMap,la=new WeakMap,xn=new WeakMap,Jy),vc=new yg;function mg(c){return Math.min(1e3*2**c,3e4)}function um(c){return(c??"online")==="online"?vc.isOnline():!0}var $f=class extends Error{constructor(c){super("CancelledError"),this.revert=c==null?void 0:c.revert,this.silent=c==null?void 0:c.silent}};function im(c){let i=!1,f=0,r;const h=kf(),b=()=>h.status!=="pending",O=K=>{var $;if(!b()){const tt=new $f(K);L(tt),($=c.onCancel)==null||$.call(c,tt)}},R=()=>{i=!0},j=()=>{i=!1},E=()=>fr.isFocused()&&(c.networkMode==="always"||vc.isOnline())&&c.canRun(),q=()=>um(c.networkMode)&&c.canRun(),x=K=>{b()||(r==null||r(),h.resolve(K))},L=K=>{b()||(r==null||r(),h.reject(K))},Q=()=>new Promise(K=>{var $;r=tt=>{(b()||E())&&K(tt)},($=c.onPause)==null||$.call(c)}).then(()=>{var K;r=void 0,b()||(K=c.onContinue)==null||K.call(c)}),B=()=>{if(b())return;let K;const $=f===0?c.initialPromise:void 0;try{K=$??c.fn()}catch(tt){K=Promise.reject(tt)}Promise.resolve(K).then(x).catch(tt=>{var Z;if(b())return;const ct=c.retry??(Yu.isServer()?0:3),Y=c.retryDelay??mg,U=typeof Y=="function"?Y(f,tt):Y,V=ct===!0||typeof ct=="number"&&f<ct||typeof ct=="function"&&ct(f,tt);if(i||!V){L(tt);return}f++,(Z=c.onFail)==null||Z.call(c,f,tt),sg(U).then(()=>E()?void 0:Q()).then(()=>{i?L(tt):B()})})};return{promise:h,status:()=>h.status,cancel:O,continue:()=>(r==null||r(),h),cancelRetry:R,continueRetry:j,canStart:q,start:()=>(q()?B():Q().then(B),h)}}var Ca,Fy,cm=(Fy=class{constructor(){et(this,Ca)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vf(this.gcTime)&&w(this,Ca,ja.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(c){this.gcTime=Math.max(this.gcTime||0,c??(Yu.isServer()?1/0:300*1e3))}clearGcTimeout(){y(this,Ca)!==void 0&&(ja.clearTimeout(y(this,Ca)),w(this,Ca,void 0))}},Ca=new WeakMap,Fy);function vg(c){return{onFetch:(i,f)=>{var q,x,L,Q,B;const r=i.options,h=(L=(x=(q=i.fetchOptions)==null?void 0:q.meta)==null?void 0:x.fetchMore)==null?void 0:L.direction,b=((Q=i.state.data)==null?void 0:Q.pages)||[],O=((B=i.state.data)==null?void 0:B.pageParams)||[];let R={pages:[],pageParams:[]},j=0;const E=async()=>{let K=!1;const $=Y=>{og(Y,()=>i.signal,()=>K=!0)},tt=nm(i.options,i.fetchOptions),ct=async(Y,U,V)=>{if(K)return Promise.reject(i.signal.reason);if(U==null&&Y.pages.length)return Promise.resolve(Y);const H=(()=>{const lt={client:i.client,queryKey:i.queryKey,pageParam:U,direction:V?"backward":"forward",meta:i.options.meta};return $(lt),lt})(),W=await tt(H),{maxPages:rt}=i.options,P=V?rg:fg;return{pages:P(Y.pages,W,rt),pageParams:P(Y.pageParams,U,rt)}};if(h&&b.length){const Y=h==="backward",U=Y?sm:Wf,V={pages:b,pageParams:O},Z=U(r,V);R=await ct(V,Z,Y)}else{const Y=c??b.length;do{const U=j===0?O[0]??r.initialPageParam:Wf(r,R);if(j>0&&U==null)break;R=await ct(R,U),j++}while(j<Y)}return R};i.options.persister?i.fetchFn=()=>{var K,$;return($=(K=i.options).persister)==null?void 0:$.call(K,E,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},f)}:i.fetchFn=E}}}function Wf(c,{pages:i,pageParams:f}){const r=i.length-1;return i.length>0?c.getNextPageParam(i[r],i,f[r],f):void 0}function sm(c,{pages:i,pageParams:f}){var r;return i.length>0?(r=c.getPreviousPageParam)==null?void 0:r.call(c,i[0],i,f[0],f):void 0}function gg(c,i){return i?Wf(c,i)!=null:!1}function pg(c,i){return!i||!c.getPreviousPageParam?!1:sm(c,i)!=null}var _n,Ua,jn,we,Ra,te,Gu,Ha,Ne,fm,Tl,ky,bg=(ky=class extends cm{constructor(i){super();et(this,Ne);et(this,_n);et(this,Ua);et(this,jn);et(this,we);et(this,Ra);et(this,te);et(this,Gu);et(this,Ha);w(this,Ha,!1),w(this,Gu,i.defaultOptions),this.setOptions(i.options),this.observers=[],w(this,Ra,i.client),w(this,we,y(this,Ra).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,w(this,Ua,xy(this.options)),this.state=i.state??y(this,Ua),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return y(this,_n)}get promise(){var i;return(i=y(this,te))==null?void 0:i.promise}setOptions(i){if(this.options={...y(this,Gu),...i},i!=null&&i._type&&w(this,_n,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const f=xy(this.options);f.data!==void 0&&(this.setState(Dy(f.data,f.dataUpdatedAt)),w(this,Ua,f))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,we).remove(this)}setData(i,f){const r=Ff(this.state.data,i,this.options);return ht(this,Ne,Tl).call(this,{data:r,type:"success",dataUpdatedAt:f==null?void 0:f.updatedAt,manual:f==null?void 0:f.manual}),r}setState(i){ht(this,Ne,Tl).call(this,{type:"setState",state:i})}cancel(i){var r,h;const f=(r=y(this,te))==null?void 0:r.promise;return(h=y(this,te))==null||h.cancel(i),f?f.then(oe).catch(oe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return y(this,Ua)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Ce(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===or||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>fa(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!lm(this.state.dataUpdatedAt,i)}onFocus(){var f;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(f=y(this,te))==null||f.continue()}onOnline(){var f;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(f=y(this,te))==null||f.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),y(this,we).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(f=>f!==i),this.observers.length||(y(this,te)&&(y(this,Ha)||ht(this,Ne,fm).call(this)?y(this,te).cancel({revert:!0}):y(this,te).cancelRetry()),this.scheduleGc()),y(this,we).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ht(this,Ne,Tl).call(this,{type:"invalidate"})}async fetch(i,f){var E,q,x,L,Q,B,K,$,tt,ct,Y;if(this.state.fetchStatus!=="idle"&&((E=y(this,te))==null?void 0:E.status())!=="rejected"){if(this.state.data!==void 0&&(f!=null&&f.cancelRefetch))this.cancel({silent:!0});else if(y(this,te))return y(this,te).continueRetry(),y(this,te).promise}if(i&&this.setOptions(i),!this.options.queryFn){const U=this.observers.find(V=>V.options.queryFn);U&&this.setOptions(U.options)}const r=new AbortController,h=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(w(this,Ha,!0),r.signal)})},b=()=>{const U=nm(this.options,f),Z=(()=>{const H={client:y(this,Ra),queryKey:this.queryKey,meta:this.meta};return h(H),H})();return w(this,Ha,!1),this.options.persister?this.options.persister(U,Z,this):U(Z)},R=(()=>{const U={fetchOptions:f,options:this.options,queryKey:this.queryKey,client:y(this,Ra),state:this.state,fetchFn:b};return h(U),U})(),j=y(this,_n)==="infinite"?vg(this.options.pages):this.options.behavior;j==null||j.onFetch(R,this),w(this,jn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((q=R.fetchOptions)==null?void 0:q.meta))&&ht(this,Ne,Tl).call(this,{type:"fetch",meta:(x=R.fetchOptions)==null?void 0:x.meta}),w(this,te,im({initialPromise:f==null?void 0:f.initialPromise,fn:R.fetchFn,onCancel:U=>{U instanceof $f&&U.revert&&this.setState({...y(this,jn),fetchStatus:"idle"}),r.abort()},onFail:(U,V)=>{ht(this,Ne,Tl).call(this,{type:"failed",failureCount:U,error:V})},onPause:()=>{ht(this,Ne,Tl).call(this,{type:"pause"})},onContinue:()=>{ht(this,Ne,Tl).call(this,{type:"continue"})},retry:R.options.retry,retryDelay:R.options.retryDelay,networkMode:R.options.networkMode,canRun:()=>!0}));try{const U=await y(this,te).start();if(U===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(U),(Q=(L=y(this,we).config).onSuccess)==null||Q.call(L,U,this),(K=(B=y(this,we).config).onSettled)==null||K.call(B,U,this.state.error,this),U}catch(U){if(U instanceof $f){if(U.silent)return y(this,te).promise;if(U.revert){if(this.state.data===void 0)throw U;return this.state.data}}throw ht(this,Ne,Tl).call(this,{type:"error",error:U}),(tt=($=y(this,we).config).onError)==null||tt.call($,U,this),(Y=(ct=y(this,we).config).onSettled)==null||Y.call(ct,this.state.data,U,this),U}finally{this.scheduleGc()}}},_n=new WeakMap,Ua=new WeakMap,jn=new WeakMap,we=new WeakMap,Ra=new WeakMap,te=new WeakMap,Gu=new WeakMap,Ha=new WeakMap,Ne=new WeakSet,fm=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Tl=function(i){const f=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...rm(r.data,this.options),fetchMeta:i.meta??null};case"success":const h={...r,...Dy(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return w(this,jn,i.manual?h:void 0),h;case"error":const b=i.error;return{...r,error:b,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:b,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=f(this.state),Wt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,we).notify({query:this,type:"updated",action:i})})},ky);function rm(c,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:um(i.networkMode)?"fetching":"paused",...c===void 0&&{error:null,status:"pending"}}}function Dy(c,i){return{data:c,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xy(c){const i=typeof c.initialData=="function"?c.initialData():c.initialData,f=i!==void 0,r=f?typeof c.initialDataUpdatedAt=="function"?c.initialDataUpdatedAt():c.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:f?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:f?"success":"pending",fetchStatus:"idle"}}var be,St,Xu,re,qa,Nn,El,aa,Lu,Cn,Un,Qa,Ba,na,Rn,Dt,qu,Pf,If,tr,er,lr,ar,nr,hm,$y,om=($y=class extends Yn{constructor(i,f){super();et(this,Dt);et(this,be);et(this,St);et(this,Xu);et(this,re);et(this,qa);et(this,Nn);et(this,El);et(this,aa);et(this,Lu);et(this,Cn);et(this,Un);et(this,Qa);et(this,Ba);et(this,na);et(this,Rn,new Set);this.options=f,w(this,be,i),w(this,aa,null),w(this,El,kf()),this.bindMethods(),this.setOptions(f)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,St).addObserver(this),_y(y(this,St),this.options)?ht(this,Dt,qu).call(this):this.updateResult(),ht(this,Dt,er).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ur(y(this,St),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ur(y(this,St),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ht(this,Dt,lr).call(this),ht(this,Dt,ar).call(this),y(this,St).removeObserver(this)}setOptions(i){const f=this.options,r=y(this,St);if(this.options=y(this,be).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ce(this.options.enabled,y(this,St))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ht(this,Dt,nr).call(this),y(this,St).setOptions(this.options),f._defaulted&&!mc(this.options,f)&&y(this,be).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,St),observer:this});const h=this.hasListeners();h&&jy(y(this,St),r,this.options,f)&&ht(this,Dt,qu).call(this),this.updateResult(),h&&(y(this,St)!==r||Ce(this.options.enabled,y(this,St))!==Ce(f.enabled,y(this,St))||fa(this.options.staleTime,y(this,St))!==fa(f.staleTime,y(this,St)))&&ht(this,Dt,Pf).call(this);const b=ht(this,Dt,If).call(this);h&&(y(this,St)!==r||Ce(this.options.enabled,y(this,St))!==Ce(f.enabled,y(this,St))||b!==y(this,na))&&ht(this,Dt,tr).call(this,b)}getOptimisticResult(i){const f=y(this,be).getQueryCache().build(y(this,be),i),r=this.createResult(f,i);return Tg(this,r)&&(w(this,re,r),w(this,Nn,this.options),w(this,qa,y(this,St).state)),r}getCurrentResult(){return y(this,re)}trackResult(i,f){return new Proxy(i,{get:(r,h)=>(this.trackProp(h),f==null||f(h),h==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&y(this,El).status==="pending"&&y(this,El).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,h))})}trackProp(i){y(this,Rn).add(i)}getCurrentQuery(){return y(this,St)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const f=y(this,be).defaultQueryOptions(i),r=y(this,be).getQueryCache().build(y(this,be),f);return r.fetch().then(()=>this.createResult(r,f))}fetch(i){return ht(this,Dt,qu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,re)))}createResult(i,f){var rt;const r=y(this,St),h=this.options,b=y(this,re),O=y(this,qa),R=y(this,Nn),E=i!==r?i.state:y(this,Xu),{state:q}=i;let x={...q},L=!1,Q;if(f._optimisticResults){const P=this.hasListeners(),lt=!P&&_y(i,f),vt=P&&jy(i,r,f,h);(lt||vt)&&(x={...x,...rm(q.data,i.options)}),f._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:B,errorUpdatedAt:K,status:$}=x;Q=x.data;let tt=!1;if(f.placeholderData!==void 0&&Q===void 0&&$==="pending"){let P;b!=null&&b.isPlaceholderData&&f.placeholderData===(R==null?void 0:R.placeholderData)?(P=b.data,tt=!0):P=typeof f.placeholderData=="function"?f.placeholderData((rt=y(this,Un))==null?void 0:rt.state.data,y(this,Un)):f.placeholderData,P!==void 0&&($="success",Q=Ff(b==null?void 0:b.data,P,f),L=!0)}if(f.select&&Q!==void 0&&!tt)if(b&&Q===(O==null?void 0:O.data)&&f.select===y(this,Lu))Q=y(this,Cn);else try{w(this,Lu,f.select),Q=f.select(Q),Q=Ff(b==null?void 0:b.data,Q,f),w(this,Cn,Q),w(this,aa,null)}catch(P){w(this,aa,P)}y(this,aa)&&(B=y(this,aa),Q=y(this,Cn),K=Date.now(),$="error");const ct=x.fetchStatus==="fetching",Y=$==="pending",U=$==="error",V=Y&&ct,Z=Q!==void 0,W={status:$,fetchStatus:x.fetchStatus,isPending:Y,isSuccess:$==="success",isError:U,isInitialLoading:V,isLoading:V,data:Q,dataUpdatedAt:x.dataUpdatedAt,error:B,errorUpdatedAt:K,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:x.dataUpdateCount>E.dataUpdateCount||x.errorUpdateCount>E.errorUpdateCount,isFetching:ct,isRefetching:ct&&!Y,isLoadingError:U&&!Z,isPaused:x.fetchStatus==="paused",isPlaceholderData:L,isRefetchError:U&&Z,isStale:dr(i,f),refetch:this.refetch,promise:y(this,El),isEnabled:Ce(f.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const P=W.data!==void 0,lt=W.status==="error"&&!P,vt=Qt=>{lt?Qt.reject(W.error):P&&Qt.resolve(W.data)},Tt=()=>{const Qt=w(this,El,W.promise=kf());vt(Qt)},Ht=y(this,El);switch(Ht.status){case"pending":i.queryHash===r.queryHash&&vt(Ht);break;case"fulfilled":(lt||W.data!==Ht.value)&&Tt();break;case"rejected":(!lt||W.error!==Ht.reason)&&Tt();break}}return W}updateResult(){const i=y(this,re),f=this.createResult(y(this,St),this.options);if(w(this,qa,y(this,St).state),w(this,Nn,this.options),y(this,qa).data!==void 0&&w(this,Un,y(this,St)),mc(f,i))return;w(this,re,f);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:h}=this.options,b=typeof h=="function"?h():h;if(b==="all"||!b&&!y(this,Rn).size)return!0;const O=new Set(b??y(this,Rn));return this.options.throwOnError&&O.add("error"),Object.keys(y(this,re)).some(R=>{const j=R;return y(this,re)[j]!==i[j]&&O.has(j)})};ht(this,Dt,hm).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ht(this,Dt,er).call(this)}},be=new WeakMap,St=new WeakMap,Xu=new WeakMap,re=new WeakMap,qa=new WeakMap,Nn=new WeakMap,El=new WeakMap,aa=new WeakMap,Lu=new WeakMap,Cn=new WeakMap,Un=new WeakMap,Qa=new WeakMap,Ba=new WeakMap,na=new WeakMap,Rn=new WeakMap,Dt=new WeakSet,qu=function(i){ht(this,Dt,nr).call(this);let f=y(this,St).fetch(this.options,i);return i!=null&&i.throwOnError||(f=f.catch(oe)),f},Pf=function(){ht(this,Dt,lr).call(this);const i=fa(this.options.staleTime,y(this,St));if(Yu.isServer()||y(this,re).isStale||!Vf(i))return;const r=lm(y(this,re).dataUpdatedAt,i)+1;w(this,Qa,ja.setTimeout(()=>{y(this,re).isStale||this.updateResult()},r))},If=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,St)):this.options.refetchInterval)??!1},tr=function(i){ht(this,Dt,ar).call(this),w(this,na,i),!(Yu.isServer()||Ce(this.options.enabled,y(this,St))===!1||!Vf(y(this,na))||y(this,na)===0)&&w(this,Ba,ja.setInterval(()=>{(this.options.refetchIntervalInBackground||fr.isFocused())&&ht(this,Dt,qu).call(this)},y(this,na)))},er=function(){ht(this,Dt,Pf).call(this),ht(this,Dt,tr).call(this,ht(this,Dt,If).call(this))},lr=function(){y(this,Qa)!==void 0&&(ja.clearTimeout(y(this,Qa)),w(this,Qa,void 0))},ar=function(){y(this,Ba)!==void 0&&(ja.clearInterval(y(this,Ba)),w(this,Ba,void 0))},nr=function(){const i=y(this,be).getQueryCache().build(y(this,be),this.options);if(i===y(this,St))return;const f=y(this,St);w(this,St,i),w(this,Xu,i.state),this.hasListeners()&&(f==null||f.removeObserver(this),i.addObserver(this))},hm=function(i){Wt.batch(()=>{i.listeners&&this.listeners.forEach(f=>{f(y(this,re))}),y(this,be).getQueryCache().notify({query:y(this,St),type:"observerResultsUpdated"})})},$y);function Sg(c,i){return Ce(i.enabled,c)!==!1&&c.state.data===void 0&&!(c.state.status==="error"&&Ce(i.retryOnMount,c)===!1)}function _y(c,i){return Sg(c,i)||c.state.data!==void 0&&ur(c,i,i.refetchOnMount)}function ur(c,i,f){if(Ce(i.enabled,c)!==!1&&fa(i.staleTime,c)!=="static"){const r=typeof f=="function"?f(c):f;return r==="always"||r!==!1&&dr(c,i)}return!1}function jy(c,i,f,r){return(c!==i||Ce(r.enabled,c)===!1)&&(!f.suspense||c.state.status!=="error")&&dr(c,f)}function dr(c,i){return Ce(i.enabled,c)!==!1&&c.isStaleByTime(fa(i.staleTime,c))}function Tg(c,i){return!mc(c.getCurrentResult(),i)}var Eg=class extends om{constructor(c,i){super(c,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(c){c._type="infinite",super.setOptions(c)}getOptimisticResult(c){return c._type="infinite",super.getOptimisticResult(c)}fetchNextPage(c){return this.fetch({...c,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(c){return this.fetch({...c,meta:{fetchMore:{direction:"backward"}}})}createResult(c,i){var B,K;const{state:f}=c,r=super.createResult(c,i),{isFetching:h,isRefetching:b,isError:O,isRefetchError:R}=r,j=(K=(B=f.fetchMeta)==null?void 0:B.fetchMore)==null?void 0:K.direction,E=O&&j==="forward",q=h&&j==="forward",x=O&&j==="backward",L=h&&j==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:gg(i,f.data),hasPreviousPage:pg(i,f.data),isFetchNextPageError:E,isFetchingNextPage:q,isFetchPreviousPageError:x,isFetchingPreviousPage:L,isRefetchError:R&&!E&&!x,isRefetching:b&&!q&&!L}}},Zu,Ie,se,Ya,tl,Il,Wy,zg=(Wy=class extends cm{constructor(i){super();et(this,tl);et(this,Zu);et(this,Ie);et(this,se);et(this,Ya);w(this,Zu,i.client),this.mutationId=i.mutationId,w(this,se,i.mutationCache),w(this,Ie,[]),this.state=i.state||dm(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){y(this,Ie).includes(i)||(y(this,Ie).push(i),this.clearGcTimeout(),y(this,se).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){w(this,Ie,y(this,Ie).filter(f=>f!==i)),this.scheduleGc(),y(this,se).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){y(this,Ie).length||(this.state.status==="pending"?this.scheduleGc():y(this,se).remove(this))}continue(){var i;return((i=y(this,Ya))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var O,R,j,E,q,x,L,Q,B,K,$,tt,ct,Y,U,V,Z,H;const f=()=>{ht(this,tl,Il).call(this,{type:"continue"})},r={client:y(this,Zu),meta:this.options.meta,mutationKey:this.options.mutationKey};w(this,Ya,im({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(W,rt)=>{ht(this,tl,Il).call(this,{type:"failed",failureCount:W,error:rt})},onPause:()=>{ht(this,tl,Il).call(this,{type:"pause"})},onContinue:f,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,se).canRun(this)}));const h=this.state.status==="pending",b=!y(this,Ya).canStart();try{if(h)f();else{ht(this,tl,Il).call(this,{type:"pending",variables:i,isPaused:b}),y(this,se).config.onMutate&&await y(this,se).config.onMutate(i,this,r);const rt=await((R=(O=this.options).onMutate)==null?void 0:R.call(O,i,r));rt!==this.state.context&&ht(this,tl,Il).call(this,{type:"pending",context:rt,variables:i,isPaused:b})}const W=await y(this,Ya).start();return await((E=(j=y(this,se).config).onSuccess)==null?void 0:E.call(j,W,i,this.state.context,this,r)),await((x=(q=this.options).onSuccess)==null?void 0:x.call(q,W,i,this.state.context,r)),await((Q=(L=y(this,se).config).onSettled)==null?void 0:Q.call(L,W,null,this.state.variables,this.state.context,this,r)),await((K=(B=this.options).onSettled)==null?void 0:K.call(B,W,null,i,this.state.context,r)),ht(this,tl,Il).call(this,{type:"success",data:W}),W}catch(W){try{await((tt=($=y(this,se).config).onError)==null?void 0:tt.call($,W,i,this.state.context,this,r))}catch(rt){Promise.reject(rt)}try{await((Y=(ct=this.options).onError)==null?void 0:Y.call(ct,W,i,this.state.context,r))}catch(rt){Promise.reject(rt)}try{await((V=(U=y(this,se).config).onSettled)==null?void 0:V.call(U,void 0,W,this.state.variables,this.state.context,this,r))}catch(rt){Promise.reject(rt)}try{await((H=(Z=this.options).onSettled)==null?void 0:H.call(Z,void 0,W,i,this.state.context,r))}catch(rt){Promise.reject(rt)}throw ht(this,tl,Il).call(this,{type:"error",error:W}),W}finally{y(this,se).runNext(this)}}},Zu=new WeakMap,Ie=new WeakMap,se=new WeakMap,Ya=new WeakMap,tl=new WeakSet,Il=function(i){const f=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=f(this.state),Wt.batch(()=>{y(this,Ie).forEach(r=>{r.onMutationUpdate(i)}),y(this,se).notify({mutation:this,type:"updated",action:i})})},Wy);function dm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zl,Fe,wu,Py,Ag=(Py=class extends Yn{constructor(i={}){super();et(this,zl);et(this,Fe);et(this,wu);this.config=i,w(this,zl,new Set),w(this,Fe,new Map),w(this,wu,0)}build(i,f,r){const h=new zg({client:i,mutationCache:this,mutationId:++fc(this,wu)._,options:i.defaultMutationOptions(f),state:r});return this.add(h),h}add(i){y(this,zl).add(i);const f=rc(i);if(typeof f=="string"){const r=y(this,Fe).get(f);r?r.push(i):y(this,Fe).set(f,[i])}this.notify({type:"added",mutation:i})}remove(i){if(y(this,zl).delete(i)){const f=rc(i);if(typeof f=="string"){const r=y(this,Fe).get(f);if(r)if(r.length>1){const h=r.indexOf(i);h!==-1&&r.splice(h,1)}else r[0]===i&&y(this,Fe).delete(f)}}this.notify({type:"removed",mutation:i})}canRun(i){const f=rc(i);if(typeof f=="string"){const r=y(this,Fe).get(f),h=r==null?void 0:r.find(b=>b.state.status==="pending");return!h||h===i}else return!0}runNext(i){var r;const f=rc(i);if(typeof f=="string"){const h=(r=y(this,Fe).get(f))==null?void 0:r.find(b=>b!==i&&b.state.isPaused);return(h==null?void 0:h.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Wt.batch(()=>{y(this,zl).forEach(i=>{this.notify({type:"removed",mutation:i})}),y(this,zl).clear(),y(this,Fe).clear()})}getAll(){return Array.from(y(this,zl))}find(i){const f={exact:!0,...i};return this.getAll().find(r=>Ay(f,r))}findAll(i={}){return this.getAll().filter(f=>Ay(i,f))}notify(i){Wt.batch(()=>{this.listeners.forEach(f=>{f(i)})})}resumePausedMutations(){const i=this.getAll().filter(f=>f.state.isPaused);return Wt.batch(()=>Promise.all(i.map(f=>f.continue().catch(oe))))}},zl=new WeakMap,Fe=new WeakMap,wu=new WeakMap,Py);function rc(c){var i;return(i=c.options.scope)==null?void 0:i.id}var Al,ua,Se,Ol,Ml,yc,ir,Iy,Og=(Iy=class extends Yn{constructor(f,r){super();et(this,Ml);et(this,Al);et(this,ua);et(this,Se);et(this,Ol);w(this,Al,f),this.setOptions(r),this.bindMethods(),ht(this,Ml,yc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(f){var h;const r=this.options;this.options=y(this,Al).defaultMutationOptions(f),mc(this.options,r)||y(this,Al).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,Se),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ga(r.mutationKey)!==Ga(this.options.mutationKey)?this.reset():((h=y(this,Se))==null?void 0:h.state.status)==="pending"&&y(this,Se).setOptions(this.options)}onUnsubscribe(){var f;this.hasListeners()||(f=y(this,Se))==null||f.removeObserver(this)}onMutationUpdate(f){ht(this,Ml,yc).call(this),ht(this,Ml,ir).call(this,f)}getCurrentResult(){return y(this,ua)}reset(){var f;(f=y(this,Se))==null||f.removeObserver(this),w(this,Se,void 0),ht(this,Ml,yc).call(this),ht(this,Ml,ir).call(this)}mutate(f,r){var h;return w(this,Ol,r),(h=y(this,Se))==null||h.removeObserver(this),w(this,Se,y(this,Al).getMutationCache().build(y(this,Al),this.options)),y(this,Se).addObserver(this),y(this,Se).execute(f)}},Al=new WeakMap,ua=new WeakMap,Se=new WeakMap,Ol=new WeakMap,Ml=new WeakSet,yc=function(){var r;const f=((r=y(this,Se))==null?void 0:r.state)??dm();w(this,ua,{...f,isPending:f.status==="pending",isSuccess:f.status==="success",isError:f.status==="error",isIdle:f.status==="idle",mutate:this.mutate,reset:this.reset})},ir=function(f){Wt.batch(()=>{var r,h,b,O,R,j,E,q;if(y(this,Ol)&&this.hasListeners()){const x=y(this,ua).variables,L=y(this,ua).context,Q={client:y(this,Al),meta:this.options.meta,mutationKey:this.options.mutationKey};if((f==null?void 0:f.type)==="success"){try{(h=(r=y(this,Ol)).onSuccess)==null||h.call(r,f.data,x,L,Q)}catch(B){Promise.reject(B)}try{(O=(b=y(this,Ol)).onSettled)==null||O.call(b,f.data,null,x,L,Q)}catch(B){Promise.reject(B)}}else if((f==null?void 0:f.type)==="error"){try{(j=(R=y(this,Ol)).onError)==null||j.call(R,f.error,x,L,Q)}catch(B){Promise.reject(B)}try{(q=(E=y(this,Ol)).onSettled)==null||q.call(E,void 0,f.error,x,L,Q)}catch(B){Promise.reject(B)}}}this.listeners.forEach(x=>{x(y(this,ua))})})},Iy),el,tm,Mg=(tm=class extends Yn{constructor(i={}){super();et(this,el);this.config=i,w(this,el,new Map)}build(i,f,r){const h=f.queryKey,b=f.queryHash??rr(h,f);let O=this.get(b);return O||(O=new bg({client:i,queryKey:h,queryHash:b,options:i.defaultQueryOptions(f),state:r,defaultOptions:i.getQueryDefaults(h)}),this.add(O)),O}add(i){y(this,el).has(i.queryHash)||(y(this,el).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const f=y(this,el).get(i.queryHash);f&&(i.destroy(),f===i&&y(this,el).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){Wt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return y(this,el).get(i)}getAll(){return[...y(this,el).values()]}find(i){const f={exact:!0,...i};return this.getAll().find(r=>zy(f,r))}findAll(i={}){const f=this.getAll();return Object.keys(i).length>0?f.filter(r=>zy(i,r)):f}notify(i){Wt.batch(()=>{this.listeners.forEach(f=>{f(i)})})}onFocus(){Wt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){Wt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},el=new WeakMap,tm),Zt,ia,ca,Hn,qn,sa,Qn,Bn,em,Dg=(em=class{constructor(c={}){et(this,Zt);et(this,ia);et(this,ca);et(this,Hn);et(this,qn);et(this,sa);et(this,Qn);et(this,Bn);w(this,Zt,c.queryCache||new Mg),w(this,ia,c.mutationCache||new Ag),w(this,ca,c.defaultOptions||{}),w(this,Hn,new Map),w(this,qn,new Map),w(this,sa,0)}mount(){fc(this,sa)._++,y(this,sa)===1&&(w(this,Qn,fr.subscribe(async c=>{c&&(await this.resumePausedMutations(),y(this,Zt).onFocus())})),w(this,Bn,vc.subscribe(async c=>{c&&(await this.resumePausedMutations(),y(this,Zt).onOnline())})))}unmount(){var c,i;fc(this,sa)._--,y(this,sa)===0&&((c=y(this,Qn))==null||c.call(this),w(this,Qn,void 0),(i=y(this,Bn))==null||i.call(this),w(this,Bn,void 0))}isFetching(c){return y(this,Zt).findAll({...c,fetchStatus:"fetching"}).length}isMutating(c){return y(this,ia).findAll({...c,status:"pending"}).length}getQueryData(c){var f;const i=this.defaultQueryOptions({queryKey:c});return(f=y(this,Zt).get(i.queryHash))==null?void 0:f.state.data}ensureQueryData(c){const i=this.defaultQueryOptions(c),f=y(this,Zt).build(this,i),r=f.state.data;return r===void 0?this.fetchQuery(c):(c.revalidateIfStale&&f.isStaleByTime(fa(i.staleTime,f))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(c){return y(this,Zt).findAll(c).map(({queryKey:i,state:f})=>{const r=f.data;return[i,r]})}setQueryData(c,i,f){const r=this.defaultQueryOptions({queryKey:c}),h=y(this,Zt).get(r.queryHash),b=h==null?void 0:h.state.data,O=ig(i,b);if(O!==void 0)return y(this,Zt).build(this,r).setData(O,{...f,manual:!0})}setQueriesData(c,i,f){return Wt.batch(()=>y(this,Zt).findAll(c).map(({queryKey:r})=>[r,this.setQueryData(r,i,f)]))}getQueryState(c){var f;const i=this.defaultQueryOptions({queryKey:c});return(f=y(this,Zt).get(i.queryHash))==null?void 0:f.state}removeQueries(c){const i=y(this,Zt);Wt.batch(()=>{i.findAll(c).forEach(f=>{i.remove(f)})})}resetQueries(c,i){const f=y(this,Zt);return Wt.batch(()=>(f.findAll(c).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...c},i)))}cancelQueries(c,i={}){const f={revert:!0,...i},r=Wt.batch(()=>y(this,Zt).findAll(c).map(h=>h.cancel(f)));return Promise.all(r).then(oe).catch(oe)}invalidateQueries(c,i={}){return Wt.batch(()=>(y(this,Zt).findAll(c).forEach(f=>{f.invalidate()}),(c==null?void 0:c.refetchType)==="none"?Promise.resolve():this.refetchQueries({...c,type:(c==null?void 0:c.refetchType)??(c==null?void 0:c.type)??"active"},i)))}refetchQueries(c,i={}){const f={...i,cancelRefetch:i.cancelRefetch??!0},r=Wt.batch(()=>y(this,Zt).findAll(c).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let b=h.fetch(void 0,f);return f.throwOnError||(b=b.catch(oe)),h.state.fetchStatus==="paused"?Promise.resolve():b}));return Promise.all(r).then(oe)}fetchQuery(c){const i=this.defaultQueryOptions(c);i.retry===void 0&&(i.retry=!1);const f=y(this,Zt).build(this,i);return f.isStaleByTime(fa(i.staleTime,f))?f.fetch(i):Promise.resolve(f.state.data)}prefetchQuery(c){return this.fetchQuery(c).then(oe).catch(oe)}fetchInfiniteQuery(c){return c._type="infinite",this.fetchQuery(c)}prefetchInfiniteQuery(c){return this.fetchInfiniteQuery(c).then(oe).catch(oe)}ensureInfiniteQueryData(c){return c._type="infinite",this.ensureQueryData(c)}resumePausedMutations(){return vc.isOnline()?y(this,ia).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,Zt)}getMutationCache(){return y(this,ia)}getDefaultOptions(){return y(this,ca)}setDefaultOptions(c){w(this,ca,c)}setQueryDefaults(c,i){y(this,Hn).set(Ga(c),{queryKey:c,defaultOptions:i})}getQueryDefaults(c){const i=[...y(this,Hn).values()],f={};return i.forEach(r=>{Bu(c,r.queryKey)&&Object.assign(f,r.defaultOptions)}),f}setMutationDefaults(c,i){y(this,qn).set(Ga(c),{mutationKey:c,defaultOptions:i})}getMutationDefaults(c){const i=[...y(this,qn).values()],f={};return i.forEach(r=>{Bu(c,r.mutationKey)&&Object.assign(f,r.defaultOptions)}),f}defaultQueryOptions(c){if(c._defaulted)return c;const i={...y(this,ca).queries,...this.getQueryDefaults(c.queryKey),...c,_defaulted:!0};return i.queryHash||(i.queryHash=rr(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===or&&(i.enabled=!1),i}defaultMutationOptions(c){return c!=null&&c._defaulted?c:{...y(this,ca).mutations,...(c==null?void 0:c.mutationKey)&&this.getMutationDefaults(c.mutationKey),...c,_defaulted:!0}}clear(){y(this,Zt).clear(),y(this,ia).clear()}},Zt=new WeakMap,ia=new WeakMap,ca=new WeakMap,Hn=new WeakMap,qn=new WeakMap,sa=new WeakMap,Qn=new WeakMap,Bn=new WeakMap,em),Yf={exports:{}},st={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Ny;function xg(){if(Ny)return st;Ny=1;var c=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),L=Symbol.iterator;function Q(m){return m===null||typeof m!="object"?null:(m=L&&m[L]||m["@@iterator"],typeof m=="function"?m:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K=Object.assign,$={};function tt(m,N,X){this.props=m,this.context=N,this.refs=$,this.updater=X||B}tt.prototype.isReactComponent={},tt.prototype.setState=function(m,N){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,N,"setState")},tt.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function ct(){}ct.prototype=tt.prototype;function Y(m,N,X){this.props=m,this.context=N,this.refs=$,this.updater=X||B}var U=Y.prototype=new ct;U.constructor=Y,K(U,tt.prototype),U.isPureReactComponent=!0;var V=Array.isArray;function Z(){}var H={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function rt(m,N,X){var J=X.ref;return{$$typeof:c,type:m,key:N,ref:J!==void 0?J:null,props:X}}function P(m,N){return rt(m.type,N,m.props)}function lt(m){return typeof m=="object"&&m!==null&&m.$$typeof===c}function vt(m){var N={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(X){return N[X]})}var Tt=/\/+/g;function Ht(m,N){return typeof m=="object"&&m!==null&&m.key!=null?vt(""+m.key):N.toString(36)}function Qt(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(Z,Z):(m.status="pending",m.then(function(N){m.status==="pending"&&(m.status="fulfilled",m.value=N)},function(N){m.status==="pending"&&(m.status="rejected",m.reason=N)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function M(m,N,X,J,it){var dt=typeof m;(dt==="undefined"||dt==="boolean")&&(m=null);var Et=!1;if(m===null)Et=!0;else switch(dt){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(m.$$typeof){case c:case i:Et=!0;break;case q:return Et=m._init,M(Et(m._payload),N,X,J,it)}}if(Et)return it=it(m),Et=J===""?"."+Ht(m,0):J,V(it)?(X="",Et!=null&&(X=Et.replace(Tt,"$&/")+"/"),M(it,N,X,"",function(ll){return ll})):it!=null&&(lt(it)&&(it=P(it,X+(it.key==null||m&&m.key===it.key?"":(""+it.key).replace(Tt,"$&/")+"/")+Et)),N.push(it)),1;Et=0;var ee=J===""?".":J+":";if(V(m))for(var qt=0;qt<m.length;qt++)J=m[qt],dt=ee+Ht(J,qt),Et+=M(J,N,X,dt,it);else if(qt=Q(m),typeof qt=="function")for(m=qt.call(m),qt=0;!(J=m.next()).done;)J=J.value,dt=ee+Ht(J,qt++),Et+=M(J,N,X,dt,it);else if(dt==="object"){if(typeof m.then=="function")return M(Qt(m),N,X,J,it);throw N=String(m),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return Et}function G(m,N,X){if(m==null)return m;var J=[],it=0;return M(m,J,"","",function(dt){return N.call(X,dt,it++)}),J}function nt(m){if(m._status===-1){var N=m._result;N=N(),N.then(function(X){(m._status===0||m._status===-1)&&(m._status=1,m._result=X)},function(X){(m._status===0||m._status===-1)&&(m._status=2,m._result=X)}),m._status===-1&&(m._status=0,m._result=N)}if(m._status===1)return m._result.default;throw m._result}var Ot=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)},xt={map:G,forEach:function(m,N,X){G(m,function(){N.apply(this,arguments)},X)},count:function(m){var N=0;return G(m,function(){N++}),N},toArray:function(m){return G(m,function(N){return N})||[]},only:function(m){if(!lt(m))throw Error("React.Children.only expected to receive a single React element child.");return m}};return st.Activity=x,st.Children=xt,st.Component=tt,st.Fragment=f,st.Profiler=h,st.PureComponent=Y,st.StrictMode=r,st.Suspense=j,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,st.__COMPILER_RUNTIME={__proto__:null,c:function(m){return H.H.useMemoCache(m)}},st.cache=function(m){return function(){return m.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(m,N,X){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var J=K({},m.props),it=m.key;if(N!=null)for(dt in N.key!==void 0&&(it=""+N.key),N)!W.call(N,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&N.ref===void 0||(J[dt]=N[dt]);var dt=arguments.length-2;if(dt===1)J.children=X;else if(1<dt){for(var Et=Array(dt),ee=0;ee<dt;ee++)Et[ee]=arguments[ee+2];J.children=Et}return rt(m.type,it,J)},st.createContext=function(m){return m={$$typeof:O,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:b,_context:m},m},st.createElement=function(m,N,X){var J,it={},dt=null;if(N!=null)for(J in N.key!==void 0&&(dt=""+N.key),N)W.call(N,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(it[J]=N[J]);var Et=arguments.length-2;if(Et===1)it.children=X;else if(1<Et){for(var ee=Array(Et),qt=0;qt<Et;qt++)ee[qt]=arguments[qt+2];it.children=ee}if(m&&m.defaultProps)for(J in Et=m.defaultProps,Et)it[J]===void 0&&(it[J]=Et[J]);return rt(m,dt,it)},st.createRef=function(){return{current:null}},st.forwardRef=function(m){return{$$typeof:R,render:m}},st.isValidElement=lt,st.lazy=function(m){return{$$typeof:q,_payload:{_status:-1,_result:m},_init:nt}},st.memo=function(m,N){return{$$typeof:E,type:m,compare:N===void 0?null:N}},st.startTransition=function(m){var N=H.T,X={};H.T=X;try{var J=m(),it=H.S;it!==null&&it(X,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(Z,Ot)}catch(dt){Ot(dt)}finally{N!==null&&X.types!==null&&(N.types=X.types),H.T=N}},st.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},st.use=function(m){return H.H.use(m)},st.useActionState=function(m,N,X){return H.H.useActionState(m,N,X)},st.useCallback=function(m,N){return H.H.useCallback(m,N)},st.useContext=function(m){return H.H.useContext(m)},st.useDebugValue=function(){},st.useDeferredValue=function(m,N){return H.H.useDeferredValue(m,N)},st.useEffect=function(m,N){return H.H.useEffect(m,N)},st.useEffectEvent=function(m){return H.H.useEffectEvent(m)},st.useId=function(){return H.H.useId()},st.useImperativeHandle=function(m,N,X){return H.H.useImperativeHandle(m,N,X)},st.useInsertionEffect=function(m,N){return H.H.useInsertionEffect(m,N)},st.useLayoutEffect=function(m,N){return H.H.useLayoutEffect(m,N)},st.useMemo=function(m,N){return H.H.useMemo(m,N)},st.useOptimistic=function(m,N){return H.H.useOptimistic(m,N)},st.useReducer=function(m,N,X){return H.H.useReducer(m,N,X)},st.useRef=function(m){return H.H.useRef(m)},st.useState=function(m){return H.H.useState(m)},st.useSyncExternalStore=function(m,N,X){return H.H.useSyncExternalStore(m,N,X)},st.useTransition=function(){return H.H.useTransition()},st.version="19.2.7",st}var Cy;function yr(){return Cy||(Cy=1,Yf.exports=xg()),Yf.exports}var I=yr(),ym=I.createContext(void 0),Gn=c=>{const i=I.useContext(ym);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},_g=({client:c,children:i})=>(I.useEffect(()=>(c.mount(),()=>{c.unmount()}),[c]),g.jsx(ym.Provider,{value:c,children:i})),mm=I.createContext(!1),jg=()=>I.useContext(mm);mm.Provider;function Ng(){let c=!1;return{clearReset:()=>{c=!1},reset:()=>{c=!0},isReset:()=>c}}var Cg=I.createContext(Ng()),Ug=()=>I.useContext(Cg),Rg=(c,i,f)=>{const r=f!=null&&f.state.error&&typeof c.throwOnError=="function"?hr(c.throwOnError,[f.state.error,f]):c.throwOnError;(c.suspense||c.experimental_prefetchInRender||r)&&(i.isReset()||(c.retryOnMount=!1))},Hg=c=>{I.useEffect(()=>{c.clearReset()},[c])},qg=({result:c,errorResetBoundary:i,throwOnError:f,query:r,suspense:h})=>c.isError&&!i.isReset()&&!c.isFetching&&r&&(h&&c.data===void 0||hr(f,[c.error,r])),Qg=c=>{if(c.suspense){const f=h=>h==="static"?h:Math.max(h??1e3,1e3),r=c.staleTime;c.staleTime=typeof r=="function"?(...h)=>f(r(...h)):f(r),typeof c.gcTime=="number"&&(c.gcTime=Math.max(c.gcTime,1e3))}},Bg=(c,i)=>c.isLoading&&c.isFetching&&!i,Yg=(c,i)=>(c==null?void 0:c.suspense)&&i.isPending,Uy=(c,i,f)=>i.fetchOptimistic(c).catch(()=>{f.clearReset()});function vm(c,i,f){var Q,B,K,$;const r=jg(),h=Ug(),b=Gn(),O=b.defaultQueryOptions(c);(B=(Q=b.getDefaultOptions().queries)==null?void 0:Q._experimental_beforeQuery)==null||B.call(Q,O);const R=b.getQueryCache().get(O.queryHash),j=c.subscribed!==!1;O._optimisticResults=r?"isRestoring":j?"optimistic":void 0,Qg(O),Rg(O,h,R),Hg(h);const E=!b.getQueryCache().get(O.queryHash),[q]=I.useState(()=>new i(b,O)),x=q.getOptimisticResult(O),L=!r&&j;if(I.useSyncExternalStore(I.useCallback(tt=>{const ct=L?q.subscribe(Wt.batchCalls(tt)):oe;return q.updateResult(),ct},[q,L]),()=>q.getCurrentResult(),()=>q.getCurrentResult()),I.useEffect(()=>{q.setOptions(O)},[O,q]),Yg(O,x))throw Uy(O,q,h);if(qg({result:x,errorResetBoundary:h,throwOnError:O.throwOnError,query:R,suspense:O.suspense}))throw x.error;if(($=(K=b.getDefaultOptions().queries)==null?void 0:K._experimental_afterQuery)==null||$.call(K,O,x),O.experimental_prefetchInRender&&!Yu.isServer()&&Bg(x,r)){const tt=E?Uy(O,q,h):R==null?void 0:R.promise;tt==null||tt.catch(oe).finally(()=>{q.updateResult()})}return O.notifyOnChangeProps?x:q.trackResult(x)}function mr(c,i){return vm(c,om)}function vr(c,i){const f=Gn(),[r]=I.useState(()=>new Og(f,c));I.useEffect(()=>{r.setOptions(c)},[r,c]);const h=I.useSyncExternalStore(I.useCallback(O=>r.subscribe(Wt.batchCalls(O)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),b=I.useCallback((O,R)=>{r.mutate(O,R).catch(oe)},[r]);if(h.error&&hr(r.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:b,mutateAsync:h.mutate}}function gm(c,i){return vm(c,Eg)}var Gf={exports:{}},Ru={},Xf={exports:{}},Lf={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Ry;function Gg(){return Ry||(Ry=1,(function(c){function i(M,G){var nt=M.length;M.push(G);t:for(;0<nt;){var Ot=nt-1>>>1,xt=M[Ot];if(0<h(xt,G))M[Ot]=G,M[nt]=xt,nt=Ot;else break t}}function f(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var G=M[0],nt=M.pop();if(nt!==G){M[0]=nt;t:for(var Ot=0,xt=M.length,m=xt>>>1;Ot<m;){var N=2*(Ot+1)-1,X=M[N],J=N+1,it=M[J];if(0>h(X,nt))J<xt&&0>h(it,X)?(M[Ot]=it,M[J]=nt,Ot=J):(M[Ot]=X,M[N]=nt,Ot=N);else if(J<xt&&0>h(it,nt))M[Ot]=it,M[J]=nt,Ot=J;else break t}}return G}function h(M,G){var nt=M.sortIndex-G.sortIndex;return nt!==0?nt:M.id-G.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var b=performance;c.unstable_now=function(){return b.now()}}else{var O=Date,R=O.now();c.unstable_now=function(){return O.now()-R}}var j=[],E=[],q=1,x=null,L=3,Q=!1,B=!1,K=!1,$=!1,tt=typeof setTimeout=="function"?setTimeout:null,ct=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function U(M){for(var G=f(E);G!==null;){if(G.callback===null)r(E);else if(G.startTime<=M)r(E),G.sortIndex=G.expirationTime,i(j,G);else break;G=f(E)}}function V(M){if(K=!1,U(M),!B)if(f(j)!==null)B=!0,Z||(Z=!0,vt());else{var G=f(E);G!==null&&Qt(V,G.startTime-M)}}var Z=!1,H=-1,W=5,rt=-1;function P(){return $?!0:!(c.unstable_now()-rt<W)}function lt(){if($=!1,Z){var M=c.unstable_now();rt=M;var G=!0;try{t:{B=!1,K&&(K=!1,ct(H),H=-1),Q=!0;var nt=L;try{e:{for(U(M),x=f(j);x!==null&&!(x.expirationTime>M&&P());){var Ot=x.callback;if(typeof Ot=="function"){x.callback=null,L=x.priorityLevel;var xt=Ot(x.expirationTime<=M);if(M=c.unstable_now(),typeof xt=="function"){x.callback=xt,U(M),G=!0;break e}x===f(j)&&r(j),U(M)}else r(j);x=f(j)}if(x!==null)G=!0;else{var m=f(E);m!==null&&Qt(V,m.startTime-M),G=!1}}break t}finally{x=null,L=nt,Q=!1}G=void 0}}finally{G?vt():Z=!1}}}var vt;if(typeof Y=="function")vt=function(){Y(lt)};else if(typeof MessageChannel<"u"){var Tt=new MessageChannel,Ht=Tt.port2;Tt.port1.onmessage=lt,vt=function(){Ht.postMessage(null)}}else vt=function(){tt(lt,0)};function Qt(M,G){H=tt(function(){M(c.unstable_now())},G)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(M){M.callback=null},c.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<M?Math.floor(1e3/M):5},c.unstable_getCurrentPriorityLevel=function(){return L},c.unstable_next=function(M){switch(L){case 1:case 2:case 3:var G=3;break;default:G=L}var nt=L;L=G;try{return M()}finally{L=nt}},c.unstable_requestPaint=function(){$=!0},c.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var nt=L;L=M;try{return G()}finally{L=nt}},c.unstable_scheduleCallback=function(M,G,nt){var Ot=c.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?Ot+nt:Ot):nt=Ot,M){case 1:var xt=-1;break;case 2:xt=250;break;case 5:xt=1073741823;break;case 4:xt=1e4;break;default:xt=5e3}return xt=nt+xt,M={id:q++,callback:G,priorityLevel:M,startTime:nt,expirationTime:xt,sortIndex:-1},nt>Ot?(M.sortIndex=nt,i(E,M),f(j)===null&&M===f(E)&&(K?(ct(H),H=-1):K=!0,Qt(V,nt-Ot))):(M.sortIndex=xt,i(j,M),B||Q||(B=!0,Z||(Z=!0,vt()))),M},c.unstable_shouldYield=P,c.unstable_wrapCallback=function(M){var G=L;return function(){var nt=L;L=G;try{return M.apply(this,arguments)}finally{L=nt}}}})(Lf)),Lf}var Hy;function Xg(){return Hy||(Hy=1,Xf.exports=Gg()),Xf.exports}var Zf={exports:{}},ce={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var qy;function Lg(){if(qy)return ce;qy=1;var c=yr();function i(j){var E="https://react.dev/errors/"+j;if(1<arguments.length){E+="?args[]="+encodeURIComponent(arguments[1]);for(var q=2;q<arguments.length;q++)E+="&args[]="+encodeURIComponent(arguments[q])}return"Minified React error #"+j+"; visit "+E+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(i(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function b(j,E,q){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:x==null?null:""+x,children:j,containerInfo:E,implementation:q}}var O=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(j,E){if(j==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}return ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ce.createPortal=function(j,E){var q=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error(i(299));return b(j,E,null,q)},ce.flushSync=function(j){var E=O.T,q=r.p;try{if(O.T=null,r.p=2,j)return j()}finally{O.T=E,r.p=q,r.d.f()}},ce.preconnect=function(j,E){typeof j=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,r.d.C(j,E))},ce.prefetchDNS=function(j){typeof j=="string"&&r.d.D(j)},ce.preinit=function(j,E){if(typeof j=="string"&&E&&typeof E.as=="string"){var q=E.as,x=R(q,E.crossOrigin),L=typeof E.integrity=="string"?E.integrity:void 0,Q=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;q==="style"?r.d.S(j,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:x,integrity:L,fetchPriority:Q}):q==="script"&&r.d.X(j,{crossOrigin:x,integrity:L,fetchPriority:Q,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},ce.preinitModule=function(j,E){if(typeof j=="string")if(typeof E=="object"&&E!==null){if(E.as==null||E.as==="script"){var q=R(E.as,E.crossOrigin);r.d.M(j,{crossOrigin:q,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})}}else E==null&&r.d.M(j)},ce.preload=function(j,E){if(typeof j=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){var q=E.as,x=R(q,E.crossOrigin);r.d.L(j,q,{crossOrigin:x,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},ce.preloadModule=function(j,E){if(typeof j=="string")if(E){var q=R(E.as,E.crossOrigin);r.d.m(j,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:q,integrity:typeof E.integrity=="string"?E.integrity:void 0})}else r.d.m(j)},ce.requestFormReset=function(j){r.d.r(j)},ce.unstable_batchedUpdates=function(j,E){return j(E)},ce.useFormState=function(j,E,q){return O.H.useFormState(j,E,q)},ce.useFormStatus=function(){return O.H.useHostTransitionStatus()},ce.version="19.2.7",ce}var Qy;function Zg(){if(Qy)return Zf.exports;Qy=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(i){console.error(i)}}return c(),Zf.exports=Lg(),Zf.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var By;function wg(){if(By)return Ru;By=1;var c=Xg(),i=yr(),f=Zg();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function b(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function O(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function R(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function j(t){if(b(t)!==t)throw Error(r(188))}function E(t){var e=t.alternate;if(!e){if(e=b(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return j(n),t;if(u===a)return j(n),e;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,o=n.child;o;){if(o===l){s=!0,l=n,a=u;break}if(o===a){s=!0,a=n,l=u;break}o=o.sibling}if(!s){for(o=u.child;o;){if(o===l){s=!0,l=u,a=n;break}if(o===a){s=!0,a=u,l=n;break}o=o.sibling}if(!s)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function q(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=q(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,L=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),tt=Symbol.for("react.profiler"),ct=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),rt=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function vt(t){return t===null||typeof t!="object"?null:(t=lt&&t[lt]||t["@@iterator"],typeof t=="function"?t:null)}var Tt=Symbol.for("react.client.reference");function Ht(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Tt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case K:return"Fragment";case tt:return"Profiler";case $:return"StrictMode";case V:return"Suspense";case Z:return"SuspenseList";case rt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case B:return"Portal";case Y:return t.displayName||"Context";case ct:return(t._context.displayName||"Context")+".Consumer";case U:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return e=t.displayName||null,e!==null?e:Ht(t.type)||"Memo";case W:e=t._payload,t=t._init;try{return Ht(t(e))}catch{}}return null}var Qt=Array.isArray,M=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},Ot=[],xt=-1;function m(t){return{current:t}}function N(t){0>xt||(t.current=Ot[xt],Ot[xt]=null,xt--)}function X(t,e){xt++,Ot[xt]=t.current,t.current=e}var J=m(null),it=m(null),dt=m(null),Et=m(null);function ee(t,e){switch(X(dt,e),X(it,t),X(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Zd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Zd(e),t=wd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(J),X(J,t)}function qt(){N(J),N(it),N(dt)}function ll(t){t.memoizedState!==null&&X(Et,t);var e=J.current,l=wd(e,t.type);e!==l&&(X(it,t),X(J,l))}function ra(t){it.current===t&&(N(J),N(it)),Et.current===t&&(N(Et),_u._currentValue=nt)}var Ku,pr;function oa(t){if(Ku===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Ku=e&&e[1]||"",pr=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ku+t+pr}var pc=!1;function bc(t,e){if(!t||pc)return"";pc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(A){var z=A}Reflect.construct(t,[],C)}else{try{C.call()}catch(A){z=A}t.call(C.prototype)}}else{try{throw Error()}catch(A){z=A}(C=t())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(A){if(A&&z&&typeof A.stack=="string")return[A.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),s=u[0],o=u[1];if(s&&o){var d=s.split(`
44
- `),T=o.split(`
45
- `);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===T.length)for(a=d.length-1,n=T.length-1;1<=a&&0<=n&&d[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==T[n]){var D=`
46
- `+d[a].replace(" at new "," at ");return t.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",t.displayName)),D}while(1<=a&&0<=n);break}}}finally{pc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?oa(l):""}function xm(t,e){switch(t.tag){case 26:case 27:case 5:return oa(t.type);case 16:return oa("Lazy");case 13:return t.child!==e&&e!==null?oa("Suspense Fallback"):oa("Suspense");case 19:return oa("SuspenseList");case 0:case 15:return bc(t.type,!1);case 11:return bc(t.type.render,!1);case 1:return bc(t.type,!0);case 31:return oa("Activity");default:return""}}function br(t){try{var e="",l=null;do e+=xm(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var Sc=Object.prototype.hasOwnProperty,Tc=c.unstable_scheduleCallback,Ec=c.unstable_cancelCallback,_m=c.unstable_shouldYield,jm=c.unstable_requestPaint,Te=c.unstable_now,Nm=c.unstable_getCurrentPriorityLevel,Sr=c.unstable_ImmediatePriority,Tr=c.unstable_UserBlockingPriority,Vu=c.unstable_NormalPriority,Cm=c.unstable_LowPriority,Er=c.unstable_IdlePriority,Um=c.log,Rm=c.unstable_setDisableYieldValue,Xn=null,Ee=null;function xl(t){if(typeof Um=="function"&&Rm(t),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(Xn,t)}catch{}}var ze=Math.clz32?Math.clz32:Qm,Hm=Math.log,qm=Math.LN2;function Qm(t){return t>>>=0,t===0?32:31-(Hm(t)/qm|0)|0}var Ju=256,Fu=262144,ku=4194304;function ha(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function $u(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=ha(a):(s&=o,s!==0?n=ha(s):l||(l=o&~t,l!==0&&(n=ha(l))))):(o=a&~u,o!==0?n=ha(o):s!==0?n=ha(s):l||(l=a&~t,l!==0&&(n=ha(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function Ln(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Bm(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 zr(){var t=ku;return ku<<=1,(ku&62914560)===0&&(ku=4194304),t}function zc(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Zn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ym(t,e,l,a,n,u){var s=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,d=t.expirationTimes,T=t.hiddenUpdates;for(l=s&~l;0<l;){var D=31-ze(l),C=1<<D;o[D]=0,d[D]=-1;var z=T[D];if(z!==null)for(T[D]=null,D=0;D<z.length;D++){var A=z[D];A!==null&&(A.lane&=-536870913)}l&=~C}a!==0&&Ar(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(s&~e))}function Ar(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ze(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function Or(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-ze(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function Mr(t,e){var l=e&-e;return l=(l&42)!==0?1:Ac(l),(l&(t.suspendedLanes|e))!==0?0:l}function Ac(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Oc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Dr(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:dy(t.type))}function xr(t,e){var l=G.p;try{return G.p=t,e()}finally{G.p=l}}var _l=Math.random().toString(36).slice(2),le="__reactFiber$"+_l,he="__reactProps$"+_l,Xa="__reactContainer$"+_l,Mc="__reactEvents$"+_l,Gm="__reactListeners$"+_l,Xm="__reactHandles$"+_l,_r="__reactResources$"+_l,wn="__reactMarker$"+_l;function Dc(t){delete t[le],delete t[he],delete t[Mc],delete t[Gm],delete t[Xm]}function La(t){var e=t[le];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Xa]||l[le]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Wd(t);t!==null;){if(l=t[le])return l;t=Wd(t)}return e}t=l,l=t.parentNode}return null}function Za(t){if(t=t[le]||t[Xa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Kn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function wa(t){var e=t[_r];return e||(e=t[_r]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[wn]=!0}var jr=new Set,Nr={};function da(t,e){Ka(t,e),Ka(t+"Capture",e)}function Ka(t,e){for(Nr[t]=e,t=0;t<e.length;t++)jr.add(e[t])}var Lm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cr={},Ur={};function Zm(t){return Sc.call(Ur,t)?!0:Sc.call(Cr,t)?!1:Lm.test(t)?Ur[t]=!0:(Cr[t]=!0,!1)}function Wu(t,e,l){if(Zm(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Pu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function al(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Re(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Rr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function wm(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function xc(t){if(!t._valueTracker){var e=Rr(t)?"checked":"value";t._valueTracker=wm(t,e,""+t[e])}}function Hr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Rr(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Iu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Km=/[\n"\\]/g;function He(t){return t.replace(Km,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function _c(t,e,l,a,n,u,s,o){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Re(e)):t.value!==""+Re(e)&&(t.value=""+Re(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?jc(t,s,Re(e)):l!=null?jc(t,s,Re(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+Re(o):t.removeAttribute("name")}function qr(t,e,l,a,n,u,s,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){xc(t);return}l=l!=null?""+Re(l):"",e=e!=null?""+Re(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s),xc(t)}function jc(t,e,l){e==="number"&&Iu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Va(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Re(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Qr(t,e,l){if(e!=null&&(e=""+Re(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Re(l):""}function Br(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(Qt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Re(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),xc(t)}function Ja(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Vm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yr(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Vm.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Gr(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&Yr(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&Yr(t,u,e[u])}function Nc(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Fm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ti(t){return Fm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function nl(){}var Cc=null;function Uc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fa=null,ka=null;function Xr(t){var e=Za(t);if(e&&(t=e.stateNode)){var l=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(_c(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+He(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[he]||null;if(!n)throw Error(r(90));_c(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Hr(a)}break t;case"textarea":Qr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Va(t,!!l.multiple,e,!1)}}}var Rc=!1;function Lr(t,e,l){if(Rc)return t(e,l);Rc=!0;try{var a=t(e);return a}finally{if(Rc=!1,(Fa!==null||ka!==null)&&(Xi(),Fa&&(e=Fa,t=ka,ka=Fa=null,Xr(e),t)))for(e=0;e<t.length;e++)Xr(t[e])}}function Vn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[he]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var ul=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=!1;if(ul)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){Hc=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{Hc=!1}var jl=null,qc=null,ei=null;function Zr(){if(ei)return ei;var t,e=qc,l=e.length,a,n="value"in jl?jl.value:jl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var s=l-t;for(a=1;a<=s&&e[l-a]===n[u-a];a++);return ei=n.slice(t,1<a?1-a:void 0)}function li(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ai(){return!0}function wr(){return!1}function de(t){function e(l,a,n,u,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ai:wr,this.isPropagationStopped=wr,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ai)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ai)},persist:function(){},isPersistent:ai}),e}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ni=de(ya),Fn=x({},ya,{view:0,detail:0}),km=de(Fn),Qc,Bc,kn,ui=x({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==kn&&(kn&&t.type==="mousemove"?(Qc=t.screenX-kn.screenX,Bc=t.screenY-kn.screenY):Bc=Qc=0,kn=t),Qc)},movementY:function(t){return"movementY"in t?t.movementY:Bc}}),Kr=de(ui),$m=x({},ui,{dataTransfer:0}),Wm=de($m),Pm=x({},Fn,{relatedTarget:0}),Yc=de(Pm),Im=x({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),tv=de(Im),ev=x({},ya,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),lv=de(ev),av=x({},ya,{data:0}),Vr=de(av),nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=iv[t])?!!e[t]:!1}function Gc(){return cv}var sv=x({},Fn,{key:function(t){if(t.key){var e=nv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=li(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?uv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gc,charCode:function(t){return t.type==="keypress"?li(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?li(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),fv=de(sv),rv=x({},ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jr=de(rv),ov=x({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gc}),hv=de(ov),dv=x({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),yv=de(dv),mv=x({},ui,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),vv=de(mv),gv=x({},ya,{newState:0,oldState:0}),pv=de(gv),bv=[9,13,27,32],Xc=ul&&"CompositionEvent"in window,$n=null;ul&&"documentMode"in document&&($n=document.documentMode);var Sv=ul&&"TextEvent"in window&&!$n,Fr=ul&&(!Xc||$n&&8<$n&&11>=$n),kr=" ",$r=!1;function Wr(t,e){switch(t){case"keyup":return bv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var $a=!1;function Tv(t,e){switch(t){case"compositionend":return Pr(e);case"keypress":return e.which!==32?null:($r=!0,kr);case"textInput":return t=e.data,t===kr&&$r?null:t;default:return null}}function Ev(t,e){if($a)return t==="compositionend"||!Xc&&Wr(t,e)?(t=Zr(),ei=qc=jl=null,$a=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Fr&&e.locale!=="ko"?null:e.data;default:return null}}var zv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ir(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!zv[t.type]:e==="textarea"}function to(t,e,l,a){Fa?ka?ka.push(a):ka=[a]:Fa=a,e=Fi(e,"onChange"),0<e.length&&(l=new ni("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var Wn=null,Pn=null;function Av(t){Qd(t,0)}function ii(t){var e=Kn(t);if(Hr(e))return t}function eo(t,e){if(t==="change")return e}var lo=!1;if(ul){var Lc;if(ul){var Zc="oninput"in document;if(!Zc){var ao=document.createElement("div");ao.setAttribute("oninput","return;"),Zc=typeof ao.oninput=="function"}Lc=Zc}else Lc=!1;lo=Lc&&(!document.documentMode||9<document.documentMode)}function no(){Wn&&(Wn.detachEvent("onpropertychange",uo),Pn=Wn=null)}function uo(t){if(t.propertyName==="value"&&ii(Pn)){var e=[];to(e,Pn,t,Uc(t)),Lr(Av,e)}}function Ov(t,e,l){t==="focusin"?(no(),Wn=e,Pn=l,Wn.attachEvent("onpropertychange",uo)):t==="focusout"&&no()}function Mv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ii(Pn)}function Dv(t,e){if(t==="click")return ii(e)}function xv(t,e){if(t==="input"||t==="change")return ii(e)}function _v(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ae=typeof Object.is=="function"?Object.is:_v;function In(t,e){if(Ae(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Sc.call(e,n)||!Ae(t[n],e[n]))return!1}return!0}function io(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function co(t,e){var l=io(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=io(l)}}function so(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?so(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function fo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Iu(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Iu(t.document)}return e}function wc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var jv=ul&&"documentMode"in document&&11>=document.documentMode,Wa=null,Kc=null,tu=null,Vc=!1;function ro(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vc||Wa==null||Wa!==Iu(a)||(a=Wa,"selectionStart"in a&&wc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),tu&&In(tu,a)||(tu=a,a=Fi(Kc,"onSelect"),0<a.length&&(e=new ni("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Wa)))}function ma(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Pa={animationend:ma("Animation","AnimationEnd"),animationiteration:ma("Animation","AnimationIteration"),animationstart:ma("Animation","AnimationStart"),transitionrun:ma("Transition","TransitionRun"),transitionstart:ma("Transition","TransitionStart"),transitioncancel:ma("Transition","TransitionCancel"),transitionend:ma("Transition","TransitionEnd")},Jc={},oo={};ul&&(oo=document.createElement("div").style,"AnimationEvent"in window||(delete Pa.animationend.animation,delete Pa.animationiteration.animation,delete Pa.animationstart.animation),"TransitionEvent"in window||delete Pa.transitionend.transition);function va(t){if(Jc[t])return Jc[t];if(!Pa[t])return t;var e=Pa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in oo)return Jc[t]=e[l];return t}var ho=va("animationend"),yo=va("animationiteration"),mo=va("animationstart"),Nv=va("transitionrun"),Cv=va("transitionstart"),Uv=va("transitioncancel"),vo=va("transitionend"),go=new Map,Fc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fc.push("scrollEnd");function Ke(t,e){go.set(t,e),da(e,[t])}var ci=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},qe=[],Ia=0,kc=0;function si(){for(var t=Ia,e=kc=Ia=0;e<t;){var l=qe[e];qe[e++]=null;var a=qe[e];qe[e++]=null;var n=qe[e];qe[e++]=null;var u=qe[e];if(qe[e++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}u!==0&&po(l,n,u)}}function fi(t,e,l,a){qe[Ia++]=t,qe[Ia++]=e,qe[Ia++]=l,qe[Ia++]=a,kc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function $c(t,e,l,a){return fi(t,e,l,a),ri(t)}function ga(t,e){return fi(t,null,null,e),ri(t)}function po(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-ze(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function ri(t){if(50<Eu)throw Eu=0,uf=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var tn={};function Rv(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(t,e,l,a){return new Rv(t,e,l,a)}function Wc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function il(t,e){var l=t.alternate;return l===null?(l=Oe(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function bo(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function oi(t,e,l,a,n,u){var s=0;if(a=t,typeof t=="function")Wc(t)&&(s=1);else if(typeof t=="string")s=Y0(t,l,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case rt:return t=Oe(31,l,e,n),t.elementType=rt,t.lanes=u,t;case K:return pa(l.children,n,u,e);case $:s=8,n|=24;break;case tt:return t=Oe(12,l,e,n|2),t.elementType=tt,t.lanes=u,t;case V:return t=Oe(13,l,e,n),t.elementType=V,t.lanes=u,t;case Z:return t=Oe(19,l,e,n),t.elementType=Z,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y:s=10;break t;case ct:s=9;break t;case U:s=11;break t;case H:s=14;break t;case W:s=16,a=null;break t}s=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=Oe(s,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function pa(t,e,l,a){return t=Oe(7,t,a,e),t.lanes=l,t}function Pc(t,e,l){return t=Oe(6,t,null,e),t.lanes=l,t}function So(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function Ic(t,e,l){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var To=new WeakMap;function Qe(t,e){if(typeof t=="object"&&t!==null){var l=To.get(t);return l!==void 0?l:(e={value:t,source:e,stack:br(e)},To.set(t,e),e)}return{value:t,source:e,stack:br(e)}}var en=[],ln=0,hi=null,eu=0,Be=[],Ye=0,Nl=null,ke=1,$e="";function cl(t,e){en[ln++]=eu,en[ln++]=hi,hi=t,eu=e}function Eo(t,e,l){Be[Ye++]=ke,Be[Ye++]=$e,Be[Ye++]=Nl,Nl=t;var a=ke;t=$e;var n=32-ze(a)-1;a&=~(1<<n),l+=1;var u=32-ze(e)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,ke=1<<32-ze(e)+n|l<<n|a,$e=u+t}else ke=1<<u|l<<n|a,$e=t}function ts(t){t.return!==null&&(cl(t,1),Eo(t,1,0))}function es(t){for(;t===hi;)hi=en[--ln],en[ln]=null,eu=en[--ln],en[ln]=null;for(;t===Nl;)Nl=Be[--Ye],Be[Ye]=null,$e=Be[--Ye],Be[Ye]=null,ke=Be[--Ye],Be[Ye]=null}function zo(t,e){Be[Ye++]=ke,Be[Ye++]=$e,Be[Ye++]=Nl,ke=e.id,$e=e.overflow,Nl=t}var ae=null,Bt=null,bt=!1,Cl=null,Ge=!1,ls=Error(r(519));function Ul(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw lu(Qe(e,t)),ls}function Ao(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[le]=t,e[he]=a,l){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(l=0;l<Au.length;l++)mt(Au[l],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),qr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),Br(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Xd(e.textContent,l)?(a.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),a.onScroll!=null&&mt("scroll",e),a.onScrollEnd!=null&&mt("scrollend",e),a.onClick!=null&&(e.onclick=nl),e=!0):e=!1,e||Ul(t,!0)}function Oo(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:ae=ae.return}}function an(t){if(t!==ae)return!1;if(!bt)return Oo(t),bt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Tf(t.type,t.memoizedProps)),l=!l),l&&Bt&&Ul(t),Oo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=$d(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=$d(t)}else e===27?(e=Bt,Jl(t.type)?(t=Mf,Mf=null,Bt=t):Bt=e):Bt=ae?Le(t.stateNode.nextSibling):null;return!0}function ba(){Bt=ae=null,bt=!1}function as(){var t=Cl;return t!==null&&(ge===null?ge=t:ge.push.apply(ge,t),Cl=null),t}function lu(t){Cl===null?Cl=[t]:Cl.push(t)}var ns=m(null),Sa=null,sl=null;function Rl(t,e,l){X(ns,e._currentValue),e._currentValue=l}function fl(t){t._currentValue=ns.current,N(ns)}function us(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function is(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var s=n.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=n;for(var d=0;d<e.length;d++)if(o.context===e[d]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),us(u.return,l,t),a||(s=null);break t}u=o.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(r(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),us(s,l,t),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function nn(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var o=n.type;Ae(n.pendingProps.value,s.value)||(t!==null?t.push(o):t=[o])}}else if(n===Et.current){if(s=n.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(_u):t=[_u])}n=n.return}t!==null&&is(e,t,l,a),e.flags|=262144}function di(t){for(t=t.firstContext;t!==null;){if(!Ae(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ta(t){Sa=t,sl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ne(t){return Mo(Sa,t)}function yi(t,e){return Sa===null&&Ta(t),Mo(t,e)}function Mo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},sl===null){if(t===null)throw Error(r(308));sl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else sl=sl.next=e;return l}var Hv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},qv=c.unstable_scheduleCallback,Qv=c.unstable_NormalPriority,Vt={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cs(){return{controller:new Hv,data:new Map,refCount:0}}function au(t){t.refCount--,t.refCount===0&&qv(Qv,function(){t.controller.abort()})}var nu=null,ss=0,un=0,cn=null;function Bv(t,e){if(nu===null){var l=nu=[];ss=0,un=hf(),cn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ss++,e.then(Do,Do),e}function Do(){if(--ss===0&&nu!==null){cn!==null&&(cn.status="fulfilled");var t=nu;nu=null,un=0,cn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Yv(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var xo=M.S;M.S=function(t,e){od=Te(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Bv(t,e),xo!==null&&xo(t,e)};var Ea=m(null);function fs(){var t=Ea.current;return t!==null?t:Rt.pooledCache}function mi(t,e){e===null?X(Ea,Ea.current):X(Ea,e.pool)}function _o(){var t=fs();return t===null?null:{parent:Vt._currentValue,pool:t}}var sn=Error(r(460)),rs=Error(r(474)),vi=Error(r(542)),gi={then:function(){}};function jo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function No(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(nl,nl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Uo(t),t;default:if(typeof e.status=="string")e.then(nl,nl);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Uo(t),t}throw Aa=e,sn}}function za(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Aa=l,sn):l}}var Aa=null;function Co(){if(Aa===null)throw Error(r(459));var t=Aa;return Aa=null,t}function Uo(t){if(t===sn||t===vi)throw Error(r(483))}var fn=null,uu=0;function pi(t){var e=uu;return uu+=1,fn===null&&(fn=[]),No(fn,t,e)}function iu(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function bi(t,e){throw e.$$typeof===L?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Ro(t){function e(p,v){if(t){var S=p.deletions;S===null?(p.deletions=[v],p.flags|=16):S.push(v)}}function l(p,v){if(!t)return null;for(;v!==null;)e(p,v),v=v.sibling;return null}function a(p){for(var v=new Map;p!==null;)p.key!==null?v.set(p.key,p):v.set(p.index,p),p=p.sibling;return v}function n(p,v){return p=il(p,v),p.index=0,p.sibling=null,p}function u(p,v,S){return p.index=S,t?(S=p.alternate,S!==null?(S=S.index,S<v?(p.flags|=67108866,v):S):(p.flags|=67108866,v)):(p.flags|=1048576,v)}function s(p){return t&&p.alternate===null&&(p.flags|=67108866),p}function o(p,v,S,_){return v===null||v.tag!==6?(v=Pc(S,p.mode,_),v.return=p,v):(v=n(v,S),v.return=p,v)}function d(p,v,S,_){var at=S.type;return at===K?D(p,v,S.props.children,_,S.key):v!==null&&(v.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===W&&za(at)===v.type)?(v=n(v,S.props),iu(v,S),v.return=p,v):(v=oi(S.type,S.key,S.props,null,p.mode,_),iu(v,S),v.return=p,v)}function T(p,v,S,_){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Ic(S,p.mode,_),v.return=p,v):(v=n(v,S.children||[]),v.return=p,v)}function D(p,v,S,_,at){return v===null||v.tag!==7?(v=pa(S,p.mode,_,at),v.return=p,v):(v=n(v,S),v.return=p,v)}function C(p,v,S){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Pc(""+v,p.mode,S),v.return=p,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Q:return S=oi(v.type,v.key,v.props,null,p.mode,S),iu(S,v),S.return=p,S;case B:return v=Ic(v,p.mode,S),v.return=p,v;case W:return v=za(v),C(p,v,S)}if(Qt(v)||vt(v))return v=pa(v,p.mode,S,null),v.return=p,v;if(typeof v.then=="function")return C(p,pi(v),S);if(v.$$typeof===Y)return C(p,yi(p,v),S);bi(p,v)}return null}function z(p,v,S,_){var at=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return at!==null?null:o(p,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Q:return S.key===at?d(p,v,S,_):null;case B:return S.key===at?T(p,v,S,_):null;case W:return S=za(S),z(p,v,S,_)}if(Qt(S)||vt(S))return at!==null?null:D(p,v,S,_,null);if(typeof S.then=="function")return z(p,v,pi(S),_);if(S.$$typeof===Y)return z(p,v,yi(p,S),_);bi(p,S)}return null}function A(p,v,S,_,at){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return p=p.get(S)||null,o(v,p,""+_,at);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Q:return p=p.get(_.key===null?S:_.key)||null,d(v,p,_,at);case B:return p=p.get(_.key===null?S:_.key)||null,T(v,p,_,at);case W:return _=za(_),A(p,v,S,_,at)}if(Qt(_)||vt(_))return p=p.get(S)||null,D(v,p,_,at,null);if(typeof _.then=="function")return A(p,v,S,pi(_),at);if(_.$$typeof===Y)return A(p,v,S,yi(v,_),at);bi(v,_)}return null}function F(p,v,S,_){for(var at=null,zt=null,k=v,ot=v=0,pt=null;k!==null&&ot<S.length;ot++){k.index>ot?(pt=k,k=null):pt=k.sibling;var At=z(p,k,S[ot],_);if(At===null){k===null&&(k=pt);break}t&&k&&At.alternate===null&&e(p,k),v=u(At,v,ot),zt===null?at=At:zt.sibling=At,zt=At,k=pt}if(ot===S.length)return l(p,k),bt&&cl(p,ot),at;if(k===null){for(;ot<S.length;ot++)k=C(p,S[ot],_),k!==null&&(v=u(k,v,ot),zt===null?at=k:zt.sibling=k,zt=k);return bt&&cl(p,ot),at}for(k=a(k);ot<S.length;ot++)pt=A(k,p,ot,S[ot],_),pt!==null&&(t&&pt.alternate!==null&&k.delete(pt.key===null?ot:pt.key),v=u(pt,v,ot),zt===null?at=pt:zt.sibling=pt,zt=pt);return t&&k.forEach(function(Pl){return e(p,Pl)}),bt&&cl(p,ot),at}function ut(p,v,S,_){if(S==null)throw Error(r(151));for(var at=null,zt=null,k=v,ot=v=0,pt=null,At=S.next();k!==null&&!At.done;ot++,At=S.next()){k.index>ot?(pt=k,k=null):pt=k.sibling;var Pl=z(p,k,At.value,_);if(Pl===null){k===null&&(k=pt);break}t&&k&&Pl.alternate===null&&e(p,k),v=u(Pl,v,ot),zt===null?at=Pl:zt.sibling=Pl,zt=Pl,k=pt}if(At.done)return l(p,k),bt&&cl(p,ot),at;if(k===null){for(;!At.done;ot++,At=S.next())At=C(p,At.value,_),At!==null&&(v=u(At,v,ot),zt===null?at=At:zt.sibling=At,zt=At);return bt&&cl(p,ot),at}for(k=a(k);!At.done;ot++,At=S.next())At=A(k,p,ot,At.value,_),At!==null&&(t&&At.alternate!==null&&k.delete(At.key===null?ot:At.key),v=u(At,v,ot),zt===null?at=At:zt.sibling=At,zt=At);return t&&k.forEach(function($0){return e(p,$0)}),bt&&cl(p,ot),at}function Ut(p,v,S,_){if(typeof S=="object"&&S!==null&&S.type===K&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Q:t:{for(var at=S.key;v!==null;){if(v.key===at){if(at=S.type,at===K){if(v.tag===7){l(p,v.sibling),_=n(v,S.props.children),_.return=p,p=_;break t}}else if(v.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===W&&za(at)===v.type){l(p,v.sibling),_=n(v,S.props),iu(_,S),_.return=p,p=_;break t}l(p,v);break}else e(p,v);v=v.sibling}S.type===K?(_=pa(S.props.children,p.mode,_,S.key),_.return=p,p=_):(_=oi(S.type,S.key,S.props,null,p.mode,_),iu(_,S),_.return=p,p=_)}return s(p);case B:t:{for(at=S.key;v!==null;){if(v.key===at)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){l(p,v.sibling),_=n(v,S.children||[]),_.return=p,p=_;break t}else{l(p,v);break}else e(p,v);v=v.sibling}_=Ic(S,p.mode,_),_.return=p,p=_}return s(p);case W:return S=za(S),Ut(p,v,S,_)}if(Qt(S))return F(p,v,S,_);if(vt(S)){if(at=vt(S),typeof at!="function")throw Error(r(150));return S=at.call(S),ut(p,v,S,_)}if(typeof S.then=="function")return Ut(p,v,pi(S),_);if(S.$$typeof===Y)return Ut(p,v,yi(p,S),_);bi(p,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,v!==null&&v.tag===6?(l(p,v.sibling),_=n(v,S),_.return=p,p=_):(l(p,v),_=Pc(S,p.mode,_),_.return=p,p=_),s(p)):l(p,v)}return function(p,v,S,_){try{uu=0;var at=Ut(p,v,S,_);return fn=null,at}catch(k){if(k===sn||k===vi)throw k;var zt=Oe(29,k,null,p.mode);return zt.lanes=_,zt.return=p,zt}finally{}}}var Oa=Ro(!0),Ho=Ro(!1),Hl=!1;function os(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hs(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ql(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ql(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Mt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=ri(t),po(t,null,l),e}return fi(t,a,e,l),ri(t)}function cu(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Or(t,l)}}function ds(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var ys=!1;function su(){if(ys){var t=cn;if(t!==null)throw t}}function fu(t,e,l,a){ys=!1;var n=t.updateQueue;Hl=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var d=o,T=d.next;d.next=null,s===null?u=T:s.next=T,s=d;var D=t.alternate;D!==null&&(D=D.updateQueue,o=D.lastBaseUpdate,o!==s&&(o===null?D.firstBaseUpdate=T:o.next=T,D.lastBaseUpdate=d))}if(u!==null){var C=n.baseState;s=0,D=T=d=null,o=u;do{var z=o.lane&-536870913,A=z!==o.lane;if(A?(gt&z)===z:(a&z)===z){z!==0&&z===un&&(ys=!0),D!==null&&(D=D.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var F=t,ut=o;z=e;var Ut=l;switch(ut.tag){case 1:if(F=ut.payload,typeof F=="function"){C=F.call(Ut,C,z);break t}C=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=ut.payload,z=typeof F=="function"?F.call(Ut,C,z):F,z==null)break t;C=x({},C,z);break t;case 2:Hl=!0}}z=o.callback,z!==null&&(t.flags|=64,A&&(t.flags|=8192),A=n.callbacks,A===null?n.callbacks=[z]:A.push(z))}else A={lane:z,tag:o.tag,payload:o.payload,callback:o.callback,next:null},D===null?(T=D=A,d=C):D=D.next=A,s|=z;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;A=o,o=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);D===null&&(d=C),n.baseState=d,n.firstBaseUpdate=T,n.lastBaseUpdate=D,u===null&&(n.shared.lanes=0),Ll|=s,t.lanes=s,t.memoizedState=C}}function qo(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Qo(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)qo(l[t],e)}var rn=m(null),Si=m(0);function Bo(t,e){t=pl,X(Si,t),X(rn,e),pl=t|e.baseLanes}function ms(){X(Si,pl),X(rn,rn.current)}function vs(){pl=Si.current,N(rn),N(Si)}var Me=m(null),Xe=null;function Bl(t){var e=t.alternate;X(wt,wt.current&1),X(Me,t),Xe===null&&(e===null||rn.current!==null||e.memoizedState!==null)&&(Xe=t)}function gs(t){X(wt,wt.current),X(Me,t),Xe===null&&(Xe=t)}function Yo(t){t.tag===22?(X(wt,wt.current),X(Me,t),Xe===null&&(Xe=t)):Yl()}function Yl(){X(wt,wt.current),X(Me,Me.current)}function De(t){N(Me),Xe===t&&(Xe=null),N(wt)}var wt=m(0);function Ti(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Af(l)||Of(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var rl=0,ft=null,Nt=null,Jt=null,Ei=!1,on=!1,Ma=!1,zi=0,ru=0,hn=null,Gv=0;function Xt(){throw Error(r(321))}function ps(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!Ae(t[l],e[l]))return!1;return!0}function bs(t,e,l,a,n,u){return rl=u,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,M.H=t===null||t.memoizedState===null?Eh:Rs,Ma=!1,u=l(a,n),Ma=!1,on&&(u=Xo(e,l,a,n)),Go(t),u}function Go(t){M.H=du;var e=Nt!==null&&Nt.next!==null;if(rl=0,Jt=Nt=ft=null,Ei=!1,ru=0,hn=null,e)throw Error(r(300));t===null||Ft||(t=t.dependencies,t!==null&&di(t)&&(Ft=!0))}function Xo(t,e,l,a){ft=t;var n=0;do{if(on&&(hn=null),ru=0,on=!1,25<=n)throw Error(r(301));if(n+=1,Jt=Nt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=zh,u=e(l,a)}while(on);return u}function Xv(){var t=M.H,e=t.useState()[0];return e=typeof e.then=="function"?ou(e):e,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(ft.flags|=1024),e}function Ss(){var t=zi!==0;return zi=0,t}function Ts(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Es(t){if(Ei){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ei=!1}rl=0,Jt=Nt=ft=null,on=!1,ru=zi=0,hn=null}function fe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?ft.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Kt(){if(Nt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var e=Jt===null?ft.memoizedState:Jt.next;if(e!==null)Jt=e,Nt=t;else{if(t===null)throw ft.alternate===null?Error(r(467)):Error(r(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Jt===null?ft.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function Ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ou(t){var e=ru;return ru+=1,hn===null&&(hn=[]),t=No(hn,t,e),e=ft,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,M.H=e===null||e.memoizedState===null?Eh:Rs),t}function Oi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ou(t);if(t.$$typeof===Y)return ne(t)}throw Error(r(438,String(t)))}function zs(t){var e=null,l=ft.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=ft.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Ai(),ft.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=P;return e.index++,l}function ol(t,e){return typeof e=="function"?e(t):e}function Mi(t){var e=Kt();return As(e,Nt,t)}function As(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var s=n.next;n.next=u.next,u.next=s}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var o=s=null,d=null,T=e,D=!1;do{var C=T.lane&-536870913;if(C!==T.lane?(gt&C)===C:(rl&C)===C){var z=T.revertLane;if(z===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),C===un&&(D=!0);else if((rl&z)===z){T=T.next,z===un&&(D=!0);continue}else C={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},d===null?(o=d=C,s=u):d=d.next=C,ft.lanes|=z,Ll|=z;C=T.action,Ma&&l(u,C),u=T.hasEagerState?T.eagerState:l(u,C)}else z={lane:C,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},d===null?(o=d=z,s=u):d=d.next=z,ft.lanes|=C,Ll|=C;T=T.next}while(T!==null&&T!==e);if(d===null?s=u:d.next=o,!Ae(u,t.memoizedState)&&(Ft=!0,D&&(l=cn,l!==null)))throw l;t.memoizedState=u,t.baseState=s,t.baseQueue=d,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Os(t){var e=Kt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do u=t(u,s.action),s=s.next;while(s!==n);Ae(u,e.memoizedState)||(Ft=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function Lo(t,e,l){var a=ft,n=Kt(),u=bt;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=e();var s=!Ae((Nt||n).memoizedState,l);if(s&&(n.memoizedState=l,Ft=!0),n=n.queue,xs(Ko.bind(null,a,n,t),[t]),n.getSnapshot!==e||s||Jt!==null&&Jt.memoizedState.tag&1){if(a.flags|=2048,dn(9,{destroy:void 0},wo.bind(null,a,n,l,e),null),Rt===null)throw Error(r(349));u||(rl&127)!==0||Zo(a,e,l)}return l}function Zo(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ft.updateQueue,e===null?(e=Ai(),ft.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function wo(t,e,l,a){e.value=l,e.getSnapshot=a,Vo(e)&&Jo(t)}function Ko(t,e,l){return l(function(){Vo(e)&&Jo(t)})}function Vo(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!Ae(t,l)}catch{return!0}}function Jo(t){var e=ga(t,2);e!==null&&pe(e,t,2)}function Ms(t){var e=fe();if(typeof t=="function"){var l=t;if(t=l(),Ma){xl(!0);try{l()}finally{xl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:t},e}function Fo(t,e,l,a){return t.baseState=l,As(t,Nt,typeof a=="function"?a:ol)}function Lv(t,e,l,a,n){if(_i(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};M.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,ko(e,u)):(u.next=l.next,e.pending=l.next=u)}}function ko(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=M.T,s={};M.T=s;try{var o=l(n,a),d=M.S;d!==null&&d(s,o),$o(t,e,o)}catch(T){Ds(t,e,T)}finally{u!==null&&s.types!==null&&(u.types=s.types),M.T=u}}else try{u=l(n,a),$o(t,e,u)}catch(T){Ds(t,e,T)}}function $o(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Wo(t,e,a)},function(a){return Ds(t,e,a)}):Wo(t,e,l)}function Wo(t,e,l){e.status="fulfilled",e.value=l,Po(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,ko(t,l)))}function Ds(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Po(e),e=e.next;while(e!==a)}t.action=null}function Po(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Io(t,e){return e}function th(t,e){if(bt){var l=Rt.formState;if(l!==null){t:{var a=ft;if(bt){if(Bt){e:{for(var n=Bt,u=Ge;n.nodeType!==8;){if(!u){n=null;break e}if(n=Le(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Bt=Le(n.nextSibling),a=n.data==="F!";break t}}Ul(a)}a=!1}a&&(e=l[0])}}return l=fe(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},l.queue=a,l=bh.bind(null,ft,a),a.dispatch=l,a=Ms(!1),u=Us.bind(null,ft,!1,a.queue),a=fe(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Lv.bind(null,ft,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function eh(t){var e=Kt();return lh(e,Nt,t)}function lh(t,e,l){if(e=As(t,e,Io)[0],t=Mi(ol)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=ou(e)}catch(s){throw s===sn?vi:s}else a=e;e=Kt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(ft.flags|=2048,dn(9,{destroy:void 0},Zv.bind(null,n,l),null)),[a,u,t]}function Zv(t,e){t.action=e}function ah(t){var e=Kt(),l=Nt;if(l!==null)return lh(e,l,t);Kt(),e=e.memoizedState,l=Kt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function dn(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=ft.updateQueue,e===null&&(e=Ai(),ft.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function nh(){return Kt().memoizedState}function Di(t,e,l,a){var n=fe();ft.flags|=t,n.memoizedState=dn(1|e,{destroy:void 0},l,a===void 0?null:a)}function xi(t,e,l,a){var n=Kt();a=a===void 0?null:a;var u=n.memoizedState.inst;Nt!==null&&a!==null&&ps(a,Nt.memoizedState.deps)?n.memoizedState=dn(e,u,l,a):(ft.flags|=t,n.memoizedState=dn(1|e,u,l,a))}function uh(t,e){Di(8390656,8,t,e)}function xs(t,e){xi(2048,8,t,e)}function wv(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=Ai(),ft.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function ih(t){var e=Kt().memoizedState;return wv({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function ch(t,e){return xi(4,2,t,e)}function sh(t,e){return xi(4,4,t,e)}function fh(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function rh(t,e,l){l=l!=null?l.concat([t]):null,xi(4,4,fh.bind(null,e,t),l)}function _s(){}function oh(t,e){var l=Kt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&ps(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function hh(t,e){var l=Kt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&ps(e,a[1]))return a[0];if(a=t(),Ma){xl(!0);try{t()}finally{xl(!1)}}return l.memoizedState=[a,e],a}function js(t,e,l){return l===void 0||(rl&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=dd(),ft.lanes|=t,Ll|=t,l)}function dh(t,e,l,a){return Ae(l,e)?l:rn.current!==null?(t=js(t,l,a),Ae(t,e)||(Ft=!0),t):(rl&42)===0||(rl&1073741824)!==0&&(gt&261930)===0?(Ft=!0,t.memoizedState=l):(t=dd(),ft.lanes|=t,Ll|=t,e)}function yh(t,e,l,a,n){var u=G.p;G.p=u!==0&&8>u?u:8;var s=M.T,o={};M.T=o,Us(t,!1,e,l);try{var d=n(),T=M.S;if(T!==null&&T(o,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var D=Yv(d,a);hu(t,e,D,je(t))}else hu(t,e,a,je(t))}catch(C){hu(t,e,{then:function(){},status:"rejected",reason:C},je())}finally{G.p=u,s!==null&&o.types!==null&&(s.types=o.types),M.T=s}}function Kv(){}function Ns(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=mh(t).queue;yh(t,n,e,nt,l===null?Kv:function(){return vh(t),l(a)})}function mh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:nt},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function vh(t){var e=mh(t);e.next===null&&(e=t.alternate.memoizedState),hu(t,e.next.queue,{},je())}function Cs(){return ne(_u)}function gh(){return Kt().memoizedState}function ph(){return Kt().memoizedState}function Vv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=je();t=ql(l);var a=Ql(e,t,l);a!==null&&(pe(a,e,l),cu(a,e,l)),e={cache:cs()},t.payload=e;return}e=e.return}}function Jv(t,e,l){var a=je();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_i(t)?Sh(e,l):(l=$c(t,e,l,a),l!==null&&(pe(l,t,a),Th(l,e,a)))}function bh(t,e,l){var a=je();hu(t,e,l,a)}function hu(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(_i(t))Sh(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var s=e.lastRenderedState,o=u(s,l);if(n.hasEagerState=!0,n.eagerState=o,Ae(o,s))return fi(t,e,n,0),Rt===null&&si(),!1}catch{}finally{}if(l=$c(t,e,n,a),l!==null)return pe(l,t,a),Th(l,e,a),!0}return!1}function Us(t,e,l,a){if(a={lane:2,revertLane:hf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_i(t)){if(e)throw Error(r(479))}else e=$c(t,l,a,2),e!==null&&pe(e,t,2)}function _i(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Sh(t,e){on=Ei=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Th(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Or(t,l)}}var du={readContext:ne,use:Oi,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};du.useEffectEvent=Xt;var Eh={readContext:ne,use:Oi,useCallback:function(t,e){return fe().memoizedState=[t,e===void 0?null:e],t},useContext:ne,useEffect:uh,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Di(4194308,4,fh.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Di(4194308,4,t,e)},useInsertionEffect:function(t,e){Di(4,2,t,e)},useMemo:function(t,e){var l=fe();e=e===void 0?null:e;var a=t();if(Ma){xl(!0);try{t()}finally{xl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=fe();if(l!==void 0){var n=l(e);if(Ma){xl(!0);try{l(e)}finally{xl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Jv.bind(null,ft,t),[a.memoizedState,t]},useRef:function(t){var e=fe();return t={current:t},e.memoizedState=t},useState:function(t){t=Ms(t);var e=t.queue,l=bh.bind(null,ft,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:_s,useDeferredValue:function(t,e){var l=fe();return js(l,t,e)},useTransition:function(){var t=Ms(!1);return t=yh.bind(null,ft,t.queue,!0,!1),fe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=ft,n=fe();if(bt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Rt===null)throw Error(r(349));(gt&127)!==0||Zo(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,uh(Ko.bind(null,a,u,t),[t]),a.flags|=2048,dn(9,{destroy:void 0},wo.bind(null,a,u,l,e),null),l},useId:function(){var t=fe(),e=Rt.identifierPrefix;if(bt){var l=$e,a=ke;l=(a&~(1<<32-ze(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=zi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Gv++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cs,useFormState:th,useActionState:th,useOptimistic:function(t){var e=fe();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Us.bind(null,ft,!0,l),l.dispatch=e,[t,e]},useMemoCache:zs,useCacheRefresh:function(){return fe().memoizedState=Vv.bind(null,ft)},useEffectEvent:function(t){var e=fe(),l={impl:t};return e.memoizedState=l,function(){if((Mt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Rs={readContext:ne,use:Oi,useCallback:oh,useContext:ne,useEffect:xs,useImperativeHandle:rh,useInsertionEffect:ch,useLayoutEffect:sh,useMemo:hh,useReducer:Mi,useRef:nh,useState:function(){return Mi(ol)},useDebugValue:_s,useDeferredValue:function(t,e){var l=Kt();return dh(l,Nt.memoizedState,t,e)},useTransition:function(){var t=Mi(ol)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:ou(t),e]},useSyncExternalStore:Lo,useId:gh,useHostTransitionStatus:Cs,useFormState:eh,useActionState:eh,useOptimistic:function(t,e){var l=Kt();return Fo(l,Nt,t,e)},useMemoCache:zs,useCacheRefresh:ph};Rs.useEffectEvent=ih;var zh={readContext:ne,use:Oi,useCallback:oh,useContext:ne,useEffect:xs,useImperativeHandle:rh,useInsertionEffect:ch,useLayoutEffect:sh,useMemo:hh,useReducer:Os,useRef:nh,useState:function(){return Os(ol)},useDebugValue:_s,useDeferredValue:function(t,e){var l=Kt();return Nt===null?js(l,t,e):dh(l,Nt.memoizedState,t,e)},useTransition:function(){var t=Os(ol)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:ou(t),e]},useSyncExternalStore:Lo,useId:gh,useHostTransitionStatus:Cs,useFormState:ah,useActionState:ah,useOptimistic:function(t,e){var l=Kt();return Nt!==null?Fo(l,Nt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:zs,useCacheRefresh:ph};zh.useEffectEvent=ih;function Hs(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:x({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var qs={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=je(),n=ql(a);n.payload=e,l!=null&&(n.callback=l),e=Ql(t,n,a),e!==null&&(pe(e,t,a),cu(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=je(),n=ql(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Ql(t,n,a),e!==null&&(pe(e,t,a),cu(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=je(),a=ql(l);a.tag=2,e!=null&&(a.callback=e),e=Ql(t,a,l),e!==null&&(pe(e,t,l),cu(e,t,l))}};function Ah(t,e,l,a,n,u,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,s):e.prototype&&e.prototype.isPureReactComponent?!In(l,a)||!In(n,u):!0}function Oh(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&qs.enqueueReplaceState(e,e.state,null)}function Da(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=x({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function Mh(t){ci(t)}function Dh(t){console.error(t)}function xh(t){ci(t)}function ji(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function _h(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Qs(t,e,l){return l=ql(l),l.tag=3,l.payload={element:null},l.callback=function(){ji(t,e)},l}function jh(t){return t=ql(t),t.tag=3,t}function Nh(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){_h(e,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){_h(e,l,a),typeof n!="function"&&(Zl===null?Zl=new Set([this]):Zl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function Fv(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&nn(e,l,n,!0),l=Me.current,l!==null){switch(l.tag){case 31:case 13:return Xe===null?Li():l.alternate===null&&Lt===0&&(Lt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===gi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),ff(t,a,n)),!1;case 22:return l.flags|=65536,a===gi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),ff(t,a,n)),!1}throw Error(r(435,l.tag))}return ff(t,a,n),Li(),!1}if(bt)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==ls&&(t=Error(r(422),{cause:a}),lu(Qe(t,l)))):(a!==ls&&(e=Error(r(423),{cause:a}),lu(Qe(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Qe(a,l),n=Qs(t.stateNode,a,n),ds(t,n),Lt!==4&&(Lt=2)),!1;var u=Error(r(520),{cause:a});if(u=Qe(u,l),Tu===null?Tu=[u]:Tu.push(u),Lt!==4&&(Lt=2),e===null)return!0;a=Qe(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Qs(l.stateNode,a,t),ds(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Zl===null||!Zl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=jh(n),Nh(n,t,l,a),ds(l,n),!1}l=l.return}while(l!==null);return!1}var Bs=Error(r(461)),Ft=!1;function ue(t,e,l,a){e.child=t===null?Ho(e,null,l,a):Oa(e,t.child,l,a)}function Ch(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var s={};for(var o in a)o!=="ref"&&(s[o]=a[o])}else s=a;return Ta(e),a=bs(t,e,l,s,u,n),o=Ss(),t!==null&&!Ft?(Ts(t,e,n),hl(t,e,n)):(bt&&o&&ts(e),e.flags|=1,ue(t,e,a,n),e.child)}function Uh(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Wc(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Rh(t,e,u,a,n)):(t=oi(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Vs(t,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:In,l(s,a)&&t.ref===e.ref)return hl(t,e,n)}return e.flags|=1,t=il(u,a),t.ref=e.ref,t.return=e,e.child=t}function Rh(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(In(u,a)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=a=u,Vs(t,n))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,hl(t,e,n)}return Ys(t,e,l,a,n)}function Hh(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return qh(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&mi(e,u!==null?u.cachePool:null),u!==null?Bo(e,u):ms(),Yo(e);else return a=e.lanes=536870912,qh(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(mi(e,u.cachePool),Bo(e,u),Yl(),e.memoizedState=null):(t!==null&&mi(e,null),ms(),Yl());return ue(t,e,n,l),e.child}function yu(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function qh(t,e,l,a,n){var u=fs();return u=u===null?null:{parent:Vt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&mi(e,null),ms(),Yo(e),t!==null&&nn(t,e,a,!0),e.childLanes=n,null}function Ni(t,e){return e=Ui({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Qh(t,e,l){return Oa(e,t.child,null,l),t=Ni(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function kv(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(a.mode==="hidden")return t=Ni(e,a),e.lanes=536870912,yu(null,t);if(gs(e),(t=Bt)?(t=kd(t,Ge),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nl!==null?{id:ke,overflow:$e}:null,retryLane:536870912,hydrationErrors:null},l=So(t),l.return=e,e.child=l,ae=e,Bt=null)):t=null,t===null)throw Ul(e);return e.lanes=536870912,null}return Ni(e,a)}var u=t.memoizedState;if(u!==null){var s=u.dehydrated;if(gs(e),n)if(e.flags&256)e.flags&=-257,e=Qh(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Ft||nn(t,e,l,!1),n=(l&t.childLanes)!==0,Ft||n){if(a=Rt,a!==null&&(s=Mr(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,ga(t,s),pe(a,t,s),Bs;Li(),e=Qh(t,e,l)}else t=u.treeContext,Bt=Le(s.nextSibling),ae=e,bt=!0,Cl=null,Ge=!1,t!==null&&zo(e,t),e=Ni(e,a),e.flags|=4096;return e}return t=il(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ci(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Ys(t,e,l,a,n){return Ta(e),l=bs(t,e,l,a,void 0,n),a=Ss(),t!==null&&!Ft?(Ts(t,e,n),hl(t,e,n)):(bt&&a&&ts(e),e.flags|=1,ue(t,e,l,n),e.child)}function Bh(t,e,l,a,n,u){return Ta(e),e.updateQueue=null,l=Xo(e,a,l,n),Go(t),a=Ss(),t!==null&&!Ft?(Ts(t,e,u),hl(t,e,u)):(bt&&a&&ts(e),e.flags|=1,ue(t,e,l,u),e.child)}function Yh(t,e,l,a,n){if(Ta(e),e.stateNode===null){var u=tn,s=l.contextType;typeof s=="object"&&s!==null&&(u=ne(s)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=qs,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},os(e),s=l.contextType,u.context=typeof s=="object"&&s!==null?ne(s):tn,u.state=e.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Hs(e,l,s,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&qs.enqueueReplaceState(u,u.state,null),fu(e,a,u,n),su(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,d=Da(l,o);u.props=d;var T=u.context,D=l.contextType;s=tn,typeof D=="object"&&D!==null&&(s=ne(D));var C=l.getDerivedStateFromProps;D=typeof C=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||T!==s)&&Oh(e,u,a,s),Hl=!1;var z=e.memoizedState;u.state=z,fu(e,a,u,n),su(),T=e.memoizedState,o||z!==T||Hl?(typeof C=="function"&&(Hs(e,l,C,a),T=e.memoizedState),(d=Hl||Ah(e,l,d,a,z,T,s))?(D||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=T),u.props=a,u.state=T,u.context=s,a=d):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,hs(t,e),s=e.memoizedProps,D=Da(l,s),u.props=D,C=e.pendingProps,z=u.context,T=l.contextType,d=tn,typeof T=="object"&&T!==null&&(d=ne(T)),o=l.getDerivedStateFromProps,(T=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==C||z!==d)&&Oh(e,u,a,d),Hl=!1,z=e.memoizedState,u.state=z,fu(e,a,u,n),su();var A=e.memoizedState;s!==C||z!==A||Hl||t!==null&&t.dependencies!==null&&di(t.dependencies)?(typeof o=="function"&&(Hs(e,l,o,a),A=e.memoizedState),(D=Hl||Ah(e,l,D,a,z,A,d)||t!==null&&t.dependencies!==null&&di(t.dependencies))?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,d)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=A),u.props=a,u.state=A,u.context=d,a=D):(typeof u.componentDidUpdate!="function"||s===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,Ci(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=Oa(e,t.child,null,n),e.child=Oa(e,null,l,n)):ue(t,e,l,n),e.memoizedState=u.state,t=e.child):t=hl(t,e,n),t}function Gh(t,e,l,a){return ba(),e.flags|=256,ue(t,e,l,a),e.child}var Gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xs(t){return{baseLanes:t,cachePool:_o()}}function Ls(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=_e),t}function Xh(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,s;if((s=u)||(s=t!==null&&t.memoizedState===null?!1:(wt.current&2)!==0),s&&(n=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(n?Bl(e):Yl(),(t=Bt)?(t=kd(t,Ge),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nl!==null?{id:ke,overflow:$e}:null,retryLane:536870912,hydrationErrors:null},l=So(t),l.return=e,e.child=l,ae=e,Bt=null)):t=null,t===null)throw Ul(e);return Of(t)?e.lanes=32:e.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(Yl(),n=e.mode,o=Ui({mode:"hidden",children:o},n),a=pa(a,n,l,null),o.return=e,a.return=e,o.sibling=a,e.child=o,a=e.child,a.memoizedState=Xs(l),a.childLanes=Ls(t,s,l),e.memoizedState=Gs,yu(null,a)):(Bl(e),Zs(e,o))}var d=t.memoizedState;if(d!==null&&(o=d.dehydrated,o!==null)){if(u)e.flags&256?(Bl(e),e.flags&=-257,e=ws(t,e,l)):e.memoizedState!==null?(Yl(),e.child=t.child,e.flags|=128,e=null):(Yl(),o=a.fallback,n=e.mode,a=Ui({mode:"visible",children:a.children},n),o=pa(o,n,l,null),o.flags|=2,a.return=e,o.return=e,a.sibling=o,e.child=a,Oa(e,t.child,null,l),a=e.child,a.memoizedState=Xs(l),a.childLanes=Ls(t,s,l),e.memoizedState=Gs,e=yu(null,a));else if(Bl(e),Of(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var T=s.dgst;s=T,a=Error(r(419)),a.stack="",a.digest=s,lu({value:a,source:null,stack:null}),e=ws(t,e,l)}else if(Ft||nn(t,e,l,!1),s=(l&t.childLanes)!==0,Ft||s){if(s=Rt,s!==null&&(a=Mr(s,l),a!==0&&a!==d.retryLane))throw d.retryLane=a,ga(t,a),pe(s,t,a),Bs;Af(o)||Li(),e=ws(t,e,l)}else Af(o)?(e.flags|=192,e.child=t.child,e=null):(t=d.treeContext,Bt=Le(o.nextSibling),ae=e,bt=!0,Cl=null,Ge=!1,t!==null&&zo(e,t),e=Zs(e,a.children),e.flags|=4096);return e}return n?(Yl(),o=a.fallback,n=e.mode,d=t.child,T=d.sibling,a=il(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,T!==null?o=il(T,o):(o=pa(o,n,l,null),o.flags|=2),o.return=e,a.return=e,a.sibling=o,e.child=a,yu(null,a),a=e.child,o=t.child.memoizedState,o===null?o=Xs(l):(n=o.cachePool,n!==null?(d=Vt._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=_o(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=Ls(t,s,l),e.memoizedState=Gs,yu(t.child,a)):(Bl(e),l=t.child,t=l.sibling,l=il(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=l,e.memoizedState=null,l)}function Zs(t,e){return e=Ui({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ui(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function ws(t,e,l){return Oa(e,t.child,null,l),t=Zs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Lh(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),us(t.return,e,l)}function Ks(t,e,l,a,n,u){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=u)}function Zh(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=wt.current,o=(s&2)!==0;if(o?(s=s&1|2,e.flags|=128):s&=1,X(wt,s),ue(t,e,a,l),a=bt?eu:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Lh(t,l,e);else if(t.tag===19)Lh(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&Ti(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Ks(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&Ti(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Ks(e,!0,l,null,u,a);break;case"together":Ks(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function hl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Ll|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(nn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=il(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=il(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Vs(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&di(t)))}function $v(t,e,l){switch(e.tag){case 3:ee(e,e.stateNode.containerInfo),Rl(e,Vt,t.memoizedState.cache),ba();break;case 27:case 5:ll(e);break;case 4:ee(e,e.stateNode.containerInfo);break;case 10:Rl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,gs(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Bl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Xh(t,e,l):(Bl(e),t=hl(t,e,l),t!==null?t.sibling:null);Bl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(nn(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return Zh(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),X(wt,wt.current),a)break;return null;case 22:return e.lanes=0,Hh(t,e,l,e.pendingProps);case 24:Rl(e,Vt,t.memoizedState.cache)}return hl(t,e,l)}function wh(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!Vs(t,l)&&(e.flags&128)===0)return Ft=!1,$v(t,e,l);Ft=(t.flags&131072)!==0}else Ft=!1,bt&&(e.flags&1048576)!==0&&Eo(e,eu,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=za(e.elementType),e.type=t,typeof t=="function")Wc(t)?(a=Da(t,a),e.tag=1,e=Yh(null,e,t,a,l)):(e.tag=0,e=Ys(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===U){e.tag=11,e=Ch(null,e,t,a,l);break t}else if(n===H){e.tag=14,e=Uh(null,e,t,a,l);break t}}throw e=Ht(t)||t,Error(r(306,e,""))}}return e;case 0:return Ys(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Da(a,e.pendingProps),Yh(t,e,a,n,l);case 3:t:{if(ee(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,hs(t,e),fu(e,a,null,l);var s=e.memoizedState;if(a=s.cache,Rl(e,Vt,a),a!==u.cache&&is(e,[Vt],l,!0),su(),a=s.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Gh(t,e,a,l);break t}else if(a!==n){n=Qe(Error(r(424)),e),lu(n),e=Gh(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Bt=Le(t.firstChild),ae=e,bt=!0,Cl=null,Ge=!0,l=Ho(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ba(),a===n){e=hl(t,e,l);break t}ue(t,e,a,l)}e=e.child}return e;case 26:return Ci(t,e),t===null?(l=ey(e.type,null,e.pendingProps,null))?e.memoizedState=l:bt||(l=e.type,t=e.pendingProps,a=ki(dt.current).createElement(l),a[le]=e,a[he]=t,ie(a,l,t),Pt(a),e.stateNode=a):e.memoizedState=ey(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ll(e),t===null&&bt&&(a=e.stateNode=Pd(e.type,e.pendingProps,dt.current),ae=e,Ge=!0,n=Bt,Jl(e.type)?(Mf=n,Bt=Le(a.firstChild)):Bt=n),ue(t,e,e.pendingProps.children,l),Ci(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((n=a=Bt)&&(a=M0(a,e.type,e.pendingProps,Ge),a!==null?(e.stateNode=a,ae=e,Bt=Le(a.firstChild),Ge=!1,n=!0):n=!1),n||Ul(e)),ll(e),n=e.type,u=e.pendingProps,s=t!==null?t.memoizedProps:null,a=u.children,Tf(n,u)?a=null:s!==null&&Tf(n,s)&&(e.flags|=32),e.memoizedState!==null&&(n=bs(t,e,Xv,null,null,l),_u._currentValue=n),Ci(t,e),ue(t,e,a,l),e.child;case 6:return t===null&&bt&&((t=l=Bt)&&(l=D0(l,e.pendingProps,Ge),l!==null?(e.stateNode=l,ae=e,Bt=null,t=!0):t=!1),t||Ul(e)),null;case 13:return Xh(t,e,l);case 4:return ee(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Oa(e,null,a,l):ue(t,e,a,l),e.child;case 11:return Ch(t,e,e.type,e.pendingProps,l);case 7:return ue(t,e,e.pendingProps,l),e.child;case 8:return ue(t,e,e.pendingProps.children,l),e.child;case 12:return ue(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,Rl(e,e.type,a.value),ue(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Ta(e),n=ne(n),a=a(n),e.flags|=1,ue(t,e,a,l),e.child;case 14:return Uh(t,e,e.type,e.pendingProps,l);case 15:return Rh(t,e,e.type,e.pendingProps,l);case 19:return Zh(t,e,l);case 31:return kv(t,e,l);case 22:return Hh(t,e,l,e.pendingProps);case 24:return Ta(e),a=ne(Vt),t===null?(n=fs(),n===null&&(n=Rt,u=cs(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},os(e),Rl(e,Vt,n)):((t.lanes&l)!==0&&(hs(t,e),fu(e,null,null,l),su()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Rl(e,Vt,a)):(a=u.cache,Rl(e,Vt,a),a!==n.cache&&is(e,[Vt],l,!0))),ue(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function dl(t){t.flags|=4}function Js(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(gd())t.flags|=8192;else throw Aa=gi,rs}else t.flags&=-16777217}function Kh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!iy(e))if(gd())t.flags|=8192;else throw Aa=gi,rs}function Ri(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?zr():536870912,t.lanes|=e,gn|=e)}function mu(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Yt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Wv(t,e,l){var a=e.pendingProps;switch(es(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(e),null;case 1:return Yt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),fl(Vt),qt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(an(e)?dl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,as())),Yt(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(dl(e),u!==null?(Yt(e),Kh(e,u)):(Yt(e),Js(e,n,null,a,l))):u?u!==t.memoizedState?(dl(e),Yt(e),Kh(e,u)):(Yt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&dl(e),Yt(e),Js(e,n,t,a,l)),null;case 27:if(ra(e),l=dt.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Yt(e),null}t=J.current,an(e)?Ao(e):(t=Pd(n,a,l),e.stateNode=t,dl(e))}return Yt(e),null;case 5:if(ra(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Yt(e),null}if(u=J.current,an(e))Ao(e);else{var s=ki(dt.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}u[le]=e,u[he]=a;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=u;t:switch(ie(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&dl(e)}}return Yt(e),Js(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=dt.current,an(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=ae,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[le]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Xd(t.nodeValue,l)),t||Ul(e,!0)}else t=ki(t).createTextNode(a),t[le]=e,e.stateNode=t}return Yt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=an(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[le]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),t=!1}else l=as(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(De(e),e):(De(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Yt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=an(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[le]=e}else ba(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),n=!1}else n=as(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(De(e),e):(De(e),null)}return De(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ri(e,e.updateQueue),Yt(e),null);case 4:return qt(),t===null&&vf(e.stateNode.containerInfo),Yt(e),null;case 10:return fl(e.type),Yt(e),null;case 19:if(N(wt),a=e.memoizedState,a===null)return Yt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)mu(a,!1);else{if(Lt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Ti(t),u!==null){for(e.flags|=128,mu(a,!1),t=u.updateQueue,e.updateQueue=t,Ri(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)bo(l,t),l=l.sibling;return X(wt,wt.current&1|2),bt&&cl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Te()>Yi&&(e.flags|=128,n=!0,mu(a,!1),e.lanes=4194304)}else{if(!n)if(t=Ti(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Ri(e,t),mu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!bt)return Yt(e),null}else 2*Te()-a.renderingStartTime>Yi&&l!==536870912&&(e.flags|=128,n=!0,mu(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Te(),t.sibling=null,l=wt.current,X(wt,n?l&1|2:l&1),bt&&cl(e,a.treeForkCount),t):(Yt(e),null);case 22:case 23:return De(e),vs(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Yt(e),e.subtreeFlags&6&&(e.flags|=8192)):Yt(e),l=e.updateQueue,l!==null&&Ri(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&N(Ea),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),fl(Vt),Yt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Pv(t,e){switch(es(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return fl(Vt),qt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ra(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(r(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(De(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ba()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(wt),null;case 4:return qt(),null;case 10:return fl(e.type),null;case 22:case 23:return De(e),vs(),t!==null&&N(Ea),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return fl(Vt),null;case 25:return null;default:return null}}function Vh(t,e){switch(es(e),e.tag){case 3:fl(Vt),qt();break;case 26:case 27:case 5:ra(e);break;case 4:qt();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:N(wt);break;case 10:fl(e.type);break;case 22:case 23:De(e),vs(),t!==null&&N(Ea);break;case 24:fl(Vt)}}function vu(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,s=l.inst;a=u(),s.destroy=a}l=l.next}while(l!==n)}}catch(o){jt(e,e.return,o)}}function Gl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var s=a.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,n=e;var d=l,T=o;try{T()}catch(D){jt(n,d,D)}}}a=a.next}while(a!==u)}}catch(D){jt(e,e.return,D)}}function Jh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Qo(e,l)}catch(a){jt(t,t.return,a)}}}function Fh(t,e,l){l.props=Da(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){jt(t,e,a)}}function gu(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){jt(t,e,n)}}function We(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){jt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){jt(t,e,n)}else l.current=null}function kh(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){jt(t,t.return,n)}}function Fs(t,e,l){try{var a=t.stateNode;S0(a,t.type,l,e),a[he]=e}catch(n){jt(t,t.return,n)}}function $h(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Jl(t.type)||t.tag===4}function ks(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$h(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Jl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function $s(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=nl));else if(a!==4&&(a===27&&Jl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for($s(t,e,l),t=t.sibling;t!==null;)$s(t,e,l),t=t.sibling}function Hi(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Jl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Hi(t,e,l),t=t.sibling;t!==null;)Hi(t,e,l),t=t.sibling}function Wh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ie(e,a,l),e[le]=t,e[he]=l}catch(u){jt(t,t.return,u)}}var yl=!1,kt=!1,Ws=!1,Ph=typeof WeakSet=="function"?WeakSet:Set,It=null;function Iv(t,e){if(t=t.containerInfo,bf=lc,t=fo(t),wc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var s=0,o=-1,d=-1,T=0,D=0,C=t,z=null;e:for(;;){for(var A;C!==l||n!==0&&C.nodeType!==3||(o=s+n),C!==u||a!==0&&C.nodeType!==3||(d=s+a),C.nodeType===3&&(s+=C.nodeValue.length),(A=C.firstChild)!==null;)z=C,C=A;for(;;){if(C===t)break e;if(z===l&&++T===n&&(o=s),z===u&&++D===a&&(d=s),(A=C.nextSibling)!==null)break;C=z,z=C.parentNode}C=A}l=o===-1||d===-1?null:{start:o,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(Sf={focusedElem:t,selectionRange:l},lc=!1,It=e;It!==null;)if(e=It,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,It=t;else for(;It!==null;){switch(e=It,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var F=Da(l.type,n);t=a.getSnapshotBeforeUpdate(F,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(ut){jt(l,l.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)zf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":zf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,It=t;break}It=e.return}}function Ih(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:vl(t,l),a&4&&vu(5,l);break;case 1:if(vl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(s){jt(l,l.return,s)}else{var n=Da(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){jt(l,l.return,s)}}a&64&&Jh(l),a&512&&gu(l,l.return);break;case 3:if(vl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Qo(t,e)}catch(s){jt(l,l.return,s)}}break;case 27:e===null&&a&4&&Wh(l);case 26:case 5:vl(t,l),e===null&&a&4&&kh(l),a&512&&gu(l,l.return);break;case 12:vl(t,l);break;case 31:vl(t,l),a&4&&ld(t,l);break;case 13:vl(t,l),a&4&&ad(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=s0.bind(null,l),x0(t,l))));break;case 22:if(a=l.memoizedState!==null||yl,!a){e=e!==null&&e.memoizedState!==null||kt,n=yl;var u=kt;yl=a,(kt=e)&&!u?gl(t,l,(l.subtreeFlags&8772)!==0):vl(t,l),yl=n,kt=u}break;case 30:break;default:vl(t,l)}}function td(t){var e=t.alternate;e!==null&&(t.alternate=null,td(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Dc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Gt=null,ye=!1;function ml(t,e,l){for(l=l.child;l!==null;)ed(t,e,l),l=l.sibling}function ed(t,e,l){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(Xn,l)}catch{}switch(l.tag){case 26:kt||We(l,e),ml(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:kt||We(l,e);var a=Gt,n=ye;Jl(l.type)&&(Gt=l.stateNode,ye=!1),ml(t,e,l),Mu(l.stateNode),Gt=a,ye=n;break;case 5:kt||We(l,e);case 6:if(a=Gt,n=ye,Gt=null,ml(t,e,l),Gt=a,ye=n,Gt!==null)if(ye)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(l.stateNode)}catch(u){jt(l,e,u)}else try{Gt.removeChild(l.stateNode)}catch(u){jt(l,e,u)}break;case 18:Gt!==null&&(ye?(t=Gt,Jd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),On(t)):Jd(Gt,l.stateNode));break;case 4:a=Gt,n=ye,Gt=l.stateNode.containerInfo,ye=!0,ml(t,e,l),Gt=a,ye=n;break;case 0:case 11:case 14:case 15:Gl(2,l,e),kt||Gl(4,l,e),ml(t,e,l);break;case 1:kt||(We(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Fh(l,e,a)),ml(t,e,l);break;case 21:ml(t,e,l);break;case 22:kt=(a=kt)||l.memoizedState!==null,ml(t,e,l),kt=a;break;default:ml(t,e,l)}}function ld(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{On(t)}catch(l){jt(e,e.return,l)}}}function ad(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{On(t)}catch(l){jt(e,e.return,l)}}function t0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ph),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ph),e;default:throw Error(r(435,t.tag))}}function qi(t,e){var l=t0(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=f0.bind(null,t,a);a.then(n,n)}})}function me(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,s=e,o=s;t:for(;o!==null;){switch(o.tag){case 27:if(Jl(o.type)){Gt=o.stateNode,ye=!1;break t}break;case 5:Gt=o.stateNode,ye=!1;break t;case 3:case 4:Gt=o.stateNode.containerInfo,ye=!0;break t}o=o.return}if(Gt===null)throw Error(r(160));ed(u,s,n),Gt=null,ye=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)nd(e,t),e=e.sibling}var Ve=null;function nd(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:me(e,t),ve(t),a&4&&(Gl(3,t,t.return),vu(3,t),Gl(5,t,t.return));break;case 1:me(e,t),ve(t),a&512&&(kt||l===null||We(l,l.return)),a&64&&yl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ve;if(me(e,t),ve(t),a&512&&(kt||l===null||We(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[wn]||u[le]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),ie(u,a,l),u[le]=t,Pt(u),a=u;break t;case"link":var s=ny("link","href",n).get(a+(l.href||""));if(s){for(var o=0;o<s.length;o++)if(u=s[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(o,1);break e}}u=n.createElement(a),ie(u,a,l),n.head.appendChild(u);break;case"meta":if(s=ny("meta","content",n).get(a+(l.content||""))){for(o=0;o<s.length;o++)if(u=s[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(o,1);break e}}u=n.createElement(a),ie(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[le]=t,Pt(u),a=u}t.stateNode=a}else uy(n,t.type,t.stateNode);else t.stateNode=ay(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?uy(n,t.type,t.stateNode):ay(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Fs(t,t.memoizedProps,l.memoizedProps)}break;case 27:me(e,t),ve(t),a&512&&(kt||l===null||We(l,l.return)),l!==null&&a&4&&Fs(t,t.memoizedProps,l.memoizedProps);break;case 5:if(me(e,t),ve(t),a&512&&(kt||l===null||We(l,l.return)),t.flags&32){n=t.stateNode;try{Ja(n,"")}catch(F){jt(t,t.return,F)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Fs(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Ws=!0);break;case 6:if(me(e,t),ve(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(F){jt(t,t.return,F)}}break;case 3:if(Pi=null,n=Ve,Ve=$i(e.containerInfo),me(e,t),Ve=n,ve(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{On(e.containerInfo)}catch(F){jt(t,t.return,F)}Ws&&(Ws=!1,ud(t));break;case 4:a=Ve,Ve=$i(t.stateNode.containerInfo),me(e,t),ve(t),Ve=a;break;case 12:me(e,t),ve(t);break;case 31:me(e,t),ve(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,qi(t,a)));break;case 13:me(e,t),ve(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Bi=Te()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,qi(t,a)));break;case 22:n=t.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,T=yl,D=kt;if(yl=T||n,kt=D||d,me(e,t),kt=D,yl=T,ve(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||d||yl||kt||xa(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){d=l=e;try{if(u=d.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=d.stateNode;var C=d.memoizedProps.style,z=C!=null&&C.hasOwnProperty("display")?C.display:null;o.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(F){jt(d,d.return,F)}}}else if(e.tag===6){if(l===null){d=e;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(F){jt(d,d.return,F)}}}else if(e.tag===18){if(l===null){d=e;try{var A=d.stateNode;n?Fd(A,!0):Fd(d.stateNode,!1)}catch(F){jt(d,d.return,F)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,qi(t,l))));break;case 19:me(e,t),ve(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,qi(t,a)));break;case 30:break;case 21:break;default:me(e,t),ve(t)}}function ve(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if($h(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=ks(t);Hi(t,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(Ja(s,""),l.flags&=-33);var o=ks(t);Hi(t,o,s);break;case 3:case 4:var d=l.stateNode.containerInfo,T=ks(t);$s(t,T,d);break;default:throw Error(r(161))}}catch(D){jt(t,t.return,D)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ud(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ud(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function vl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ih(t,e.alternate,e),e=e.sibling}function xa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Gl(4,e,e.return),xa(e);break;case 1:We(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Fh(e,e.return,l),xa(e);break;case 27:Mu(e.stateNode);case 26:case 5:We(e,e.return),xa(e);break;case 22:e.memoizedState===null&&xa(e);break;case 30:xa(e);break;default:xa(e)}t=t.sibling}}function gl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,s=u.flags;switch(u.tag){case 0:case 11:case 15:gl(n,u,l),vu(4,u);break;case 1:if(gl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){jt(a,a.return,T)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)qo(d[n],o)}catch(T){jt(a,a.return,T)}}l&&s&64&&Jh(u),gu(u,u.return);break;case 27:Wh(u);case 26:case 5:gl(n,u,l),l&&a===null&&s&4&&kh(u),gu(u,u.return);break;case 12:gl(n,u,l);break;case 31:gl(n,u,l),l&&s&4&&ld(n,u);break;case 13:gl(n,u,l),l&&s&4&&ad(n,u);break;case 22:u.memoizedState===null&&gl(n,u,l),gu(u,u.return);break;case 30:break;default:gl(n,u,l)}e=e.sibling}}function Ps(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&au(l))}function Is(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&au(t))}function Je(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)id(t,e,l,a),e=e.sibling}function id(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Je(t,e,l,a),n&2048&&vu(9,e);break;case 1:Je(t,e,l,a);break;case 3:Je(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&au(t)));break;case 12:if(n&2048){Je(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,s=u.id,o=u.onPostCommit;typeof o=="function"&&o(s,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(d){jt(e,e.return,d)}}else Je(t,e,l,a);break;case 31:Je(t,e,l,a);break;case 13:Je(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,s=e.alternate,e.memoizedState!==null?u._visibility&2?Je(t,e,l,a):pu(t,e):u._visibility&2?Je(t,e,l,a):(u._visibility|=2,yn(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Ps(s,e);break;case 24:Je(t,e,l,a),n&2048&&Is(e.alternate,e);break;default:Je(t,e,l,a)}}function yn(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,s=e,o=l,d=a,T=s.flags;switch(s.tag){case 0:case 11:case 15:yn(u,s,o,d,n),vu(8,s);break;case 23:break;case 22:var D=s.stateNode;s.memoizedState!==null?D._visibility&2?yn(u,s,o,d,n):pu(u,s):(D._visibility|=2,yn(u,s,o,d,n)),n&&T&2048&&Ps(s.alternate,s);break;case 24:yn(u,s,o,d,n),n&&T&2048&&Is(s.alternate,s);break;default:yn(u,s,o,d,n)}e=e.sibling}}function pu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:pu(l,a),n&2048&&Ps(a.alternate,a);break;case 24:pu(l,a),n&2048&&Is(a.alternate,a);break;default:pu(l,a)}e=e.sibling}}var bu=8192;function mn(t,e,l){if(t.subtreeFlags&bu)for(t=t.child;t!==null;)cd(t,e,l),t=t.sibling}function cd(t,e,l){switch(t.tag){case 26:mn(t,e,l),t.flags&bu&&t.memoizedState!==null&&G0(l,Ve,t.memoizedState,t.memoizedProps);break;case 5:mn(t,e,l);break;case 3:case 4:var a=Ve;Ve=$i(t.stateNode.containerInfo),mn(t,e,l),Ve=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=bu,bu=16777216,mn(t,e,l),bu=a):mn(t,e,l));break;default:mn(t,e,l)}}function sd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Su(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];It=a,rd(a,t)}sd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fd(t),t=t.sibling}function fd(t){switch(t.tag){case 0:case 11:case 15:Su(t),t.flags&2048&&Gl(9,t,t.return);break;case 3:Su(t);break;case 12:Su(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Qi(t)):Su(t);break;default:Su(t)}}function Qi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];It=a,rd(a,t)}sd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Gl(8,e,e.return),Qi(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Qi(e));break;default:Qi(e)}t=t.sibling}}function rd(t,e){for(;It!==null;){var l=It;switch(l.tag){case 0:case 11:case 15:Gl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:au(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,It=a;else t:for(l=t;It!==null;){a=It;var n=a.sibling,u=a.return;if(td(a),a===l){It=null;break t}if(n!==null){n.return=u,It=n;break t}It=u}}}var e0={getCacheForType:function(t){var e=ne(Vt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return ne(Vt).controller.signal}},l0=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Rt=null,yt=null,gt=0,_t=0,xe=null,Xl=!1,vn=!1,tf=!1,pl=0,Lt=0,Ll=0,_a=0,ef=0,_e=0,gn=0,Tu=null,ge=null,lf=!1,Bi=0,od=0,Yi=1/0,Gi=null,Zl=null,$t=0,wl=null,pn=null,bl=0,af=0,nf=null,hd=null,Eu=0,uf=null;function je(){return(Mt&2)!==0&&gt!==0?gt&-gt:M.T!==null?hf():Dr()}function dd(){if(_e===0)if((gt&536870912)===0||bt){var t=Fu;Fu<<=1,(Fu&3932160)===0&&(Fu=262144),_e=t}else _e=536870912;return t=Me.current,t!==null&&(t.flags|=32),_e}function pe(t,e,l){(t===Rt&&(_t===2||_t===9)||t.cancelPendingCommit!==null)&&(bn(t,0),Kl(t,gt,_e,!1)),Zn(t,l),((Mt&2)===0||t!==Rt)&&(t===Rt&&((Mt&2)===0&&(_a|=l),Lt===4&&Kl(t,gt,_e,!1)),Pe(t))}function yd(t,e,l){if((Mt&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Ln(t,e),n=a?u0(t,e):sf(t,e,!0),u=a;do{if(n===0){vn&&!a&&Kl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!a0(l)){n=sf(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;t:{var o=t;n=Tu;var d=o.current.memoizedState.isDehydrated;if(d&&(bn(o,s).flags|=256),s=sf(o,s,!1),s!==2){if(tf&&!d){o.errorRecoveryDisabledLanes|=u,_a|=u,n=4;break t}u=ge,ge=n,u!==null&&(ge===null?ge=u:ge.push.apply(ge,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){bn(t,0),Kl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Kl(a,e,_e,!Xl);break t;case 2:ge=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=Bi+300-Te(),10<n)){if(Kl(a,e,_e,!Xl),$u(a,0,!0)!==0)break t;bl=e,a.timeoutHandle=Kd(md.bind(null,a,l,ge,Gi,lf,e,_e,_a,gn,Xl,u,"Throttled",-0,0),n);break t}md(a,l,ge,Gi,lf,e,_e,_a,gn,Xl,u,null,-0,0)}}break}while(!0);Pe(t)}function md(t,e,l,a,n,u,s,o,d,T,D,C,z,A){if(t.timeoutHandle=-1,C=e.subtreeFlags,C&8192||(C&16785408)===16785408){C={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nl},cd(e,u,C);var F=(u&62914560)===u?Bi-Te():(u&4194048)===u?od-Te():0;if(F=X0(C,F),F!==null){bl=u,t.cancelPendingCommit=F(zd.bind(null,t,e,u,l,a,n,s,o,d,D,C,null,z,A)),Kl(t,u,s,!T);return}}zd(t,e,u,l,a,n,s,o,d)}function a0(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!Ae(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Kl(t,e,l,a){e&=~ef,e&=~_a,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-ze(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&Ar(t,l,e)}function Xi(){return(Mt&6)===0?(zu(0),!1):!0}function cf(){if(yt!==null){if(_t===0)var t=yt.return;else t=yt,sl=Sa=null,Es(t),fn=null,uu=0,t=yt;for(;t!==null;)Vh(t.alternate,t),t=t.return;yt=null}}function bn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,z0(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),bl=0,cf(),Rt=t,yt=l=il(t.current,null),gt=e,_t=0,xe=null,Xl=!1,vn=Ln(t,e),tf=!1,gn=_e=ef=_a=Ll=Lt=0,ge=Tu=null,lf=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-ze(a),u=1<<n;e|=t[n],a&=~u}return pl=e,si(),l}function vd(t,e){ft=null,M.H=du,e===sn||e===vi?(e=Co(),_t=3):e===rs?(e=Co(),_t=4):_t=e===Bs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,xe=e,yt===null&&(Lt=1,ji(t,Qe(e,t.current)))}function gd(){var t=Me.current;return t===null?!0:(gt&4194048)===gt?Xe===null:(gt&62914560)===gt||(gt&536870912)!==0?t===Xe:!1}function pd(){var t=M.H;return M.H=du,t===null?du:t}function bd(){var t=M.A;return M.A=e0,t}function Li(){Lt=4,Xl||(gt&4194048)!==gt&&Me.current!==null||(vn=!0),(Ll&134217727)===0&&(_a&134217727)===0||Rt===null||Kl(Rt,gt,_e,!1)}function sf(t,e,l){var a=Mt;Mt|=2;var n=pd(),u=bd();(Rt!==t||gt!==e)&&(Gi=null,bn(t,e)),e=!1;var s=Lt;t:do try{if(_t!==0&&yt!==null){var o=yt,d=xe;switch(_t){case 8:cf(),s=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var T=_t;if(_t=0,xe=null,Sn(t,o,d,T),l&&vn){s=0;break t}break;default:T=_t,_t=0,xe=null,Sn(t,o,d,T)}}n0(),s=Lt;break}catch(D){vd(t,D)}while(!0);return e&&t.shellSuspendCounter++,sl=Sa=null,Mt=a,M.H=n,M.A=u,yt===null&&(Rt=null,gt=0,si()),s}function n0(){for(;yt!==null;)Sd(yt)}function u0(t,e){var l=Mt;Mt|=2;var a=pd(),n=bd();Rt!==t||gt!==e?(Gi=null,Yi=Te()+500,bn(t,e)):vn=Ln(t,e);t:do try{if(_t!==0&&yt!==null){e=yt;var u=xe;e:switch(_t){case 1:_t=0,xe=null,Sn(t,e,u,1);break;case 2:case 9:if(jo(u)){_t=0,xe=null,Td(e);break}e=function(){_t!==2&&_t!==9||Rt!==t||(_t=7),Pe(t)},u.then(e,e);break t;case 3:_t=7;break t;case 4:_t=5;break t;case 7:jo(u)?(_t=0,xe=null,Td(e)):(_t=0,xe=null,Sn(t,e,u,7));break;case 5:var s=null;switch(yt.tag){case 26:s=yt.memoizedState;case 5:case 27:var o=yt;if(s?iy(s):o.stateNode.complete){_t=0,xe=null;var d=o.sibling;if(d!==null)yt=d;else{var T=o.return;T!==null?(yt=T,Zi(T)):yt=null}break e}}_t=0,xe=null,Sn(t,e,u,5);break;case 6:_t=0,xe=null,Sn(t,e,u,6);break;case 8:cf(),Lt=6;break t;default:throw Error(r(462))}}i0();break}catch(D){vd(t,D)}while(!0);return sl=Sa=null,M.H=a,M.A=n,Mt=l,yt!==null?0:(Rt=null,gt=0,si(),Lt)}function i0(){for(;yt!==null&&!_m();)Sd(yt)}function Sd(t){var e=wh(t.alternate,t,pl);t.memoizedProps=t.pendingProps,e===null?Zi(t):yt=e}function Td(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Bh(l,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=Bh(l,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:Es(e);default:Vh(l,e),e=yt=bo(e,pl),e=wh(l,e,pl)}t.memoizedProps=t.pendingProps,e===null?Zi(t):yt=e}function Sn(t,e,l,a){sl=Sa=null,Es(e),fn=null,uu=0;var n=e.return;try{if(Fv(t,n,e,l,gt)){Lt=1,ji(t,Qe(l,t.current)),yt=null;return}}catch(u){if(n!==null)throw yt=n,u;Lt=1,ji(t,Qe(l,t.current)),yt=null;return}e.flags&32768?(bt||a===1?t=!0:vn||(gt&536870912)!==0?t=!1:(Xl=t=!0,(a===2||a===9||a===3||a===6)&&(a=Me.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ed(e,t)):Zi(e)}function Zi(t){var e=t;do{if((e.flags&32768)!==0){Ed(e,Xl);return}t=e.return;var l=Wv(e.alternate,e,pl);if(l!==null){yt=l;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Lt===0&&(Lt=5)}function Ed(t,e){do{var l=Pv(t.alternate,t);if(l!==null){l.flags&=32767,yt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=l}while(t!==null);Lt=6,yt=null}function zd(t,e,l,a,n,u,s,o,d){t.cancelPendingCommit=null;do wi();while($t!==0);if((Mt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=kc,Ym(t,l,u,s,o,d),t===Rt&&(yt=Rt=null,gt=0),pn=e,wl=t,bl=l,af=u,nf=n,hd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,r0(Vu,function(){return xd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,n=G.p,G.p=2,s=Mt,Mt|=4;try{Iv(t,e,l)}finally{Mt=s,G.p=n,M.T=a}}$t=1,Ad(),Od(),Md()}}function Ad(){if($t===1){$t=0;var t=wl,e=pn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var a=G.p;G.p=2;var n=Mt;Mt|=4;try{nd(e,t);var u=Sf,s=fo(t.containerInfo),o=u.focusedElem,d=u.selectionRange;if(s!==o&&o&&o.ownerDocument&&so(o.ownerDocument.documentElement,o)){if(d!==null&&wc(o)){var T=d.start,D=d.end;if(D===void 0&&(D=T),"selectionStart"in o)o.selectionStart=T,o.selectionEnd=Math.min(D,o.value.length);else{var C=o.ownerDocument||document,z=C&&C.defaultView||window;if(z.getSelection){var A=z.getSelection(),F=o.textContent.length,ut=Math.min(d.start,F),Ut=d.end===void 0?ut:Math.min(d.end,F);!A.extend&&ut>Ut&&(s=Ut,Ut=ut,ut=s);var p=co(o,ut),v=co(o,Ut);if(p&&v&&(A.rangeCount!==1||A.anchorNode!==p.node||A.anchorOffset!==p.offset||A.focusNode!==v.node||A.focusOffset!==v.offset)){var S=C.createRange();S.setStart(p.node,p.offset),A.removeAllRanges(),ut>Ut?(A.addRange(S),A.extend(v.node,v.offset)):(S.setEnd(v.node,v.offset),A.addRange(S))}}}}for(C=[],A=o;A=A.parentNode;)A.nodeType===1&&C.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<C.length;o++){var _=C[o];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}lc=!!bf,Sf=bf=null}finally{Mt=n,G.p=a,M.T=l}}t.current=e,$t=2}}function Od(){if($t===2){$t=0;var t=wl,e=pn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=G.p;G.p=2;var n=Mt;Mt|=4;try{Ih(t,e.alternate,e)}finally{Mt=n,G.p=a,M.T=l}}$t=3}}function Md(){if($t===4||$t===3){$t=0,jm();var t=wl,e=pn,l=bl,a=hd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?$t=5:($t=0,pn=wl=null,Dd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Zl=null),Oc(l),e=e.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(Xn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=M.T,n=G.p,G.p=2,M.T=null;try{for(var u=t.onRecoverableError,s=0;s<a.length;s++){var o=a[s];u(o.value,{componentStack:o.stack})}}finally{M.T=e,G.p=n}}(bl&3)!==0&&wi(),Pe(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===uf?Eu++:(Eu=0,uf=t):Eu=0,zu(0)}}function Dd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,au(e)))}function wi(){return Ad(),Od(),Md(),xd()}function xd(){if($t!==5)return!1;var t=wl,e=af;af=0;var l=Oc(bl),a=M.T,n=G.p;try{G.p=32>l?32:l,M.T=null,l=nf,nf=null;var u=wl,s=bl;if($t=0,pn=wl=null,bl=0,(Mt&6)!==0)throw Error(r(331));var o=Mt;if(Mt|=4,fd(u.current),id(u,u.current,s,l),Mt=o,zu(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(Xn,u)}catch{}return!0}finally{G.p=n,M.T=a,Dd(t,e)}}function _d(t,e,l){e=Qe(l,e),e=Qs(t.stateNode,e,2),t=Ql(t,e,2),t!==null&&(Zn(t,2),Pe(t))}function jt(t,e,l){if(t.tag===3)_d(t,t,l);else for(;e!==null;){if(e.tag===3){_d(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Zl===null||!Zl.has(a))){t=Qe(l,t),l=jh(2),a=Ql(e,l,2),a!==null&&(Nh(l,a,e,t),Zn(a,2),Pe(a));break}}e=e.return}}function ff(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new l0;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(tf=!0,n.add(l),t=c0.bind(null,t,e,l),e.then(t,t))}function c0(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Rt===t&&(gt&l)===l&&(Lt===4||Lt===3&&(gt&62914560)===gt&&300>Te()-Bi?(Mt&2)===0&&bn(t,0):ef|=l,gn===gt&&(gn=0)),Pe(t)}function jd(t,e){e===0&&(e=zr()),t=ga(t,e),t!==null&&(Zn(t,e),Pe(t))}function s0(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),jd(t,l)}function f0(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),jd(t,l)}function r0(t,e){return Tc(t,e)}var Ki=null,Tn=null,rf=!1,Vi=!1,of=!1,Vl=0;function Pe(t){t!==Tn&&t.next===null&&(Tn===null?Ki=Tn=t:Tn=Tn.next=t),Vi=!0,rf||(rf=!0,h0())}function zu(t,e){if(!of&&Vi){of=!0;do for(var l=!1,a=Ki;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-ze(42|t)+1)-1,u&=n&~(s&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Rd(a,u))}else u=gt,u=$u(a,a===Rt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ln(a,u)||(l=!0,Rd(a,u));a=a.next}while(l);of=!1}}function o0(){Nd()}function Nd(){Vi=rf=!1;var t=0;Vl!==0&&E0()&&(t=Vl);for(var e=Te(),l=null,a=Ki;a!==null;){var n=a.next,u=Cd(a,e);u===0?(a.next=null,l===null?Ki=n:l.next=n,n===null&&(Tn=l)):(l=a,(t!==0||(u&3)!==0)&&(Vi=!0)),a=n}$t!==0&&$t!==5||zu(t),Vl!==0&&(Vl=0)}function Cd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var s=31-ze(u),o=1<<s,d=n[s];d===-1?((o&l)===0||(o&a)!==0)&&(n[s]=Bm(o,e)):d<=e&&(t.expiredLanes|=o),u&=~o}if(e=Rt,l=gt,l=$u(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(_t===2||_t===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ec(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Ln(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Ec(a),Oc(l)){case 2:case 8:l=Tr;break;case 32:l=Vu;break;case 268435456:l=Er;break;default:l=Vu}return a=Ud.bind(null,t),l=Tc(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Ec(a),t.callbackPriority=2,t.callbackNode=null,2}function Ud(t,e){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(wi()&&t.callbackNode!==l)return null;var a=gt;return a=$u(t,t===Rt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(yd(t,a,e),Cd(t,Te()),t.callbackNode!=null&&t.callbackNode===l?Ud.bind(null,t):null)}function Rd(t,e){if(wi())return null;yd(t,e,!0)}function h0(){A0(function(){(Mt&6)!==0?Tc(Sr,o0):Nd()})}function hf(){if(Vl===0){var t=un;t===0&&(t=Ju,Ju<<=1,(Ju&261888)===0&&(Ju=256)),Vl=t}return Vl}function Hd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ti(""+t)}function qd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function d0(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=Hd((n[he]||null).action),s=a.submitter;s&&(e=(e=s[he]||null)?Hd(e.formAction):s.getAttribute("formAction"),e!==null&&(u=e,s=null));var o=new ni("action","action",null,a,n);t.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Vl!==0){var d=s?qd(n,s):new FormData(n);Ns(l,{pending:!0,data:d,method:n.method,action:u},null,d)}}else typeof u=="function"&&(o.preventDefault(),d=s?qd(n,s):new FormData(n),Ns(l,{pending:!0,data:d,method:n.method,action:u},u,d))},currentTarget:n}]})}}for(var df=0;df<Fc.length;df++){var yf=Fc[df],y0=yf.toLowerCase(),m0=yf[0].toUpperCase()+yf.slice(1);Ke(y0,"on"+m0)}Ke(ho,"onAnimationEnd"),Ke(yo,"onAnimationIteration"),Ke(mo,"onAnimationStart"),Ke("dblclick","onDoubleClick"),Ke("focusin","onFocus"),Ke("focusout","onBlur"),Ke(Nv,"onTransitionRun"),Ke(Cv,"onTransitionStart"),Ke(Uv,"onTransitionCancel"),Ke(vo,"onTransitionEnd"),Ka("onMouseEnter",["mouseout","mouseover"]),Ka("onMouseLeave",["mouseout","mouseover"]),Ka("onPointerEnter",["pointerout","pointerover"]),Ka("onPointerLeave",["pointerout","pointerover"]),da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),da("onBeforeInput",["compositionend","keypress","textInput","paste"]),da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),v0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Au));function Qd(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var s=a.length-1;0<=s;s--){var o=a[s],d=o.instance,T=o.currentTarget;if(o=o.listener,d!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=T;try{u(n)}catch(D){ci(D)}n.currentTarget=null,u=d}else for(s=0;s<a.length;s++){if(o=a[s],d=o.instance,T=o.currentTarget,o=o.listener,d!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=T;try{u(n)}catch(D){ci(D)}n.currentTarget=null,u=d}}}}function mt(t,e){var l=e[Mc];l===void 0&&(l=e[Mc]=new Set);var a=t+"__bubble";l.has(a)||(Bd(e,t,2,!1),l.add(a))}function mf(t,e,l){var a=0;e&&(a|=4),Bd(l,t,a,e)}var Ji="_reactListening"+Math.random().toString(36).slice(2);function vf(t){if(!t[Ji]){t[Ji]=!0,jr.forEach(function(l){l!=="selectionchange"&&(v0.has(l)||mf(l,!1,t),mf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ji]||(e[Ji]=!0,mf("selectionchange",!1,e))}}function Bd(t,e,l,a){switch(dy(e)){case 2:var n=w0;break;case 8:n=K0;break;default:n=Nf}l=n.bind(null,e,l,t),n=void 0,!Hc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function gf(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var o=a.stateNode.containerInfo;if(o===n)break;if(s===4)for(s=a.return;s!==null;){var d=s.tag;if((d===3||d===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;o!==null;){if(s=La(o),s===null)return;if(d=s.tag,d===5||d===6||d===26||d===27){a=u=s;continue t}o=o.parentNode}}a=a.return}Lr(function(){var T=u,D=Uc(l),C=[];t:{var z=go.get(t);if(z!==void 0){var A=ni,F=t;switch(t){case"keypress":if(li(l)===0)break t;case"keydown":case"keyup":A=fv;break;case"focusin":F="focus",A=Yc;break;case"focusout":F="blur",A=Yc;break;case"beforeblur":case"afterblur":A=Yc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Wm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=hv;break;case ho:case yo:case mo:A=tv;break;case vo:A=yv;break;case"scroll":case"scrollend":A=km;break;case"wheel":A=vv;break;case"copy":case"cut":case"paste":A=lv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Jr;break;case"toggle":case"beforetoggle":A=pv}var ut=(e&4)!==0,Ut=!ut&&(t==="scroll"||t==="scrollend"),p=ut?z!==null?z+"Capture":null:z;ut=[];for(var v=T,S;v!==null;){var _=v;if(S=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||S===null||p===null||(_=Vn(v,p),_!=null&&ut.push(Ou(v,_,S))),Ut)break;v=v.return}0<ut.length&&(z=new A(z,F,null,l,D),C.push({event:z,listeners:ut}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",A=t==="mouseout"||t==="pointerout",z&&l!==Cc&&(F=l.relatedTarget||l.fromElement)&&(La(F)||F[Xa]))break t;if((A||z)&&(z=D.window===D?D:(z=D.ownerDocument)?z.defaultView||z.parentWindow:window,A?(F=l.relatedTarget||l.toElement,A=T,F=F?La(F):null,F!==null&&(Ut=b(F),ut=F.tag,F!==Ut||ut!==5&&ut!==27&&ut!==6)&&(F=null)):(A=null,F=T),A!==F)){if(ut=Kr,_="onMouseLeave",p="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(ut=Jr,_="onPointerLeave",p="onPointerEnter",v="pointer"),Ut=A==null?z:Kn(A),S=F==null?z:Kn(F),z=new ut(_,v+"leave",A,l,D),z.target=Ut,z.relatedTarget=S,_=null,La(D)===T&&(ut=new ut(p,v+"enter",F,l,D),ut.target=S,ut.relatedTarget=Ut,_=ut),Ut=_,A&&F)e:{for(ut=g0,p=A,v=F,S=0,_=p;_;_=ut(_))S++;_=0;for(var at=v;at;at=ut(at))_++;for(;0<S-_;)p=ut(p),S--;for(;0<_-S;)v=ut(v),_--;for(;S--;){if(p===v||v!==null&&p===v.alternate){ut=p;break e}p=ut(p),v=ut(v)}ut=null}else ut=null;A!==null&&Yd(C,z,A,ut,!1),F!==null&&Ut!==null&&Yd(C,Ut,F,ut,!0)}}t:{if(z=T?Kn(T):window,A=z.nodeName&&z.nodeName.toLowerCase(),A==="select"||A==="input"&&z.type==="file")var zt=eo;else if(Ir(z))if(lo)zt=xv;else{zt=Mv;var k=Ov}else A=z.nodeName,!A||A.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?T&&Nc(T.elementType)&&(zt=eo):zt=Dv;if(zt&&(zt=zt(t,T))){to(C,zt,l,D);break t}k&&k(t,z,T),t==="focusout"&&T&&z.type==="number"&&T.memoizedProps.value!=null&&jc(z,"number",z.value)}switch(k=T?Kn(T):window,t){case"focusin":(Ir(k)||k.contentEditable==="true")&&(Wa=k,Kc=T,tu=null);break;case"focusout":tu=Kc=Wa=null;break;case"mousedown":Vc=!0;break;case"contextmenu":case"mouseup":case"dragend":Vc=!1,ro(C,l,D);break;case"selectionchange":if(jv)break;case"keydown":case"keyup":ro(C,l,D)}var ot;if(Xc)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else $a?Wr(t,l)&&(pt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(pt="onCompositionStart");pt&&(Fr&&l.locale!=="ko"&&($a||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&$a&&(ot=Zr()):(jl=D,qc="value"in jl?jl.value:jl.textContent,$a=!0)),k=Fi(T,pt),0<k.length&&(pt=new Vr(pt,t,null,l,D),C.push({event:pt,listeners:k}),ot?pt.data=ot:(ot=Pr(l),ot!==null&&(pt.data=ot)))),(ot=Sv?Tv(t,l):Ev(t,l))&&(pt=Fi(T,"onBeforeInput"),0<pt.length&&(k=new Vr("onBeforeInput","beforeinput",null,l,D),C.push({event:k,listeners:pt}),k.data=ot)),d0(C,t,T,l,D)}Qd(C,e)})}function Ou(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Fi(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Vn(t,l),n!=null&&a.unshift(Ou(t,n,u)),n=Vn(t,e),n!=null&&a.push(Ou(t,n,u))),t.tag===3)return a;t=t.return}return[]}function g0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Yd(t,e,l,a,n){for(var u=e._reactName,s=[];l!==null&&l!==a;){var o=l,d=o.alternate,T=o.stateNode;if(o=o.tag,d!==null&&d===a)break;o!==5&&o!==26&&o!==27||T===null||(d=T,n?(T=Vn(l,u),T!=null&&s.unshift(Ou(l,T,d))):n||(T=Vn(l,u),T!=null&&s.push(Ou(l,T,d)))),l=l.return}s.length!==0&&t.push({event:e,listeners:s})}var p0=/\r\n?/g,b0=/\u0000|\uFFFD/g;function Gd(t){return(typeof t=="string"?t:""+t).replace(p0,`
49
- `).replace(b0,"")}function Xd(t,e){return e=Gd(e),Gd(t)===e}function Ct(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ja(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ja(t,""+a);break;case"className":Pu(t,"class",a);break;case"tabIndex":Pu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Pu(t,l,a);break;case"style":Gr(t,a,u);break;case"data":if(e!=="object"){Pu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=ti(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&Ct(t,e,"name",n.name,n,null),Ct(t,e,"formEncType",n.formEncType,n,null),Ct(t,e,"formMethod",n.formMethod,n,null),Ct(t,e,"formTarget",n.formTarget,n,null)):(Ct(t,e,"encType",n.encType,n,null),Ct(t,e,"method",n.method,n,null),Ct(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=ti(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=nl);break;case"onScroll":a!=null&&mt("scroll",t);break;case"onScrollEnd":a!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=ti(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":mt("beforetoggle",t),mt("toggle",t),Wu(t,"popover",a);break;case"xlinkActuate":al(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":al(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":al(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":al(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":al(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":al(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":al(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":al(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":al(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Wu(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Jm.get(l)||l,Wu(t,l,a))}}function pf(t,e,l,a,n,u){switch(l){case"style":Gr(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Ja(t,a):(typeof a=="number"||typeof a=="bigint")&&Ja(t,""+a);break;case"onScroll":a!=null&&mt("scroll",t);break;case"onScrollEnd":a!=null&&mt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=nl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nr.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[he]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Wu(t,l,a)}}}function ie(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ct(t,e,u,s,l,null)}}n&&Ct(t,e,"srcSet",l.srcSet,l,null),a&&Ct(t,e,"src",l.src,l,null);return;case"input":mt("invalid",t);var o=u=s=n=null,d=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":n=D;break;case"type":s=D;break;case"checked":d=D;break;case"defaultChecked":T=D;break;case"value":u=D;break;case"defaultValue":o=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:Ct(t,e,a,D,l,null)}}qr(t,u,o,d,T,s,n,!1);return;case"select":mt("invalid",t),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:Ct(t,e,n,o,l,null)}e=u,l=s,t.multiple=!!a,e!=null?Va(t,!!a,e,!1):l!=null&&Va(t,!!a,l,!0);return;case"textarea":mt("invalid",t),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(o=l[s],o!=null))switch(s){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:Ct(t,e,s,o,l,null)}Br(t,a,n,u);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(a=l[d],a!=null))switch(d){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ct(t,e,d,a,l,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(a=0;a<Au.length;a++)mt(Au[a],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ct(t,e,T,a,l,null)}return;default:if(Nc(e)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&pf(t,e,D,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&Ct(t,e,o,a,l,null))}function S0(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,s=null,o=null,d=null,T=null,D=null;for(A in l){var C=l[A];if(l.hasOwnProperty(A)&&C!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":d=C;default:a.hasOwnProperty(A)||Ct(t,e,A,null,a,C)}}for(var z in a){var A=a[z];if(C=l[z],a.hasOwnProperty(z)&&(A!=null||C!=null))switch(z){case"type":u=A;break;case"name":n=A;break;case"checked":T=A;break;case"defaultChecked":D=A;break;case"value":s=A;break;case"defaultValue":o=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,e));break;default:A!==C&&Ct(t,e,z,A,a,C)}}_c(t,s,o,d,T,D,u,n);return;case"select":A=s=o=z=null;for(u in l)if(d=l[u],l.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":A=d;default:a.hasOwnProperty(u)||Ct(t,e,u,null,a,d)}for(n in a)if(u=a[n],d=l[n],a.hasOwnProperty(n)&&(u!=null||d!=null))switch(n){case"value":z=u;break;case"defaultValue":o=u;break;case"multiple":s=u;default:u!==d&&Ct(t,e,n,u,a,d)}e=o,l=s,a=A,z!=null?Va(t,!!l,z,!1):!!a!=!!l&&(e!=null?Va(t,!!l,e,!0):Va(t,!!l,l?[]:"",!1));return;case"textarea":A=z=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ct(t,e,o,null,a,n)}for(s in a)if(n=a[s],u=l[s],a.hasOwnProperty(s)&&(n!=null||u!=null))switch(s){case"value":z=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Ct(t,e,s,n,a,u)}Qr(t,z,A);return;case"option":for(var F in l)if(z=l[F],l.hasOwnProperty(F)&&z!=null&&!a.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:Ct(t,e,F,null,a,z)}for(d in a)if(z=a[d],A=l[d],a.hasOwnProperty(d)&&z!==A&&(z!=null||A!=null))switch(d){case"selected":t.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ct(t,e,d,z,a,A)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ut in l)z=l[ut],l.hasOwnProperty(ut)&&z!=null&&!a.hasOwnProperty(ut)&&Ct(t,e,ut,null,a,z);for(T in a)if(z=a[T],A=l[T],a.hasOwnProperty(T)&&z!==A&&(z!=null||A!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:Ct(t,e,T,z,a,A)}return;default:if(Nc(e)){for(var Ut in l)z=l[Ut],l.hasOwnProperty(Ut)&&z!==void 0&&!a.hasOwnProperty(Ut)&&pf(t,e,Ut,void 0,a,z);for(D in a)z=a[D],A=l[D],!a.hasOwnProperty(D)||z===A||z===void 0&&A===void 0||pf(t,e,D,z,a,A);return}}for(var p in l)z=l[p],l.hasOwnProperty(p)&&z!=null&&!a.hasOwnProperty(p)&&Ct(t,e,p,null,a,z);for(C in a)z=a[C],A=l[C],!a.hasOwnProperty(C)||z===A||z==null&&A==null||Ct(t,e,C,z,a,A)}function Ld(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function T0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,s=n.initiatorType,o=n.duration;if(u&&o&&Ld(s)){for(s=0,o=n.responseEnd,a+=1;a<l.length;a++){var d=l[a],T=d.startTime;if(T>o)break;var D=d.transferSize,C=d.initiatorType;D&&Ld(C)&&(d=d.responseEnd,s+=D*(d<o?1:(o-T)/(d-T)))}if(--a,e+=8*(u+s)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var bf=null,Sf=null;function ki(t){return t.nodeType===9?t:t.ownerDocument}function Zd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Tf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ef=null;function E0(){var t=window.event;return t&&t.type==="popstate"?t===Ef?!1:(Ef=t,!0):(Ef=null,!1)}var Kd=typeof setTimeout=="function"?setTimeout:void 0,z0=typeof clearTimeout=="function"?clearTimeout:void 0,Vd=typeof Promise=="function"?Promise:void 0,A0=typeof queueMicrotask=="function"?queueMicrotask:typeof Vd<"u"?function(t){return Vd.resolve(null).then(t).catch(O0)}:Kd;function O0(t){setTimeout(function(){throw t})}function Jl(t){return t==="head"}function Jd(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),On(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Mu(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Mu(l);for(var u=l.firstChild;u;){var s=u.nextSibling,o=u.nodeName;u[wn]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&Mu(t.ownerDocument.body);l=n}while(l);On(e)}function Fd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function zf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":zf(l),Dc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function M0(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[wn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function D0(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Le(t.nextSibling),t===null))return null;return t}function kd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Le(t.nextSibling),t===null))return null;return t}function Af(t){return t.data==="$?"||t.data==="$~"}function Of(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function x0(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Le(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Mf=null;function $d(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Le(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Wd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Pd(t,e,l){switch(e=ki(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Mu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Dc(t)}var Ze=new Map,Id=new Set;function $i(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sl=G.d;G.d={f:_0,r:j0,D:N0,C:C0,L:U0,m:R0,X:q0,S:H0,M:Q0};function _0(){var t=Sl.f(),e=Xi();return t||e}function j0(t){var e=Za(t);e!==null&&e.tag===5&&e.type==="form"?vh(e):Sl.r(t)}var En=typeof document>"u"?null:document;function ty(t,e,l){var a=En;if(a&&typeof e=="string"&&e){var n=He(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Id.has(n)||(Id.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),ie(e,"link",t),Pt(e),a.head.appendChild(e)))}}function N0(t){Sl.D(t),ty("dns-prefetch",t,null)}function C0(t,e){Sl.C(t,e),ty("preconnect",t,e)}function U0(t,e,l){Sl.L(t,e,l);var a=En;if(a&&t&&e){var n='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+He(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+He(l.imageSizes)+'"]')):n+='[href="'+He(t)+'"]';var u=n;switch(e){case"style":u=zn(t);break;case"script":u=An(t)}Ze.has(u)||(t=x({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ze.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Du(u))||e==="script"&&a.querySelector(xu(u))||(e=a.createElement("link"),ie(e,"link",t),Pt(e),a.head.appendChild(e)))}}function R0(t,e){Sl.m(t,e);var l=En;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+He(a)+'"][href="'+He(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=An(t)}if(!Ze.has(u)&&(t=x({rel:"modulepreload",href:t},e),Ze.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(xu(u)))return}a=l.createElement("link"),ie(a,"link",t),Pt(a),l.head.appendChild(a)}}}function H0(t,e,l){Sl.S(t,e,l);var a=En;if(a&&t){var n=wa(a).hoistableStyles,u=zn(t);e=e||"default";var s=n.get(u);if(!s){var o={loading:0,preload:null};if(s=a.querySelector(Du(u)))o.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ze.get(u))&&Df(t,l);var d=s=a.createElement("link");Pt(d),ie(d,"link",t),d._p=new Promise(function(T,D){d.onload=T,d.onerror=D}),d.addEventListener("load",function(){o.loading|=1}),d.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Wi(s,e,a)}s={type:"stylesheet",instance:s,count:1,state:o},n.set(u,s)}}}function q0(t,e){Sl.X(t,e);var l=En;if(l&&t){var a=wa(l).hoistableScripts,n=An(t),u=a.get(n);u||(u=l.querySelector(xu(n)),u||(t=x({src:t,async:!0},e),(e=Ze.get(n))&&xf(t,e),u=l.createElement("script"),Pt(u),ie(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Q0(t,e){Sl.M(t,e);var l=En;if(l&&t){var a=wa(l).hoistableScripts,n=An(t),u=a.get(n);u||(u=l.querySelector(xu(n)),u||(t=x({src:t,async:!0,type:"module"},e),(e=Ze.get(n))&&xf(t,e),u=l.createElement("script"),Pt(u),ie(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ey(t,e,l,a){var n=(n=dt.current)?$i(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=zn(l.href),l=wa(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=zn(l.href);var u=wa(n).hoistableStyles,s=u.get(t);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,s),(u=n.querySelector(Du(t)))&&!u._p&&(s.instance=u,s.state.loading=5),Ze.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ze.set(t,l),u||B0(n,t,l,s.state))),e&&a===null)throw Error(r(528,""));return s}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=An(l),l=wa(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function zn(t){return'href="'+He(t)+'"'}function Du(t){return'link[rel="stylesheet"]['+t+"]"}function ly(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function B0(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ie(e,"link",l),Pt(e),t.head.appendChild(e))}function An(t){return'[src="'+He(t)+'"]'}function xu(t){return"script[async]"+t}function ay(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+He(l.href)+'"]');if(a)return e.instance=a,Pt(a),a;var n=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Pt(a),ie(a,"style",n),Wi(a,l.precedence,t),e.instance=a;case"stylesheet":n=zn(l.href);var u=t.querySelector(Du(n));if(u)return e.state.loading|=4,e.instance=u,Pt(u),u;a=ly(l),(n=Ze.get(n))&&Df(a,n),u=(t.ownerDocument||t).createElement("link"),Pt(u);var s=u;return s._p=new Promise(function(o,d){s.onload=o,s.onerror=d}),ie(u,"link",a),e.state.loading|=4,Wi(u,l.precedence,t),e.instance=u;case"script":return u=An(l.src),(n=t.querySelector(xu(u)))?(e.instance=n,Pt(n),n):(a=l,(n=Ze.get(u))&&(a=x({},l),xf(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Pt(n),ie(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Wi(a,l.precedence,t));return e.instance}function Wi(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,s=0;s<a.length;s++){var o=a[s];if(o.dataset.precedence===e)u=o;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Df(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Pi=null;function ny(t,e,l){if(Pi===null){var a=new Map,n=Pi=new Map;n.set(l,a)}else n=Pi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[wn]||u[le]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(e)||"";s=t+s;var o=a.get(s);o?o.push(u):a.set(s,[u])}}return a}function uy(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Y0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function iy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function G0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=zn(a.href),u=e.querySelector(Du(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ii.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Pt(u);return}u=e.ownerDocument||e,a=ly(a),(n=Ze.get(n))&&Df(a,n),u=u.createElement("link"),Pt(u);var s=u;s._p=new Promise(function(o,d){s.onload=o,s.onerror=d}),ie(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Ii.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var _f=0;function X0(t,e){return t.stylesheets&&t.count===0&&ec(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&ec(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&_f===0&&(_f=62500*T0());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ec(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>_f?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ii(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ec(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var tc=null;function ec(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,tc=new Map,e.forEach(L0,t),tc=null,Ii.call(t))}function L0(t,e){if(!(e.state.loading&4)){var l=tc.get(t);if(l)var a=l.get(null);else{l=new Map,tc.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var s=n[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=e.instance,s=n.getAttribute("data-precedence"),u=l.get(s)||a,u===a&&l.set(null,n),l.set(s,n),this.count++,a=Ii.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var _u={$$typeof:Y,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function Z0(t,e,l,a,n,u,s,o,d){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.hiddenUpdates=zc(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function cy(t,e,l,a,n,u,s,o,d,T,D,C){return t=new Z0(t,e,l,s,d,T,D,C,o),e=1,u===!0&&(e|=24),u=Oe(3,null,null,e),t.current=u,u.stateNode=t,e=cs(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},os(u),t}function sy(t){return t?(t=tn,t):tn}function fy(t,e,l,a,n,u){n=sy(n),a.context===null?a.context=n:a.pendingContext=n,a=ql(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Ql(t,a,e),l!==null&&(pe(l,t,e),cu(l,t,e))}function ry(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function jf(t,e){ry(t,e),(t=t.alternate)&&ry(t,e)}function oy(t){if(t.tag===13||t.tag===31){var e=ga(t,67108864);e!==null&&pe(e,t,67108864),jf(t,67108864)}}function hy(t){if(t.tag===13||t.tag===31){var e=je();e=Ac(e);var l=ga(t,e);l!==null&&pe(l,t,e),jf(t,e)}}var lc=!0;function w0(t,e,l,a){var n=M.T;M.T=null;var u=G.p;try{G.p=2,Nf(t,e,l,a)}finally{G.p=u,M.T=n}}function K0(t,e,l,a){var n=M.T;M.T=null;var u=G.p;try{G.p=8,Nf(t,e,l,a)}finally{G.p=u,M.T=n}}function Nf(t,e,l,a){if(lc){var n=Cf(a);if(n===null)gf(t,e,a,ac,l),yy(t,a);else if(J0(n,t,e,l,a))a.stopPropagation();else if(yy(t,a),e&4&&-1<V0.indexOf(t)){for(;n!==null;){var u=Za(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=ha(u.pendingLanes);if(s!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var d=1<<31-ze(s);o.entanglements[1]|=d,s&=~d}Pe(u),(Mt&6)===0&&(Yi=Te()+500,zu(0))}}break;case 31:case 13:o=ga(u,2),o!==null&&pe(o,u,2),Xi(),jf(u,2)}if(u=Cf(a),u===null&&gf(t,e,a,ac,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else gf(t,e,a,null,l)}}function Cf(t){return t=Uc(t),Uf(t)}var ac=null;function Uf(t){if(ac=null,t=La(t),t!==null){var e=b(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=O(e),t!==null)return t;t=null}else if(l===31){if(t=R(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ac=t,null}function dy(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Nm()){case Sr:return 2;case Tr:return 8;case Vu:case Cm:return 32;case Er:return 268435456;default:return 32}default:return 32}}var Rf=!1,Fl=null,kl=null,$l=null,ju=new Map,Nu=new Map,Wl=[],V0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function yy(t,e){switch(t){case"focusin":case"focusout":Fl=null;break;case"dragenter":case"dragleave":kl=null;break;case"mouseover":case"mouseout":$l=null;break;case"pointerover":case"pointerout":ju.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nu.delete(e.pointerId)}}function Cu(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=Za(e),e!==null&&oy(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function J0(t,e,l,a,n){switch(e){case"focusin":return Fl=Cu(Fl,t,e,l,a,n),!0;case"dragenter":return kl=Cu(kl,t,e,l,a,n),!0;case"mouseover":return $l=Cu($l,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return ju.set(u,Cu(ju.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Nu.set(u,Cu(Nu.get(u)||null,t,e,l,a,n)),!0}return!1}function my(t){var e=La(t.target);if(e!==null){var l=b(e);if(l!==null){if(e=l.tag,e===13){if(e=O(l),e!==null){t.blockedOn=e,xr(t.priority,function(){hy(l)});return}}else if(e===31){if(e=R(l),e!==null){t.blockedOn=e,xr(t.priority,function(){hy(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function nc(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Cf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Cc=a,l.target.dispatchEvent(a),Cc=null}else return e=Za(l),e!==null&&oy(e),t.blockedOn=l,!1;e.shift()}return!0}function vy(t,e,l){nc(t)&&l.delete(e)}function F0(){Rf=!1,Fl!==null&&nc(Fl)&&(Fl=null),kl!==null&&nc(kl)&&(kl=null),$l!==null&&nc($l)&&($l=null),ju.forEach(vy),Nu.forEach(vy)}function uc(t,e){t.blockedOn===e&&(t.blockedOn=null,Rf||(Rf=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,F0)))}var ic=null;function gy(t){ic!==t&&(ic=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){ic===t&&(ic=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Uf(a||l)===null)continue;break}var u=Za(l);u!==null&&(t.splice(e,3),e-=3,Ns(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function On(t){function e(d){return uc(d,t)}Fl!==null&&uc(Fl,t),kl!==null&&uc(kl,t),$l!==null&&uc($l,t),ju.forEach(e),Nu.forEach(e);for(var l=0;l<Wl.length;l++){var a=Wl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Wl.length&&(l=Wl[0],l.blockedOn===null);)my(l),l.blockedOn===null&&Wl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],s=n[he]||null;if(typeof u=="function")s||gy(l);else if(s){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[he]||null)o=s.formAction;else if(Uf(n)!==null)continue}else o=s.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),gy(l)}}}function py(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Hf(t){this._internalRoot=t}cc.prototype.render=Hf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=je();fy(l,a,t,e,null,null)},cc.prototype.unmount=Hf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fy(t.current,2,null,t,null,null),Xi(),e[Xa]=null}};function cc(t){this._internalRoot=t}cc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Dr();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Wl.length&&e!==0&&e<Wl[l].priority;l++);Wl.splice(l,0,t),l===0&&my(t)}};var by=i.version;if(by!=="19.2.7")throw Error(r(527,by,"19.2.7"));G.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=E(e),t=t!==null?q(t):null,t=t===null?null:t.stateNode,t};var k0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{Xn=sc.inject(k0),Ee=sc}catch{}}return Ru.createRoot=function(t,e){if(!h(t))throw Error(r(299));var l=!1,a="",n=Mh,u=Dh,s=xh;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=cy(t,1,!1,null,null,l,a,null,n,u,s,py),t[Xa]=e.current,vf(t),new Hf(e)},Ru.hydrateRoot=function(t,e,l){if(!h(t))throw Error(r(299));var a=!1,n="",u=Mh,s=Dh,o=xh,d=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(d=l.formState)),e=cy(t,1,!0,e,l??null,a,n,d,u,s,o,py),e.context=sy(null),l=e.current,a=je(),a=Ac(a),n=ql(a),n.callback=null,Ql(l,n,a),l=a,e.current.lanes=l,Zn(e,l),Pe(e),t[Xa]=e.current,vf(t),new cc(e)},Ru.version="19.2.7",Ru}var Yy;function Kg(){if(Yy)return Gf.exports;Yy=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(i){console.error(i)}}return c(),Gf.exports=wg(),Gf.exports}var Vg=Kg();const Jg=["browse","collections","uploads","upload"];function Gy(c){const i=c.replace(/^#\/?/,""),f=i.indexOf("?"),r=f===-1?i:i.slice(0,f),h=f===-1?"":i.slice(f+1),b=r.split("/").filter(Boolean),O=b[0]??"browse",R={tab:Jg.includes(O)?O:"browse"};b[1]&&(R.disk=decodeURIComponent(b[1]));const E=new URLSearchParams(h??"").get("prefix");return E&&(R.prefix=E),R}function pm(c){let i=`#/${c.tab}`;return c.disk&&(i+=`/${encodeURIComponent(c.disk)}`),c.prefix&&(i+=`?prefix=${encodeURIComponent(c.prefix)}`),i}function wf(c){window.location.hash=pm(c)}function Fg(){const[c,i]=I.useState(()=>Gy(typeof window>"u"?"":window.location.hash));return I.useEffect(()=>{const f=()=>i(Gy(window.location.hash));return window.addEventListener("hashchange",f),()=>window.removeEventListener("hashchange",f)},[]),c}const kg={apiBase:"/media/dashboard/api",uploadsBase:"/media/uploads",tusBase:"/media/uploads/tus",actions:!1};function bm(){const c=globalThis.__MEDIA_DASHBOARD__;return{...kg,...c}}function $g(c,i){const f=new URLSearchParams;for(const[h,b]of Object.entries(i))b!==void 0&&b!==""&&f.set(h,String(b));const r=f.toString();return r?`${c}?${r}`:c}class Wg{constructor(i={}){qf(this,"apiBase");qf(this,"fetchImpl");this.apiBase=(i.apiBase??bm().apiBase).replace(/\/+$/,""),this.fetchImpl=i.fetchImpl??globalThis.fetch.bind(globalThis)}async get(i,f={}){const r=await this.fetchImpl($g(`${this.apiBase}${i}`,f),{method:"GET",credentials:"same-origin",headers:{accept:"application/json"}});return this.parse(r)}async post(i,f){const r=await this.fetchImpl(`${this.apiBase}${i}`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(f)});await this.parse(r)}async parse(i){if(!i.ok){let f=`request failed (${i.status})`;try{const r=await i.json();r!=null&&r.error&&(f=r.error)}catch{}throw new Error(f)}if(i.status!==204)return await i.json()}topology(){return this.get("/topology")}disks(){return this.get("/disks")}objects(i,f={}){return this.get("/objects",{disk:i,...f})}object(i,f){return this.get("/object",{disk:i,key:f})}uploads(i={}){return this.get("/uploads",i)}collections(i={}){return this.get("/collections",{collection:i.collection,ownerType:i.ownerType,ownerId:i.ownerId,prefix:i.prefix,cursor:i.cursor,limit:i.limit})}copy(i){return this.post("/copy",i)}move(i){return this.post("/move",i)}remove(i){return this.post("/delete",i)}createFolder(i){return this.post("/folder",i)}deleteFolder(i){return this.post("/folder/delete",i)}copyFolder(i){return this.post("/folder/copy",i)}moveFolder(i){return this.post("/folder/move",i)}}const Sm=I.createContext(null);function Pg({value:c,children:i}){const f=(c==null?void 0:c.bootstrap)??bm(),r=(c==null?void 0:c.client)??new Wg({apiBase:f.apiBase});return g.jsx(Sm.Provider,{value:{client:r,bootstrap:f},children:i})}function Dl(){const c=I.useContext(Sm);if(!c)throw new Error("useDashboard must be used within a DashboardProvider");return c}function Tm(){const{client:c}=Dl();return mr({queryKey:["topology"],queryFn:()=>c.topology()})}function Em(){const{client:c}=Dl();return mr({queryKey:["disks"],queryFn:()=>c.disks()})}const zm=50;function Ig(c,i){const{client:f}=Dl(),r=gm({queryKey:["objects",c,i??""],enabled:!!c,initialPageParam:void 0,queryFn:({pageParam:O})=>f.objects(c,{...i?{prefix:i}:{},...O?{cursor:O}:{},limit:zm}),getNextPageParam:O=>O.cursor}),h=I.useMemo(()=>{var O;return(((O=r.data)==null?void 0:O.pages)??[]).flatMap(R=>R.folders)},[r.data]),b=I.useMemo(()=>{var O;return(((O=r.data)==null?void 0:O.pages)??[]).flatMap(R=>R.files)},[r.data]);return{...r,folders:h,files:b}}function tp(c){const{client:i}=Dl(),f=gm({queryKey:["collections",c.collection??"",c.ownerType??"",c.ownerId??"",c.prefix??""],initialPageParam:void 0,queryFn:({pageParam:h})=>i.collections({...c,...h?{cursor:h}:{},limit:zm}),getNextPageParam:h=>h.nextCursor??void 0}),r=I.useMemo(()=>{var h;return(((h=f.data)==null?void 0:h.pages)??[]).flatMap(b=>b.items)},[f.data]);return{...f,items:r}}function ep(c={}){const{client:i}=Dl();return mr({queryKey:["uploads",c.disk??"",c.prefix??""],queryFn:()=>i.uploads(c),refetchInterval:2e3})}function lp(){const{client:c}=Dl(),i=Gn();return vr({mutationFn:f=>c.copy(f),onSuccess:()=>i.invalidateQueries({queryKey:["objects"]})})}function ap(){const{client:c}=Dl(),i=Gn();return vr({mutationFn:f=>c.move(f),onSuccess:()=>i.invalidateQueries({queryKey:["objects"]})})}function np(){const{client:c}=Dl(),i=Gn();return vr({mutationFn:f=>c.remove(f),onSuccess:()=>i.invalidateQueries({queryKey:["objects"]})})}function Qu(c){if(c==null)return"—";if(c<1024)return`${c} B`;const i=["KB","MB","GB","TB"];let f=c/1024,r=0;for(;f>=1024&&r<i.length-1;)f/=1024,r+=1;return`${f.toFixed(f<10?1:0)} ${i[r]}`}function Am(c){if(!c)return"—";const i=new Date(c);return Number.isNaN(i.getTime())?"—":i.toISOString().slice(0,16).replace("T"," ")}function up(c){if(!c)return"—";const i=new Date(c).getTime();if(Number.isNaN(i))return"—";const f=Math.max(0,Math.round((Date.now()-i)/1e3));return f<60?`${f}s`:f<3600?`${Math.round(f/60)}m`:f<86400?`${Math.round(f/3600)}h`:`${Math.round(f/86400)}d`}function gc({title:c,actions:i,children:f}){return g.jsxs("section",{className:"panel",children:[(c||i)&&g.jsxs("header",{className:"panel-head",children:[c&&g.jsx("span",{className:"panel-title",children:c}),g.jsx("span",{className:"header-spacer"}),i]}),g.jsx("div",{className:"panel-body",children:f})]})}function cr({tone:c}){return g.jsx("span",{className:`dot${c&&c!=="idle"?` ${c}`:""}`})}function Om({percent:c}){return g.jsx("div",{className:"bar","aria-hidden":"true",children:g.jsx("span",{style:{width:`${c??0}%`}})})}function Ue({children:c}){return g.jsx("div",{className:"empty",children:c})}function Mm({title:c,onClose:i,children:f,footer:r}){return I.useEffect(()=>{const h=b=>{b.key==="Escape"&&i()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[i]),g.jsx("div",{className:"modal-backdrop",onMouseDown:h=>h.target===h.currentTarget&&i(),children:g.jsxs("div",{className:"modal",role:"dialog","aria-modal":"true","aria-label":typeof c=="string"?c:void 0,children:[g.jsx("div",{className:"modal-head",children:c}),g.jsx("div",{className:"modal-body",children:f}),r&&g.jsx("div",{className:"modal-foot",children:r})]})})}const Dm=I.createContext(null);function ip({children:c}){const[i,f]=I.useState([]),r=I.useRef(1),h=I.useCallback((O,R="ok")=>{const j=r.current++;f(E=>[...E,{id:j,message:O,tone:R}]),setTimeout(()=>f(E=>E.filter(q=>q.id!==j)),4e3)},[]),b=I.useMemo(()=>({toasts:i,push:h}),[i,h]);return g.jsxs(Dm.Provider,{value:b,children:[c,g.jsx("div",{className:"toasts","aria-live":"polite",children:i.map(O=>g.jsx("div",{className:`toast${O.tone==="error"?" error":""}`,children:O.message},O.id))})]})}function gr(){const c=I.useContext(Dm);return c||{toasts:[],push:()=>{}}}const oc={};function cp(c){var f,r,h,b;const i={};return(f=c.collection)!=null&&f.trim()&&(i.collection=c.collection.trim()),(r=c.ownerType)!=null&&r.trim()&&(i.ownerType=c.ownerType.trim()),(h=c.ownerId)!=null&&h.trim()&&(i.ownerId=c.ownerId.trim()),(b=c.prefix)!=null&&b.trim()&&(i.prefix=c.prefix.trim()),i}function sp(){const[c,i]=I.useState(oc),[f,r]=I.useState(oc),{items:h,isLoading:b,isError:O,error:R,hasNextPage:j,isFetchingNextPage:E,fetchNextPage:q}=tp(f),x=Q=>{Q.preventDefault(),r(cp(c))},L=()=>{i(oc),r(oc)};return g.jsxs("div",{className:"stack",children:[g.jsxs("form",{className:"spread",onSubmit:x,children:[g.jsxs("div",{className:"toolbar",style:{flexWrap:"wrap"},children:[g.jsxs("div",{className:"field",style:{minWidth:150},children:[g.jsx("label",{htmlFor:"filter-owner-type",children:"Owner type"}),g.jsx("input",{id:"filter-owner-type",className:"input",placeholder:"e.g. Post",value:c.ownerType??"",onChange:Q=>i(B=>({...B,ownerType:Q.target.value}))})]}),g.jsxs("div",{className:"field",style:{minWidth:120},children:[g.jsx("label",{htmlFor:"filter-owner-id",children:"Owner id"}),g.jsx("input",{id:"filter-owner-id",className:"input",placeholder:"e.g. 42",value:c.ownerId??"",onChange:Q=>i(B=>({...B,ownerId:Q.target.value}))})]}),g.jsxs("div",{className:"field",style:{minWidth:150},children:[g.jsx("label",{htmlFor:"filter-collection",children:"Collection"}),g.jsx("input",{id:"filter-collection",className:"input",placeholder:"e.g. gallery",value:c.collection??"",onChange:Q=>i(B=>({...B,collection:Q.target.value}))})]}),g.jsxs("div",{className:"field",style:{minWidth:180},children:[g.jsx("label",{htmlFor:"filter-prefix",children:"Path prefix"}),g.jsx("input",{id:"filter-prefix",className:"input mono",placeholder:"e.g. Post/42/",value:c.prefix??"",onChange:Q=>i(B=>({...B,prefix:Q.target.value}))})]})]}),g.jsxs("div",{className:"toolbar",children:[g.jsx("button",{type:"button",className:"btn",onClick:L,children:"Reset"}),g.jsx("button",{type:"submit",className:"btn primary",children:"Apply"})]})]}),g.jsx(gc,{title:"Stored media",children:b?g.jsx(Ue,{children:"Loading records…"}):O?g.jsxs(Ue,{children:["Failed to list records: ",R==null?void 0:R.message]}):h.length===0?g.jsx(Ue,{children:"No media records match this filter."}):g.jsxs(g.Fragment,{children:[g.jsxs("table",{className:"table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Owner"}),g.jsx("th",{children:"Collection"}),g.jsx("th",{children:"Conversions"}),g.jsx("th",{children:"Size"}),g.jsx("th",{children:"Created"})]})}),g.jsx("tbody",{children:h.map(Q=>g.jsxs("tr",{children:[g.jsxs("td",{children:[g.jsx("span",{className:"row-name",children:g.jsx("span",{className:"mono",children:Q.name})}),g.jsx("div",{className:"muted mono",style:{fontSize:"0.72rem"},children:Q.path})]}),g.jsxs("td",{className:"mono",children:[Q.ownerType,g.jsxs("span",{className:"muted",children:[" · ",Q.ownerId]})]}),g.jsx("td",{children:Q.collection}),g.jsx("td",{children:Q.conversions.length===0?g.jsx("span",{className:"muted",children:"—"}):g.jsx("div",{className:"chips",children:Q.conversions.map(B=>g.jsx("span",{className:"chip",children:B},B))})}),g.jsx("td",{className:"tnum",children:Qu(Q.sizeBytes)}),g.jsx("td",{className:"tnum muted",children:Am(Q.createdAt)})]},Q.id))})]}),j&&g.jsx("div",{style:{paddingTop:"0.75rem"},children:g.jsx("button",{type:"button",className:"btn",disabled:E,onClick:()=>q(),children:E?"Loading…":"Load more"})})]})})]})}function fp(c,i){const f=[{label:c,prefix:void 0}];if(!i)return f;const r=i.replace(/\/+$/,"").split("/").filter(Boolean);let h="";for(const b of r)h+=`${b}/`,f.push({label:b,prefix:h});return f}function rp({disk:c,prefix:i}){var U,V,Z;const f=Em(),h=((U=Tm().data)==null?void 0:U.actions)??!1,b=I.useMemo(()=>{var H;return(((H=f.data)==null?void 0:H.disks)??[]).filter(W=>W.capabilities.list)},[f.data]),O=c??((V=b.find(H=>H.default))==null?void 0:V.name)??((Z=b[0])==null?void 0:Z.name),{folders:R,files:j,isLoading:E,isError:q,error:x,hasNextPage:L,isFetchingNextPage:Q,fetchNextPage:B}=Ig(O,i),[K,$]=I.useState(null),[tt,ct]=I.useState(null);if(f.isLoading)return g.jsx(Ue,{children:"Loading disks…"});if(b.length===0)return g.jsx(Ue,{children:"No list-capable disks are configured for the console."});if(!O)return g.jsx(Ue,{children:"Select a disk to browse."});const Y=fp(O,i);return g.jsxs("div",{className:"stack",children:[g.jsx("div",{className:"spread",children:g.jsxs("div",{className:"field",style:{minWidth:200},children:[g.jsx("label",{htmlFor:"disk-select",children:"Disk"}),g.jsx("select",{id:"disk-select",className:"input",value:O,onChange:H=>wf({tab:"browse",disk:H.target.value}),children:b.map(H=>g.jsxs("option",{value:H.name,children:[H.name,H.default?" (default)":""]},H.name))})]})}),g.jsx(gc,{title:g.jsx("nav",{className:"crumbs","aria-label":"Breadcrumb",children:Y.map((H,W)=>g.jsxs("span",{children:[W>0&&g.jsx("span",{className:"sep",children:"/"})," ",g.jsx("button",{type:"button",className:"linklike",onClick:()=>wf({tab:"browse",disk:O,...H.prefix?{prefix:H.prefix}:{}}),children:H.label})]},H.prefix??"__root__"))}),children:E?g.jsx(Ue,{children:"Loading objects…"}):q?g.jsxs(Ue,{children:["Failed to list objects: ",x==null?void 0:x.message]}):R.length===0&&j.length===0?g.jsx(Ue,{children:"This location is empty."}):g.jsxs(g.Fragment,{children:[g.jsxs("table",{className:"table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Size"}),g.jsx("th",{children:"Last modified"}),h&&g.jsx("th",{})]})}),g.jsxs("tbody",{children:[R.map(H=>g.jsxs("tr",{children:[g.jsx("td",{children:g.jsxs("button",{type:"button",className:"linklike row-name",onClick:()=>wf({tab:"browse",disk:O,prefix:H.prefix}),children:[g.jsx("span",{"aria-hidden":!0,children:"📁"})," ",H.name]})}),g.jsx("td",{className:"muted",children:"—"}),g.jsx("td",{className:"muted",children:"—"}),h&&g.jsx("td",{})]},H.prefix)),j.map(H=>g.jsxs("tr",{children:[g.jsx("td",{className:"mono",children:H.name}),g.jsx("td",{className:"tnum",children:Qu(H.sizeBytes)}),g.jsx("td",{className:"tnum muted",children:Am(H.lastModified)}),h&&g.jsx("td",{children:g.jsxs("div",{className:"row-actions",children:[g.jsx("button",{type:"button",className:"btn ghost",onClick:()=>$({mode:"copy",entry:H}),children:"Copy to…"}),g.jsx("button",{type:"button",className:"btn ghost",onClick:()=>$({mode:"move",entry:H}),children:"Move to…"}),g.jsx("button",{type:"button",className:"btn ghost danger",onClick:()=>ct(H),children:"Delete"})]})})]},H.key))]})]}),L&&g.jsx("div",{style:{paddingTop:"0.75rem"},children:g.jsx("button",{type:"button",className:"btn",disabled:Q,onClick:()=>B(),children:Q?"Loading…":"Load more"})})]})}),K&&g.jsx(op,{mode:K.mode,entry:K.entry,fromDisk:O,disks:b,onClose:()=>$(null)}),tt&&g.jsx(hp,{disk:O,entry:tt,onClose:()=>ct(null)})]})}function op({mode:c,entry:i,fromDisk:f,disks:r,onClose:h}){const[b,O]=I.useState(f),[R,j]=I.useState(i.key),E=lp(),q=ap(),{push:x}=gr(),L=c==="copy"?E:q,Q=async()=>{try{await L.mutateAsync({disk:f,from:i.key,to:R,toDisk:b}),x(`${c==="copy"?"Copied":"Moved"} ${i.name}`),h()}catch(B){x(B.message,"error")}};return g.jsxs(Mm,{title:`${c==="copy"?"Copy":"Move"} object`,onClose:h,footer:g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",className:"btn",onClick:h,children:"Cancel"}),g.jsx("button",{type:"button",className:`btn ${c==="move"?"danger":"primary"}`,disabled:L.isPending,onClick:Q,children:L.isPending?"Working…":c==="copy"?"Copy":"Move"})]}),children:[g.jsxs("div",{className:"field",children:[g.jsx("label",{htmlFor:"to-disk",children:"Destination disk"}),g.jsx("select",{id:"to-disk",className:"input",value:b,onChange:B=>O(B.target.value),children:r.map(B=>g.jsx("option",{value:B.name,children:B.name},B.name))})]}),g.jsxs("div",{className:"field",children:[g.jsx("label",{htmlFor:"to-key",children:"Destination key"}),g.jsx("input",{id:"to-key",className:"input mono",value:R,onChange:B=>j(B.target.value)})]})]})}function hp({disk:c,entry:i,onClose:f}){const r=np(),{push:h}=gr(),b=async()=>{try{await r.mutateAsync({disk:c,keys:[i.key]}),h(`Deleted ${i.name}`),f()}catch(O){h(O.message,"error")}};return g.jsx(Mm,{title:"Delete object",onClose:f,footer:g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",className:"btn",onClick:f,children:"Cancel"}),g.jsx("button",{type:"button",className:"btn danger",disabled:r.isPending,onClick:b,children:r.isPending?"Deleting…":"Delete"})]}),children:g.jsxs("p",{children:["Permanently delete ",g.jsx("span",{className:"mono",children:i.key}),"? This cannot be undone."]})})}const dp=8*1024*1024,yp=3,mp=3,hc="1.0.0";function Hu(c,i){if(!("ok"in c)||c.ok===!1){const f=typeof c.status=="number"?` (status ${c.status})`:"";throw new Error(`${i}${f}`)}}function vp(c){return Object.entries(c).map(([i,f])=>`${i} ${btoa(f)}`).join(",")}function gp(c){if(c instanceof Headers){const i={};return c.forEach((f,r)=>{i[r]=f}),i}return Array.isArray(c)?Object.fromEntries(c):{...c}}async function pp(c,i){return i?{...c??{},...gp(await i())}:{...c??{}}}async function Xy(c,i){let f;for(let r=1;r<=c;r+=1)try{return await i()}catch(h){if(f=h,h instanceof Error&&h.name==="AbortError")throw h;r<c&&await new Promise(b=>setTimeout(b,r*500))}throw f}function dc(c,i){return/^https?:\/\//i.test(i)||!c?i:`${c.replace(/\/+$/,"")}/${i.replace(/^\/+/,"")}`}function Ly(c){return c.replace(/\/+$/,"")}function bp(c,i){const f=i?`?conversion=${encodeURIComponent(i)}`:"";return`/media/${encodeURIComponent(c)}${f}`}function Sp(c={}){const i=c.baseUrl??"",f=Ly(c.tusPath??"/media/uploads/tus"),r=Ly(c.uploadsPath??"/media/uploads"),h=c.fetchImpl??fetch,b=c.chunkSize??dp,O=c.concurrency??yp,R=c.retries??mp,j=c.headers,E=c.getHeaders,q=()=>pp(j,E),x=U=>dc(i,U);async function L(U){const V=U.size??0,Z=await h(dc(i,f),{method:"POST",headers:{"Tus-Resumable":hc,"Upload-Length":String(V),"Upload-Metadata":vp({filename:U.filename,...U.contentType?{filetype:U.contentType}:{}}),...await q()}});Hu(Z,"media upload: TUS create failed");const H=Z.headers.get("Location");if(!H)throw new Error("media upload: server did not return a Location");return{location:x(H)}}async function Q(U){const V=await h(U,{method:"HEAD",headers:{"Tus-Resumable":hc,...await q()}});return V.ok&&Number(V.headers.get("Upload-Offset")??"0")||0}async function B(U){await h(U,{method:"DELETE",headers:{"Tus-Resumable":hc,...await q()}})}async function K(U,V,Z={}){var lt,vt,Tt;const H=V.size??U.size,W=Z.chunkSize??b,rt=Z.resumeFrom?x(Z.resumeFrom):(await L({...V,size:H})).location;let P=Z.resumeFrom?await Q(rt):0;for((lt=Z.onProgress)==null||lt.call(Z,P,H);P<H;){if((vt=Z.signal)!=null&&vt.aborted)throw Zy();const Ht=Math.min(P+W,H),Qt=U.slice(P,Ht);P=await Xy(R,async()=>{const G=await h(rt,{method:"PATCH",headers:{"Tus-Resumable":hc,"Content-Type":"application/offset+octet-stream","Upload-Offset":String(P),...await q()},body:Qt,...Z.signal?{signal:Z.signal}:{}});Hu(G,`media upload: PATCH failed at offset ${P}`);const nt=Number(G.headers.get("Upload-Offset")??"");return Number.isFinite(nt)&&nt>P?nt:Ht}),(Tt=Z.onProgress)==null||Tt.call(Z,P,H)}return{mode:"tus",location:rt}}async function $(U,V,Z={}){const H=V.key;if(!H)throw new Error("media upload: direct mode requires meta.key");const W=V.size??U.size,rt=Z.chunkSize??b,P=Z.concurrency??O,lt=await ct(`${r}/direct/initiate`,{key:H,...V.contentType!==void 0?{contentType:V.contentType}:{},size:W,partSize:rt,...V.disk!==void 0?{disk:V.disk}:{}}),vt=lt.partSize||rt,Tt=Math.max(1,Math.ceil(W/vt)),Ht=new Map(lt.parts.map(m=>[m.partNumber,m.url])),Qt=[];let M=0;const G=new AbortController,nt=Z.signal?AbortSignal.any([Z.signal,G.signal]):G.signal;let Ot=0;const xt=async()=>{var m,N;try{for(;;){if((m=Z.signal)!=null&&m.aborted)throw Zy();if(G.signal.aborted)return;const X=Ot;if(Ot+=1,X>=Tt)return;const J=X+1,it=X*vt,dt=Math.min(it+vt,W),Et=U.slice(it,dt),ee=await Xy(R,async()=>{let qt=Ht.get(J);qt||(qt=(await ct(`${r}/direct/${lt.uploadId}/parts/${J}?key=${encodeURIComponent(H)}`,V.disk!==void 0?{disk:V.disk}:{})).url,Ht.set(J,qt));const ll=await h(qt,{method:"PUT",headers:{...V.contentType?{"Content-Type":V.contentType}:{}},body:Et,signal:nt});Hu(ll,`media upload: PUT part ${J} failed`);const ra=ll.headers.get("ETag")??ll.headers.get("etag");if(!ra)throw new Error(`media upload: S3 did not expose an ETag for part ${J} — check the bucket CORS ExposeHeaders`);return ra});Qt.push({partNumber:J,etag:ee}),M+=dt-it,(N=Z.onProgress)==null||N.call(Z,M,W)}}catch(X){throw G.abort(),X}};return await Promise.all(Array.from({length:Math.min(P,Tt)},()=>xt())),Qt.sort((m,N)=>m.partNumber-N.partNumber),await ct(`${r}/direct/${lt.uploadId}/complete`,{key:H,parts:Qt,...V.disk!==void 0?{disk:V.disk}:{}}),{mode:"direct",key:lt.key,disk:lt.disk,uploadId:lt.uploadId}}async function tt(U,V,Z={}){var vt,Tt;const H=V.key;if(!H)throw new Error("media upload: proxy mode requires meta.key");const W=V.size??U.size,rt=new URLSearchParams({key:H});V.disk&&rt.set("disk",V.disk),(vt=Z.onProgress)==null||vt.call(Z,0,W);const P=await h(dc(i,`${r}/proxy?${rt.toString()}`),{method:"PUT",headers:{...V.contentType?{"Content-Type":V.contentType}:{},...await q()},body:U,...Z.signal?{signal:Z.signal}:{}});Hu(P,"media upload: proxy PUT failed"),(Tt=Z.onProgress)==null||Tt.call(Z,W,W);const lt=await Y(P);return{mode:"proxy",key:(lt==null?void 0:lt.key)??H,disk:(lt==null?void 0:lt.disk)??V.disk??"default"}}async function ct(U,V){const Z=await h(dc(i,U),{method:"POST",headers:{"Content-Type":"application/json",...await q()},body:JSON.stringify(V)});return Hu(Z,`media upload: ${U} failed`),Y(Z)}async function Y(U){try{return await U.json()}catch{return}}return{uploadTus:K,uploadDirect:$,uploadProxy:tt,createTusSession:L,tusOffset:Q,abortTus:B,mediaUrl:bp}}function Zy(){const c=new Error("Upload aborted");return c.name="AbortError",c}const Kf={status:"idle",progress:0,result:void 0,location:void 0,error:void 0};function Tp(c={}){const[i,f]=I.useState(Kf),{mode:r="tus",client:h,baseUrl:b,tusPath:O,uploadsPath:R,chunkSize:j,concurrency:E,retries:q,fetchImpl:x,headers:L,getHeaders:Q}=c,B=I.useMemo(()=>h??Sp({...b!==void 0?{baseUrl:b}:{},...O!==void 0?{tusPath:O}:{},...R!==void 0?{uploadsPath:R}:{},...j!==void 0?{chunkSize:j}:{},...E!==void 0?{concurrency:E}:{},...q!==void 0?{retries:q}:{},...x!==void 0?{fetchImpl:x}:{},...L!==void 0?{headers:L}:{},...Q!==void 0?{getHeaders:Q}:{}}),[h,b,O,R,j,E,q,x,L,Q]),K=I.useRef(void 0),$=I.useRef(void 0),tt=I.useRef(void 0),ct=I.useRef(!1),Y=I.useCallback((P,lt)=>{f(vt=>({...vt,progress:lt?P/lt:0}))},[]),U=I.useCallback(async(P,lt)=>{const vt=new AbortController;K.current=vt,ct.current=!1,tt.current={file:P,meta:lt},f(Tt=>({...Tt,status:"uploading",error:void 0}));try{let Tt;if(r==="tus"){const Ht=lt.size??P.size,Qt=$.current??(await B.createTusSession({...lt,size:Ht})).location;$.current=Qt,Tt=await B.uploadTus(P,lt,{resumeFrom:Qt,signal:vt.signal,onProgress:Y})}else r==="direct"?Tt=await B.uploadDirect(P,lt,{signal:vt.signal,onProgress:Y}):Tt=await B.uploadProxy(P,lt,{signal:vt.signal,onProgress:Y});return tt.current=void 0,$.current=void 0,f({status:"success",progress:1,result:Tt,location:Tt.mode==="tus"?Tt.location:void 0,error:void 0}),Tt}catch(Tt){throw Tt.name==="AbortError"?(ct.current&&f(Ht=>({...Ht,status:"paused",location:$.current})),Tt):(f(Ht=>({...Ht,status:"error",error:Tt,location:$.current})),Tt)}},[B,r,Y]),V=I.useCallback((P,lt)=>($.current=void 0,U(P,lt)),[U]),Z=I.useCallback(()=>{K.current&&(ct.current=!0,K.current.abort(),f(P=>P.status==="uploading"?{...P,status:"paused"}:P))},[]),H=I.useCallback(async()=>{const P=tt.current;if(P)try{return await U(P.file,P.meta)}catch(lt){if(lt.name==="AbortError")return;throw lt}},[U]),W=I.useCallback(()=>{var lt;ct.current=!1,(lt=K.current)==null||lt.abort();const P=$.current;P&&B.abortTus(P).catch(()=>{}),K.current=void 0,$.current=void 0,tt.current=void 0,f(Kf)},[B]),rt=I.useCallback(()=>{K.current=void 0,$.current=void 0,tt.current=void 0,ct.current=!1,f(Kf)},[]);return{...i,upload:V,pause:Z,resume:H,abort:W,reset:rt}}function Ep(){var tt,ct;const{bootstrap:c}=Dl(),i=Em(),f=Gn(),{push:r}=gr(),h=I.useRef(null),[b,O]=I.useState(!1),[R,j]=I.useState([]),[E,q]=I.useState(null),x=I.useMemo(()=>{var Y;return((Y=i.data)==null?void 0:Y.disks)??[]},[i.data]),[L,Q]=I.useState(""),B=L||((tt=x.find(Y=>Y.default))==null?void 0:tt.name)||((ct=x[0])==null?void 0:ct.name)||"",K=Tp({mode:"tus",baseUrl:"",tusPath:c.tusBase,uploadsPath:c.uploadsBase}),$=async Y=>{for(const U of Y){q(U.name);try{await K.upload(U,{filename:U.name,...U.type?{contentType:U.type}:{},key:U.name,...B?{disk:B}:{}}),j(V=>[{name:U.name,status:"done"},...V])}catch(V){j(Z=>[{name:U.name,status:"error"},...Z]),r(`${U.name}: ${V.message}`,"error")}}q(null),K.reset(),f.invalidateQueries({queryKey:["objects"]}),f.invalidateQueries({queryKey:["uploads"]})};return g.jsx(gc,{title:"Upload",children:g.jsxs("div",{className:"stack",children:[g.jsxs("div",{className:"field",style:{maxWidth:260},children:[g.jsx("label",{htmlFor:"upload-disk",children:"Destination disk"}),g.jsxs("select",{id:"upload-disk",className:"input",value:B,onChange:Y=>Q(Y.target.value),children:[x.length===0&&g.jsx("option",{value:"",children:"(no disks)"}),x.map(Y=>g.jsxs("option",{value:Y.name,children:[Y.name,Y.default?" (default)":""]},Y.name))]})]}),g.jsxs("button",{type:"button",className:`dropzone${b?" over":""}`,onClick:()=>{var Y;return(Y=h.current)==null?void 0:Y.click()},onDragOver:Y=>{Y.preventDefault(),O(!0)},onDragLeave:()=>O(!1),onDrop:Y=>{Y.preventDefault(),O(!1);const U=Array.from(Y.dataTransfer.files);U.length&&$(U)},children:["Drop files here, or click to choose",g.jsx("input",{ref:h,type:"file",multiple:!0,hidden:!0,onChange:Y=>{const U=Array.from(Y.target.files??[]);U.length&&$(U),Y.target.value=""}})]}),E&&g.jsxs("div",{className:"upload-item",children:[g.jsx("span",{className:"mono",style:{minWidth:140},children:E}),g.jsx(Om,{percent:Math.round(K.progress*100)}),g.jsxs("span",{className:"muted tnum",children:[Math.round(K.progress*100),"%"]})]}),R.length===0&&!E?g.jsx(Ue,{children:"No uploads yet."}):R.map((Y,U)=>g.jsxs("div",{className:"upload-item",children:[g.jsx("span",{className:"mono",style:{minWidth:140},children:Y.name}),g.jsx("span",{className:Y.status==="done"?"muted":"danger",children:Y.status==="done"?"Uploaded":"Failed"})]},`${Y.name}-${U}`))]})})}function zp(){const{data:c,isLoading:i,isError:f,error:r}=ep(),h=(c==null?void 0:c.uploads)??[];return g.jsx(gc,{title:g.jsxs("span",{className:"row-name",children:[g.jsx(cr,{tone:"live"})," Uploads in progress"]}),actions:g.jsx("span",{className:"muted",children:"refreshed every 2s"}),children:i?g.jsx(Ue,{children:"Loading sessions…"}):f?g.jsxs(Ue,{children:["Failed to load uploads: ",r==null?void 0:r.message]}):h.length===0?g.jsx(Ue,{children:"No resumable uploads in progress."}):g.jsxs("table",{className:"table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Key"}),g.jsx("th",{children:"Disk"}),g.jsx("th",{style:{width:"30%"},children:"Progress"}),g.jsx("th",{children:"Parts"}),g.jsx("th",{children:"Age"})]})}),g.jsx("tbody",{children:h.map(b=>g.jsxs("tr",{children:[g.jsx("td",{className:"mono",children:b.key}),g.jsx("td",{children:b.disk}),g.jsx("td",{children:g.jsxs("div",{className:"row-name",children:[g.jsx(Om,{percent:b.percent}),g.jsx("span",{className:"muted tnum",style:{minWidth:92},children:b.percent===null?`${Qu(b.offset)} · unknown size`:`${b.percent}% · ${Qu(b.offset)}/${Qu(b.size)}`})]})}),g.jsx("td",{className:"tnum",children:b.parts}),g.jsx("td",{className:"tnum",children:up(b.createdAt)})]},b.id))})]})})}const Ap=[{id:"browse",label:"Library"},{id:"collections",label:"Collections"},{id:"uploads",label:"Uploads"},{id:"upload",label:"Upload"}];function Op(){var f,r,h;const c=Fg(),i=Tm();return g.jsxs("div",{className:"app",children:[g.jsxs("header",{className:"app-header",children:[g.jsxs("span",{className:"brand",children:[g.jsx("span",{className:"brand-dot","aria-hidden":!0}),"Media · Agora"]}),g.jsx("nav",{className:"tabs",children:Ap.map(b=>g.jsx("a",{className:`tab${c.tab===b.id?" active":""}`,href:pm({tab:b.id}),children:b.label},b.id))}),g.jsx("span",{className:"header-spacer"}),g.jsxs("span",{className:"topo",children:[g.jsxs("span",{children:[((f=i.data)==null?void 0:f.disks)??"—"," disks"]}),g.jsxs("span",{className:"row-name",children:[g.jsx(cr,{tone:(r=i.data)!=null&&r.hasUploads?"ok":"idle"})," uploads"]}),g.jsxs("span",{className:"row-name",children:[g.jsx(cr,{tone:(h=i.data)!=null&&h.actions?"ok":"idle"})," actions"]})]})]}),g.jsxs("main",{className:"app-main",children:[c.tab==="browse"&&g.jsx(rp,{...c.disk?{disk:c.disk}:{},...c.prefix?{prefix:c.prefix}:{}}),c.tab==="collections"&&g.jsx(sp,{}),c.tab==="uploads"&&g.jsx(zp,{}),c.tab==="upload"&&g.jsx(Ep,{})]})]})}const Mp=new Dg({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}),wy=document.getElementById("root");wy&&Vg.createRoot(wy).render(g.jsx(I.StrictMode,{children:g.jsx(_g,{client:Mp,children:g.jsx(Pg,{children:g.jsx(ip,{children:g.jsx(Op,{})})})})}));
50
- //# sourceMappingURL=index-DCc7CvjB.js.map