conductor-remote 1.9.1 → 1.10.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,40 +1,40 @@
1
- (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();function Mf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _c={exports:{}},Xr={};var fg;function mx(){if(fg)return Xr;fg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(a,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:t,type:a,key:c,ref:o!==void 0?o:null,props:s}}return Xr.Fragment=l,Xr.jsx=r,Xr.jsxs=r,Xr}var hg;function px(){return hg||(hg=1,_c.exports=mx()),_c.exports}var R=px();const gx="modulepreload",yx=function(t){return"/"+t},dg={},bx=function(l,r,a){let o=Promise.resolve();if(r&&r.length>0){let p=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};var c=p;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");o=p(r.map(y=>{if(y=yx(y),y in dg)return;dg[y]=!0;const g=y.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${v}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":gx,g||(x.as="script"),x.crossOrigin="",x.href=y,m&&x.setAttribute("nonce",m),document.head.appendChild(x),g)return new Promise((k,C)=>{x.addEventListener("load",k),x.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${y}`)))})}))}function s(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return o.then(d=>{for(const m of d||[])m.status==="rejected"&&s(m.reason);return l().catch(s)})};function vx(t={}){const{immediate:l=!1,onNeedReload:r,onNeedRefresh:a,onOfflineReady:o,onRegistered:s,onRegisteredSW:c,onRegisterError:d}=t;let m,p;const y=async(v=!0)=>{await p};async function g(){if("serviceWorker"in navigator){if(m=await bx(async()=>{const{Workbox:v}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:v}},[]).then(({Workbox:v})=>new v("/sw.js",{scope:"/",type:"classic"})).catch(v=>{d?.(v)}),!m)return;m.addEventListener("activated",v=>{(v.isUpdate||v.isExternal)&&(r?r():window.location.reload())}),m.addEventListener("installed",v=>{v.isUpdate||o?.()}),m.register({immediate:l}).then(v=>{c?c("/sw.js",v):s?.(v)}).catch(v=>{d?.(v)})}}return p=g(),y}var ga=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xx=class extends ga{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const l=()=>t();return window.addEventListener("visibilitychange",l,!1),()=>{window.removeEventListener("visibilitychange",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(l=>{l(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},_f=new xx,Sx={setTimeout:(t,l)=>setTimeout(t,l),clearTimeout:t=>clearTimeout(t),setInterval:(t,l)=>setInterval(t,l),clearInterval:t=>clearInterval(t)},kx=class{#e=Sx;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,l){return this.#e.setTimeout(t,l)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,l){return this.#e.setInterval(t,l)}clearInterval(t){this.#e.clearInterval(t)}},Pl=new kx;function wx(t){setTimeout(t,0)}var Ex=typeof window>"u"||"Deno"in globalThis;function Ht(){}function Cx(t,l){return typeof t=="function"?t(l):t}function of(t){return typeof t=="number"&&t>=0&&t!==1/0}function Vy(t,l){return Math.max(t+(l||0)-Date.now(),0)}function Al(t,l){return typeof t=="function"?t(l):t}function Jt(t,l){return typeof t=="function"?t(l):t}function mg(t,l){const{type:r="all",exact:a,fetchStatus:o,predicate:s,queryKey:c,stale:d}=t;if(c){if(a){if(l.queryHash!==Df(c,l.options))return!1}else if(!ua(l.queryKey,c))return!1}if(r!=="all"){const m=l.isActive();if(r==="active"&&!m||r==="inactive"&&m)return!1}return!(typeof d=="boolean"&&l.isStale()!==d||o&&o!==l.state.fetchStatus||s&&!s(l))}function pg(t,l){const{exact:r,status:a,predicate:o,mutationKey:s}=t;if(s){if(!l.options.mutationKey)return!1;if(r){if(aa(l.options.mutationKey)!==aa(s))return!1}else if(!ua(l.options.mutationKey,s))return!1}return!(a&&l.state.status!==a||o&&!o(l))}function Df(t,l){return(l?.queryKeyHashFn||aa)(t)}function aa(t){return JSON.stringify(t,(l,r)=>cf(r)?Object.keys(r).sort().reduce((a,o)=>(a[o]=r[o],a),{}):r)}function ua(t,l){return t===l?!0:typeof t!=typeof l?!1:t&&l&&typeof t=="object"&&typeof l=="object"?Object.keys(l).every(r=>ua(t[r],l[r])):!1}var Tx=Object.prototype.hasOwnProperty;function Yy(t,l,r=0){if(t===l)return t;if(r>500)return l;const a=gg(t)&&gg(l);if(!a&&!(cf(t)&&cf(l)))return l;const s=(a?t:Object.keys(t)).length,c=a?l:Object.keys(l),d=c.length,m=a?new Array(d):{};let p=0;for(let y=0;y<d;y++){const g=a?y:c[y],v=t[g],x=l[g];if(v===x){m[g]=v,(a?y<s:Tx.call(t,g))&&p++;continue}if(v===null||x===null||typeof v!="object"||typeof x!="object"){m[g]=x;continue}const k=Yy(v,x,r+1);m[g]=k,k===v&&p++}return s===d&&p===s?t:m}function sf(t,l){if(!l||Object.keys(t).length!==Object.keys(l).length)return!1;for(const r in t)if(t[r]!==l[r])return!1;return!0}function gg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function cf(t){if(!yg(t))return!1;const l=t.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!yg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function yg(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ax(t){return new Promise(l=>{Pl.setTimeout(l,t)})}function ff(t,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,l):r.structuralSharing!==!1?Yy(t,l):l}function zx(t,l,r=0){const a=[...t,l];return r&&a.length>r?a.slice(1):a}function Rx(t,l,r=0){const a=[l,...t];return r&&a.length>r?a.slice(0,-1):a}var Nf=Symbol();function Xy(t,l){return!t.queryFn&&l?.initialPromise?()=>l.initialPromise:!t.queryFn||t.queryFn===Nf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Iy(t,l){return typeof t=="function"?t(...l):!!t}function Ox(t,l,r){let a=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=l(),a||(a=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),t}var oa=(()=>{let t=()=>Ex;return{isServer(){return t()},setIsServer(l){t=l}}})();function hf(){let t,l;const r=new Promise((o,s)=>{t=o,l=s});r.status="pending",r.catch(()=>{});function a(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{a({status:"fulfilled",value:o}),t(o)},r.reject=o=>{a({status:"rejected",reason:o}),l(o)},r}var Mx=wx;function _x(){let t=[],l=0,r=d=>{d()},a=d=>{d()},o=Mx;const s=d=>{l?t.push(d):o(()=>{r(d)})},c=()=>{const d=t;t=[],d.length&&o(()=>{a(()=>{d.forEach(m=>{r(m)})})})};return{batch:d=>{let m;l++;try{m=d()}finally{l--,l||c()}return m},batchCalls:d=>(...m)=>{s(()=>{d(...m)})},schedule:s,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{a=d},setScheduler:d=>{o=d}}}var bt=_x(),Dx=class extends ga{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const l=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",l,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(r=>{r(t)}))}isOnline(){return this.#e}},$u=new Dx;function Nx(t){return Math.min(1e3*2**t,3e4)}function Zy(t){return(t??"online")==="online"?$u.isOnline():!0}var df=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ky(t){let l=!1,r=0,a;const o=hf(),s=()=>o.status!=="pending",c=C=>{if(!s()){const T=new df(C);v(T),t.onCancel?.(T)}},d=()=>{l=!0},m=()=>{l=!1},p=()=>_f.isFocused()&&(t.networkMode==="always"||$u.isOnline())&&t.canRun(),y=()=>Zy(t.networkMode)&&t.canRun(),g=C=>{s()||(a?.(),o.resolve(C))},v=C=>{s()||(a?.(),o.reject(C))},x=()=>new Promise(C=>{a=T=>{(s()||p())&&C(T)},t.onPause?.()}).then(()=>{a=void 0,s()||t.onContinue?.()}),k=()=>{if(s())return;let C;const T=r===0?t.initialPromise:void 0;try{C=T??t.fn()}catch(A){C=Promise.reject(A)}Promise.resolve(C).then(g).catch(A=>{if(s())return;const B=t.retry??(oa.isServer()?0:3),_=t.retryDelay??Nx,ee=typeof _=="function"?_(r,A):_,W=B===!0||typeof B=="number"&&r<B||typeof B=="function"&&B(r,A);if(l||!W){v(A);return}r++,t.onFail?.(r,A),Ax(ee).then(()=>p()?void 0:x()).then(()=>{l?v(A):k()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(a?.(),o),cancelRetry:d,continueRetry:m,canStart:y,start:()=>(y()?k():x().then(k),o)}}var Jy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&(this.#e=Pl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(oa.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Pl.clearTimeout(this.#e),this.#e=void 0)}};function jx(t){return{onFetch:(l,r)=>{const a=l.options,o=l.fetchOptions?.meta?.fetchMore?.direction,s=l.state.data?.pages||[],c=l.state.data?.pageParams||[];let d={pages:[],pageParams:[]},m=0;const p=async()=>{let y=!1;const g=k=>{Ox(k,()=>l.signal,()=>y=!0)},v=Xy(l.options,l.fetchOptions),x=async(k,C,T)=>{if(y)return Promise.reject(l.signal.reason);if(C==null&&k.pages.length)return Promise.resolve(k);const B=(()=>{const Q={client:l.client,queryKey:l.queryKey,pageParam:C,direction:T?"backward":"forward",meta:l.options.meta};return g(Q),Q})(),_=await v(B),{maxPages:ee}=l.options,W=T?Rx:zx;return{pages:W(k.pages,_,ee),pageParams:W(k.pageParams,C,ee)}};if(o&&s.length){const k=o==="backward",C=k?Lx:bg,T={pages:s,pageParams:c},A=C(a,T);d=await x(T,A,k)}else{const k=t??s.length;do{const C=m===0?c[0]??a.initialPageParam:bg(a,d);if(m>0&&C==null)break;d=await x(d,C),m++}while(m<k)}return d};l.options.persister?l.fetchFn=()=>l.options.persister?.(p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r):l.fetchFn=p}}}function bg(t,{pages:l,pageParams:r}){const a=l.length-1;return l.length>0?t.getNextPageParam(l[a],l,r[a],r):void 0}function Lx(t,{pages:l,pageParams:r}){return l.length>0?t.getPreviousPageParam?.(l[0],l,r[0],r):void 0}var Ux=class extends Jy{#e;#t;#n;#l;#r;#i;#u;#a;constructor(t){super(),this.#a=!1,this.#u=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#l=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=xg(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#u,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const l=xg(this.options);l.data!==void 0&&(this.setState(vg(l.data,l.dataUpdatedAt)),this.#t=l)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(t,l){const r=ff(this.state.data,t,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:l?.updatedAt,manual:l?.manual}),r}setState(t){this.#o({type:"setState",state:t})}cancel(t){const l=this.#i?.promise;return this.#i?.cancel(t),l?l.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Jt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Al(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Vy(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(l=>l.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(l=>l.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(l=>l!==t),this.observers.length||(this.#i&&(this.#a||this.#c()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,l){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&l?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,a=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const m=Xy(this.options,l),y=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return a(g),g})();return this.#a=!1,this.options.persister?this.options.persister(m,y,this):m(y)},c=(()=>{const m={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return a(m),m})();(this.#e==="infinite"?jx(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#i=Ky({initialPromise:l?.initialPromise,fn:c.fetchFn,onCancel:m=>{m instanceof df&&m.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(m,p)=>{this.#o({type:"failed",failureCount:m,error:p})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const m=await this.#i.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#l.config.onSuccess?.(m,this),this.#l.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof df){if(m.silent)return this.#i.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#o({type:"error",error:m}),this.#l.config.onError?.(m,this),this.#l.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#o(t){const l=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Py(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...vg(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?a:void 0,a;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=l(this.state),bt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:t})})}};function Py(t,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zy(l.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function vg(t,l){return{data:t,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xg(t){const l=typeof t.initialData=="function"?t.initialData():t.initialData,r=l!==void 0,a=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Bx=class extends ga{constructor(t,l){super(),this.options=l,this.#e=t,this.#a=null,this.#u=hf(),this.bindMethods(),this.setOptions(l)}#e;#t=void 0;#n=void 0;#l=void 0;#r;#i;#u;#a;#c;#o;#m;#f;#h;#s;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Sg(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const l=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Jt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#t.setOptions(this.options),l._defaulted&&!sf(this.options,l)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&kg(this.#t,r,this.options,l)&&this.#d(),this.updateResult(),a&&(this.#t!==r||Jt(this.options.enabled,this.#t)!==Jt(l.enabled,this.#t)||Al(this.options.staleTime,this.#t)!==Al(l.staleTime,this.#t))&&this.#g();const o=this.#y();a&&(this.#t!==r||Jt(this.options.enabled,this.#t)!==Jt(l.enabled,this.#t)||o!==this.#s)&&this.#b(o)}getOptimisticResult(t){const l=this.#e.getQueryCache().build(this.#e,t),r=this.createResult(l,t);return qx(this,r)&&(this.#l=r,this.#i=this.options,this.#r=this.#t.state),r}getCurrentResult(){return this.#l}trackResult(t,l){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),l?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const l=this.#e.defaultQueryOptions(t),r=this.#e.getQueryCache().build(this.#e,l);return r.fetch().then(()=>this.createResult(r,l))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#d(t){this.#k();let l=this.#t.fetch(this.options,t);return t?.throwOnError||(l=l.catch(Ht)),l}#g(){this.#x();const t=Al(this.options.staleTime,this.#t);if(oa.isServer()||this.#l.isStale||!of(t))return;const r=Vy(this.#l.dataUpdatedAt,t)+1;this.#f=Pl.setTimeout(()=>{this.#l.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(t){this.#S(),this.#s=t,!(oa.isServer()||Jt(this.options.enabled,this.#t)===!1||!of(this.#s)||this.#s===0)&&(this.#h=Pl.setInterval(()=>{(this.options.refetchIntervalInBackground||_f.isFocused())&&this.#d()},this.#s))}#v(){this.#g(),this.#b(this.#y())}#x(){this.#f!==void 0&&(Pl.clearTimeout(this.#f),this.#f=void 0)}#S(){this.#h!==void 0&&(Pl.clearInterval(this.#h),this.#h=void 0)}createResult(t,l){const r=this.#t,a=this.options,o=this.#l,s=this.#r,c=this.#i,m=t!==r?t.state:this.#n,{state:p}=t;let y={...p},g=!1,v;if(l._optimisticResults){const Y=this.hasListeners(),ae=!Y&&Sg(t,l),q=Y&&kg(t,r,l,a);(ae||q)&&(y={...y,...Py(p.data,t.options)}),l._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:x,errorUpdatedAt:k,status:C}=y;v=y.data;let T=!1;if(l.placeholderData!==void 0&&v===void 0&&C==="pending"){let Y;o?.isPlaceholderData&&l.placeholderData===c?.placeholderData?(Y=o.data,T=!0):Y=typeof l.placeholderData=="function"?l.placeholderData(this.#m?.state.data,this.#m):l.placeholderData,Y!==void 0&&(C="success",v=ff(o?.data,Y,l),g=!0)}if(l.select&&v!==void 0&&!T)if(o&&v===s?.data&&l.select===this.#c)v=this.#o;else try{this.#c=l.select,v=l.select(v),v=ff(o?.data,v,l),this.#o=v,this.#a=null}catch(Y){this.#a=Y}this.#a&&(x=this.#a,v=this.#o,k=Date.now(),C="error");const A=y.fetchStatus==="fetching",B=C==="pending",_=C==="error",ee=B&&A,W=v!==void 0,J={status:C,fetchStatus:y.fetchStatus,isPending:B,isSuccess:C==="success",isError:_,isInitialLoading:ee,isLoading:ee,data:v,dataUpdatedAt:y.dataUpdatedAt,error:x,errorUpdatedAt:k,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:A,isRefetching:A&&!B,isLoadingError:_&&!W,isPaused:y.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:_&&W,isStale:jf(t,l),refetch:this.refetch,promise:this.#u,isEnabled:Jt(l.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Y=J.data!==void 0,ae=J.status==="error"&&!Y,q=ye=>{ae?ye.reject(J.error):Y&&ye.resolve(J.data)},ie=()=>{const ye=this.#u=J.promise=hf();q(ye)},te=this.#u;switch(te.status){case"pending":t.queryHash===r.queryHash&&q(te);break;case"fulfilled":(ae||J.data!==te.value)&&ie();break;case"rejected":(!ae||J.error!==te.reason)&&ie();break}}return J}updateResult(){const t=this.#l,l=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#m=this.#t),sf(l,t))return;this.#l=l;const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.#p.size)return!0;const s=new Set(o??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#l).some(c=>{const d=c;return this.#l[d]!==t[d]&&s.has(d)})};this.#w({listeners:r()})}#k(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const l=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(l?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(t){bt.batch(()=>{t.listeners&&this.listeners.forEach(l=>{l(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Hx(t,l){return Jt(l.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&Jt(l.retryOnMount,t)===!1)}function Sg(t,l){return Hx(t,l)||t.state.data!==void 0&&mf(t,l,l.refetchOnMount)}function mf(t,l,r){if(Jt(l.enabled,t)!==!1&&Al(l.staleTime,t)!=="static"){const a=typeof r=="function"?r(t):r;return a==="always"||a!==!1&&jf(t,l)}return!1}function kg(t,l,r,a){return(t!==l||Jt(a.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&jf(t,r)}function jf(t,l){return Jt(l.enabled,t)!==!1&&t.isStaleByTime(Al(l.staleTime,t))}function qx(t,l){return!sf(t.getCurrentResult(),l)}var Qx=class extends Jy{#e;#t;#n;#l;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||Fx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(l=>l!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(t){const l=()=>{this.#r({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=Ky({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:l,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",o=!this.#l.canStart();try{if(a)l();else{this.#r({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,r);const c=await this.options.onMutate?.(t,r);c!==this.state.context&&this.#r({type:"pending",context:c,variables:t,isPaused:o})}const s=await this.#l.start();return await this.#n.config.onSuccess?.(s,t,this.state.context,this,r),await this.options.onSuccess?.(s,t,this.state.context,r),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(s,null,t,this.state.context,r),this.#r({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,t,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onError?.(s,t,this.state.context,r)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,s,t,this.state.context,r)}catch(c){Promise.reject(c)}throw this.#r({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#r(t){const l=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=l(this.state),bt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function Fx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gx=class extends ga{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,l,r){const a=new Qx({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(l),state:r});return this.add(a),a}add(t){this.#e.add(t);const l=qu(t);if(typeof l=="string"){const r=this.#t.get(l);r?r.push(t):this.#t.set(l,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const l=qu(t);if(typeof l=="string"){const r=this.#t.get(l);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&this.#t.delete(l)}}this.notify({type:"removed",mutation:t})}canRun(t){const l=qu(t);if(typeof l=="string"){const a=this.#t.get(l)?.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){const l=qu(t);return typeof l=="string"?this.#t.get(l)?.find(a=>a!==t&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){bt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const l={exact:!0,...t};return this.getAll().find(r=>pg(l,r))}findAll(t={}){return this.getAll().filter(l=>pg(t,l))}notify(t){bt.batch(()=>{this.listeners.forEach(l=>{l(t)})})}resumePausedMutations(){const t=this.getAll().filter(l=>l.state.isPaused);return bt.batch(()=>Promise.all(t.map(l=>l.continue().catch(Ht))))}};function qu(t){return t.options.scope?.id}var Vx=class extends ga{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,l,r){const a=l.queryKey,o=l.queryHash??Df(a,l);let s=this.get(o);return s||(s=new Ux({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(l),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const l=this.#e.get(t.queryHash);l&&(t.destroy(),l===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const l={exact:!0,...t};return this.getAll().find(r=>mg(l,r))}findAll(t={}){const l=this.getAll();return Object.keys(t).length>0?l.filter(r=>mg(t,r)):l}notify(t){bt.batch(()=>{this.listeners.forEach(l=>{l(t)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yx=class{#e;#t;#n;#l;#r;#i;#u;#a;constructor(t={}){this.#e=t.queryCache||new Vx,this.#t=t.mutationCache||new Gx,this.#n=t.defaultOptions||{},this.#l=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#u=_f.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=$u.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#u?.(),this.#u=void 0,this.#a?.(),this.#a=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const l=this.defaultQueryOptions({queryKey:t});return this.#e.get(l.queryHash)?.state.data}ensureQueryData(t){const l=this.defaultQueryOptions(t),r=this.#e.build(this,l),a=r.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Al(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(a))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:l,state:r})=>{const a=r.data;return[l,a]})}setQueryData(t,l,r){const a=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(a.queryHash)?.state.data,c=Cx(l,s);if(c!==void 0)return this.#e.build(this,a).setData(c,{...r,manual:!0})}setQueriesData(t,l,r){return bt.batch(()=>this.#e.findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,l,r)]))}getQueryState(t){const l=this.defaultQueryOptions({queryKey:t});return this.#e.get(l.queryHash)?.state}removeQueries(t){const l=this.#e;bt.batch(()=>{l.findAll(t).forEach(r=>{l.remove(r)})})}resetQueries(t,l){const r=this.#e;return bt.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},l)))}cancelQueries(t,l={}){const r={revert:!0,...l},a=bt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(r)));return Promise.all(a).then(Ht).catch(Ht)}invalidateQueries(t,l={}){return bt.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},l)))}refetchQueries(t,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},a=bt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(Ht)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(a).then(Ht)}fetchQuery(t){const l=this.defaultQueryOptions(t);l.retry===void 0&&(l.retry=!1);const r=this.#e.build(this,l);return r.isStaleByTime(Al(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ht).catch(Ht)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ht).catch(Ht)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return $u.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,l){this.#l.set(aa(t),{queryKey:t,defaultOptions:l})}getQueryDefaults(t){const l=[...this.#l.values()],r={};return l.forEach(a=>{ua(t,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(t,l){this.#r.set(aa(t),{mutationKey:t,defaultOptions:l})}getMutationDefaults(t){const l=[...this.#r.values()],r={};return l.forEach(a=>{ua(t,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const l={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return l.queryHash||(l.queryHash=Df(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Nf&&(l.enabled=!1),l}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Dc={exports:{}},Se={};var wg;function Xx(){if(wg)return Se;wg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function A(O,V,E){this.props=O,this.context=V,this.refs=T,this.updater=E||k}A.prototype.isReactComponent={},A.prototype.setState=function(O,V){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,V,"setState")},A.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function B(){}B.prototype=A.prototype;function _(O,V,E){this.props=O,this.context=V,this.refs=T,this.updater=E||k}var ee=_.prototype=new B;ee.constructor=_,C(ee,A.prototype),ee.isPureReactComponent=!0;var W=Array.isArray;function Q(){}var J={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function ae(O,V,E){var le=E.ref;return{$$typeof:t,type:O,key:V,ref:le!==void 0?le:null,props:E}}function q(O,V){return ae(O.type,V,O.props)}function ie(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function te(O){var V={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(E){return V[E]})}var ye=/\/+/g;function ue(O,V){return typeof O=="object"&&O!==null&&O.key!=null?te(""+O.key):V.toString(36)}function P(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Q,Q):(O.status="pending",O.then(function(V){O.status==="pending"&&(O.status="fulfilled",O.value=V)},function(V){O.status==="pending"&&(O.status="rejected",O.reason=V)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function j(O,V,E,le,se){var re=typeof O;(re==="undefined"||re==="boolean")&&(O=null);var Ee=!1;if(O===null)Ee=!0;else switch(re){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(O.$$typeof){case t:case l:Ee=!0;break;case y:return Ee=O._init,j(Ee(O._payload),V,E,le,se)}}if(Ee)return se=se(O),Ee=le===""?"."+ue(O,0):le,W(se)?(E="",Ee!=null&&(E=Ee.replace(ye,"$&/")+"/"),j(se,V,E,"",function(kt){return kt})):se!=null&&(ie(se)&&(se=q(se,E+(se.key==null||O&&O.key===se.key?"":(""+se.key).replace(ye,"$&/")+"/")+Ee)),V.push(se)),1;Ee=0;var Ve=le===""?".":le+":";if(W(O))for(var ve=0;ve<O.length;ve++)le=O[ve],re=Ve+ue(le,ve),Ee+=j(le,V,E,re,se);else if(ve=x(O),typeof ve=="function")for(O=ve.call(O),ve=0;!(le=O.next()).done;)le=le.value,re=Ve+ue(le,ve++),Ee+=j(le,V,E,re,se);else if(re==="object"){if(typeof O.then=="function")return j(P(O),V,E,le,se);throw V=String(O),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function K(O,V,E){if(O==null)return O;var le=[],se=0;return j(O,le,"","",function(re){return V.call(E,re,se++)}),le}function he(O){if(O._status===-1){var V=O._result;V=V(),V.then(function(E){(O._status===0||O._status===-1)&&(O._status=1,O._result=E)},function(E){(O._status===0||O._status===-1)&&(O._status=2,O._result=E)}),O._status===-1&&(O._status=0,O._result=V)}if(O._status===1)return O._result.default;throw O._result}var ke=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},w={map:K,forEach:function(O,V,E){K(O,function(){V.apply(this,arguments)},E)},count:function(O){var V=0;return K(O,function(){V++}),V},toArray:function(O){return K(O,function(V){return V})||[]},only:function(O){if(!ie(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Se.Activity=g,Se.Children=w,Se.Component=A,Se.Fragment=r,Se.Profiler=o,Se.PureComponent=_,Se.StrictMode=a,Se.Suspense=m,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,Se.__COMPILER_RUNTIME={__proto__:null,c:function(O){return J.H.useMemoCache(O)}},Se.cache=function(O){return function(){return O.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(O,V,E){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var le=C({},O.props),se=O.key;if(V!=null)for(re in V.key!==void 0&&(se=""+V.key),V)!Y.call(V,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&V.ref===void 0||(le[re]=V[re]);var re=arguments.length-2;if(re===1)le.children=E;else if(1<re){for(var Ee=Array(re),Ve=0;Ve<re;Ve++)Ee[Ve]=arguments[Ve+2];le.children=Ee}return ae(O.type,se,le)},Se.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:s,_context:O},O},Se.createElement=function(O,V,E){var le,se={},re=null;if(V!=null)for(le in V.key!==void 0&&(re=""+V.key),V)Y.call(V,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(se[le]=V[le]);var Ee=arguments.length-2;if(Ee===1)se.children=E;else if(1<Ee){for(var Ve=Array(Ee),ve=0;ve<Ee;ve++)Ve[ve]=arguments[ve+2];se.children=Ve}if(O&&O.defaultProps)for(le in Ee=O.defaultProps,Ee)se[le]===void 0&&(se[le]=Ee[le]);return ae(O,re,se)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(O){return{$$typeof:d,render:O}},Se.isValidElement=ie,Se.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:he}},Se.memo=function(O,V){return{$$typeof:p,type:O,compare:V===void 0?null:V}},Se.startTransition=function(O){var V=J.T,E={};J.T=E;try{var le=O(),se=J.S;se!==null&&se(E,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(Q,ke)}catch(re){ke(re)}finally{V!==null&&E.types!==null&&(V.types=E.types),J.T=V}},Se.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},Se.use=function(O){return J.H.use(O)},Se.useActionState=function(O,V,E){return J.H.useActionState(O,V,E)},Se.useCallback=function(O,V){return J.H.useCallback(O,V)},Se.useContext=function(O){return J.H.useContext(O)},Se.useDebugValue=function(){},Se.useDeferredValue=function(O,V){return J.H.useDeferredValue(O,V)},Se.useEffect=function(O,V){return J.H.useEffect(O,V)},Se.useEffectEvent=function(O){return J.H.useEffectEvent(O)},Se.useId=function(){return J.H.useId()},Se.useImperativeHandle=function(O,V,E){return J.H.useImperativeHandle(O,V,E)},Se.useInsertionEffect=function(O,V){return J.H.useInsertionEffect(O,V)},Se.useLayoutEffect=function(O,V){return J.H.useLayoutEffect(O,V)},Se.useMemo=function(O,V){return J.H.useMemo(O,V)},Se.useOptimistic=function(O,V){return J.H.useOptimistic(O,V)},Se.useReducer=function(O,V,E){return J.H.useReducer(O,V,E)},Se.useRef=function(O){return J.H.useRef(O)},Se.useState=function(O){return J.H.useState(O)},Se.useSyncExternalStore=function(O,V,E){return J.H.useSyncExternalStore(O,V,E)},Se.useTransition=function(){return J.H.useTransition()},Se.version="19.2.7",Se}var Eg;function Lf(){return Eg||(Eg=1,Dc.exports=Xx()),Dc.exports}var N=Lf();const Qu=Mf(N);var $y=N.createContext(void 0),Wy=t=>{const l=N.useContext($y);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},Ix=({client:t,children:l})=>(N.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),R.jsx($y.Provider,{value:t,children:l})),eb=N.createContext(!1),Zx=()=>N.useContext(eb);eb.Provider;function Kx(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Jx=N.createContext(Kx()),Px=()=>N.useContext(Jx),$x=(t,l,r)=>{const a=r?.state.error&&typeof t.throwOnError=="function"?Iy(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(l.isReset()||(t.retryOnMount=!1))},Wx=t=>{N.useEffect(()=>{t.clearReset()},[t])},eS=({result:t,errorResetBoundary:l,throwOnError:r,query:a,suspense:o})=>t.isError&&!l.isReset()&&!t.isFetching&&a&&(o&&t.data===void 0||Iy(r,[t.error,a])),tS=t=>{if(t.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...o)=>r(a(...o)):r(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},nS=(t,l)=>t.isLoading&&t.isFetching&&!l,lS=(t,l)=>t?.suspense&&l.isPending,Cg=(t,l,r)=>l.fetchOptimistic(t).catch(()=>{r.clearReset()});function iS(t,l,r){const a=Zx(),o=Px(),s=Wy(),c=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const d=s.getQueryCache().get(c.queryHash),m=t.subscribed!==!1;c._optimisticResults=a?"isRestoring":m?"optimistic":void 0,tS(c),$x(c,o,d),Wx(o);const p=!s.getQueryCache().get(c.queryHash),[y]=N.useState(()=>new l(s,c)),g=y.getOptimisticResult(c),v=!a&&m;if(N.useSyncExternalStore(N.useCallback(x=>{const k=v?y.subscribe(bt.batchCalls(x)):Ht;return y.updateResult(),k},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),N.useEffect(()=>{y.setOptions(c)},[c,y]),lS(c,g))throw Cg(c,y,o);if(eS({result:g,errorResetBoundary:o,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw g.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,g),c.experimental_prefetchInRender&&!oa.isServer()&&nS(g,a)&&(p?Cg(c,y,o):d?.promise)?.catch(Ht).finally(()=>{y.updateResult()}),c.notifyOnChangeProps?g:y.trackResult(g)}function Uf(t,l){return iS(t,Bx)}var Nc={exports:{}},Ir={},jc={exports:{}},Lc={};var Tg;function rS(){return Tg||(Tg=1,(function(t){function l(j,K){var he=j.length;j.push(K);e:for(;0<he;){var ke=he-1>>>1,w=j[ke];if(0<o(w,K))j[ke]=K,j[he]=w,he=ke;else break e}}function r(j){return j.length===0?null:j[0]}function a(j){if(j.length===0)return null;var K=j[0],he=j.pop();if(he!==K){j[0]=he;e:for(var ke=0,w=j.length,O=w>>>1;ke<O;){var V=2*(ke+1)-1,E=j[V],le=V+1,se=j[le];if(0>o(E,he))le<w&&0>o(se,E)?(j[ke]=se,j[le]=he,ke=le):(j[ke]=E,j[V]=he,ke=V);else if(le<w&&0>o(se,he))j[ke]=se,j[le]=he,ke=le;else break e}}return K}function o(j,K){var he=j.sortIndex-K.sortIndex;return he!==0?he:j.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var m=[],p=[],y=1,g=null,v=3,x=!1,k=!1,C=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function ee(j){for(var K=r(p);K!==null;){if(K.callback===null)a(p);else if(K.startTime<=j)a(p),K.sortIndex=K.expirationTime,l(m,K);else break;K=r(p)}}function W(j){if(C=!1,ee(j),!k)if(r(m)!==null)k=!0,Q||(Q=!0,te());else{var K=r(p);K!==null&&P(W,K.startTime-j)}}var Q=!1,J=-1,Y=5,ae=-1;function q(){return T?!0:!(t.unstable_now()-ae<Y)}function ie(){if(T=!1,Q){var j=t.unstable_now();ae=j;var K=!0;try{e:{k=!1,C&&(C=!1,B(J),J=-1),x=!0;var he=v;try{t:{for(ee(j),g=r(m);g!==null&&!(g.expirationTime>j&&q());){var ke=g.callback;if(typeof ke=="function"){g.callback=null,v=g.priorityLevel;var w=ke(g.expirationTime<=j);if(j=t.unstable_now(),typeof w=="function"){g.callback=w,ee(j),K=!0;break t}g===r(m)&&a(m),ee(j)}else a(m);g=r(m)}if(g!==null)K=!0;else{var O=r(p);O!==null&&P(W,O.startTime-j),K=!1}}break e}finally{g=null,v=he,x=!1}K=void 0}}finally{K?te():Q=!1}}}var te;if(typeof _=="function")te=function(){_(ie)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,ue=ye.port2;ye.port1.onmessage=ie,te=function(){ue.postMessage(null)}}else te=function(){A(ie,0)};function P(j,K){J=A(function(){j(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(j){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var he=v;v=K;try{return j()}finally{v=he}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(j,K){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var he=v;v=j;try{return K()}finally{v=he}},t.unstable_scheduleCallback=function(j,K,he){var ke=t.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?ke+he:ke):he=ke,j){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=he+w,j={id:y++,callback:K,priorityLevel:j,startTime:he,expirationTime:w,sortIndex:-1},he>ke?(j.sortIndex=he,l(p,j),r(m)===null&&j===r(p)&&(C?(B(J),J=-1):C=!0,P(W,he-ke))):(j.sortIndex=w,l(m,j),k||x||(k=!0,Q||(Q=!0,te()))),j},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(j){var K=v;return function(){var he=v;v=K;try{return j.apply(this,arguments)}finally{v=he}}}})(Lc)),Lc}var Ag;function aS(){return Ag||(Ag=1,jc.exports=rS()),jc.exports}var Uc={exports:{}},vt={};var zg;function uS(){if(zg)return vt;zg=1;var t=Lf();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(m,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:p,implementation:y}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,vt.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return s(m,p,null,y)},vt.flushSync=function(m){var p=c.T,y=a.p;try{if(c.T=null,a.p=2,m)return m()}finally{c.T=p,a.p=y,a.d.f()}},vt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(m,p))},vt.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},vt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?a.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):y==="script"&&a.d.X(m,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},vt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);a.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(m)},vt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin);a.d.L(m,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},vt.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=d(p.as,p.crossOrigin);a.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(m)},vt.requestFormReset=function(m){a.d.r(m)},vt.unstable_batchedUpdates=function(m,p){return m(p)},vt.useFormState=function(m,p,y){return c.H.useFormState(m,p,y)},vt.useFormStatus=function(){return c.H.useHostTransitionStatus()},vt.version="19.2.7",vt}var Rg;function oS(){if(Rg)return Uc.exports;Rg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Uc.exports=uS(),Uc.exports}var Og;function sS(){if(Og)return Ir;Og=1;var t=aS(),l=Lf(),r=oS();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(s(e)!==e)throw Error(a(188))}function p(e){var n=e.alternate;if(!n){if(n=s(e),n===null)throw Error(a(188));return n!==e?null:e}for(var i=e,u=n;;){var f=i.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){i=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===i)return m(f),e;if(h===u)return m(f),n;h=h.sibling}throw Error(a(188))}if(i.return!==u.return)i=f,u=h;else{for(var b=!1,S=f.child;S;){if(S===i){b=!0,i=f,u=h;break}if(S===u){b=!0,u=f,i=h;break}S=S.sibling}if(!b){for(S=h.child;S;){if(S===i){b=!0,i=h,u=f;break}if(S===u){b=!0,u=h,i=f;break}S=S.sibling}if(!b)throw Error(a(189))}}if(i.alternate!==u)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),_=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case A:return"Profiler";case T:return"StrictMode";case W:return"Suspense";case Q:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case _:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case ee:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return n=e.displayName||null,n!==null?n:ue(e.type)||"Memo";case Y:n=e._payload,e=e._init;try{return ue(e(n))}catch{}}return null}var P=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},ke=[],w=-1;function O(e){return{current:e}}function V(e){0>w||(e.current=ke[w],ke[w]=null,w--)}function E(e,n){w++,ke[w]=e.current,e.current=n}var le=O(null),se=O(null),re=O(null),Ee=O(null);function Ve(e,n){switch(E(re,n),E(se,e),E(le,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Np(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Np(n),e=jp(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(le),E(le,e)}function ve(){V(le),V(se),V(re)}function kt(e){e.memoizedState!==null&&E(Ee,e);var n=le.current,i=jp(n,e.type);n!==i&&(E(se,e),E(le,i))}function zt(e){se.current===e&&(V(le),V(se)),Ee.current===e&&(V(Ee),Fr._currentValue=he)}var kn,Wn;function Rt(e){if(kn===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);kn=n&&n[1]||"",Wn=-1<i.stack.indexOf(`
1
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();function Mf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _c={exports:{}},Xr={};var fg;function px(){if(fg)return Xr;fg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(a,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:t,type:a,key:c,ref:o!==void 0?o:null,props:s}}return Xr.Fragment=l,Xr.jsx=r,Xr.jsxs=r,Xr}var hg;function mx(){return hg||(hg=1,_c.exports=px()),_c.exports}var R=mx();const gx="modulepreload",yx=function(t){return"/"+t},dg={},bx=function(l,r,a){let o=Promise.resolve();if(r&&r.length>0){let m=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};var c=m;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");o=m(r.map(y=>{if(y=yx(y),y in dg)return;dg[y]=!0;const g=y.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${v}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":gx,g||(x.as="script"),x.crossOrigin="",x.href=y,p&&x.setAttribute("nonce",p),document.head.appendChild(x),g)return new Promise((k,C)=>{x.addEventListener("load",k),x.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${y}`)))})}))}function s(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return o.then(d=>{for(const p of d||[])p.status==="rejected"&&s(p.reason);return l().catch(s)})};function vx(t={}){const{immediate:l=!1,onNeedReload:r,onNeedRefresh:a,onOfflineReady:o,onRegistered:s,onRegisteredSW:c,onRegisterError:d}=t;let p,m;const y=async(v=!0)=>{await m};async function g(){if("serviceWorker"in navigator){if(p=await bx(async()=>{const{Workbox:v}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:v}},[]).then(({Workbox:v})=>new v("/sw.js",{scope:"/",type:"classic"})).catch(v=>{d?.(v)}),!p)return;p.addEventListener("activated",v=>{(v.isUpdate||v.isExternal)&&(r?r():window.location.reload())}),p.addEventListener("installed",v=>{v.isUpdate||o?.()}),p.register({immediate:l}).then(v=>{c?c("/sw.js",v):s?.(v)}).catch(v=>{d?.(v)})}}return m=g(),y}var ga=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xx=class extends ga{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const l=()=>t();return window.addEventListener("visibilitychange",l,!1),()=>{window.removeEventListener("visibilitychange",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(l=>{l(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},_f=new xx,Sx={setTimeout:(t,l)=>setTimeout(t,l),clearTimeout:t=>clearTimeout(t),setInterval:(t,l)=>setInterval(t,l),clearInterval:t=>clearInterval(t)},kx=class{#e=Sx;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,l){return this.#e.setTimeout(t,l)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,l){return this.#e.setInterval(t,l)}clearInterval(t){this.#e.clearInterval(t)}},Pl=new kx;function wx(t){setTimeout(t,0)}var Ex=typeof window>"u"||"Deno"in globalThis;function Ht(){}function Cx(t,l){return typeof t=="function"?t(l):t}function of(t){return typeof t=="number"&&t>=0&&t!==1/0}function Vy(t,l){return Math.max(t+(l||0)-Date.now(),0)}function Al(t,l){return typeof t=="function"?t(l):t}function Jt(t,l){return typeof t=="function"?t(l):t}function pg(t,l){const{type:r="all",exact:a,fetchStatus:o,predicate:s,queryKey:c,stale:d}=t;if(c){if(a){if(l.queryHash!==Df(c,l.options))return!1}else if(!ua(l.queryKey,c))return!1}if(r!=="all"){const p=l.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof d=="boolean"&&l.isStale()!==d||o&&o!==l.state.fetchStatus||s&&!s(l))}function mg(t,l){const{exact:r,status:a,predicate:o,mutationKey:s}=t;if(s){if(!l.options.mutationKey)return!1;if(r){if(aa(l.options.mutationKey)!==aa(s))return!1}else if(!ua(l.options.mutationKey,s))return!1}return!(a&&l.state.status!==a||o&&!o(l))}function Df(t,l){return(l?.queryKeyHashFn||aa)(t)}function aa(t){return JSON.stringify(t,(l,r)=>cf(r)?Object.keys(r).sort().reduce((a,o)=>(a[o]=r[o],a),{}):r)}function ua(t,l){return t===l?!0:typeof t!=typeof l?!1:t&&l&&typeof t=="object"&&typeof l=="object"?Object.keys(l).every(r=>ua(t[r],l[r])):!1}var Tx=Object.prototype.hasOwnProperty;function Yy(t,l,r=0){if(t===l)return t;if(r>500)return l;const a=gg(t)&&gg(l);if(!a&&!(cf(t)&&cf(l)))return l;const s=(a?t:Object.keys(t)).length,c=a?l:Object.keys(l),d=c.length,p=a?new Array(d):{};let m=0;for(let y=0;y<d;y++){const g=a?y:c[y],v=t[g],x=l[g];if(v===x){p[g]=v,(a?y<s:Tx.call(t,g))&&m++;continue}if(v===null||x===null||typeof v!="object"||typeof x!="object"){p[g]=x;continue}const k=Yy(v,x,r+1);p[g]=k,k===v&&m++}return s===d&&m===s?t:p}function sf(t,l){if(!l||Object.keys(t).length!==Object.keys(l).length)return!1;for(const r in t)if(t[r]!==l[r])return!1;return!0}function gg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function cf(t){if(!yg(t))return!1;const l=t.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!yg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function yg(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ax(t){return new Promise(l=>{Pl.setTimeout(l,t)})}function ff(t,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,l):r.structuralSharing!==!1?Yy(t,l):l}function zx(t,l,r=0){const a=[...t,l];return r&&a.length>r?a.slice(1):a}function Rx(t,l,r=0){const a=[l,...t];return r&&a.length>r?a.slice(0,-1):a}var Nf=Symbol();function Xy(t,l){return!t.queryFn&&l?.initialPromise?()=>l.initialPromise:!t.queryFn||t.queryFn===Nf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Iy(t,l){return typeof t=="function"?t(...l):!!t}function Ox(t,l,r){let a=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=l(),a||(a=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),t}var oa=(()=>{let t=()=>Ex;return{isServer(){return t()},setIsServer(l){t=l}}})();function hf(){let t,l;const r=new Promise((o,s)=>{t=o,l=s});r.status="pending",r.catch(()=>{});function a(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{a({status:"fulfilled",value:o}),t(o)},r.reject=o=>{a({status:"rejected",reason:o}),l(o)},r}var Mx=wx;function _x(){let t=[],l=0,r=d=>{d()},a=d=>{d()},o=Mx;const s=d=>{l?t.push(d):o(()=>{r(d)})},c=()=>{const d=t;t=[],d.length&&o(()=>{a(()=>{d.forEach(p=>{r(p)})})})};return{batch:d=>{let p;l++;try{p=d()}finally{l--,l||c()}return p},batchCalls:d=>(...p)=>{s(()=>{d(...p)})},schedule:s,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{a=d},setScheduler:d=>{o=d}}}var bt=_x(),Dx=class extends ga{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const l=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",l,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(r=>{r(t)}))}isOnline(){return this.#e}},$u=new Dx;function Nx(t){return Math.min(1e3*2**t,3e4)}function Zy(t){return(t??"online")==="online"?$u.isOnline():!0}var df=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ky(t){let l=!1,r=0,a;const o=hf(),s=()=>o.status!=="pending",c=C=>{if(!s()){const T=new df(C);v(T),t.onCancel?.(T)}},d=()=>{l=!0},p=()=>{l=!1},m=()=>_f.isFocused()&&(t.networkMode==="always"||$u.isOnline())&&t.canRun(),y=()=>Zy(t.networkMode)&&t.canRun(),g=C=>{s()||(a?.(),o.resolve(C))},v=C=>{s()||(a?.(),o.reject(C))},x=()=>new Promise(C=>{a=T=>{(s()||m())&&C(T)},t.onPause?.()}).then(()=>{a=void 0,s()||t.onContinue?.()}),k=()=>{if(s())return;let C;const T=r===0?t.initialPromise:void 0;try{C=T??t.fn()}catch(A){C=Promise.reject(A)}Promise.resolve(C).then(g).catch(A=>{if(s())return;const B=t.retry??(oa.isServer()?0:3),_=t.retryDelay??Nx,ee=typeof _=="function"?_(r,A):_,W=B===!0||typeof B=="number"&&r<B||typeof B=="function"&&B(r,A);if(l||!W){v(A);return}r++,t.onFail?.(r,A),Ax(ee).then(()=>m()?void 0:x()).then(()=>{l?v(A):k()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(a?.(),o),cancelRetry:d,continueRetry:p,canStart:y,start:()=>(y()?k():x().then(k),o)}}var Jy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&(this.#e=Pl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(oa.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Pl.clearTimeout(this.#e),this.#e=void 0)}};function jx(t){return{onFetch:(l,r)=>{const a=l.options,o=l.fetchOptions?.meta?.fetchMore?.direction,s=l.state.data?.pages||[],c=l.state.data?.pageParams||[];let d={pages:[],pageParams:[]},p=0;const m=async()=>{let y=!1;const g=k=>{Ox(k,()=>l.signal,()=>y=!0)},v=Xy(l.options,l.fetchOptions),x=async(k,C,T)=>{if(y)return Promise.reject(l.signal.reason);if(C==null&&k.pages.length)return Promise.resolve(k);const B=(()=>{const Q={client:l.client,queryKey:l.queryKey,pageParam:C,direction:T?"backward":"forward",meta:l.options.meta};return g(Q),Q})(),_=await v(B),{maxPages:ee}=l.options,W=T?Rx:zx;return{pages:W(k.pages,_,ee),pageParams:W(k.pageParams,C,ee)}};if(o&&s.length){const k=o==="backward",C=k?Lx:bg,T={pages:s,pageParams:c},A=C(a,T);d=await x(T,A,k)}else{const k=t??s.length;do{const C=p===0?c[0]??a.initialPageParam:bg(a,d);if(p>0&&C==null)break;d=await x(d,C),p++}while(p<k)}return d};l.options.persister?l.fetchFn=()=>l.options.persister?.(m,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r):l.fetchFn=m}}}function bg(t,{pages:l,pageParams:r}){const a=l.length-1;return l.length>0?t.getNextPageParam(l[a],l,r[a],r):void 0}function Lx(t,{pages:l,pageParams:r}){return l.length>0?t.getPreviousPageParam?.(l[0],l,r[0],r):void 0}var Ux=class extends Jy{#e;#t;#n;#l;#r;#i;#u;#a;constructor(t){super(),this.#a=!1,this.#u=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#l=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=xg(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#u,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const l=xg(this.options);l.data!==void 0&&(this.setState(vg(l.data,l.dataUpdatedAt)),this.#t=l)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(t,l){const r=ff(this.state.data,t,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:l?.updatedAt,manual:l?.manual}),r}setState(t){this.#o({type:"setState",state:t})}cancel(t){const l=this.#i?.promise;return this.#i?.cancel(t),l?l.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Jt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Al(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Vy(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(l=>l.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(l=>l.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(l=>l!==t),this.observers.length||(this.#i&&(this.#a||this.#c()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,l){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&l?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,a=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const p=Xy(this.options,l),y=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return a(g),g})();return this.#a=!1,this.options.persister?this.options.persister(p,y,this):p(y)},c=(()=>{const p={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return a(p),p})();(this.#e==="infinite"?jx(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#i=Ky({initialPromise:l?.initialPromise,fn:c.fetchFn,onCancel:p=>{p instanceof df&&p.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(p,m)=>{this.#o({type:"failed",failureCount:p,error:m})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const p=await this.#i.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#l.config.onSuccess?.(p,this),this.#l.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof df){if(p.silent)return this.#i.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#o({type:"error",error:p}),this.#l.config.onError?.(p,this),this.#l.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#o(t){const l=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Py(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...vg(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?a:void 0,a;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=l(this.state),bt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:t})})}};function Py(t,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zy(l.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function vg(t,l){return{data:t,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xg(t){const l=typeof t.initialData=="function"?t.initialData():t.initialData,r=l!==void 0,a=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Bx=class extends ga{constructor(t,l){super(),this.options=l,this.#e=t,this.#a=null,this.#u=hf(),this.bindMethods(),this.setOptions(l)}#e;#t=void 0;#n=void 0;#l=void 0;#r;#i;#u;#a;#c;#o;#p;#f;#h;#s;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Sg(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const l=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Jt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#t.setOptions(this.options),l._defaulted&&!sf(this.options,l)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&kg(this.#t,r,this.options,l)&&this.#d(),this.updateResult(),a&&(this.#t!==r||Jt(this.options.enabled,this.#t)!==Jt(l.enabled,this.#t)||Al(this.options.staleTime,this.#t)!==Al(l.staleTime,this.#t))&&this.#g();const o=this.#y();a&&(this.#t!==r||Jt(this.options.enabled,this.#t)!==Jt(l.enabled,this.#t)||o!==this.#s)&&this.#b(o)}getOptimisticResult(t){const l=this.#e.getQueryCache().build(this.#e,t),r=this.createResult(l,t);return qx(this,r)&&(this.#l=r,this.#i=this.options,this.#r=this.#t.state),r}getCurrentResult(){return this.#l}trackResult(t,l){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),l?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const l=this.#e.defaultQueryOptions(t),r=this.#e.getQueryCache().build(this.#e,l);return r.fetch().then(()=>this.createResult(r,l))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#d(t){this.#k();let l=this.#t.fetch(this.options,t);return t?.throwOnError||(l=l.catch(Ht)),l}#g(){this.#x();const t=Al(this.options.staleTime,this.#t);if(oa.isServer()||this.#l.isStale||!of(t))return;const r=Vy(this.#l.dataUpdatedAt,t)+1;this.#f=Pl.setTimeout(()=>{this.#l.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(t){this.#S(),this.#s=t,!(oa.isServer()||Jt(this.options.enabled,this.#t)===!1||!of(this.#s)||this.#s===0)&&(this.#h=Pl.setInterval(()=>{(this.options.refetchIntervalInBackground||_f.isFocused())&&this.#d()},this.#s))}#v(){this.#g(),this.#b(this.#y())}#x(){this.#f!==void 0&&(Pl.clearTimeout(this.#f),this.#f=void 0)}#S(){this.#h!==void 0&&(Pl.clearInterval(this.#h),this.#h=void 0)}createResult(t,l){const r=this.#t,a=this.options,o=this.#l,s=this.#r,c=this.#i,p=t!==r?t.state:this.#n,{state:m}=t;let y={...m},g=!1,v;if(l._optimisticResults){const Y=this.hasListeners(),ae=!Y&&Sg(t,l),q=Y&&kg(t,r,l,a);(ae||q)&&(y={...y,...Py(m.data,t.options)}),l._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:x,errorUpdatedAt:k,status:C}=y;v=y.data;let T=!1;if(l.placeholderData!==void 0&&v===void 0&&C==="pending"){let Y;o?.isPlaceholderData&&l.placeholderData===c?.placeholderData?(Y=o.data,T=!0):Y=typeof l.placeholderData=="function"?l.placeholderData(this.#p?.state.data,this.#p):l.placeholderData,Y!==void 0&&(C="success",v=ff(o?.data,Y,l),g=!0)}if(l.select&&v!==void 0&&!T)if(o&&v===s?.data&&l.select===this.#c)v=this.#o;else try{this.#c=l.select,v=l.select(v),v=ff(o?.data,v,l),this.#o=v,this.#a=null}catch(Y){this.#a=Y}this.#a&&(x=this.#a,v=this.#o,k=Date.now(),C="error");const A=y.fetchStatus==="fetching",B=C==="pending",_=C==="error",ee=B&&A,W=v!==void 0,J={status:C,fetchStatus:y.fetchStatus,isPending:B,isSuccess:C==="success",isError:_,isInitialLoading:ee,isLoading:ee,data:v,dataUpdatedAt:y.dataUpdatedAt,error:x,errorUpdatedAt:k,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:A,isRefetching:A&&!B,isLoadingError:_&&!W,isPaused:y.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:_&&W,isStale:jf(t,l),refetch:this.refetch,promise:this.#u,isEnabled:Jt(l.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Y=J.data!==void 0,ae=J.status==="error"&&!Y,q=ye=>{ae?ye.reject(J.error):Y&&ye.resolve(J.data)},ie=()=>{const ye=this.#u=J.promise=hf();q(ye)},te=this.#u;switch(te.status){case"pending":t.queryHash===r.queryHash&&q(te);break;case"fulfilled":(ae||J.data!==te.value)&&ie();break;case"rejected":(!ae||J.error!==te.reason)&&ie();break}}return J}updateResult(){const t=this.#l,l=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#p=this.#t),sf(l,t))return;this.#l=l;const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.#m.size)return!0;const s=new Set(o??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#l).some(c=>{const d=c;return this.#l[d]!==t[d]&&s.has(d)})};this.#w({listeners:r()})}#k(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const l=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(l?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(t){bt.batch(()=>{t.listeners&&this.listeners.forEach(l=>{l(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Hx(t,l){return Jt(l.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&Jt(l.retryOnMount,t)===!1)}function Sg(t,l){return Hx(t,l)||t.state.data!==void 0&&pf(t,l,l.refetchOnMount)}function pf(t,l,r){if(Jt(l.enabled,t)!==!1&&Al(l.staleTime,t)!=="static"){const a=typeof r=="function"?r(t):r;return a==="always"||a!==!1&&jf(t,l)}return!1}function kg(t,l,r,a){return(t!==l||Jt(a.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&jf(t,r)}function jf(t,l){return Jt(l.enabled,t)!==!1&&t.isStaleByTime(Al(l.staleTime,t))}function qx(t,l){return!sf(t.getCurrentResult(),l)}var Qx=class extends Jy{#e;#t;#n;#l;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||Fx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(l=>l!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(t){const l=()=>{this.#r({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=Ky({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:l,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",o=!this.#l.canStart();try{if(a)l();else{this.#r({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,r);const c=await this.options.onMutate?.(t,r);c!==this.state.context&&this.#r({type:"pending",context:c,variables:t,isPaused:o})}const s=await this.#l.start();return await this.#n.config.onSuccess?.(s,t,this.state.context,this,r),await this.options.onSuccess?.(s,t,this.state.context,r),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(s,null,t,this.state.context,r),this.#r({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,t,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onError?.(s,t,this.state.context,r)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,s,t,this.state.context,r)}catch(c){Promise.reject(c)}throw this.#r({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#r(t){const l=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=l(this.state),bt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function Fx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gx=class extends ga{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,l,r){const a=new Qx({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(l),state:r});return this.add(a),a}add(t){this.#e.add(t);const l=qu(t);if(typeof l=="string"){const r=this.#t.get(l);r?r.push(t):this.#t.set(l,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const l=qu(t);if(typeof l=="string"){const r=this.#t.get(l);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&this.#t.delete(l)}}this.notify({type:"removed",mutation:t})}canRun(t){const l=qu(t);if(typeof l=="string"){const a=this.#t.get(l)?.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){const l=qu(t);return typeof l=="string"?this.#t.get(l)?.find(a=>a!==t&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){bt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const l={exact:!0,...t};return this.getAll().find(r=>mg(l,r))}findAll(t={}){return this.getAll().filter(l=>mg(t,l))}notify(t){bt.batch(()=>{this.listeners.forEach(l=>{l(t)})})}resumePausedMutations(){const t=this.getAll().filter(l=>l.state.isPaused);return bt.batch(()=>Promise.all(t.map(l=>l.continue().catch(Ht))))}};function qu(t){return t.options.scope?.id}var Vx=class extends ga{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,l,r){const a=l.queryKey,o=l.queryHash??Df(a,l);let s=this.get(o);return s||(s=new Ux({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(l),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const l=this.#e.get(t.queryHash);l&&(t.destroy(),l===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const l={exact:!0,...t};return this.getAll().find(r=>pg(l,r))}findAll(t={}){const l=this.getAll();return Object.keys(t).length>0?l.filter(r=>pg(t,r)):l}notify(t){bt.batch(()=>{this.listeners.forEach(l=>{l(t)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yx=class{#e;#t;#n;#l;#r;#i;#u;#a;constructor(t={}){this.#e=t.queryCache||new Vx,this.#t=t.mutationCache||new Gx,this.#n=t.defaultOptions||{},this.#l=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#u=_f.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=$u.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#u?.(),this.#u=void 0,this.#a?.(),this.#a=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const l=this.defaultQueryOptions({queryKey:t});return this.#e.get(l.queryHash)?.state.data}ensureQueryData(t){const l=this.defaultQueryOptions(t),r=this.#e.build(this,l),a=r.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Al(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(a))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:l,state:r})=>{const a=r.data;return[l,a]})}setQueryData(t,l,r){const a=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(a.queryHash)?.state.data,c=Cx(l,s);if(c!==void 0)return this.#e.build(this,a).setData(c,{...r,manual:!0})}setQueriesData(t,l,r){return bt.batch(()=>this.#e.findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,l,r)]))}getQueryState(t){const l=this.defaultQueryOptions({queryKey:t});return this.#e.get(l.queryHash)?.state}removeQueries(t){const l=this.#e;bt.batch(()=>{l.findAll(t).forEach(r=>{l.remove(r)})})}resetQueries(t,l){const r=this.#e;return bt.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},l)))}cancelQueries(t,l={}){const r={revert:!0,...l},a=bt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(r)));return Promise.all(a).then(Ht).catch(Ht)}invalidateQueries(t,l={}){return bt.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},l)))}refetchQueries(t,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},a=bt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(Ht)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(a).then(Ht)}fetchQuery(t){const l=this.defaultQueryOptions(t);l.retry===void 0&&(l.retry=!1);const r=this.#e.build(this,l);return r.isStaleByTime(Al(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ht).catch(Ht)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ht).catch(Ht)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return $u.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,l){this.#l.set(aa(t),{queryKey:t,defaultOptions:l})}getQueryDefaults(t){const l=[...this.#l.values()],r={};return l.forEach(a=>{ua(t,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(t,l){this.#r.set(aa(t),{mutationKey:t,defaultOptions:l})}getMutationDefaults(t){const l=[...this.#r.values()],r={};return l.forEach(a=>{ua(t,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const l={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return l.queryHash||(l.queryHash=Df(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Nf&&(l.enabled=!1),l}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Dc={exports:{}},Se={};var wg;function Xx(){if(wg)return Se;wg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function A(O,V,E){this.props=O,this.context=V,this.refs=T,this.updater=E||k}A.prototype.isReactComponent={},A.prototype.setState=function(O,V){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,V,"setState")},A.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function B(){}B.prototype=A.prototype;function _(O,V,E){this.props=O,this.context=V,this.refs=T,this.updater=E||k}var ee=_.prototype=new B;ee.constructor=_,C(ee,A.prototype),ee.isPureReactComponent=!0;var W=Array.isArray;function Q(){}var J={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function ae(O,V,E){var le=E.ref;return{$$typeof:t,type:O,key:V,ref:le!==void 0?le:null,props:E}}function q(O,V){return ae(O.type,V,O.props)}function ie(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function te(O){var V={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(E){return V[E]})}var ye=/\/+/g;function ue(O,V){return typeof O=="object"&&O!==null&&O.key!=null?te(""+O.key):V.toString(36)}function P(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Q,Q):(O.status="pending",O.then(function(V){O.status==="pending"&&(O.status="fulfilled",O.value=V)},function(V){O.status==="pending"&&(O.status="rejected",O.reason=V)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function j(O,V,E,le,se){var re=typeof O;(re==="undefined"||re==="boolean")&&(O=null);var Ee=!1;if(O===null)Ee=!0;else switch(re){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(O.$$typeof){case t:case l:Ee=!0;break;case y:return Ee=O._init,j(Ee(O._payload),V,E,le,se)}}if(Ee)return se=se(O),Ee=le===""?"."+ue(O,0):le,W(se)?(E="",Ee!=null&&(E=Ee.replace(ye,"$&/")+"/"),j(se,V,E,"",function(kt){return kt})):se!=null&&(ie(se)&&(se=q(se,E+(se.key==null||O&&O.key===se.key?"":(""+se.key).replace(ye,"$&/")+"/")+Ee)),V.push(se)),1;Ee=0;var Ve=le===""?".":le+":";if(W(O))for(var ve=0;ve<O.length;ve++)le=O[ve],re=Ve+ue(le,ve),Ee+=j(le,V,E,re,se);else if(ve=x(O),typeof ve=="function")for(O=ve.call(O),ve=0;!(le=O.next()).done;)le=le.value,re=Ve+ue(le,ve++),Ee+=j(le,V,E,re,se);else if(re==="object"){if(typeof O.then=="function")return j(P(O),V,E,le,se);throw V=String(O),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function K(O,V,E){if(O==null)return O;var le=[],se=0;return j(O,le,"","",function(re){return V.call(E,re,se++)}),le}function he(O){if(O._status===-1){var V=O._result;V=V(),V.then(function(E){(O._status===0||O._status===-1)&&(O._status=1,O._result=E)},function(E){(O._status===0||O._status===-1)&&(O._status=2,O._result=E)}),O._status===-1&&(O._status=0,O._result=V)}if(O._status===1)return O._result.default;throw O._result}var ke=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},w={map:K,forEach:function(O,V,E){K(O,function(){V.apply(this,arguments)},E)},count:function(O){var V=0;return K(O,function(){V++}),V},toArray:function(O){return K(O,function(V){return V})||[]},only:function(O){if(!ie(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Se.Activity=g,Se.Children=w,Se.Component=A,Se.Fragment=r,Se.Profiler=o,Se.PureComponent=_,Se.StrictMode=a,Se.Suspense=p,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,Se.__COMPILER_RUNTIME={__proto__:null,c:function(O){return J.H.useMemoCache(O)}},Se.cache=function(O){return function(){return O.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(O,V,E){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var le=C({},O.props),se=O.key;if(V!=null)for(re in V.key!==void 0&&(se=""+V.key),V)!Y.call(V,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&V.ref===void 0||(le[re]=V[re]);var re=arguments.length-2;if(re===1)le.children=E;else if(1<re){for(var Ee=Array(re),Ve=0;Ve<re;Ve++)Ee[Ve]=arguments[Ve+2];le.children=Ee}return ae(O.type,se,le)},Se.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:s,_context:O},O},Se.createElement=function(O,V,E){var le,se={},re=null;if(V!=null)for(le in V.key!==void 0&&(re=""+V.key),V)Y.call(V,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(se[le]=V[le]);var Ee=arguments.length-2;if(Ee===1)se.children=E;else if(1<Ee){for(var Ve=Array(Ee),ve=0;ve<Ee;ve++)Ve[ve]=arguments[ve+2];se.children=Ve}if(O&&O.defaultProps)for(le in Ee=O.defaultProps,Ee)se[le]===void 0&&(se[le]=Ee[le]);return ae(O,re,se)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(O){return{$$typeof:d,render:O}},Se.isValidElement=ie,Se.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:he}},Se.memo=function(O,V){return{$$typeof:m,type:O,compare:V===void 0?null:V}},Se.startTransition=function(O){var V=J.T,E={};J.T=E;try{var le=O(),se=J.S;se!==null&&se(E,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(Q,ke)}catch(re){ke(re)}finally{V!==null&&E.types!==null&&(V.types=E.types),J.T=V}},Se.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},Se.use=function(O){return J.H.use(O)},Se.useActionState=function(O,V,E){return J.H.useActionState(O,V,E)},Se.useCallback=function(O,V){return J.H.useCallback(O,V)},Se.useContext=function(O){return J.H.useContext(O)},Se.useDebugValue=function(){},Se.useDeferredValue=function(O,V){return J.H.useDeferredValue(O,V)},Se.useEffect=function(O,V){return J.H.useEffect(O,V)},Se.useEffectEvent=function(O){return J.H.useEffectEvent(O)},Se.useId=function(){return J.H.useId()},Se.useImperativeHandle=function(O,V,E){return J.H.useImperativeHandle(O,V,E)},Se.useInsertionEffect=function(O,V){return J.H.useInsertionEffect(O,V)},Se.useLayoutEffect=function(O,V){return J.H.useLayoutEffect(O,V)},Se.useMemo=function(O,V){return J.H.useMemo(O,V)},Se.useOptimistic=function(O,V){return J.H.useOptimistic(O,V)},Se.useReducer=function(O,V,E){return J.H.useReducer(O,V,E)},Se.useRef=function(O){return J.H.useRef(O)},Se.useState=function(O){return J.H.useState(O)},Se.useSyncExternalStore=function(O,V,E){return J.H.useSyncExternalStore(O,V,E)},Se.useTransition=function(){return J.H.useTransition()},Se.version="19.2.7",Se}var Eg;function Lf(){return Eg||(Eg=1,Dc.exports=Xx()),Dc.exports}var N=Lf();const Qu=Mf(N);var $y=N.createContext(void 0),Wy=t=>{const l=N.useContext($y);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},Ix=({client:t,children:l})=>(N.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),R.jsx($y.Provider,{value:t,children:l})),eb=N.createContext(!1),Zx=()=>N.useContext(eb);eb.Provider;function Kx(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Jx=N.createContext(Kx()),Px=()=>N.useContext(Jx),$x=(t,l,r)=>{const a=r?.state.error&&typeof t.throwOnError=="function"?Iy(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(l.isReset()||(t.retryOnMount=!1))},Wx=t=>{N.useEffect(()=>{t.clearReset()},[t])},eS=({result:t,errorResetBoundary:l,throwOnError:r,query:a,suspense:o})=>t.isError&&!l.isReset()&&!t.isFetching&&a&&(o&&t.data===void 0||Iy(r,[t.error,a])),tS=t=>{if(t.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...o)=>r(a(...o)):r(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},nS=(t,l)=>t.isLoading&&t.isFetching&&!l,lS=(t,l)=>t?.suspense&&l.isPending,Cg=(t,l,r)=>l.fetchOptimistic(t).catch(()=>{r.clearReset()});function iS(t,l,r){const a=Zx(),o=Px(),s=Wy(),c=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const d=s.getQueryCache().get(c.queryHash),p=t.subscribed!==!1;c._optimisticResults=a?"isRestoring":p?"optimistic":void 0,tS(c),$x(c,o,d),Wx(o);const m=!s.getQueryCache().get(c.queryHash),[y]=N.useState(()=>new l(s,c)),g=y.getOptimisticResult(c),v=!a&&p;if(N.useSyncExternalStore(N.useCallback(x=>{const k=v?y.subscribe(bt.batchCalls(x)):Ht;return y.updateResult(),k},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),N.useEffect(()=>{y.setOptions(c)},[c,y]),lS(c,g))throw Cg(c,y,o);if(eS({result:g,errorResetBoundary:o,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw g.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,g),c.experimental_prefetchInRender&&!oa.isServer()&&nS(g,a)&&(m?Cg(c,y,o):d?.promise)?.catch(Ht).finally(()=>{y.updateResult()}),c.notifyOnChangeProps?g:y.trackResult(g)}function Uf(t,l){return iS(t,Bx)}var Nc={exports:{}},Ir={},jc={exports:{}},Lc={};var Tg;function rS(){return Tg||(Tg=1,(function(t){function l(j,K){var he=j.length;j.push(K);e:for(;0<he;){var ke=he-1>>>1,w=j[ke];if(0<o(w,K))j[ke]=K,j[he]=w,he=ke;else break e}}function r(j){return j.length===0?null:j[0]}function a(j){if(j.length===0)return null;var K=j[0],he=j.pop();if(he!==K){j[0]=he;e:for(var ke=0,w=j.length,O=w>>>1;ke<O;){var V=2*(ke+1)-1,E=j[V],le=V+1,se=j[le];if(0>o(E,he))le<w&&0>o(se,E)?(j[ke]=se,j[le]=he,ke=le):(j[ke]=E,j[V]=he,ke=V);else if(le<w&&0>o(se,he))j[ke]=se,j[le]=he,ke=le;else break e}}return K}function o(j,K){var he=j.sortIndex-K.sortIndex;return he!==0?he:j.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var p=[],m=[],y=1,g=null,v=3,x=!1,k=!1,C=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function ee(j){for(var K=r(m);K!==null;){if(K.callback===null)a(m);else if(K.startTime<=j)a(m),K.sortIndex=K.expirationTime,l(p,K);else break;K=r(m)}}function W(j){if(C=!1,ee(j),!k)if(r(p)!==null)k=!0,Q||(Q=!0,te());else{var K=r(m);K!==null&&P(W,K.startTime-j)}}var Q=!1,J=-1,Y=5,ae=-1;function q(){return T?!0:!(t.unstable_now()-ae<Y)}function ie(){if(T=!1,Q){var j=t.unstable_now();ae=j;var K=!0;try{e:{k=!1,C&&(C=!1,B(J),J=-1),x=!0;var he=v;try{t:{for(ee(j),g=r(p);g!==null&&!(g.expirationTime>j&&q());){var ke=g.callback;if(typeof ke=="function"){g.callback=null,v=g.priorityLevel;var w=ke(g.expirationTime<=j);if(j=t.unstable_now(),typeof w=="function"){g.callback=w,ee(j),K=!0;break t}g===r(p)&&a(p),ee(j)}else a(p);g=r(p)}if(g!==null)K=!0;else{var O=r(m);O!==null&&P(W,O.startTime-j),K=!1}}break e}finally{g=null,v=he,x=!1}K=void 0}}finally{K?te():Q=!1}}}var te;if(typeof _=="function")te=function(){_(ie)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,ue=ye.port2;ye.port1.onmessage=ie,te=function(){ue.postMessage(null)}}else te=function(){A(ie,0)};function P(j,K){J=A(function(){j(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(j){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var he=v;v=K;try{return j()}finally{v=he}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(j,K){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var he=v;v=j;try{return K()}finally{v=he}},t.unstable_scheduleCallback=function(j,K,he){var ke=t.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?ke+he:ke):he=ke,j){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=he+w,j={id:y++,callback:K,priorityLevel:j,startTime:he,expirationTime:w,sortIndex:-1},he>ke?(j.sortIndex=he,l(m,j),r(p)===null&&j===r(m)&&(C?(B(J),J=-1):C=!0,P(W,he-ke))):(j.sortIndex=w,l(p,j),k||x||(k=!0,Q||(Q=!0,te()))),j},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(j){var K=v;return function(){var he=v;v=K;try{return j.apply(this,arguments)}finally{v=he}}}})(Lc)),Lc}var Ag;function aS(){return Ag||(Ag=1,jc.exports=rS()),jc.exports}var Uc={exports:{}},vt={};var zg;function uS(){if(zg)return vt;zg=1;var t=Lf();function l(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(p,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,vt.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return s(p,m,null,y)},vt.flushSync=function(p){var m=c.T,y=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=m,a.p=y,a.d.f()}},vt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,a.d.C(p,m))},vt.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},vt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?a.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):y==="script"&&a.d.X(p,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},vt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=d(m.as,m.crossOrigin);a.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&a.d.M(p)},vt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin);a.d.L(p,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},vt.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=d(m.as,m.crossOrigin);a.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else a.d.m(p)},vt.requestFormReset=function(p){a.d.r(p)},vt.unstable_batchedUpdates=function(p,m){return p(m)},vt.useFormState=function(p,m,y){return c.H.useFormState(p,m,y)},vt.useFormStatus=function(){return c.H.useHostTransitionStatus()},vt.version="19.2.7",vt}var Rg;function oS(){if(Rg)return Uc.exports;Rg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Uc.exports=uS(),Uc.exports}var Og;function sS(){if(Og)return Ir;Og=1;var t=aS(),l=Lf(),r=oS();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(s(e)!==e)throw Error(a(188))}function m(e){var n=e.alternate;if(!n){if(n=s(e),n===null)throw Error(a(188));return n!==e?null:e}for(var i=e,u=n;;){var f=i.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){i=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===i)return p(f),e;if(h===u)return p(f),n;h=h.sibling}throw Error(a(188))}if(i.return!==u.return)i=f,u=h;else{for(var b=!1,S=f.child;S;){if(S===i){b=!0,i=f,u=h;break}if(S===u){b=!0,u=f,i=h;break}S=S.sibling}if(!b){for(S=h.child;S;){if(S===i){b=!0,i=h,u=f;break}if(S===u){b=!0,u=h,i=f;break}S=S.sibling}if(!b)throw Error(a(189))}}if(i.alternate!==u)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),_=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case A:return"Profiler";case T:return"StrictMode";case W:return"Suspense";case Q:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case _:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case ee:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return n=e.displayName||null,n!==null?n:ue(e.type)||"Memo";case Y:n=e._payload,e=e._init;try{return ue(e(n))}catch{}}return null}var P=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},ke=[],w=-1;function O(e){return{current:e}}function V(e){0>w||(e.current=ke[w],ke[w]=null,w--)}function E(e,n){w++,ke[w]=e.current,e.current=n}var le=O(null),se=O(null),re=O(null),Ee=O(null);function Ve(e,n){switch(E(re,n),E(se,e),E(le,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Nm(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Nm(n),e=jm(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(le),E(le,e)}function ve(){V(le),V(se),V(re)}function kt(e){e.memoizedState!==null&&E(Ee,e);var n=le.current,i=jm(n,e.type);n!==i&&(E(se,e),E(le,i))}function zt(e){se.current===e&&(V(le),V(se)),Ee.current===e&&(V(Ee),Fr._currentValue=he)}var kn,Wn;function Rt(e){if(kn===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);kn=n&&n[1]||"",Wn=-1<i.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
3
  `+kn+e+Wn}var ii=!1;function ri(e,n){if(!e||ii)return"";ii=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(n){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(F){var H=F}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(F){H=F}e.call(Z.prototype)}}else{try{throw Error()}catch(F){H=F}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(F){if(F&&H&&typeof F.stack=="string")return[F.stack,H.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),b=h[0],S=h[1];if(b&&S){var z=b.split(`
4
4
  `),U=S.split(`
5
5
  `);for(f=u=0;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;for(;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;if(u===z.length||f===U.length)for(u=z.length-1,f=U.length-1;1<=u&&0<=f&&z[u]!==U[f];)f--;for(;1<=u&&0<=f;u--,f--)if(z[u]!==U[f]){if(u!==1||f!==1)do if(u--,f--,0>f||z[u]!==U[f]){var G=`
6
6
  `+z[u].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=u&&0<=f);break}}}finally{ii=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Rt(i):""}function ka(e,n){switch(e.tag){case 26:case 27:case 5:return Rt(e.type);case 16:return Rt("Lazy");case 13:return e.child!==n&&n!==null?Rt("Suspense Fallback"):Rt("Suspense");case 19:return Rt("SuspenseList");case 0:case 15:return ri(e.type,!1);case 11:return ri(e.type.render,!1);case 1:return ri(e.type,!0);case 31:return Rt("Activity");default:return""}}function wa(e){try{var n="",i=null;do n+=ka(e,i),i=e,e=e.return;while(e);return n}catch(u){return`
7
7
  Error generating stack: `+u.message+`
8
- `+u.stack}}var ai=Object.prototype.hasOwnProperty,ui=t.unstable_scheduleCallback,er=t.unstable_cancelCallback,yo=t.unstable_shouldYield,bo=t.unstable_requestPaint,wt=t.unstable_now,vo=t.unstable_getCurrentPriorityLevel,X=t.unstable_ImmediatePriority,ne=t.unstable_UserBlockingPriority,be=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Qt=t.log,On=t.unstable_setDisableYieldValue,Et=null,ot=null;function Ot(e){if(typeof Qt=="function"&&On(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Et,e)}catch{}}var Ye=Math.clz32?Math.clz32:e1,el=Math.log,dn=Math.LN2;function e1(e){return e>>>=0,e===0?32:31-(el(e)/dn|0)|0}var Ea=256,Ca=262144,Ta=4194304;function Ol(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Aa(e,n,i){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=u&134217727;return S!==0?(u=S&~h,u!==0?f=Ol(u):(b&=S,b!==0?f=Ol(b):i||(i=S&~e,i!==0&&(f=Ol(i))))):(S=u&~h,S!==0?f=Ol(S):b!==0?f=Ol(b):i||(i=u&~e,i!==0&&(f=Ol(i)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,i=n&-n,h>=i||h===32&&(i&4194048)!==0)?n:f}function tr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function t1(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ph(){var e=Ta;return Ta<<=1,(Ta&62914560)===0&&(Ta=4194304),e}function xo(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function nr(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function n1(e,n,i,u,f,h){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var S=e.entanglements,z=e.expirationTimes,U=e.hiddenUpdates;for(i=b&~i;0<i;){var G=31-Ye(i),Z=1<<G;S[G]=0,z[G]=-1;var H=U[G];if(H!==null)for(U[G]=null,G=0;G<H.length;G++){var F=H[G];F!==null&&(F.lane&=-536870913)}i&=~Z}u!==0&&gh(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function gh(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Ye(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|i&261930}function yh(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var u=31-Ye(i),f=1<<u;f&n|e[u]&n&&(e[u]|=n),i&=~f}}function bh(e,n){var i=n&-n;return i=(i&42)!==0?1:So(i),(i&(e.suspendedLanes|n))!==0?0:i}function So(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ko(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vh(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:ig(e.type))}function xh(e,n){var i=K.p;try{return K.p=e,n()}finally{K.p=i}}var tl=Math.random().toString(36).slice(2),dt="__reactFiber$"+tl,Mt="__reactProps$"+tl,oi="__reactContainer$"+tl,wo="__reactEvents$"+tl,l1="__reactListeners$"+tl,i1="__reactHandles$"+tl,Sh="__reactResources$"+tl,lr="__reactMarker$"+tl;function Eo(e){delete e[dt],delete e[Mt],delete e[wo],delete e[l1],delete e[i1]}function si(e){var n=e[dt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[oi]||i[dt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Fp(e);e!==null;){if(i=e[dt])return i;e=Fp(e)}return n}e=i,i=e.parentNode}return null}function ci(e){if(e=e[dt]||e[oi]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function ir(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function fi(e){var n=e[Sh];return n||(n=e[Sh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ft(e){e[lr]=!0}var kh=new Set,wh={};function Ml(e,n){hi(e,n),hi(e+"Capture",n)}function hi(e,n){for(wh[e]=n,e=0;e<n.length;e++)kh.add(n[e])}var r1=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]*$"),Eh={},Ch={};function a1(e){return ai.call(Ch,e)?!0:ai.call(Eh,e)?!1:r1.test(e)?Ch[e]=!0:(Eh[e]=!0,!1)}function za(e,n,i){if(a1(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Ra(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function Mn(e,n,i,u){if(u===null)e.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+u)}}function Wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Th(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function u1(e,n,i){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){i=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Co(e){if(!e._valueTracker){var n=Th(e)?"checked":"value";e._valueTracker=u1(e,n,""+e[n])}}function Ah(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),u="";return e&&(u=Th(e)?e.checked?"true":"false":e.value),e=u,e!==i?(n.setValue(e),!0):!1}function Oa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var o1=/[\n"\\]/g;function en(e){return e.replace(o1,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function To(e,n,i,u,f,h,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Wt(n)):e.value!==""+Wt(n)&&(e.value=""+Wt(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Ao(e,b,Wt(n)):i!=null?Ao(e,b,Wt(i)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Wt(S):e.removeAttribute("name")}function zh(e,n,i,u,f,h,b,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Co(e);return}i=i!=null?""+Wt(i):"",n=n!=null?""+Wt(n):i,S||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=S?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Co(e)}function Ao(e,n,i){n==="number"&&Oa(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function di(e,n,i,u){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&u&&(e[i].defaultSelected=!0)}else{for(i=""+Wt(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Rh(e,n,i){if(n!=null&&(n=""+Wt(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+Wt(i):""}function Oh(e,n,i,u){if(n==null){if(u!=null){if(i!=null)throw Error(a(92));if(P(u)){if(1<u.length)throw Error(a(93));u=u[0]}i=u}i==null&&(i=""),n=i}i=Wt(n),e.defaultValue=i,u=e.textContent,u===i&&u!==""&&u!==null&&(e.value=u),Co(e)}function mi(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var s1=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 Mh(e,n,i){var u=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,i):typeof i!="number"||i===0||s1.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function _h(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var u in i)!i.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&i[f]!==u&&Mh(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&Mh(e,h,n[h])}function zo(e){if(e.indexOf("-")===-1)return!1;switch(e){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 c1=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"]]),f1=/^[\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 Ma(e){return f1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}var Ro=null;function Oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pi=null,gi=null;function Dh(e){var n=ci(e);if(n&&(e=n.stateNode)){var i=e[Mt]||null;e:switch(e=n.stateNode,n.type){case"input":if(To(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+en(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var u=i[n];if(u!==e&&u.form===e.form){var f=u[Mt]||null;if(!f)throw Error(a(90));To(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)u=i[n],u.form===e.form&&Ah(u)}break e;case"textarea":Rh(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&di(e,!!i.multiple,n,!1)}}}var Mo=!1;function Nh(e,n,i){if(Mo)return e(n,i);Mo=!0;try{var u=e(n);return u}finally{if(Mo=!1,(pi!==null||gi!==null)&&(bu(),pi&&(n=pi,e=gi,gi=pi=null,Dh(n),e)))for(n=0;n<e.length;n++)Dh(e[n])}}function rr(e,n){var i=e.stateNode;if(i===null)return null;var u=i[Mt]||null;if(u===null)return null;i=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=!1;if(Dn)try{var ar={};Object.defineProperty(ar,"passive",{get:function(){_o=!0}}),window.addEventListener("test",ar,ar),window.removeEventListener("test",ar,ar)}catch{_o=!1}var nl=null,Do=null,_a=null;function jh(){if(_a)return _a;var e,n=Do,i=n.length,u,f="value"in nl?nl.value:nl.textContent,h=f.length;for(e=0;e<i&&n[e]===f[e];e++);var b=i-e;for(u=1;u<=b&&n[i-u]===f[h-u];u++);return _a=f.slice(e,1<u?1-u:void 0)}function Da(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Na(){return!0}function Lh(){return!1}function _t(e){function n(i,u,f,h,b){this._reactName=i,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(i=e[S],this[S]=i?i(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Na:Lh,this.isPropagationStopped=Lh,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Na)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Na)},persist:function(){},isPersistent:Na}),n}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ja=_t(_l),ur=g({},_l,{view:0,detail:0}),h1=_t(ur),No,jo,or,La=g({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==or&&(or&&e.type==="mousemove"?(No=e.screenX-or.screenX,jo=e.screenY-or.screenY):jo=No=0,or=e),No)},movementY:function(e){return"movementY"in e?e.movementY:jo}}),Uh=_t(La),d1=g({},La,{dataTransfer:0}),m1=_t(d1),p1=g({},ur,{relatedTarget:0}),Lo=_t(p1),g1=g({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),y1=_t(g1),b1=g({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v1=_t(b1),x1=g({},_l,{data:0}),Bh=_t(x1),S1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k1={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"},w1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E1(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=w1[e])?!!n[e]:!1}function Uo(){return E1}var C1=g({},ur,{key:function(e){if(e.key){var n=S1[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Da(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?k1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uo,charCode:function(e){return e.type==="keypress"?Da(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Da(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T1=_t(C1),A1=g({},La,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hh=_t(A1),z1=g({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uo}),R1=_t(z1),O1=g({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),M1=_t(O1),_1=g({},La,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),D1=_t(_1),N1=g({},_l,{newState:0,oldState:0}),j1=_t(N1),L1=[9,13,27,32],Bo=Dn&&"CompositionEvent"in window,sr=null;Dn&&"documentMode"in document&&(sr=document.documentMode);var U1=Dn&&"TextEvent"in window&&!sr,qh=Dn&&(!Bo||sr&&8<sr&&11>=sr),Qh=" ",Fh=!1;function Gh(e,n){switch(e){case"keyup":return L1.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yi=!1;function B1(e,n){switch(e){case"compositionend":return Vh(n);case"keypress":return n.which!==32?null:(Fh=!0,Qh);case"textInput":return e=n.data,e===Qh&&Fh?null:e;default:return null}}function H1(e,n){if(yi)return e==="compositionend"||!Bo&&Gh(e,n)?(e=jh(),_a=Do=nl=null,yi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return qh&&n.locale!=="ko"?null:n.data;default:return null}}var q1={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 Yh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!q1[e.type]:n==="textarea"}function Xh(e,n,i,u){pi?gi?gi.push(u):gi=[u]:pi=u,n=Cu(n,"onChange"),0<n.length&&(i=new ja("onChange","change",null,i,u),e.push({event:i,listeners:n}))}var cr=null,fr=null;function Q1(e){zp(e,0)}function Ua(e){var n=ir(e);if(Ah(n))return e}function Ih(e,n){if(e==="change")return n}var Zh=!1;if(Dn){var Ho;if(Dn){var qo="oninput"in document;if(!qo){var Kh=document.createElement("div");Kh.setAttribute("oninput","return;"),qo=typeof Kh.oninput=="function"}Ho=qo}else Ho=!1;Zh=Ho&&(!document.documentMode||9<document.documentMode)}function Jh(){cr&&(cr.detachEvent("onpropertychange",Ph),fr=cr=null)}function Ph(e){if(e.propertyName==="value"&&Ua(fr)){var n=[];Xh(n,fr,e,Oo(e)),Nh(Q1,n)}}function F1(e,n,i){e==="focusin"?(Jh(),cr=n,fr=i,cr.attachEvent("onpropertychange",Ph)):e==="focusout"&&Jh()}function G1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ua(fr)}function V1(e,n){if(e==="click")return Ua(n)}function Y1(e,n){if(e==="input"||e==="change")return Ua(n)}function X1(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ft=typeof Object.is=="function"?Object.is:X1;function hr(e,n){if(Ft(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),u=Object.keys(n);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var f=i[u];if(!ai.call(n,f)||!Ft(e[f],n[f]))return!1}return!0}function $h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wh(e,n){var i=$h(e);e=0;for(var u;i;){if(i.nodeType===3){if(u=e+i.textContent.length,e<=n&&u>=n)return{node:i,offset:n-e};e=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=$h(i)}}function ed(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ed(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function td(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Oa(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Oa(e.document)}return n}function Qo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var I1=Dn&&"documentMode"in document&&11>=document.documentMode,bi=null,Fo=null,dr=null,Go=!1;function nd(e,n,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Go||bi==null||bi!==Oa(u)||(u=bi,"selectionStart"in u&&Qo(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),dr&&hr(dr,u)||(dr=u,u=Cu(Fo,"onSelect"),0<u.length&&(n=new ja("onSelect","select",null,n,i),e.push({event:n,listeners:u}),n.target=bi)))}function Dl(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var vi={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionrun:Dl("Transition","TransitionRun"),transitionstart:Dl("Transition","TransitionStart"),transitioncancel:Dl("Transition","TransitionCancel"),transitionend:Dl("Transition","TransitionEnd")},Vo={},ld={};Dn&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function Nl(e){if(Vo[e])return Vo[e];if(!vi[e])return e;var n=vi[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in ld)return Vo[e]=n[i];return e}var id=Nl("animationend"),rd=Nl("animationiteration"),ad=Nl("animationstart"),Z1=Nl("transitionrun"),K1=Nl("transitionstart"),J1=Nl("transitioncancel"),ud=Nl("transitionend"),od=new Map,Yo="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(" ");Yo.push("scrollEnd");function mn(e,n){od.set(e,n),Ml(n,[e])}var Ba=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},tn=[],xi=0,Xo=0;function Ha(){for(var e=xi,n=Xo=xi=0;n<e;){var i=tn[n];tn[n++]=null;var u=tn[n];tn[n++]=null;var f=tn[n];tn[n++]=null;var h=tn[n];if(tn[n++]=null,u!==null&&f!==null){var b=u.pending;b===null?f.next=f:(f.next=b.next,b.next=f),u.pending=f}h!==0&&sd(i,f,h)}}function qa(e,n,i,u){tn[xi++]=e,tn[xi++]=n,tn[xi++]=i,tn[xi++]=u,Xo|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Io(e,n,i,u){return qa(e,n,i,u),Qa(e)}function jl(e,n){return qa(e,null,null,n),Qa(e)}function sd(e,n,i){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i);for(var f=!1,h=e.return;h!==null;)h.childLanes|=i,u=h.alternate,u!==null&&(u.childLanes|=i),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Ye(i),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=i|536870912),h):null}function Qa(e){if(50<jr)throw jr=0,nc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Si={};function P1(e,n,i,u){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,n,i,u){return new P1(e,n,i,u)}function Zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,n){var i=e.alternate;return i===null?(i=Gt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function cd(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Fa(e,n,i,u,f,h){var b=0;if(u=e,typeof e=="function")Zo(e)&&(b=1);else if(typeof e=="string")b=nx(e,i,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Gt(31,i,n,f),e.elementType=ae,e.lanes=h,e;case C:return Ll(i.children,f,h,n);case T:b=8,f|=24;break;case A:return e=Gt(12,i,n,f|2),e.elementType=A,e.lanes=h,e;case W:return e=Gt(13,i,n,f),e.elementType=W,e.lanes=h,e;case Q:return e=Gt(19,i,n,f),e.elementType=Q,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:b=10;break e;case B:b=9;break e;case ee:b=11;break e;case J:b=14;break e;case Y:b=16,u=null;break e}b=29,i=Error(a(130,e===null?"null":typeof e,"")),u=null}return n=Gt(b,i,n,f),n.elementType=e,n.type=u,n.lanes=h,n}function Ll(e,n,i,u){return e=Gt(7,e,u,n),e.lanes=i,e}function Ko(e,n,i){return e=Gt(6,e,null,n),e.lanes=i,e}function fd(e){var n=Gt(18,null,null,0);return n.stateNode=e,n}function Jo(e,n,i){return n=Gt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var hd=new WeakMap;function nn(e,n){if(typeof e=="object"&&e!==null){var i=hd.get(e);return i!==void 0?i:(n={value:e,source:n,stack:wa(n)},hd.set(e,n),n)}return{value:e,source:n,stack:wa(n)}}var ki=[],wi=0,Ga=null,mr=0,ln=[],rn=0,ll=null,wn=1,En="";function jn(e,n){ki[wi++]=mr,ki[wi++]=Ga,Ga=e,mr=n}function dd(e,n,i){ln[rn++]=wn,ln[rn++]=En,ln[rn++]=ll,ll=e;var u=wn;e=En;var f=32-Ye(u)-1;u&=~(1<<f),i+=1;var h=32-Ye(n)+f;if(30<h){var b=f-f%5;h=(u&(1<<b)-1).toString(32),u>>=b,f-=b,wn=1<<32-Ye(n)+f|i<<f|u,En=h+e}else wn=1<<h|i<<f|u,En=e}function Po(e){e.return!==null&&(jn(e,1),dd(e,1,0))}function $o(e){for(;e===Ga;)Ga=ki[--wi],ki[wi]=null,mr=ki[--wi],ki[wi]=null;for(;e===ll;)ll=ln[--rn],ln[rn]=null,En=ln[--rn],ln[rn]=null,wn=ln[--rn],ln[rn]=null}function md(e,n){ln[rn++]=wn,ln[rn++]=En,ln[rn++]=ll,wn=n.id,En=n.overflow,ll=e}var mt=null,Ke=null,De=!1,il=null,an=!1,Wo=Error(a(519));function rl(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pr(nn(n,e)),Wo}function pd(e){var n=e.stateNode,i=e.type,u=e.memoizedProps;switch(n[dt]=e,n[Mt]=u,i){case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":case"embed":Re("load",n);break;case"video":case"audio":for(i=0;i<Ur.length;i++)Re(Ur[i],n);break;case"source":Re("error",n);break;case"img":case"image":case"link":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"input":Re("invalid",n),zh(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Re("invalid",n);break;case"textarea":Re("invalid",n),Oh(n,u.value,u.defaultValue,u.children)}i=u.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||u.suppressHydrationWarning===!0||_p(n.textContent,i)?(u.popover!=null&&(Re("beforetoggle",n),Re("toggle",n)),u.onScroll!=null&&Re("scroll",n),u.onScrollEnd!=null&&Re("scrollend",n),u.onClick!=null&&(n.onclick=_n),n=!0):n=!1,n||rl(e,!0)}function gd(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:an=!1;return;case 27:case 3:an=!0;return;default:mt=mt.return}}function Ei(e){if(e!==mt)return!1;if(!De)return gd(e),De=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||yc(e.type,e.memoizedProps)),i=!i),i&&Ke&&rl(e),gd(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Ke=Qp(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Ke=Qp(e)}else n===27?(n=Ke,vl(e.type)?(e=kc,kc=null,Ke=e):Ke=n):Ke=mt?on(e.stateNode.nextSibling):null;return!0}function Ul(){Ke=mt=null,De=!1}function es(){var e=il;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),il=null),e}function pr(e){il===null?il=[e]:il.push(e)}var ts=O(null),Bl=null,Ln=null;function al(e,n,i){E(ts,n._currentValue),n._currentValue=i}function Un(e){e._currentValue=ts.current,V(ts)}function ns(e,n,i){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===i)break;e=e.return}}function ls(e,n,i,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=f;for(var z=0;z<n.length;z++)if(S.context===n[z]){h.lanes|=i,S=h.alternate,S!==null&&(S.lanes|=i),ns(h.return,i,e),u||(b=null);break e}h=S.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=i,h=b.alternate,h!==null&&(h.lanes|=i),ns(b,i,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function Ci(e,n,i,u){e=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var S=f.type;Ft(f.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(f===Ee.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Fr):e=[Fr])}f=f.return}e!==null&&ls(n,e,i,u),n.flags|=262144}function Va(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hl(e){Bl=e,Ln=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return yd(Bl,e)}function Ya(e,n){return Bl===null&&Hl(e),yd(e,n)}function yd(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Ln===null){if(e===null)throw Error(a(308));Ln=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Ln=Ln.next=n;return i}var $1=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},W1=t.unstable_scheduleCallback,e0=t.unstable_NormalPriority,lt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function is(){return{controller:new $1,data:new Map,refCount:0}}function gr(e){e.refCount--,e.refCount===0&&W1(e0,function(){e.controller.abort()})}var yr=null,rs=0,Ti=0,Ai=null;function t0(e,n){if(yr===null){var i=yr=[];rs=0,Ti=oc(),Ai={status:"pending",value:void 0,then:function(u){i.push(u)}}}return rs++,n.then(bd,bd),n}function bd(){if(--rs===0&&yr!==null){Ai!==null&&(Ai.status="fulfilled");var e=yr;yr=null,Ti=0,Ai=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function n0(e,n){var i=[],u={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),u}var vd=j.S;j.S=function(e,n){np=wt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&t0(e,n),vd!==null&&vd(e,n)};var ql=O(null);function as(){var e=ql.current;return e!==null?e:Xe.pooledCache}function Xa(e,n){n===null?E(ql,ql.current):E(ql,n.pool)}function xd(){var e=as();return e===null?null:{parent:lt._currentValue,pool:e}}var zi=Error(a(460)),us=Error(a(474)),Ia=Error(a(542)),Za={then:function(){}};function Sd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function kd(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(_n,_n),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ed(e),e;default:if(typeof n.status=="string")n.then(_n,_n);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ed(e),e}throw Fl=n,zi}}function Ql(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Fl=i,zi):i}}var Fl=null;function wd(){if(Fl===null)throw Error(a(459));var e=Fl;return Fl=null,e}function Ed(e){if(e===zi||e===Ia)throw Error(a(483))}var Ri=null,br=0;function Ka(e){var n=br;return br+=1,Ri===null&&(Ri=[]),kd(Ri,e,n)}function vr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ja(e,n){throw n.$$typeof===v?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Cd(e){function n(D,M){if(e){var L=D.deletions;L===null?(D.deletions=[M],D.flags|=16):L.push(M)}}function i(D,M){if(!e)return null;for(;M!==null;)n(D,M),M=M.sibling;return null}function u(D){for(var M=new Map;D!==null;)D.key!==null?M.set(D.key,D):M.set(D.index,D),D=D.sibling;return M}function f(D,M){return D=Nn(D,M),D.index=0,D.sibling=null,D}function h(D,M,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<M?(D.flags|=67108866,M):L):(D.flags|=67108866,M)):(D.flags|=1048576,M)}function b(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,M,L,I){return M===null||M.tag!==6?(M=Ko(L,D.mode,I),M.return=D,M):(M=f(M,L),M.return=D,M)}function z(D,M,L,I){var me=L.type;return me===C?G(D,M,L.props.children,I,L.key):M!==null&&(M.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===Y&&Ql(me)===M.type)?(M=f(M,L.props),vr(M,L),M.return=D,M):(M=Fa(L.type,L.key,L.props,null,D.mode,I),vr(M,L),M.return=D,M)}function U(D,M,L,I){return M===null||M.tag!==4||M.stateNode.containerInfo!==L.containerInfo||M.stateNode.implementation!==L.implementation?(M=Jo(L,D.mode,I),M.return=D,M):(M=f(M,L.children||[]),M.return=D,M)}function G(D,M,L,I,me){return M===null||M.tag!==7?(M=Ll(L,D.mode,I,me),M.return=D,M):(M=f(M,L),M.return=D,M)}function Z(D,M,L){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Ko(""+M,D.mode,L),M.return=D,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return L=Fa(M.type,M.key,M.props,null,D.mode,L),vr(L,M),L.return=D,L;case k:return M=Jo(M,D.mode,L),M.return=D,M;case Y:return M=Ql(M),Z(D,M,L)}if(P(M)||te(M))return M=Ll(M,D.mode,L,null),M.return=D,M;if(typeof M.then=="function")return Z(D,Ka(M),L);if(M.$$typeof===_)return Z(D,Ya(D,M),L);Ja(D,M)}return null}function H(D,M,L,I){var me=M!==null?M.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return me!==null?null:S(D,M,""+L,I);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case x:return L.key===me?z(D,M,L,I):null;case k:return L.key===me?U(D,M,L,I):null;case Y:return L=Ql(L),H(D,M,L,I)}if(P(L)||te(L))return me!==null?null:G(D,M,L,I,null);if(typeof L.then=="function")return H(D,M,Ka(L),I);if(L.$$typeof===_)return H(D,M,Ya(D,L),I);Ja(D,L)}return null}function F(D,M,L,I,me){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return D=D.get(L)||null,S(M,D,""+I,me);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case x:return D=D.get(I.key===null?L:I.key)||null,z(M,D,I,me);case k:return D=D.get(I.key===null?L:I.key)||null,U(M,D,I,me);case Y:return I=Ql(I),F(D,M,L,I,me)}if(P(I)||te(I))return D=D.get(L)||null,G(M,D,I,me,null);if(typeof I.then=="function")return F(D,M,L,Ka(I),me);if(I.$$typeof===_)return F(D,M,L,Ya(M,I),me);Ja(M,I)}return null}function fe(D,M,L,I){for(var me=null,je=null,de=M,Ce=M=0,_e=null;de!==null&&Ce<L.length;Ce++){de.index>Ce?(_e=de,de=null):_e=de.sibling;var Le=H(D,de,L[Ce],I);if(Le===null){de===null&&(de=_e);break}e&&de&&Le.alternate===null&&n(D,de),M=h(Le,M,Ce),je===null?me=Le:je.sibling=Le,je=Le,de=_e}if(Ce===L.length)return i(D,de),De&&jn(D,Ce),me;if(de===null){for(;Ce<L.length;Ce++)de=Z(D,L[Ce],I),de!==null&&(M=h(de,M,Ce),je===null?me=de:je.sibling=de,je=de);return De&&jn(D,Ce),me}for(de=u(de);Ce<L.length;Ce++)_e=F(de,D,Ce,L[Ce],I),_e!==null&&(e&&_e.alternate!==null&&de.delete(_e.key===null?Ce:_e.key),M=h(_e,M,Ce),je===null?me=_e:je.sibling=_e,je=_e);return e&&de.forEach(function(El){return n(D,El)}),De&&jn(D,Ce),me}function ge(D,M,L,I){if(L==null)throw Error(a(151));for(var me=null,je=null,de=M,Ce=M=0,_e=null,Le=L.next();de!==null&&!Le.done;Ce++,Le=L.next()){de.index>Ce?(_e=de,de=null):_e=de.sibling;var El=H(D,de,Le.value,I);if(El===null){de===null&&(de=_e);break}e&&de&&El.alternate===null&&n(D,de),M=h(El,M,Ce),je===null?me=El:je.sibling=El,je=El,de=_e}if(Le.done)return i(D,de),De&&jn(D,Ce),me;if(de===null){for(;!Le.done;Ce++,Le=L.next())Le=Z(D,Le.value,I),Le!==null&&(M=h(Le,M,Ce),je===null?me=Le:je.sibling=Le,je=Le);return De&&jn(D,Ce),me}for(de=u(de);!Le.done;Ce++,Le=L.next())Le=F(de,D,Ce,Le.value,I),Le!==null&&(e&&Le.alternate!==null&&de.delete(Le.key===null?Ce:Le.key),M=h(Le,M,Ce),je===null?me=Le:je.sibling=Le,je=Le);return e&&de.forEach(function(dx){return n(D,dx)}),De&&jn(D,Ce),me}function Ge(D,M,L,I){if(typeof L=="object"&&L!==null&&L.type===C&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case x:e:{for(var me=L.key;M!==null;){if(M.key===me){if(me=L.type,me===C){if(M.tag===7){i(D,M.sibling),I=f(M,L.props.children),I.return=D,D=I;break e}}else if(M.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===Y&&Ql(me)===M.type){i(D,M.sibling),I=f(M,L.props),vr(I,L),I.return=D,D=I;break e}i(D,M);break}else n(D,M);M=M.sibling}L.type===C?(I=Ll(L.props.children,D.mode,I,L.key),I.return=D,D=I):(I=Fa(L.type,L.key,L.props,null,D.mode,I),vr(I,L),I.return=D,D=I)}return b(D);case k:e:{for(me=L.key;M!==null;){if(M.key===me)if(M.tag===4&&M.stateNode.containerInfo===L.containerInfo&&M.stateNode.implementation===L.implementation){i(D,M.sibling),I=f(M,L.children||[]),I.return=D,D=I;break e}else{i(D,M);break}else n(D,M);M=M.sibling}I=Jo(L,D.mode,I),I.return=D,D=I}return b(D);case Y:return L=Ql(L),Ge(D,M,L,I)}if(P(L))return fe(D,M,L,I);if(te(L)){if(me=te(L),typeof me!="function")throw Error(a(150));return L=me.call(L),ge(D,M,L,I)}if(typeof L.then=="function")return Ge(D,M,Ka(L),I);if(L.$$typeof===_)return Ge(D,M,Ya(D,L),I);Ja(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,M!==null&&M.tag===6?(i(D,M.sibling),I=f(M,L),I.return=D,D=I):(i(D,M),I=Ko(L,D.mode,I),I.return=D,D=I),b(D)):i(D,M)}return function(D,M,L,I){try{br=0;var me=Ge(D,M,L,I);return Ri=null,me}catch(de){if(de===zi||de===Ia)throw de;var je=Gt(29,de,null,D.mode);return je.lanes=I,je.return=D,je}}}var Gl=Cd(!0),Td=Cd(!1),ul=!1;function os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ss(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ol(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sl(e,n,i){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Ue&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=Qa(e),sd(e,null,i),n}return qa(e,u,n,i),Qa(e)}function xr(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,yh(e,i)}}function cs(e,n){var i=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var f=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,i=i.next}while(i!==null);h===null?f=h=n:h=h.next=n}else f=h=n;i={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var fs=!1;function Sr(){if(fs){var e=Ai;if(e!==null)throw e}}function kr(e,n,i,u){fs=!1;var f=e.updateQueue;ul=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var z=S,U=z.next;z.next=null,b===null?h=U:b.next=U,b=z;var G=e.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==b&&(S===null?G.firstBaseUpdate=U:S.next=U,G.lastBaseUpdate=z))}if(h!==null){var Z=f.baseState;b=0,G=U=z=null,S=h;do{var H=S.lane&-536870913,F=H!==S.lane;if(F?(Me&H)===H:(u&H)===H){H!==0&&H===Ti&&(fs=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var fe=e,ge=S;H=n;var Ge=i;switch(ge.tag){case 1:if(fe=ge.payload,typeof fe=="function"){Z=fe.call(Ge,Z,H);break e}Z=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ge.payload,H=typeof fe=="function"?fe.call(Ge,Z,H):fe,H==null)break e;Z=g({},Z,H);break e;case 2:ul=!0}}H=S.callback,H!==null&&(e.flags|=64,F&&(e.flags|=8192),F=f.callbacks,F===null?f.callbacks=[H]:F.push(H))}else F={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(U=G=F,z=Z):G=G.next=F,b|=H;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;F=S,S=F.next,F.next=null,f.lastBaseUpdate=F,f.shared.pending=null}}while(!0);G===null&&(z=Z),f.baseState=z,f.firstBaseUpdate=U,f.lastBaseUpdate=G,h===null&&(f.shared.lanes=0),ml|=b,e.lanes=b,e.memoizedState=Z}}function Ad(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function zd(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Ad(i[e],n)}var Oi=O(null),Pa=O(0);function Rd(e,n){e=Xn,E(Pa,e),E(Oi,n),Xn=e|n.baseLanes}function hs(){E(Pa,Xn),E(Oi,Oi.current)}function ds(){Xn=Pa.current,V(Oi),V(Pa)}var Vt=O(null),un=null;function cl(e){var n=e.alternate;E(tt,tt.current&1),E(Vt,e),un===null&&(n===null||Oi.current!==null||n.memoizedState!==null)&&(un=e)}function ms(e){E(tt,tt.current),E(Vt,e),un===null&&(un=e)}function Od(e){e.tag===22?(E(tt,tt.current),E(Vt,e),un===null&&(un=e)):fl()}function fl(){E(tt,tt.current),E(Vt,Vt.current)}function Yt(e){V(Vt),un===e&&(un=null),V(tt)}var tt=O(0);function $a(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||xc(i)||Sc(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Bn=0,we=null,Qe=null,it=null,Wa=!1,Mi=!1,Vl=!1,eu=0,wr=0,_i=null,l0=0;function We(){throw Error(a(321))}function ps(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Ft(e[i],n[i]))return!1;return!0}function gs(e,n,i,u,f,h){return Bn=h,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,j.H=e===null||e.memoizedState===null?dm:Ms,Vl=!1,h=i(u,f),Vl=!1,Mi&&(h=_d(n,i,u,f)),Md(e),h}function Md(e){j.H=Tr;var n=Qe!==null&&Qe.next!==null;if(Bn=0,it=Qe=we=null,Wa=!1,wr=0,_i=null,n)throw Error(a(300));e===null||rt||(e=e.dependencies,e!==null&&Va(e)&&(rt=!0))}function _d(e,n,i,u){we=e;var f=0;do{if(Mi&&(_i=null),wr=0,Mi=!1,25<=f)throw Error(a(301));if(f+=1,it=Qe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}j.H=mm,h=n(i,u)}while(Mi);return h}function i0(){var e=j.H,n=e.useState()[0];return n=typeof n.then=="function"?Er(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(we.flags|=1024),n}function ys(){var e=eu!==0;return eu=0,e}function bs(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function vs(e){if(Wa){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Wa=!1}Bn=0,it=Qe=we=null,Mi=!1,wr=eu=0,_i=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?we.memoizedState=it=e:it=it.next=e,it}function nt(){if(Qe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=it===null?we.memoizedState:it.next;if(n!==null)it=n,Qe=e;else{if(e===null)throw we.alternate===null?Error(a(467)):Error(a(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},it===null?we.memoizedState=it=e:it=it.next=e}return it}function tu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Er(e){var n=wr;return wr+=1,_i===null&&(_i=[]),e=kd(_i,e,n),n=we,(it===null?n.memoizedState:it.next)===null&&(n=n.alternate,j.H=n===null||n.memoizedState===null?dm:Ms),e}function nu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Er(e);if(e.$$typeof===_)return pt(e)}throw Error(a(438,String(e)))}function xs(e){var n=null,i=we.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var u=we.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=tu(),we.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),u=0;u<e;u++)i[u]=q;return n.index++,i}function Hn(e,n){return typeof n=="function"?n(e):n}function lu(e){var n=nt();return Ss(n,Qe,e)}function Ss(e,n,i){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var S=b=null,z=null,U=n,G=!1;do{var Z=U.lane&-536870913;if(Z!==U.lane?(Me&Z)===Z:(Bn&Z)===Z){var H=U.revertLane;if(H===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Z===Ti&&(G=!0);else if((Bn&H)===H){U=U.next,H===Ti&&(G=!0);continue}else Z={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},z===null?(S=z=Z,b=h):z=z.next=Z,we.lanes|=H,ml|=H;Z=U.action,Vl&&i(h,Z),h=U.hasEagerState?U.eagerState:i(h,Z)}else H={lane:Z,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},z===null?(S=z=H,b=h):z=z.next=H,we.lanes|=Z,ml|=Z;U=U.next}while(U!==null&&U!==n);if(z===null?b=h:z.next=S,!Ft(h,e.memoizedState)&&(rt=!0,G&&(i=Ai,i!==null)))throw i;e.memoizedState=h,e.baseState=b,e.baseQueue=z,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function ks(e){var n=nt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var u=i.dispatch,f=i.pending,h=n.memoizedState;if(f!==null){i.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);Ft(h,n.memoizedState)||(rt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,u]}function Dd(e,n,i){var u=we,f=nt(),h=De;if(h){if(i===void 0)throw Error(a(407));i=i()}else i=n();var b=!Ft((Qe||f).memoizedState,i);if(b&&(f.memoizedState=i,rt=!0),f=f.queue,Cs(Ld.bind(null,u,f,e),[e]),f.getSnapshot!==n||b||it!==null&&it.memoizedState.tag&1){if(u.flags|=2048,Di(9,{destroy:void 0},jd.bind(null,u,f,i,n),null),Xe===null)throw Error(a(349));h||(Bn&127)!==0||Nd(u,n,i)}return i}function Nd(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=we.updateQueue,n===null?(n=tu(),we.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function jd(e,n,i,u){n.value=i,n.getSnapshot=u,Ud(n)&&Bd(e)}function Ld(e,n,i){return i(function(){Ud(n)&&Bd(e)})}function Ud(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Ft(e,i)}catch{return!0}}function Bd(e){var n=jl(e,2);n!==null&&Ut(n,e,2)}function ws(e){var n=Ct();if(typeof e=="function"){var i=e;if(e=i(),Vl){Ot(!0);try{i()}finally{Ot(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:e},n}function Hd(e,n,i,u){return e.baseState=i,Ss(e,Qe,typeof u=="function"?u:Hn)}function r0(e,n,i,u,f){if(au(e))throw Error(a(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};j.T!==null?i(!0):h.isTransition=!1,u(h),i=n.pending,i===null?(h.next=n.pending=h,qd(n,h)):(h.next=i.next,n.pending=i.next=h)}}function qd(e,n){var i=n.action,u=n.payload,f=e.state;if(n.isTransition){var h=j.T,b={};j.T=b;try{var S=i(f,u),z=j.S;z!==null&&z(b,S),Qd(e,n,S)}catch(U){Es(e,n,U)}finally{h!==null&&b.types!==null&&(h.types=b.types),j.T=h}}else try{h=i(f,u),Qd(e,n,h)}catch(U){Es(e,n,U)}}function Qd(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(u){Fd(e,n,u)},function(u){return Es(e,n,u)}):Fd(e,n,i)}function Fd(e,n,i){n.status="fulfilled",n.value=i,Gd(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,qd(e,i)))}function Es(e,n,i){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=i,Gd(n),n=n.next;while(n!==u)}e.action=null}function Gd(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Vd(e,n){return n}function Yd(e,n){if(De){var i=Xe.formState;if(i!==null){e:{var u=we;if(De){if(Ke){t:{for(var f=Ke,h=an;f.nodeType!==8;){if(!h){f=null;break t}if(f=on(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Ke=on(f.nextSibling),u=f.data==="F!";break e}}rl(u)}u=!1}u&&(n=i[0])}}return i=Ct(),i.memoizedState=i.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vd,lastRenderedState:n},i.queue=u,i=cm.bind(null,we,u),u.dispatch=i,u=ws(!1),h=Os.bind(null,we,!1,u.queue),u=Ct(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,i=r0.bind(null,we,f,h,i),f.dispatch=i,u.memoizedState=e,[n,i,!1]}function Xd(e){var n=nt();return Id(n,Qe,e)}function Id(e,n,i){if(n=Ss(e,n,Vd)[0],e=lu(Hn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Er(n)}catch(b){throw b===zi?Ia:b}else u=n;n=nt();var f=n.queue,h=f.dispatch;return i!==n.memoizedState&&(we.flags|=2048,Di(9,{destroy:void 0},a0.bind(null,f,i),null)),[u,h,e]}function a0(e,n){e.action=n}function Zd(e){var n=nt(),i=Qe;if(i!==null)return Id(n,i,e);nt(),n=n.memoizedState,i=nt();var u=i.queue.dispatch;return i.memoizedState=e,[n,u,!1]}function Di(e,n,i,u){return e={tag:e,create:i,deps:u,inst:n,next:null},n=we.updateQueue,n===null&&(n=tu(),we.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(u=i.next,i.next=e,e.next=u,n.lastEffect=e),e}function Kd(){return nt().memoizedState}function iu(e,n,i,u){var f=Ct();we.flags|=e,f.memoizedState=Di(1|n,{destroy:void 0},i,u===void 0?null:u)}function ru(e,n,i,u){var f=nt();u=u===void 0?null:u;var h=f.memoizedState.inst;Qe!==null&&u!==null&&ps(u,Qe.memoizedState.deps)?f.memoizedState=Di(n,h,i,u):(we.flags|=e,f.memoizedState=Di(1|n,h,i,u))}function Jd(e,n){iu(8390656,8,e,n)}function Cs(e,n){ru(2048,8,e,n)}function u0(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=tu(),we.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Pd(e){var n=nt().memoizedState;return u0({ref:n,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function $d(e,n){return ru(4,2,e,n)}function Wd(e,n){return ru(4,4,e,n)}function em(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function tm(e,n,i){i=i!=null?i.concat([e]):null,ru(4,4,em.bind(null,n,e),i)}function Ts(){}function nm(e,n){var i=nt();n=n===void 0?null:n;var u=i.memoizedState;return n!==null&&ps(n,u[1])?u[0]:(i.memoizedState=[e,n],e)}function lm(e,n){var i=nt();n=n===void 0?null:n;var u=i.memoizedState;if(n!==null&&ps(n,u[1]))return u[0];if(u=e(),Vl){Ot(!0);try{e()}finally{Ot(!1)}}return i.memoizedState=[u,n],u}function As(e,n,i){return i===void 0||(Bn&1073741824)!==0&&(Me&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=ip(),we.lanes|=e,ml|=e,i)}function im(e,n,i,u){return Ft(i,n)?i:Oi.current!==null?(e=As(e,i,u),Ft(e,n)||(rt=!0),e):(Bn&42)===0||(Bn&1073741824)!==0&&(Me&261930)===0?(rt=!0,e.memoizedState=i):(e=ip(),we.lanes|=e,ml|=e,n)}function rm(e,n,i,u,f){var h=K.p;K.p=h!==0&&8>h?h:8;var b=j.T,S={};j.T=S,Os(e,!1,n,i);try{var z=f(),U=j.S;if(U!==null&&U(S,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var G=n0(z,u);Cr(e,n,G,Zt(e))}else Cr(e,n,u,Zt(e))}catch(Z){Cr(e,n,{then:function(){},status:"rejected",reason:Z},Zt())}finally{K.p=h,b!==null&&S.types!==null&&(b.types=S.types),j.T=b}}function o0(){}function zs(e,n,i,u){if(e.tag!==5)throw Error(a(476));var f=am(e).queue;rm(e,f,n,he,i===null?o0:function(){return um(e),i(u)})}function am(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:he},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function um(e){var n=am(e);n.next===null&&(n=e.alternate.memoizedState),Cr(e,n.next.queue,{},Zt())}function Rs(){return pt(Fr)}function om(){return nt().memoizedState}function sm(){return nt().memoizedState}function s0(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Zt();e=ol(i);var u=sl(n,e,i);u!==null&&(Ut(u,n,i),xr(u,n,i)),n={cache:is()},e.payload=n;return}n=n.return}}function c0(e,n,i){var u=Zt();i={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},au(e)?fm(n,i):(i=Io(e,n,i,u),i!==null&&(Ut(i,e,u),hm(i,n,u)))}function cm(e,n,i){var u=Zt();Cr(e,n,i,u)}function Cr(e,n,i,u){var f={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(au(e))fm(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,S=h(b,i);if(f.hasEagerState=!0,f.eagerState=S,Ft(S,b))return qa(e,n,f,0),Xe===null&&Ha(),!1}catch{}if(i=Io(e,n,f,u),i!==null)return Ut(i,e,u),hm(i,n,u),!0}return!1}function Os(e,n,i,u){if(u={lane:2,revertLane:oc(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},au(e)){if(n)throw Error(a(479))}else n=Io(e,i,u,2),n!==null&&Ut(n,e,2)}function au(e){var n=e.alternate;return e===we||n!==null&&n===we}function fm(e,n){Mi=Wa=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function hm(e,n,i){if((i&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,yh(e,i)}}var Tr={readContext:pt,use:nu,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};Tr.useEffectEvent=We;var dm={readContext:pt,use:nu,useCallback:function(e,n){return Ct().memoizedState=[e,n===void 0?null:n],e},useContext:pt,useEffect:Jd,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,iu(4194308,4,em.bind(null,n,e),i)},useLayoutEffect:function(e,n){return iu(4194308,4,e,n)},useInsertionEffect:function(e,n){iu(4,2,e,n)},useMemo:function(e,n){var i=Ct();n=n===void 0?null:n;var u=e();if(Vl){Ot(!0);try{e()}finally{Ot(!1)}}return i.memoizedState=[u,n],u},useReducer:function(e,n,i){var u=Ct();if(i!==void 0){var f=i(n);if(Vl){Ot(!0);try{i(n)}finally{Ot(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=c0.bind(null,we,e),[u.memoizedState,e]},useRef:function(e){var n=Ct();return e={current:e},n.memoizedState=e},useState:function(e){e=ws(e);var n=e.queue,i=cm.bind(null,we,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Ts,useDeferredValue:function(e,n){var i=Ct();return As(i,e,n)},useTransition:function(){var e=ws(!1);return e=rm.bind(null,we,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var u=we,f=Ct();if(De){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),Xe===null)throw Error(a(349));(Me&127)!==0||Nd(u,n,i)}f.memoizedState=i;var h={value:i,getSnapshot:n};return f.queue=h,Jd(Ld.bind(null,u,h,e),[e]),u.flags|=2048,Di(9,{destroy:void 0},jd.bind(null,u,h,i,n),null),i},useId:function(){var e=Ct(),n=Xe.identifierPrefix;if(De){var i=En,u=wn;i=(u&~(1<<32-Ye(u)-1)).toString(32)+i,n="_"+n+"R_"+i,i=eu++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=l0++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Rs,useFormState:Yd,useActionState:Yd,useOptimistic:function(e){var n=Ct();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Os.bind(null,we,!0,i),i.dispatch=n,[e,n]},useMemoCache:xs,useCacheRefresh:function(){return Ct().memoizedState=s0.bind(null,we)},useEffectEvent:function(e){var n=Ct(),i={impl:e};return n.memoizedState=i,function(){if((Ue&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},Ms={readContext:pt,use:nu,useCallback:nm,useContext:pt,useEffect:Cs,useImperativeHandle:tm,useInsertionEffect:$d,useLayoutEffect:Wd,useMemo:lm,useReducer:lu,useRef:Kd,useState:function(){return lu(Hn)},useDebugValue:Ts,useDeferredValue:function(e,n){var i=nt();return im(i,Qe.memoizedState,e,n)},useTransition:function(){var e=lu(Hn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:Er(e),n]},useSyncExternalStore:Dd,useId:om,useHostTransitionStatus:Rs,useFormState:Xd,useActionState:Xd,useOptimistic:function(e,n){var i=nt();return Hd(i,Qe,e,n)},useMemoCache:xs,useCacheRefresh:sm};Ms.useEffectEvent=Pd;var mm={readContext:pt,use:nu,useCallback:nm,useContext:pt,useEffect:Cs,useImperativeHandle:tm,useInsertionEffect:$d,useLayoutEffect:Wd,useMemo:lm,useReducer:ks,useRef:Kd,useState:function(){return ks(Hn)},useDebugValue:Ts,useDeferredValue:function(e,n){var i=nt();return Qe===null?As(i,e,n):im(i,Qe.memoizedState,e,n)},useTransition:function(){var e=ks(Hn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:Er(e),n]},useSyncExternalStore:Dd,useId:om,useHostTransitionStatus:Rs,useFormState:Zd,useActionState:Zd,useOptimistic:function(e,n){var i=nt();return Qe!==null?Hd(i,Qe,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:xs,useCacheRefresh:sm};mm.useEffectEvent=Pd;function _s(e,n,i,u){n=e.memoizedState,i=i(u,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ds={enqueueSetState:function(e,n,i){e=e._reactInternals;var u=Zt(),f=ol(u);f.payload=n,i!=null&&(f.callback=i),n=sl(e,f,u),n!==null&&(Ut(n,e,u),xr(n,e,u))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var u=Zt(),f=ol(u);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=sl(e,f,u),n!==null&&(Ut(n,e,u),xr(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=Zt(),u=ol(i);u.tag=2,n!=null&&(u.callback=n),n=sl(e,u,i),n!==null&&(Ut(n,e,i),xr(n,e,i))}};function pm(e,n,i,u,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):n.prototype&&n.prototype.isPureReactComponent?!hr(i,u)||!hr(f,h):!0}function gm(e,n,i,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,u),n.state!==e&&Ds.enqueueReplaceState(n,n.state,null)}function Yl(e,n){var i=n;if("ref"in n){i={};for(var u in n)u!=="ref"&&(i[u]=n[u])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function ym(e){Ba(e)}function bm(e){console.error(e)}function vm(e){Ba(e)}function uu(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function xm(e,n,i){try{var u=e.onCaughtError;u(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Ns(e,n,i){return i=ol(i),i.tag=3,i.payload={element:null},i.callback=function(){uu(e,n)},i}function Sm(e){return e=ol(e),e.tag=3,e}function km(e,n,i,u){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){xm(n,i,u)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){xm(n,i,u),typeof f!="function"&&(pl===null?pl=new Set([this]):pl.add(this));var S=u.stack;this.componentDidCatch(u.value,{componentStack:S!==null?S:""})})}function f0(e,n,i,u,f){if(i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=i.alternate,n!==null&&Ci(n,i,f,!0),i=Vt.current,i!==null){switch(i.tag){case 31:case 13:return un===null?vu():i.alternate===null&&et===0&&(et=3),i.flags&=-257,i.flags|=65536,i.lanes=f,u===Za?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([u]):n.add(u),rc(e,u,f)),!1;case 22:return i.flags|=65536,u===Za?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([u]):i.add(u)),rc(e,u,f)),!1}throw Error(a(435,i.tag))}return rc(e,u,f),vu(),!1}if(De)return n=Vt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==Wo&&(e=Error(a(422),{cause:u}),pr(nn(e,i)))):(u!==Wo&&(n=Error(a(423),{cause:u}),pr(nn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=nn(u,i),f=Ns(e.stateNode,u,f),cs(e,f),et!==4&&(et=2)),!1;var h=Error(a(520),{cause:u});if(h=nn(h,i),Nr===null?Nr=[h]:Nr.push(h),et!==4&&(et=2),n===null)return!0;u=nn(u,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=Ns(i.stateNode,u,e),cs(i,e),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(pl===null||!pl.has(h))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Sm(f),km(f,e,i,u),cs(i,f),!1}i=i.return}while(i!==null);return!1}var js=Error(a(461)),rt=!1;function gt(e,n,i,u){n.child=e===null?Td(n,null,i,u):Gl(n,e.child,i,u)}function wm(e,n,i,u,f){i=i.render;var h=n.ref;if("ref"in u){var b={};for(var S in u)S!=="ref"&&(b[S]=u[S])}else b=u;return Hl(n),u=gs(e,n,i,b,h,f),S=ys(),e!==null&&!rt?(bs(e,n,f),qn(e,n,f)):(De&&S&&Po(n),n.flags|=1,gt(e,n,u,f),n.child)}function Em(e,n,i,u,f){if(e===null){var h=i.type;return typeof h=="function"&&!Zo(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,Cm(e,n,h,u,f)):(e=Fa(i.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!Gs(e,f)){var b=h.memoizedProps;if(i=i.compare,i=i!==null?i:hr,i(b,u)&&e.ref===n.ref)return qn(e,n,f)}return n.flags|=1,e=Nn(h,u),e.ref=n.ref,e.return=n,n.child=e}function Cm(e,n,i,u,f){if(e!==null){var h=e.memoizedProps;if(hr(h,u)&&e.ref===n.ref)if(rt=!1,n.pendingProps=u=h,Gs(e,f))(e.flags&131072)!==0&&(rt=!0);else return n.lanes=e.lanes,qn(e,n,f)}return Ls(e,n,i,u,f)}function Tm(e,n,i,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,n.child=null;return Am(e,n,h,i,u)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xa(n,h!==null?h.cachePool:null),h!==null?Rd(n,h):hs(),Od(n);else return u=n.lanes=536870912,Am(e,n,h!==null?h.baseLanes|i:i,i,u)}else h!==null?(Xa(n,h.cachePool),Rd(n,h),fl(),n.memoizedState=null):(e!==null&&Xa(n,null),hs(),fl());return gt(e,n,f,i),n.child}function Ar(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Am(e,n,i,u,f){var h=as();return h=h===null?null:{parent:lt._currentValue,pool:h},n.memoizedState={baseLanes:i,cachePool:h},e!==null&&Xa(n,null),hs(),Od(n),e!==null&&Ci(e,n,u,!0),n.childLanes=f,null}function ou(e,n){return n=cu({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function zm(e,n,i){return Gl(n,e.child,null,i),e=ou(n,n.pendingProps),e.flags|=2,Yt(n),n.memoizedState=null,e}function h0(e,n,i){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(De){if(u.mode==="hidden")return e=ou(n,u),n.lanes=536870912,Ar(null,e);if(ms(n),(e=Ke)?(e=qp(e,an),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ll!==null?{id:wn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},i=fd(e),i.return=n,n.child=i,mt=n,Ke=null)):e=null,e===null)throw rl(n);return n.lanes=536870912,null}return ou(n,u)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(ms(n),f)if(n.flags&256)n.flags&=-257,n=zm(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(rt||Ci(e,n,i,!1),f=(i&e.childLanes)!==0,rt||f){if(u=Xe,u!==null&&(b=bh(u,i),b!==0&&b!==h.retryLane))throw h.retryLane=b,jl(e,b),Ut(u,e,b),js;vu(),n=zm(e,n,i)}else e=h.treeContext,Ke=on(b.nextSibling),mt=n,De=!0,il=null,an=!1,e!==null&&md(n,e),n=ou(n,u),n.flags|=4096;return n}return e=Nn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function su(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Ls(e,n,i,u,f){return Hl(n),i=gs(e,n,i,u,void 0,f),u=ys(),e!==null&&!rt?(bs(e,n,f),qn(e,n,f)):(De&&u&&Po(n),n.flags|=1,gt(e,n,i,f),n.child)}function Rm(e,n,i,u,f,h){return Hl(n),n.updateQueue=null,i=_d(n,u,i,f),Md(e),u=ys(),e!==null&&!rt?(bs(e,n,h),qn(e,n,h)):(De&&u&&Po(n),n.flags|=1,gt(e,n,i,h),n.child)}function Om(e,n,i,u,f){if(Hl(n),n.stateNode===null){var h=Si,b=i.contextType;typeof b=="object"&&b!==null&&(h=pt(b)),h=new i(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ds,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},os(n),b=i.contextType,h.context=typeof b=="object"&&b!==null?pt(b):Si,h.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(_s(n,i,b,u),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Ds.enqueueReplaceState(h,h.state,null),kr(n,u,h,f),Sr(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var S=n.memoizedProps,z=Yl(i,S);h.props=z;var U=h.context,G=i.contextType;b=Si,typeof G=="object"&&G!==null&&(b=pt(G));var Z=i.getDerivedStateFromProps;G=typeof Z=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,G||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||U!==b)&&gm(n,h,u,b),ul=!1;var H=n.memoizedState;h.state=H,kr(n,u,h,f),Sr(),U=n.memoizedState,S||H!==U||ul?(typeof Z=="function"&&(_s(n,i,Z,u),U=n.memoizedState),(z=ul||pm(n,i,z,u,H,U,b))?(G||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=U),h.props=u,h.state=U,h.context=b,u=z):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,ss(e,n),b=n.memoizedProps,G=Yl(i,b),h.props=G,Z=n.pendingProps,H=h.context,U=i.contextType,z=Si,typeof U=="object"&&U!==null&&(z=pt(U)),S=i.getDerivedStateFromProps,(U=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==Z||H!==z)&&gm(n,h,u,z),ul=!1,H=n.memoizedState,h.state=H,kr(n,u,h,f),Sr();var F=n.memoizedState;b!==Z||H!==F||ul||e!==null&&e.dependencies!==null&&Va(e.dependencies)?(typeof S=="function"&&(_s(n,i,S,u),F=n.memoizedState),(G=ul||pm(n,i,G,u,H,F,z)||e!==null&&e.dependencies!==null&&Va(e.dependencies))?(U||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,F,z),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,F,z)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=F),h.props=u,h.state=F,h.context=z,u=G):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,su(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,i=u&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=Gl(n,e.child,null,f),n.child=Gl(n,null,i,f)):gt(e,n,i,f),n.memoizedState=h.state,e=n.child):e=qn(e,n,f),e}function Mm(e,n,i,u){return Ul(),n.flags|=256,gt(e,n,i,u),n.child}var Us={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bs(e){return{baseLanes:e,cachePool:xd()}}function Hs(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=It),e}function _m(e,n,i){var u=n.pendingProps,f=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),b&&(f=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(De){if(f?cl(n):fl(),(e=Ke)?(e=qp(e,an),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ll!==null?{id:wn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},i=fd(e),i.return=n,n.child=i,mt=n,Ke=null)):e=null,e===null)throw rl(n);return Sc(e)?n.lanes=32:n.lanes=536870912,null}var S=u.children;return u=u.fallback,f?(fl(),f=n.mode,S=cu({mode:"hidden",children:S},f),u=Ll(u,f,i,null),S.return=n,u.return=n,S.sibling=u,n.child=S,u=n.child,u.memoizedState=Bs(i),u.childLanes=Hs(e,b,i),n.memoizedState=Us,Ar(null,u)):(cl(n),qs(n,S))}var z=e.memoizedState;if(z!==null&&(S=z.dehydrated,S!==null)){if(h)n.flags&256?(cl(n),n.flags&=-257,n=Qs(e,n,i)):n.memoizedState!==null?(fl(),n.child=e.child,n.flags|=128,n=null):(fl(),S=u.fallback,f=n.mode,u=cu({mode:"visible",children:u.children},f),S=Ll(S,f,i,null),S.flags|=2,u.return=n,S.return=n,u.sibling=S,n.child=u,Gl(n,e.child,null,i),u=n.child,u.memoizedState=Bs(i),u.childLanes=Hs(e,b,i),n.memoizedState=Us,n=Ar(null,u));else if(cl(n),Sc(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,u=Error(a(419)),u.stack="",u.digest=b,pr({value:u,source:null,stack:null}),n=Qs(e,n,i)}else if(rt||Ci(e,n,i,!1),b=(i&e.childLanes)!==0,rt||b){if(b=Xe,b!==null&&(u=bh(b,i),u!==0&&u!==z.retryLane))throw z.retryLane=u,jl(e,u),Ut(b,e,u),js;xc(S)||vu(),n=Qs(e,n,i)}else xc(S)?(n.flags|=192,n.child=e.child,n=null):(e=z.treeContext,Ke=on(S.nextSibling),mt=n,De=!0,il=null,an=!1,e!==null&&md(n,e),n=qs(n,u.children),n.flags|=4096);return n}return f?(fl(),S=u.fallback,f=n.mode,z=e.child,U=z.sibling,u=Nn(z,{mode:"hidden",children:u.children}),u.subtreeFlags=z.subtreeFlags&65011712,U!==null?S=Nn(U,S):(S=Ll(S,f,i,null),S.flags|=2),S.return=n,u.return=n,u.sibling=S,n.child=u,Ar(null,u),u=n.child,S=e.child.memoizedState,S===null?S=Bs(i):(f=S.cachePool,f!==null?(z=lt._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=xd(),S={baseLanes:S.baseLanes|i,cachePool:f}),u.memoizedState=S,u.childLanes=Hs(e,b,i),n.memoizedState=Us,Ar(e.child,u)):(cl(n),i=e.child,e=i.sibling,i=Nn(i,{mode:"visible",children:u.children}),i.return=n,i.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=i,n.memoizedState=null,i)}function qs(e,n){return n=cu({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function cu(e,n){return e=Gt(22,e,null,n),e.lanes=0,e}function Qs(e,n,i){return Gl(n,e.child,null,i),e=qs(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Dm(e,n,i){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),ns(e.return,n,i)}function Fs(e,n,i,u,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=i,b.tailMode=f,b.treeForkCount=h)}function Nm(e,n,i){var u=n.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var b=tt.current,S=(b&2)!==0;if(S?(b=b&1|2,n.flags|=128):b&=1,E(tt,b),gt(e,n,u,i),u=De?mr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dm(e,i,n);else if(e.tag===19)Dm(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&$a(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Fs(n,!1,f,i,h,u);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&$a(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Fs(n,!0,i,null,h,u);break;case"together":Fs(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function qn(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),ml|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Ci(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=Nn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Nn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Gs(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Va(e)))}function d0(e,n,i){switch(n.tag){case 3:Ve(n,n.stateNode.containerInfo),al(n,lt,e.memoizedState.cache),Ul();break;case 27:case 5:kt(n);break;case 4:Ve(n,n.stateNode.containerInfo);break;case 10:al(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,ms(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(cl(n),n.flags|=128,null):(i&n.child.childLanes)!==0?_m(e,n,i):(cl(n),e=qn(e,n,i),e!==null?e.sibling:null);cl(n);break;case 19:var f=(e.flags&128)!==0;if(u=(i&n.childLanes)!==0,u||(Ci(e,n,i,!1),u=(i&n.childLanes)!==0),f){if(u)return Nm(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),E(tt,tt.current),u)break;return null;case 22:return n.lanes=0,Tm(e,n,i,n.pendingProps);case 24:al(n,lt,e.memoizedState.cache)}return qn(e,n,i)}function jm(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)rt=!0;else{if(!Gs(e,i)&&(n.flags&128)===0)return rt=!1,d0(e,n,i);rt=(e.flags&131072)!==0}else rt=!1,De&&(n.flags&1048576)!==0&&dd(n,mr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=Ql(n.elementType),n.type=e,typeof e=="function")Zo(e)?(u=Yl(e,u),n.tag=1,n=Om(null,n,e,u,i)):(n.tag=0,n=Ls(null,n,e,u,i));else{if(e!=null){var f=e.$$typeof;if(f===ee){n.tag=11,n=wm(null,n,e,u,i);break e}else if(f===J){n.tag=14,n=Em(null,n,e,u,i);break e}}throw n=ue(e)||e,Error(a(306,n,""))}}return n;case 0:return Ls(e,n,n.type,n.pendingProps,i);case 1:return u=n.type,f=Yl(u,n.pendingProps),Om(e,n,u,f,i);case 3:e:{if(Ve(n,n.stateNode.containerInfo),e===null)throw Error(a(387));u=n.pendingProps;var h=n.memoizedState;f=h.element,ss(e,n),kr(n,u,null,i);var b=n.memoizedState;if(u=b.cache,al(n,lt,u),u!==h.cache&&ls(n,[lt],i,!0),Sr(),u=b.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=Mm(e,n,u,i);break e}else if(u!==f){f=nn(Error(a(424)),n),pr(f),n=Mm(e,n,u,i);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ke=on(e.firstChild),mt=n,De=!0,il=null,an=!0,i=Td(n,null,u,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ul(),u===f){n=qn(e,n,i);break e}gt(e,n,u,i)}n=n.child}return n;case 26:return su(e,n),e===null?(i=Xp(n.type,null,n.pendingProps,null))?n.memoizedState=i:De||(i=n.type,e=n.pendingProps,u=Tu(re.current).createElement(i),u[dt]=n,u[Mt]=e,yt(u,i,e),ft(u),n.stateNode=u):n.memoizedState=Xp(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return kt(n),e===null&&De&&(u=n.stateNode=Gp(n.type,n.pendingProps,re.current),mt=n,an=!0,f=Ke,vl(n.type)?(kc=f,Ke=on(u.firstChild)):Ke=f),gt(e,n,n.pendingProps.children,i),su(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&De&&((f=u=Ke)&&(u=G0(u,n.type,n.pendingProps,an),u!==null?(n.stateNode=u,mt=n,Ke=on(u.firstChild),an=!1,f=!0):f=!1),f||rl(n)),kt(n),f=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,yc(f,h)?u=null:b!==null&&yc(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=gs(e,n,i0,null,null,i),Fr._currentValue=f),su(e,n),gt(e,n,u,i),n.child;case 6:return e===null&&De&&((e=i=Ke)&&(i=V0(i,n.pendingProps,an),i!==null?(n.stateNode=i,mt=n,Ke=null,e=!0):e=!1),e||rl(n)),null;case 13:return _m(e,n,i);case 4:return Ve(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Gl(n,null,u,i):gt(e,n,u,i),n.child;case 11:return wm(e,n,n.type,n.pendingProps,i);case 7:return gt(e,n,n.pendingProps,i),n.child;case 8:return gt(e,n,n.pendingProps.children,i),n.child;case 12:return gt(e,n,n.pendingProps.children,i),n.child;case 10:return u=n.pendingProps,al(n,n.type,u.value),gt(e,n,u.children,i),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,Hl(n),f=pt(f),u=u(f),n.flags|=1,gt(e,n,u,i),n.child;case 14:return Em(e,n,n.type,n.pendingProps,i);case 15:return Cm(e,n,n.type,n.pendingProps,i);case 19:return Nm(e,n,i);case 31:return h0(e,n,i);case 22:return Tm(e,n,i,n.pendingProps);case 24:return Hl(n),u=pt(lt),e===null?(f=as(),f===null&&(f=Xe,h=is(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=i),f=h),n.memoizedState={parent:u,cache:f},os(n),al(n,lt,f)):((e.lanes&i)!==0&&(ss(e,n),kr(n,null,null,i),Sr()),f=e.memoizedState,h=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),al(n,lt,u)):(u=h.cache,al(n,lt,u),u!==f.cache&&ls(n,[lt],i,!0))),gt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function Qn(e){e.flags|=4}function Vs(e,n,i,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(op())e.flags|=8192;else throw Fl=Za,us}else e.flags&=-16777217}function Lm(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pp(n))if(op())e.flags|=8192;else throw Fl=Za,us}function fu(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ph():536870912,e.lanes|=n,Ui|=n)}function zr(e,n){if(!De)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Je(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,u=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=i,n}function m0(e,n,i){var u=n.pendingProps;switch($o(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(n),null;case 1:return Je(n),null;case 3:return i=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),Un(lt),ve(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ei(n)?Qn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,es())),Je(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(Qn(n),h!==null?(Je(n),Lm(n,h)):(Je(n),Vs(n,f,null,u,i))):h?h!==e.memoizedState?(Qn(n),Je(n),Lm(n,h)):(Je(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&Qn(n),Je(n),Vs(n,f,e,u,i)),null;case 27:if(zt(n),i=re.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Qn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return Je(n),null}e=le.current,Ei(n)?pd(n):(e=Gp(f,u,i),n.stateNode=e,Qn(n))}return Je(n),null;case 5:if(zt(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Qn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return Je(n),null}if(h=le.current,Ei(n))pd(n);else{var b=Tu(re.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?b.createElement(f,{is:u.is}):b.createElement(f)}}h[dt]=n,h[Mt]=u;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(yt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Qn(n)}}return Je(n),Vs(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&Qn(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(a(166));if(e=re.current,Ei(n)){if(e=n.stateNode,i=n.memoizedProps,u=null,f=mt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[dt]=n,e=!!(e.nodeValue===i||u!==null&&u.suppressHydrationWarning===!0||_p(e.nodeValue,i)),e||rl(n,!0)}else e=Tu(e).createTextNode(u),e[dt]=n,n.stateNode=e}return Je(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(u=Ei(n),i!==null){if(e===null){if(!u)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[dt]=n}else Ul(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),e=!1}else i=es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Yt(n),n):(Yt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return Je(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ei(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[dt]=n}else Ul(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),f=!1}else f=es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Yt(n),n):(Yt(n),null)}return Yt(n),(n.flags&128)!==0?(n.lanes=i,n):(i=u!==null,e=e!==null&&e.memoizedState!==null,i&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),fu(n,n.updateQueue),Je(n),null);case 4:return ve(),e===null&&hc(n.stateNode.containerInfo),Je(n),null;case 10:return Un(n.type),Je(n),null;case 19:if(V(tt),u=n.memoizedState,u===null)return Je(n),null;if(f=(n.flags&128)!==0,h=u.rendering,h===null)if(f)zr(u,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=$a(e),h!==null){for(n.flags|=128,zr(u,!1),e=h.updateQueue,n.updateQueue=e,fu(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)cd(i,e),i=i.sibling;return E(tt,tt.current&1|2),De&&jn(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&wt()>gu&&(n.flags|=128,f=!0,zr(u,!1),n.lanes=4194304)}else{if(!f)if(e=$a(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,fu(n,e),zr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!De)return Je(n),null}else 2*wt()-u.renderingStartTime>gu&&i!==536870912&&(n.flags|=128,f=!0,zr(u,!1),n.lanes=4194304);u.isBackwards?(h.sibling=n.child,n.child=h):(e=u.last,e!==null?e.sibling=h:n.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=wt(),e.sibling=null,i=tt.current,E(tt,f?i&1|2:i&1),De&&jn(n,u.treeForkCount),e):(Je(n),null);case 22:case 23:return Yt(n),ds(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(i&536870912)!==0&&(n.flags&128)===0&&(Je(n),n.subtreeFlags&6&&(n.flags|=8192)):Je(n),i=n.updateQueue,i!==null&&fu(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048),e!==null&&V(ql),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Un(lt),Je(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function p0(e,n){switch($o(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Un(lt),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return zt(n),null;case 31:if(n.memoizedState!==null){if(Yt(n),n.alternate===null)throw Error(a(340));Ul()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Yt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Ul()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return V(tt),null;case 4:return ve(),null;case 10:return Un(n.type),null;case 22:case 23:return Yt(n),ds(),e!==null&&V(ql),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Un(lt),null;case 25:return null;default:return null}}function Um(e,n){switch($o(n),n.tag){case 3:Un(lt),ve();break;case 26:case 27:case 5:zt(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&Yt(n);break;case 13:Yt(n);break;case 19:V(tt);break;case 10:Un(n.type);break;case 22:case 23:Yt(n),ds(),e!==null&&V(ql);break;case 24:Un(lt)}}function Rr(e,n){try{var i=n.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var f=u.next;i=f;do{if((i.tag&e)===e){u=void 0;var h=i.create,b=i.inst;u=h(),b.destroy=u}i=i.next}while(i!==f)}}catch(S){qe(n,n.return,S)}}function hl(e,n,i){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var b=u.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,f=n;var z=i,U=S;try{U()}catch(G){qe(f,z,G)}}}u=u.next}while(u!==h)}}catch(G){qe(n,n.return,G)}}function Bm(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{zd(n,i)}catch(u){qe(e,e.return,u)}}}function Hm(e,n,i){i.props=Yl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(u){qe(e,n,u)}}function Or(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof i=="function"?e.refCleanup=i(u):i.current=u}}catch(f){qe(e,n,f)}}function Cn(e,n){var i=e.ref,u=e.refCleanup;if(i!==null)if(typeof u=="function")try{u()}catch(f){qe(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){qe(e,n,f)}else i.current=null}function qm(e){var n=e.type,i=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&u.focus();break e;case"img":i.src?u.src=i.src:i.srcSet&&(u.srcset=i.srcSet)}}catch(f){qe(e,e.return,f)}}function Ys(e,n,i){try{var u=e.stateNode;U0(u,e.type,i,n),u[Mt]=n}catch(f){qe(e,e.return,f)}}function Qm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&vl(e.type)||e.tag===4}function Xs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&vl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Is(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=_n));else if(u!==4&&(u===27&&vl(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Is(e,n,i),e=e.sibling;e!==null;)Is(e,n,i),e=e.sibling}function hu(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(u!==4&&(u===27&&vl(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(hu(e,n,i),e=e.sibling;e!==null;)hu(e,n,i),e=e.sibling}function Fm(e){var n=e.stateNode,i=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);yt(n,u,i),n[dt]=e,n[Mt]=i}catch(h){qe(e,e.return,h)}}var Fn=!1,at=!1,Zs=!1,Gm=typeof WeakSet=="function"?WeakSet:Set,ht=null;function g0(e,n){if(e=e.containerInfo,pc=Du,e=td(e),Qo(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var b=0,S=-1,z=-1,U=0,G=0,Z=e,H=null;t:for(;;){for(var F;Z!==i||f!==0&&Z.nodeType!==3||(S=b+f),Z!==h||u!==0&&Z.nodeType!==3||(z=b+u),Z.nodeType===3&&(b+=Z.nodeValue.length),(F=Z.firstChild)!==null;)H=Z,Z=F;for(;;){if(Z===e)break t;if(H===i&&++U===f&&(S=b),H===h&&++G===u&&(z=b),(F=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=F}i=S===-1||z===-1?null:{start:S,end:z}}else i=null}i=i||{start:0,end:0}}else i=null;for(gc={focusedElem:e,selectionRange:i},Du=!1,ht=n;ht!==null;)if(n=ht,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ht=e;else for(;ht!==null;){switch(n=ht,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,i=n,f=h.memoizedProps,h=h.memoizedState,u=i.stateNode;try{var fe=Yl(i.type,f);e=u.getSnapshotBeforeUpdate(fe,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ge){qe(i,i.return,ge)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)vc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,ht=e;break}ht=n.return}}function Vm(e,n,i){var u=i.flags;switch(i.tag){case 0:case 11:case 15:Vn(e,i),u&4&&Rr(5,i);break;case 1:if(Vn(e,i),u&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(b){qe(i,i.return,b)}else{var f=Yl(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){qe(i,i.return,b)}}u&64&&Bm(i),u&512&&Or(i,i.return);break;case 3:if(Vn(e,i),u&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{zd(e,n)}catch(b){qe(i,i.return,b)}}break;case 27:n===null&&u&4&&Fm(i);case 26:case 5:Vn(e,i),n===null&&u&4&&qm(i),u&512&&Or(i,i.return);break;case 12:Vn(e,i);break;case 31:Vn(e,i),u&4&&Im(e,i);break;case 13:Vn(e,i),u&4&&Zm(e,i),u&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=C0.bind(null,i),Y0(e,i))));break;case 22:if(u=i.memoizedState!==null||Fn,!u){n=n!==null&&n.memoizedState!==null||at,f=Fn;var h=at;Fn=u,(at=n)&&!h?Yn(e,i,(i.subtreeFlags&8772)!==0):Vn(e,i),Fn=f,at=h}break;case 30:break;default:Vn(e,i)}}function Ym(e){var n=e.alternate;n!==null&&(e.alternate=null,Ym(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Eo(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $e=null,Dt=!1;function Gn(e,n,i){for(i=i.child;i!==null;)Xm(e,n,i),i=i.sibling}function Xm(e,n,i){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Et,i)}catch{}switch(i.tag){case 26:at||Cn(i,n),Gn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:at||Cn(i,n);var u=$e,f=Dt;vl(i.type)&&($e=i.stateNode,Dt=!1),Gn(e,n,i),Hr(i.stateNode),$e=u,Dt=f;break;case 5:at||Cn(i,n);case 6:if(u=$e,f=Dt,$e=null,Gn(e,n,i),$e=u,Dt=f,$e!==null)if(Dt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(i.stateNode)}catch(h){qe(i,n,h)}else try{$e.removeChild(i.stateNode)}catch(h){qe(i,n,h)}break;case 18:$e!==null&&(Dt?(e=$e,Bp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Yi(e)):Bp($e,i.stateNode));break;case 4:u=$e,f=Dt,$e=i.stateNode.containerInfo,Dt=!0,Gn(e,n,i),$e=u,Dt=f;break;case 0:case 11:case 14:case 15:hl(2,i,n),at||hl(4,i,n),Gn(e,n,i);break;case 1:at||(Cn(i,n),u=i.stateNode,typeof u.componentWillUnmount=="function"&&Hm(i,n,u)),Gn(e,n,i);break;case 21:Gn(e,n,i);break;case 22:at=(u=at)||i.memoizedState!==null,Gn(e,n,i),at=u;break;default:Gn(e,n,i)}}function Im(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Yi(e)}catch(i){qe(n,n.return,i)}}}function Zm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yi(e)}catch(i){qe(n,n.return,i)}}function y0(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Gm),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Gm),n;default:throw Error(a(435,e.tag))}}function du(e,n){var i=y0(e);n.forEach(function(u){if(!i.has(u)){i.add(u);var f=T0.bind(null,e,u);u.then(f,f)}})}function Nt(e,n){var i=n.deletions;if(i!==null)for(var u=0;u<i.length;u++){var f=i[u],h=e,b=n,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(vl(S.type)){$e=S.stateNode,Dt=!1;break e}break;case 5:$e=S.stateNode,Dt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,Dt=!0;break e}S=S.return}if($e===null)throw Error(a(160));Xm(h,b,f),$e=null,Dt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Km(n,e),n=n.sibling}var pn=null;function Km(e,n){var i=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nt(n,e),jt(e),u&4&&(hl(3,e,e.return),Rr(3,e),hl(5,e,e.return));break;case 1:Nt(n,e),jt(e),u&512&&(at||i===null||Cn(i,i.return)),u&64&&Fn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?u:i.concat(u))));break;case 26:var f=pn;if(Nt(n,e),jt(e),u&512&&(at||i===null||Cn(i,i.return)),u&4){var h=i!==null?i.memoizedState:null;if(u=e.memoizedState,i===null)if(u===null)if(e.stateNode===null){e:{u=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[lr]||h[dt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),yt(h,u,i),h[dt]=e,ft(h),u=h;break e;case"link":var b=Kp("link","href",f).get(u+(i.href||""));if(b){for(var S=0;S<b.length;S++)if(h=b[S],h.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(S,1);break t}}h=f.createElement(u),yt(h,u,i),f.head.appendChild(h);break;case"meta":if(b=Kp("meta","content",f).get(u+(i.content||""))){for(S=0;S<b.length;S++)if(h=b[S],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(S,1);break t}}h=f.createElement(u),yt(h,u,i),f.head.appendChild(h);break;default:throw Error(a(468,u))}h[dt]=e,ft(h),u=h}e.stateNode=u}else Jp(f,e.type,e.stateNode);else e.stateNode=Zp(f,u,e.memoizedProps);else h!==u?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,u===null?Jp(f,e.type,e.stateNode):Zp(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&Ys(e,e.memoizedProps,i.memoizedProps)}break;case 27:Nt(n,e),jt(e),u&512&&(at||i===null||Cn(i,i.return)),i!==null&&u&4&&Ys(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Nt(n,e),jt(e),u&512&&(at||i===null||Cn(i,i.return)),e.flags&32){f=e.stateNode;try{mi(f,"")}catch(fe){qe(e,e.return,fe)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,Ys(e,f,i!==null?i.memoizedProps:f)),u&1024&&(Zs=!0);break;case 6:if(Nt(n,e),jt(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,i=e.stateNode;try{i.nodeValue=u}catch(fe){qe(e,e.return,fe)}}break;case 3:if(Ru=null,f=pn,pn=Au(n.containerInfo),Nt(n,e),pn=f,jt(e),u&4&&i!==null&&i.memoizedState.isDehydrated)try{Yi(n.containerInfo)}catch(fe){qe(e,e.return,fe)}Zs&&(Zs=!1,Jm(e));break;case 4:u=pn,pn=Au(e.stateNode.containerInfo),Nt(n,e),jt(e),pn=u;break;case 12:Nt(n,e),jt(e);break;case 31:Nt(n,e),jt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,du(e,u)));break;case 13:Nt(n,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(pu=wt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,du(e,u)));break;case 22:f=e.memoizedState!==null;var z=i!==null&&i.memoizedState!==null,U=Fn,G=at;if(Fn=U||f,at=G||z,Nt(n,e),at=G,Fn=U,jt(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||z||Fn||at||Xl(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){z=i=n;try{if(h=z.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=z.stateNode;var Z=z.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){qe(z,z.return,fe)}}}else if(n.tag===6){if(i===null){z=n;try{z.stateNode.nodeValue=f?"":z.memoizedProps}catch(fe){qe(z,z.return,fe)}}}else if(n.tag===18){if(i===null){z=n;try{var F=z.stateNode;f?Hp(F,!0):Hp(z.stateNode,!1)}catch(fe){qe(z,z.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(i=u.retryQueue,i!==null&&(u.retryQueue=null,du(e,i))));break;case 19:Nt(n,e),jt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,du(e,u)));break;case 30:break;case 21:break;default:Nt(n,e),jt(e)}}function jt(e){var n=e.flags;if(n&2){try{for(var i,u=e.return;u!==null;){if(Qm(u)){i=u;break}u=u.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,h=Xs(e);hu(e,h,f);break;case 5:var b=i.stateNode;i.flags&32&&(mi(b,""),i.flags&=-33);var S=Xs(e);hu(e,S,b);break;case 3:case 4:var z=i.stateNode.containerInfo,U=Xs(e);Is(e,U,z);break;default:throw Error(a(161))}}catch(G){qe(e,e.return,G)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Jm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Jm(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Vn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Vm(e,n.alternate,n),n=n.sibling}function Xl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:hl(4,n,n.return),Xl(n);break;case 1:Cn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Hm(n,n.return,i),Xl(n);break;case 27:Hr(n.stateNode);case 26:case 5:Cn(n,n.return),Xl(n);break;case 22:n.memoizedState===null&&Xl(n);break;case 30:Xl(n);break;default:Xl(n)}e=e.sibling}}function Yn(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Yn(f,h,i),Rr(4,h);break;case 1:if(Yn(f,h,i),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){qe(u,u.return,U)}if(u=h,f=u.updateQueue,f!==null){var S=u.stateNode;try{var z=f.shared.hiddenCallbacks;if(z!==null)for(f.shared.hiddenCallbacks=null,f=0;f<z.length;f++)Ad(z[f],S)}catch(U){qe(u,u.return,U)}}i&&b&64&&Bm(h),Or(h,h.return);break;case 27:Fm(h);case 26:case 5:Yn(f,h,i),i&&u===null&&b&4&&qm(h),Or(h,h.return);break;case 12:Yn(f,h,i);break;case 31:Yn(f,h,i),i&&b&4&&Im(f,h);break;case 13:Yn(f,h,i),i&&b&4&&Zm(f,h);break;case 22:h.memoizedState===null&&Yn(f,h,i),Or(h,h.return);break;case 30:break;default:Yn(f,h,i)}n=n.sibling}}function Ks(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&gr(i))}function Js(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&gr(e))}function gn(e,n,i,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Pm(e,n,i,u),n=n.sibling}function Pm(e,n,i,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:gn(e,n,i,u),f&2048&&Rr(9,n);break;case 1:gn(e,n,i,u);break;case 3:gn(e,n,i,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&gr(e)));break;case 12:if(f&2048){gn(e,n,i,u),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,S=h.onPostCommit;typeof S=="function"&&S(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){qe(n,n.return,z)}}else gn(e,n,i,u);break;case 31:gn(e,n,i,u);break;case 13:gn(e,n,i,u);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?gn(e,n,i,u):Mr(e,n):h._visibility&2?gn(e,n,i,u):(h._visibility|=2,Ni(e,n,i,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Ks(b,n);break;case 24:gn(e,n,i,u),f&2048&&Js(n.alternate,n);break;default:gn(e,n,i,u)}}function Ni(e,n,i,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,S=i,z=u,U=b.flags;switch(b.tag){case 0:case 11:case 15:Ni(h,b,S,z,f),Rr(8,b);break;case 23:break;case 22:var G=b.stateNode;b.memoizedState!==null?G._visibility&2?Ni(h,b,S,z,f):Mr(h,b):(G._visibility|=2,Ni(h,b,S,z,f)),f&&U&2048&&Ks(b.alternate,b);break;case 24:Ni(h,b,S,z,f),f&&U&2048&&Js(b.alternate,b);break;default:Ni(h,b,S,z,f)}n=n.sibling}}function Mr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,u=n,f=u.flags;switch(u.tag){case 22:Mr(i,u),f&2048&&Ks(u.alternate,u);break;case 24:Mr(i,u),f&2048&&Js(u.alternate,u);break;default:Mr(i,u)}n=n.sibling}}var _r=8192;function ji(e,n,i){if(e.subtreeFlags&_r)for(e=e.child;e!==null;)$m(e,n,i),e=e.sibling}function $m(e,n,i){switch(e.tag){case 26:ji(e,n,i),e.flags&_r&&e.memoizedState!==null&&lx(i,pn,e.memoizedState,e.memoizedProps);break;case 5:ji(e,n,i);break;case 3:case 4:var u=pn;pn=Au(e.stateNode.containerInfo),ji(e,n,i),pn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=_r,_r=16777216,ji(e,n,i),_r=u):ji(e,n,i));break;default:ji(e,n,i)}}function Wm(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Dr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];ht=u,tp(u,e)}Wm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ep(e),e=e.sibling}function ep(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&hl(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,mu(e)):Dr(e);break;default:Dr(e)}}function mu(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];ht=u,tp(u,e)}Wm(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:hl(8,n,n.return),mu(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,mu(n));break;default:mu(n)}e=e.sibling}}function tp(e,n){for(;ht!==null;){var i=ht;switch(i.tag){case 0:case 11:case 15:hl(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var u=i.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:gr(i.memoizedState.cache)}if(u=i.child,u!==null)u.return=i,ht=u;else e:for(i=e;ht!==null;){u=ht;var f=u.sibling,h=u.return;if(Ym(u),u===i){ht=null;break e}if(f!==null){f.return=h,ht=f;break e}ht=h}}}var b0={getCacheForType:function(e){var n=pt(lt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return pt(lt).controller.signal}},v0=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Xe=null,ze=null,Me=0,He=0,Xt=null,dl=!1,Li=!1,Ps=!1,Xn=0,et=0,ml=0,Il=0,$s=0,It=0,Ui=0,Nr=null,Lt=null,Ws=!1,pu=0,np=0,gu=1/0,yu=null,pl=null,st=0,gl=null,Bi=null,In=0,ec=0,tc=null,lp=null,jr=0,nc=null;function Zt(){return(Ue&2)!==0&&Me!==0?Me&-Me:j.T!==null?oc():vh()}function ip(){if(It===0)if((Me&536870912)===0||De){var e=Ca;Ca<<=1,(Ca&3932160)===0&&(Ca=262144),It=e}else It=536870912;return e=Vt.current,e!==null&&(e.flags|=32),It}function Ut(e,n,i){(e===Xe&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Hi(e,0),yl(e,Me,It,!1)),nr(e,i),((Ue&2)===0||e!==Xe)&&(e===Xe&&((Ue&2)===0&&(Il|=i),et===4&&yl(e,Me,It,!1)),Tn(e))}function rp(e,n,i){if((Ue&6)!==0)throw Error(a(327));var u=!i&&(n&127)===0&&(n&e.expiredLanes)===0||tr(e,n),f=u?k0(e,n):ic(e,n,!0),h=u;do{if(f===0){Li&&!u&&yl(e,n,0,!1);break}else{if(i=e.current.alternate,h&&!x0(i)){f=ic(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var S=e;f=Nr;var z=S.current.memoizedState.isDehydrated;if(z&&(Hi(S,b).flags|=256),b=ic(S,b,!1),b!==2){if(Ps&&!z){S.errorRecoveryDisabledLanes|=h,Il|=h,f=4;break e}h=Lt,Lt=f,h!==null&&(Lt===null?Lt=h:Lt.push.apply(Lt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){Hi(e,0),yl(e,n,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:yl(u,n,It,!dl);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=pu+300-wt(),10<f)){if(yl(u,n,It,!dl),Aa(u,0,!0)!==0)break e;In=n,u.timeoutHandle=Lp(ap.bind(null,u,i,Lt,yu,Ws,n,It,Il,Ui,dl,h,"Throttled",-0,0),f);break e}ap(u,i,Lt,yu,Ws,n,It,Il,Ui,dl,h,null,-0,0)}}break}while(!0);Tn(e)}function ap(e,n,i,u,f,h,b,S,z,U,G,Z,H,F){if(e.timeoutHandle=-1,Z=n.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},$m(n,h,Z);var fe=(h&62914560)===h?pu-wt():(h&4194048)===h?np-wt():0;if(fe=ix(Z,fe),fe!==null){In=h,e.cancelPendingCommit=fe(mp.bind(null,e,n,h,i,u,f,b,S,z,G,Z,null,H,F)),yl(e,h,b,!U);return}}mp(e,n,h,i,u,f,b,S,z)}function x0(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var u=0;u<i.length;u++){var f=i[u],h=f.getSnapshot;f=f.value;try{if(!Ft(h(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function yl(e,n,i,u){n&=~$s,n&=~Il,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var h=31-Ye(f),b=1<<h;u[h]=-1,f&=~b}i!==0&&gh(e,i,n)}function bu(){return(Ue&6)===0?(Lr(0),!1):!0}function lc(){if(ze!==null){if(He===0)var e=ze.return;else e=ze,Ln=Bl=null,vs(e),Ri=null,br=0,e=ze;for(;e!==null;)Um(e.alternate,e),e=e.return;ze=null}}function Hi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,q0(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),In=0,lc(),Xe=e,ze=i=Nn(e.current,null),Me=n,He=0,Xt=null,dl=!1,Li=tr(e,n),Ps=!1,Ui=It=$s=Il=ml=et=0,Lt=Nr=null,Ws=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Ye(u),h=1<<f;n|=e[f],u&=~h}return Xn=n,Ha(),i}function up(e,n){we=null,j.H=Tr,n===zi||n===Ia?(n=wd(),He=3):n===us?(n=wd(),He=4):He=n===js?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Xt=n,ze===null&&(et=1,uu(e,nn(n,e.current)))}function op(){var e=Vt.current;return e===null?!0:(Me&4194048)===Me?un===null:(Me&62914560)===Me||(Me&536870912)!==0?e===un:!1}function sp(){var e=j.H;return j.H=Tr,e===null?Tr:e}function cp(){var e=j.A;return j.A=b0,e}function vu(){et=4,dl||(Me&4194048)!==Me&&Vt.current!==null||(Li=!0),(ml&134217727)===0&&(Il&134217727)===0||Xe===null||yl(Xe,Me,It,!1)}function ic(e,n,i){var u=Ue;Ue|=2;var f=sp(),h=cp();(Xe!==e||Me!==n)&&(yu=null,Hi(e,n)),n=!1;var b=et;e:do try{if(He!==0&&ze!==null){var S=ze,z=Xt;switch(He){case 8:lc(),b=6;break e;case 3:case 2:case 9:case 6:Vt.current===null&&(n=!0);var U=He;if(He=0,Xt=null,qi(e,S,z,U),i&&Li){b=0;break e}break;default:U=He,He=0,Xt=null,qi(e,S,z,U)}}S0(),b=et;break}catch(G){up(e,G)}while(!0);return n&&e.shellSuspendCounter++,Ln=Bl=null,Ue=u,j.H=f,j.A=h,ze===null&&(Xe=null,Me=0,Ha()),b}function S0(){for(;ze!==null;)fp(ze)}function k0(e,n){var i=Ue;Ue|=2;var u=sp(),f=cp();Xe!==e||Me!==n?(yu=null,gu=wt()+500,Hi(e,n)):Li=tr(e,n);e:do try{if(He!==0&&ze!==null){n=ze;var h=Xt;t:switch(He){case 1:He=0,Xt=null,qi(e,n,h,1);break;case 2:case 9:if(Sd(h)){He=0,Xt=null,hp(n);break}n=function(){He!==2&&He!==9||Xe!==e||(He=7),Tn(e)},h.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Sd(h)?(He=0,Xt=null,hp(n)):(He=0,Xt=null,qi(e,n,h,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var S=ze;if(b?Pp(b):S.stateNode.complete){He=0,Xt=null;var z=S.sibling;if(z!==null)ze=z;else{var U=S.return;U!==null?(ze=U,xu(U)):ze=null}break t}}He=0,Xt=null,qi(e,n,h,5);break;case 6:He=0,Xt=null,qi(e,n,h,6);break;case 8:lc(),et=6;break e;default:throw Error(a(462))}}w0();break}catch(G){up(e,G)}while(!0);return Ln=Bl=null,j.H=u,j.A=f,Ue=i,ze!==null?0:(Xe=null,Me=0,Ha(),et)}function w0(){for(;ze!==null&&!yo();)fp(ze)}function fp(e){var n=jm(e.alternate,e,Xn);e.memoizedProps=e.pendingProps,n===null?xu(e):ze=n}function hp(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=Rm(i,n,n.pendingProps,n.type,void 0,Me);break;case 11:n=Rm(i,n,n.pendingProps,n.type.render,n.ref,Me);break;case 5:vs(n);default:Um(i,n),n=ze=cd(n,Xn),n=jm(i,n,Xn)}e.memoizedProps=e.pendingProps,n===null?xu(e):ze=n}function qi(e,n,i,u){Ln=Bl=null,vs(n),Ri=null,br=0;var f=n.return;try{if(f0(e,f,n,i,Me)){et=1,uu(e,nn(i,e.current)),ze=null;return}}catch(h){if(f!==null)throw ze=f,h;et=1,uu(e,nn(i,e.current)),ze=null;return}n.flags&32768?(De||u===1?e=!0:Li||(Me&536870912)!==0?e=!1:(dl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Vt.current,u!==null&&u.tag===13&&(u.flags|=16384))),dp(n,e)):xu(n)}function xu(e){var n=e;do{if((n.flags&32768)!==0){dp(n,dl);return}e=n.return;var i=m0(n.alternate,n,Xn);if(i!==null){ze=i;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);et===0&&(et=5)}function dp(e,n){do{var i=p0(e.alternate,e);if(i!==null){i.flags&=32767,ze=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=i}while(e!==null);et=6,ze=null}function mp(e,n,i,u,f,h,b,S,z){e.cancelPendingCommit=null;do Su();while(st!==0);if((Ue&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=Xo,n1(e,i,h,b,S,z),e===Xe&&(ze=Xe=null,Me=0),Bi=n,gl=e,In=i,ec=h,tc=f,lp=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,A0(be,function(){return vp(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=j.T,j.T=null,f=K.p,K.p=2,b=Ue,Ue|=4;try{g0(e,n,i)}finally{Ue=b,K.p=f,j.T=u}}st=1,pp(),gp(),yp()}}function pp(){if(st===1){st=0;var e=gl,n=Bi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=j.T,j.T=null;var u=K.p;K.p=2;var f=Ue;Ue|=4;try{Km(n,e);var h=gc,b=td(e.containerInfo),S=h.focusedElem,z=h.selectionRange;if(b!==S&&S&&S.ownerDocument&&ed(S.ownerDocument.documentElement,S)){if(z!==null&&Qo(S)){var U=z.start,G=z.end;if(G===void 0&&(G=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(G,S.value.length);else{var Z=S.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var F=H.getSelection(),fe=S.textContent.length,ge=Math.min(z.start,fe),Ge=z.end===void 0?ge:Math.min(z.end,fe);!F.extend&&ge>Ge&&(b=Ge,Ge=ge,ge=b);var D=Wh(S,ge),M=Wh(S,Ge);if(D&&M&&(F.rangeCount!==1||F.anchorNode!==D.node||F.anchorOffset!==D.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var L=Z.createRange();L.setStart(D.node,D.offset),F.removeAllRanges(),ge>Ge?(F.addRange(L),F.extend(M.node,M.offset)):(L.setEnd(M.node,M.offset),F.addRange(L))}}}}for(Z=[],F=S;F=F.parentNode;)F.nodeType===1&&Z.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var I=Z[S];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}Du=!!pc,gc=pc=null}finally{Ue=f,K.p=u,j.T=i}}e.current=n,st=2}}function gp(){if(st===2){st=0;var e=gl,n=Bi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=j.T,j.T=null;var u=K.p;K.p=2;var f=Ue;Ue|=4;try{Vm(e,n.alternate,n)}finally{Ue=f,K.p=u,j.T=i}}st=3}}function yp(){if(st===4||st===3){st=0,bo();var e=gl,n=Bi,i=In,u=lp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?st=5:(st=0,Bi=gl=null,bp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(pl=null),ko(i),n=n.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Et,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=j.T,f=K.p,K.p=2,j.T=null;try{for(var h=e.onRecoverableError,b=0;b<u.length;b++){var S=u[b];h(S.value,{componentStack:S.stack})}}finally{j.T=n,K.p=f}}(In&3)!==0&&Su(),Tn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===nc?jr++:(jr=0,nc=e):jr=0,Lr(0)}}function bp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,gr(n)))}function Su(){return pp(),gp(),yp(),vp()}function vp(){if(st!==5)return!1;var e=gl,n=ec;ec=0;var i=ko(In),u=j.T,f=K.p;try{K.p=32>i?32:i,j.T=null,i=tc,tc=null;var h=gl,b=In;if(st=0,Bi=gl=null,In=0,(Ue&6)!==0)throw Error(a(331));var S=Ue;if(Ue|=4,ep(h.current),Pm(h,h.current,b,i),Ue=S,Lr(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Et,h)}catch{}return!0}finally{K.p=f,j.T=u,bp(e,n)}}function xp(e,n,i){n=nn(i,n),n=Ns(e.stateNode,n,2),e=sl(e,n,2),e!==null&&(nr(e,2),Tn(e))}function qe(e,n,i){if(e.tag===3)xp(e,e,i);else for(;n!==null;){if(n.tag===3){xp(n,e,i);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(pl===null||!pl.has(u))){e=nn(i,e),i=Sm(2),u=sl(n,i,2),u!==null&&(km(i,u,n,e),nr(u,2),Tn(u));break}}n=n.return}}function rc(e,n,i){var u=e.pingCache;if(u===null){u=e.pingCache=new v0;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(i)||(Ps=!0,f.add(i),e=E0.bind(null,e,n,i),n.then(e,e))}function E0(e,n,i){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Xe===e&&(Me&i)===i&&(et===4||et===3&&(Me&62914560)===Me&&300>wt()-pu?(Ue&2)===0&&Hi(e,0):$s|=i,Ui===Me&&(Ui=0)),Tn(e)}function Sp(e,n){n===0&&(n=ph()),e=jl(e,n),e!==null&&(nr(e,n),Tn(e))}function C0(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Sp(e,i)}function T0(e,n){var i=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(n),Sp(e,i)}function A0(e,n){return ui(e,n)}var ku=null,Qi=null,ac=!1,wu=!1,uc=!1,bl=0;function Tn(e){e!==Qi&&e.next===null&&(Qi===null?ku=Qi=e:Qi=Qi.next=e),wu=!0,ac||(ac=!0,R0())}function Lr(e,n){if(!uc&&wu){uc=!0;do for(var i=!1,u=ku;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var b=u.suspendedLanes,S=u.pingedLanes;h=(1<<31-Ye(42|e)+1)-1,h&=f&~(b&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,Cp(u,h))}else h=Me,h=Aa(u,u===Xe?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||tr(u,h)||(i=!0,Cp(u,h));u=u.next}while(i);uc=!1}}function z0(){kp()}function kp(){wu=ac=!1;var e=0;bl!==0&&H0()&&(e=bl);for(var n=wt(),i=null,u=ku;u!==null;){var f=u.next,h=wp(u,n);h===0?(u.next=null,i===null?ku=f:i.next=f,f===null&&(Qi=i)):(i=u,(e!==0||(h&3)!==0)&&(wu=!0)),u=f}st!==0&&st!==5||Lr(e),bl!==0&&(bl=0)}function wp(e,n){for(var i=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ye(h),S=1<<b,z=f[b];z===-1?((S&i)===0||(S&u)!==0)&&(f[b]=t1(S,n)):z<=n&&(e.expiredLanes|=S),h&=~S}if(n=Xe,i=Me,i=Aa(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,i===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&er(u),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||tr(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(u!==null&&er(u),ko(i)){case 2:case 8:i=ne;break;case 32:i=be;break;case 268435456:i=Be;break;default:i=be}return u=Ep.bind(null,e),i=ui(i,u),e.callbackPriority=n,e.callbackNode=i,n}return u!==null&&u!==null&&er(u),e.callbackPriority=2,e.callbackNode=null,2}function Ep(e,n){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Su()&&e.callbackNode!==i)return null;var u=Me;return u=Aa(e,e===Xe?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(rp(e,u,n),wp(e,wt()),e.callbackNode!=null&&e.callbackNode===i?Ep.bind(null,e):null)}function Cp(e,n){if(Su())return null;rp(e,n,!0)}function R0(){Q0(function(){(Ue&6)!==0?ui(X,z0):kp()})}function oc(){if(bl===0){var e=Ti;e===0&&(e=Ea,Ea<<=1,(Ea&261888)===0&&(Ea=256)),bl=e}return bl}function Tp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ma(""+e)}function Ap(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function O0(e,n,i,u,f){if(n==="submit"&&i&&i.stateNode===f){var h=Tp((f[Mt]||null).action),b=u.submitter;b&&(n=(n=b[Mt]||null)?Tp(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var S=new ja("action","action",null,u,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(bl!==0){var z=b?Ap(f,b):new FormData(f);zs(i,{pending:!0,data:z,method:f.method,action:h},null,z)}}else typeof h=="function"&&(S.preventDefault(),z=b?Ap(f,b):new FormData(f),zs(i,{pending:!0,data:z,method:f.method,action:h},h,z))},currentTarget:f}]})}}for(var sc=0;sc<Yo.length;sc++){var cc=Yo[sc],M0=cc.toLowerCase(),_0=cc[0].toUpperCase()+cc.slice(1);mn(M0,"on"+_0)}mn(id,"onAnimationEnd"),mn(rd,"onAnimationIteration"),mn(ad,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(Z1,"onTransitionRun"),mn(K1,"onTransitionStart"),mn(J1,"onTransitionCancel"),mn(ud,"onTransitionEnd"),hi("onMouseEnter",["mouseout","mouseover"]),hi("onMouseLeave",["mouseout","mouseover"]),hi("onPointerEnter",["pointerout","pointerover"]),hi("onPointerLeave",["pointerout","pointerover"]),Ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="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(" "),D0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ur));function zp(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var u=e[i],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var b=u.length-1;0<=b;b--){var S=u[b],z=S.instance,U=S.currentTarget;if(S=S.listener,z!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=U;try{h(f)}catch(G){Ba(G)}f.currentTarget=null,h=z}else for(b=0;b<u.length;b++){if(S=u[b],z=S.instance,U=S.currentTarget,S=S.listener,z!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=U;try{h(f)}catch(G){Ba(G)}f.currentTarget=null,h=z}}}}function Re(e,n){var i=n[wo];i===void 0&&(i=n[wo]=new Set);var u=e+"__bubble";i.has(u)||(Rp(n,e,2,!1),i.add(u))}function fc(e,n,i){var u=0;n&&(u|=4),Rp(i,e,u,n)}var Eu="_reactListening"+Math.random().toString(36).slice(2);function hc(e){if(!e[Eu]){e[Eu]=!0,kh.forEach(function(i){i!=="selectionchange"&&(D0.has(i)||fc(i,!1,e),fc(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Eu]||(n[Eu]=!0,fc("selectionchange",!1,n))}}function Rp(e,n,i,u){switch(ig(n)){case 2:var f=ux;break;case 8:f=ox;break;default:f=Ac}i=f.bind(null,n,i,e),f=void 0,!_o||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function dc(e,n,i,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var S=u.stateNode.containerInfo;if(S===f)break;if(b===4)for(b=u.return;b!==null;){var z=b.tag;if((z===3||z===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;S!==null;){if(b=si(S),b===null)return;if(z=b.tag,z===5||z===6||z===26||z===27){u=h=b;continue e}S=S.parentNode}}u=u.return}Nh(function(){var U=h,G=Oo(i),Z=[];e:{var H=od.get(e);if(H!==void 0){var F=ja,fe=e;switch(e){case"keypress":if(Da(i)===0)break e;case"keydown":case"keyup":F=T1;break;case"focusin":fe="focus",F=Lo;break;case"focusout":fe="blur",F=Lo;break;case"beforeblur":case"afterblur":F=Lo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=m1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=R1;break;case id:case rd:case ad:F=y1;break;case ud:F=M1;break;case"scroll":case"scrollend":F=h1;break;case"wheel":F=D1;break;case"copy":case"cut":case"paste":F=v1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Hh;break;case"toggle":case"beforetoggle":F=j1}var ge=(n&4)!==0,Ge=!ge&&(e==="scroll"||e==="scrollend"),D=ge?H!==null?H+"Capture":null:H;ge=[];for(var M=U,L;M!==null;){var I=M;if(L=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||L===null||D===null||(I=rr(M,D),I!=null&&ge.push(Br(M,I,L))),Ge)break;M=M.return}0<ge.length&&(H=new F(H,fe,null,i,G),Z.push({event:H,listeners:ge}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",H&&i!==Ro&&(fe=i.relatedTarget||i.fromElement)&&(si(fe)||fe[oi]))break e;if((F||H)&&(H=G.window===G?G:(H=G.ownerDocument)?H.defaultView||H.parentWindow:window,F?(fe=i.relatedTarget||i.toElement,F=U,fe=fe?si(fe):null,fe!==null&&(Ge=s(fe),ge=fe.tag,fe!==Ge||ge!==5&&ge!==27&&ge!==6)&&(fe=null)):(F=null,fe=U),F!==fe)){if(ge=Uh,I="onMouseLeave",D="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Hh,I="onPointerLeave",D="onPointerEnter",M="pointer"),Ge=F==null?H:ir(F),L=fe==null?H:ir(fe),H=new ge(I,M+"leave",F,i,G),H.target=Ge,H.relatedTarget=L,I=null,si(G)===U&&(ge=new ge(D,M+"enter",fe,i,G),ge.target=L,ge.relatedTarget=Ge,I=ge),Ge=I,F&&fe)t:{for(ge=N0,D=F,M=fe,L=0,I=D;I;I=ge(I))L++;I=0;for(var me=M;me;me=ge(me))I++;for(;0<L-I;)D=ge(D),L--;for(;0<I-L;)M=ge(M),I--;for(;L--;){if(D===M||M!==null&&D===M.alternate){ge=D;break t}D=ge(D),M=ge(M)}ge=null}else ge=null;F!==null&&Op(Z,H,F,ge,!1),fe!==null&&Ge!==null&&Op(Z,Ge,fe,ge,!0)}}e:{if(H=U?ir(U):window,F=H.nodeName&&H.nodeName.toLowerCase(),F==="select"||F==="input"&&H.type==="file")var je=Ih;else if(Yh(H))if(Zh)je=Y1;else{je=G1;var de=F1}else F=H.nodeName,!F||F.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&zo(U.elementType)&&(je=Ih):je=V1;if(je&&(je=je(e,U))){Xh(Z,je,i,G);break e}de&&de(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&Ao(H,"number",H.value)}switch(de=U?ir(U):window,e){case"focusin":(Yh(de)||de.contentEditable==="true")&&(bi=de,Fo=U,dr=null);break;case"focusout":dr=Fo=bi=null;break;case"mousedown":Go=!0;break;case"contextmenu":case"mouseup":case"dragend":Go=!1,nd(Z,i,G);break;case"selectionchange":if(I1)break;case"keydown":case"keyup":nd(Z,i,G)}var Ce;if(Bo)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else yi?Gh(e,i)&&(_e="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(_e="onCompositionStart");_e&&(qh&&i.locale!=="ko"&&(yi||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&yi&&(Ce=jh()):(nl=G,Do="value"in nl?nl.value:nl.textContent,yi=!0)),de=Cu(U,_e),0<de.length&&(_e=new Bh(_e,e,null,i,G),Z.push({event:_e,listeners:de}),Ce?_e.data=Ce:(Ce=Vh(i),Ce!==null&&(_e.data=Ce)))),(Ce=U1?B1(e,i):H1(e,i))&&(_e=Cu(U,"onBeforeInput"),0<_e.length&&(de=new Bh("onBeforeInput","beforeinput",null,i,G),Z.push({event:de,listeners:_e}),de.data=Ce)),O0(Z,e,U,i,G)}zp(Z,n)})}function Br(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Cu(e,n){for(var i=n+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=rr(e,i),f!=null&&u.unshift(Br(e,f,h)),f=rr(e,n),f!=null&&u.push(Br(e,f,h))),e.tag===3)return u;e=e.return}return[]}function N0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Op(e,n,i,u,f){for(var h=n._reactName,b=[];i!==null&&i!==u;){var S=i,z=S.alternate,U=S.stateNode;if(S=S.tag,z!==null&&z===u)break;S!==5&&S!==26&&S!==27||U===null||(z=U,f?(U=rr(i,h),U!=null&&b.unshift(Br(i,U,z))):f||(U=rr(i,h),U!=null&&b.push(Br(i,U,z)))),i=i.return}b.length!==0&&e.push({event:n,listeners:b})}var j0=/\r\n?/g,L0=/\u0000|\uFFFD/g;function Mp(e){return(typeof e=="string"?e:""+e).replace(j0,`
9
- `).replace(L0,"")}function _p(e,n){return n=Mp(n),Mp(e)===n}function Fe(e,n,i,u,f,h){switch(i){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||mi(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&mi(e,""+u);break;case"className":Ra(e,"class",u);break;case"tabIndex":Ra(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ra(e,i,u);break;case"style":_h(e,u,h);break;case"data":if(n!=="object"){Ra(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Ma(""+u),e.setAttribute(i,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(i,"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 h=="function"&&(i==="formAction"?(n!=="input"&&Fe(e,n,"name",f.name,f,null),Fe(e,n,"formEncType",f.formEncType,f,null),Fe(e,n,"formMethod",f.formMethod,f,null),Fe(e,n,"formTarget",f.formTarget,f,null)):(Fe(e,n,"encType",f.encType,f,null),Fe(e,n,"method",f.method,f,null),Fe(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Ma(""+u),e.setAttribute(i,u);break;case"onClick":u!=null&&(e.onclick=_n);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}i=Ma(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""+u):e.removeAttribute(i);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":u===!0?e.setAttribute(i,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,u):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(i,u):e.removeAttribute(i);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(i):e.setAttribute(i,u);break;case"popover":Re("beforetoggle",e),Re("toggle",e),za(e,"popover",u);break;case"xlinkActuate":Mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Mn(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Mn(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Mn(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Mn(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":za(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=c1.get(i)||i,za(e,i,u))}}function mc(e,n,i,u,f,h){switch(i){case"style":_h(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof u=="string"?mi(e,u):(typeof u=="number"||typeof u=="bigint")&&mi(e,""+u);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"onClick":u!=null&&(e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),h=e[Mt]||null,h=h!=null?h[i]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,u,f);break e}i in e?e[i]=u:u===!0?e.setAttribute(i,""):za(e,i,u)}}}function yt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var u=!1,f=!1,h;for(h in i)if(i.hasOwnProperty(h)){var b=i[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,h,b,i,null)}}f&&Fe(e,n,"srcSet",i.srcSet,i,null),u&&Fe(e,n,"src",i.src,i,null);return;case"input":Re("invalid",e);var S=h=b=f=null,z=null,U=null;for(u in i)if(i.hasOwnProperty(u)){var G=i[u];if(G!=null)switch(u){case"name":f=G;break;case"type":b=G;break;case"checked":z=G;break;case"defaultChecked":U=G;break;case"value":h=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:Fe(e,n,u,G,i,null)}}zh(e,h,S,z,U,b,f,!1);return;case"select":Re("invalid",e),u=b=h=null;for(f in i)if(i.hasOwnProperty(f)&&(S=i[f],S!=null))switch(f){case"value":h=S;break;case"defaultValue":b=S;break;case"multiple":u=S;default:Fe(e,n,f,S,i,null)}n=h,i=b,e.multiple=!!u,n!=null?di(e,!!u,n,!1):i!=null&&di(e,!!u,i,!0);return;case"textarea":Re("invalid",e),h=f=u=null;for(b in i)if(i.hasOwnProperty(b)&&(S=i[b],S!=null))switch(b){case"value":u=S;break;case"defaultValue":f=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:Fe(e,n,b,S,i,null)}Oh(e,u,f,h);return;case"option":for(z in i)i.hasOwnProperty(z)&&(u=i[z],u!=null)&&(z==="selected"?e.selected=u&&typeof u!="function"&&typeof u!="symbol":Fe(e,n,z,u,i,null));return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(u=0;u<Ur.length;u++)Re(Ur[u],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in i)if(i.hasOwnProperty(U)&&(u=i[U],u!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,U,u,i,null)}return;default:if(zo(n)){for(G in i)i.hasOwnProperty(G)&&(u=i[G],u!==void 0&&mc(e,n,G,u,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(u=i[S],u!=null&&Fe(e,n,S,u,i,null))}function U0(e,n,i,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,S=null,z=null,U=null,G=null;for(F in i){var Z=i[F];if(i.hasOwnProperty(F)&&Z!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":z=Z;default:u.hasOwnProperty(F)||Fe(e,n,F,null,u,Z)}}for(var H in u){var F=u[H];if(Z=i[H],u.hasOwnProperty(H)&&(F!=null||Z!=null))switch(H){case"type":h=F;break;case"name":f=F;break;case"checked":U=F;break;case"defaultChecked":G=F;break;case"value":b=F;break;case"defaultValue":S=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:F!==Z&&Fe(e,n,H,F,u,Z)}}To(e,b,S,z,U,G,h,f);return;case"select":F=b=S=H=null;for(h in i)if(z=i[h],i.hasOwnProperty(h)&&z!=null)switch(h){case"value":break;case"multiple":F=z;default:u.hasOwnProperty(h)||Fe(e,n,h,null,u,z)}for(f in u)if(h=u[f],z=i[f],u.hasOwnProperty(f)&&(h!=null||z!=null))switch(f){case"value":H=h;break;case"defaultValue":S=h;break;case"multiple":b=h;default:h!==z&&Fe(e,n,f,h,u,z)}n=S,i=b,u=F,H!=null?di(e,!!i,H,!1):!!u!=!!i&&(n!=null?di(e,!!i,n,!0):di(e,!!i,i?[]:"",!1));return;case"textarea":F=H=null;for(S in i)if(f=i[S],i.hasOwnProperty(S)&&f!=null&&!u.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Fe(e,n,S,null,u,f)}for(b in u)if(f=u[b],h=i[b],u.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":H=f;break;case"defaultValue":F=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Fe(e,n,b,f,u,h)}Rh(e,H,F);return;case"option":for(var fe in i)H=i[fe],i.hasOwnProperty(fe)&&H!=null&&!u.hasOwnProperty(fe)&&(fe==="selected"?e.selected=!1:Fe(e,n,fe,null,u,H));for(z in u)H=u[z],F=i[z],u.hasOwnProperty(z)&&H!==F&&(H!=null||F!=null)&&(z==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":Fe(e,n,z,H,u,F));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 ge in i)H=i[ge],i.hasOwnProperty(ge)&&H!=null&&!u.hasOwnProperty(ge)&&Fe(e,n,ge,null,u,H);for(U in u)if(H=u[U],F=i[U],u.hasOwnProperty(U)&&H!==F&&(H!=null||F!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,n));break;default:Fe(e,n,U,H,u,F)}return;default:if(zo(n)){for(var Ge in i)H=i[Ge],i.hasOwnProperty(Ge)&&H!==void 0&&!u.hasOwnProperty(Ge)&&mc(e,n,Ge,void 0,u,H);for(G in u)H=u[G],F=i[G],!u.hasOwnProperty(G)||H===F||H===void 0&&F===void 0||mc(e,n,G,H,u,F);return}}for(var D in i)H=i[D],i.hasOwnProperty(D)&&H!=null&&!u.hasOwnProperty(D)&&Fe(e,n,D,null,u,H);for(Z in u)H=u[Z],F=i[Z],!u.hasOwnProperty(Z)||H===F||H==null&&F==null||Fe(e,n,Z,H,u,F)}function Dp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function B0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),u=0;u<i.length;u++){var f=i[u],h=f.transferSize,b=f.initiatorType,S=f.duration;if(h&&S&&Dp(b)){for(b=0,S=f.responseEnd,u+=1;u<i.length;u++){var z=i[u],U=z.startTime;if(U>S)break;var G=z.transferSize,Z=z.initiatorType;G&&Dp(Z)&&(z=z.responseEnd,b+=G*(z<S?1:(S-U)/(z-U)))}if(--u,n+=8*(h+b)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var pc=null,gc=null;function Tu(e){return e.nodeType===9?e:e.ownerDocument}function Np(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jp(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function yc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var bc=null;function H0(){var e=window.event;return e&&e.type==="popstate"?e===bc?!1:(bc=e,!0):(bc=null,!1)}var Lp=typeof setTimeout=="function"?setTimeout:void 0,q0=typeof clearTimeout=="function"?clearTimeout:void 0,Up=typeof Promise=="function"?Promise:void 0,Q0=typeof queueMicrotask=="function"?queueMicrotask:typeof Up<"u"?function(e){return Up.resolve(null).then(e).catch(F0)}:Lp;function F0(e){setTimeout(function(){throw e})}function vl(e){return e==="head"}function Bp(e,n){var i=n,u=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(u===0){e.removeChild(f),Yi(n);return}u--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")u++;else if(i==="html")Hr(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Hr(i);for(var h=i.firstChild;h;){var b=h.nextSibling,S=h.nodeName;h[lr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||i.removeChild(h),h=b}}else i==="body"&&Hr(e.ownerDocument.body);i=f}while(i);Yi(n)}function Hp(e,n){var i=e;e=0;do{var u=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=u}while(i)}function vc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":vc(i),Eo(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function G0(e,n,i,u){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[lr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=on(e.nextSibling),e===null)break}return null}function V0(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=on(e.nextSibling),e===null))return null;return e}function qp(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=on(e.nextSibling),e===null))return null;return e}function xc(e){return e.data==="$?"||e.data==="$~"}function Sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Y0(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var u=function(){n(),i.removeEventListener("DOMContentLoaded",u)};i.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function on(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var kc=null;function Qp(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return on(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Fp(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Gp(e,n,i){switch(n=Tu(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function Hr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Eo(e)}var sn=new Map,Vp=new Set;function Au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zn=K.d;K.d={f:X0,r:I0,D:Z0,C:K0,L:J0,m:P0,X:W0,S:$0,M:ex};function X0(){var e=Zn.f(),n=bu();return e||n}function I0(e){var n=ci(e);n!==null&&n.tag===5&&n.type==="form"?um(n):Zn.r(e)}var Fi=typeof document>"u"?null:document;function Yp(e,n,i){var u=Fi;if(u&&typeof n=="string"&&n){var f=en(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Vp.has(f)||(Vp.add(f),e={rel:e,crossOrigin:i,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),yt(n,"link",e),ft(n),u.head.appendChild(n)))}}function Z0(e){Zn.D(e),Yp("dns-prefetch",e,null)}function K0(e,n){Zn.C(e,n),Yp("preconnect",e,n)}function J0(e,n,i){Zn.L(e,n,i);var u=Fi;if(u&&e&&n){var f='link[rel="preload"][as="'+en(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+en(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+en(i.imageSizes)+'"]')):f+='[href="'+en(e)+'"]';var h=f;switch(n){case"style":h=Gi(e);break;case"script":h=Vi(e)}sn.has(h)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),sn.set(h,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(qr(h))||n==="script"&&u.querySelector(Qr(h))||(n=u.createElement("link"),yt(n,"link",e),ft(n),u.head.appendChild(n)))}}function P0(e,n){Zn.m(e,n);var i=Fi;if(i&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+en(u)+'"][href="'+en(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Vi(e)}if(!sn.has(h)&&(e=g({rel:"modulepreload",href:e},n),sn.set(h,e),i.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Qr(h)))return}u=i.createElement("link"),yt(u,"link",e),ft(u),i.head.appendChild(u)}}}function $0(e,n,i){Zn.S(e,n,i);var u=Fi;if(u&&e){var f=fi(u).hoistableStyles,h=Gi(e);n=n||"default";var b=f.get(h);if(!b){var S={loading:0,preload:null};if(b=u.querySelector(qr(h)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=sn.get(h))&&wc(e,i);var z=b=u.createElement("link");ft(z),yt(z,"link",e),z._p=new Promise(function(U,G){z.onload=U,z.onerror=G}),z.addEventListener("load",function(){S.loading|=1}),z.addEventListener("error",function(){S.loading|=2}),S.loading|=4,zu(b,n,u)}b={type:"stylesheet",instance:b,count:1,state:S},f.set(h,b)}}}function W0(e,n){Zn.X(e,n);var i=Fi;if(i&&e){var u=fi(i).hoistableScripts,f=Vi(e),h=u.get(f);h||(h=i.querySelector(Qr(f)),h||(e=g({src:e,async:!0},n),(n=sn.get(f))&&Ec(e,n),h=i.createElement("script"),ft(h),yt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function ex(e,n){Zn.M(e,n);var i=Fi;if(i&&e){var u=fi(i).hoistableScripts,f=Vi(e),h=u.get(f);h||(h=i.querySelector(Qr(f)),h||(e=g({src:e,async:!0,type:"module"},n),(n=sn.get(f))&&Ec(e,n),h=i.createElement("script"),ft(h),yt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function Xp(e,n,i,u){var f=(f=re.current)?Au(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Gi(i.href),i=fi(f).hoistableStyles,u=i.get(n),u||(u={type:"style",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Gi(i.href);var h=fi(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(qr(e)))&&!h._p&&(b.instance=h,b.state.loading=5),sn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},sn.set(e,i),h||tx(f,e,i,b.state))),n&&u===null)throw Error(a(528,""));return b}if(n&&u!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Vi(i),i=fi(f).hoistableScripts,u=i.get(n),u||(u={type:"script",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Gi(e){return'href="'+en(e)+'"'}function qr(e){return'link[rel="stylesheet"]['+e+"]"}function Ip(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function tx(e,n,i,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),yt(n,"link",i),ft(n),e.head.appendChild(n))}function Vi(e){return'[src="'+en(e)+'"]'}function Qr(e){return"script[async]"+e}function Zp(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+en(i.href)+'"]');if(u)return n.instance=u,ft(u),u;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),ft(u),yt(u,"style",f),zu(u,i.precedence,e),n.instance=u;case"stylesheet":f=Gi(i.href);var h=e.querySelector(qr(f));if(h)return n.state.loading|=4,n.instance=h,ft(h),h;u=Ip(i),(f=sn.get(f))&&wc(u,f),h=(e.ownerDocument||e).createElement("link"),ft(h);var b=h;return b._p=new Promise(function(S,z){b.onload=S,b.onerror=z}),yt(h,"link",u),n.state.loading|=4,zu(h,i.precedence,e),n.instance=h;case"script":return h=Vi(i.src),(f=e.querySelector(Qr(h)))?(n.instance=f,ft(f),f):(u=i,(f=sn.get(h))&&(u=g({},i),Ec(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),ft(f),yt(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,zu(u,i.precedence,e));return n.instance}function zu(e,n,i){for(var u=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,b=0;b<u.length;b++){var S=u[b];if(S.dataset.precedence===n)h=S;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function wc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Ec(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ru=null;function Kp(e,n,i){if(Ru===null){var u=new Map,f=Ru=new Map;f.set(i,u)}else f=Ru,u=f.get(i),u||(u=new Map,f.set(i,u));if(u.has(e))return u;for(u.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var h=i[f];if(!(h[lr]||h[dt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var S=u.get(b);S?S.push(h):u.set(b,[h])}}return u}function Jp(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function nx(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Pp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function lx(e,n,i,u){if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=Gi(u.href),h=n.querySelector(qr(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ou.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=h,ft(h);return}h=n.ownerDocument||n,u=Ip(u),(f=sn.get(f))&&wc(u,f),h=h.createElement("link"),ft(h);var b=h;b._p=new Promise(function(S,z){b.onload=S,b.onerror=z}),yt(h,"link",u),i.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Ou.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var Cc=0;function ix(e,n){return e.stylesheets&&e.count===0&&_u(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var u=setTimeout(function(){if(e.stylesheets&&_u(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Cc===0&&(Cc=62500*B0());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_u(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Cc?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Ou(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_u(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mu=null;function _u(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mu=new Map,n.forEach(rx,e),Mu=null,Ou.call(e))}function rx(e,n){if(!(n.state.loading&4)){var i=Mu.get(e);if(i)var u=i.get(null);else{i=new Map,Mu.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),u=b)}u&&i.set(null,u)}f=n.instance,b=f.getAttribute("data-precedence"),h=i.get(b)||u,h===u&&i.set(null,f),i.set(b,f),this.count++,u=Ou.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Fr={$$typeof:_,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function ax(e,n,i,u,f,h,b,S,z){this.tag=1,this.containerInfo=e,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=xo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.hiddenUpdates=xo(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function $p(e,n,i,u,f,h,b,S,z,U,G,Z){return e=new ax(e,n,i,b,z,U,G,Z,S),n=1,h===!0&&(n|=24),h=Gt(3,null,null,n),e.current=h,h.stateNode=e,n=is(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:i,cache:n},os(h),e}function Wp(e){return e?(e=Si,e):Si}function eg(e,n,i,u,f,h){f=Wp(f),u.context===null?u.context=f:u.pendingContext=f,u=ol(n),u.payload={element:i},h=h===void 0?null:h,h!==null&&(u.callback=h),i=sl(e,u,n),i!==null&&(Ut(i,e,n),xr(i,e,n))}function tg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Tc(e,n){tg(e,n),(e=e.alternate)&&tg(e,n)}function ng(e){if(e.tag===13||e.tag===31){var n=jl(e,67108864);n!==null&&Ut(n,e,67108864),Tc(e,67108864)}}function lg(e){if(e.tag===13||e.tag===31){var n=Zt();n=So(n);var i=jl(e,n);i!==null&&Ut(i,e,n),Tc(e,n)}}var Du=!0;function ux(e,n,i,u){var f=j.T;j.T=null;var h=K.p;try{K.p=2,Ac(e,n,i,u)}finally{K.p=h,j.T=f}}function ox(e,n,i,u){var f=j.T;j.T=null;var h=K.p;try{K.p=8,Ac(e,n,i,u)}finally{K.p=h,j.T=f}}function Ac(e,n,i,u){if(Du){var f=zc(u);if(f===null)dc(e,n,u,Nu,i),rg(e,u);else if(cx(f,e,n,i,u))u.stopPropagation();else if(rg(e,u),n&4&&-1<sx.indexOf(e)){for(;f!==null;){var h=ci(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Ol(h.pendingLanes);if(b!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var z=1<<31-Ye(b);S.entanglements[1]|=z,b&=~z}Tn(h),(Ue&6)===0&&(gu=wt()+500,Lr(0))}}break;case 31:case 13:S=jl(h,2),S!==null&&Ut(S,h,2),bu(),Tc(h,2)}if(h=zc(u),h===null&&dc(e,n,u,Nu,i),h===f)break;f=h}f!==null&&u.stopPropagation()}else dc(e,n,u,null,i)}}function zc(e){return e=Oo(e),Rc(e)}var Nu=null;function Rc(e){if(Nu=null,e=si(e),e!==null){var n=s(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=d(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Nu=e,null}function ig(e){switch(e){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(vo()){case X:return 2;case ne:return 8;case be:case Ae:return 32;case Be:return 268435456;default:return 32}default:return 32}}var Oc=!1,xl=null,Sl=null,kl=null,Gr=new Map,Vr=new Map,wl=[],sx="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 rg(e,n){switch(e){case"focusin":case"focusout":xl=null;break;case"dragenter":case"dragleave":Sl=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":Gr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vr.delete(n.pointerId)}}function Yr(e,n,i,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:i,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=ci(n),n!==null&&ng(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function cx(e,n,i,u,f){switch(n){case"focusin":return xl=Yr(xl,e,n,i,u,f),!0;case"dragenter":return Sl=Yr(Sl,e,n,i,u,f),!0;case"mouseover":return kl=Yr(kl,e,n,i,u,f),!0;case"pointerover":var h=f.pointerId;return Gr.set(h,Yr(Gr.get(h)||null,e,n,i,u,f)),!0;case"gotpointercapture":return h=f.pointerId,Vr.set(h,Yr(Vr.get(h)||null,e,n,i,u,f)),!0}return!1}function ag(e){var n=si(e.target);if(n!==null){var i=s(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,xh(e.priority,function(){lg(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,xh(e.priority,function(){lg(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ju(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=zc(e.nativeEvent);if(i===null){i=e.nativeEvent;var u=new i.constructor(i.type,i);Ro=u,i.target.dispatchEvent(u),Ro=null}else return n=ci(i),n!==null&&ng(n),e.blockedOn=i,!1;n.shift()}return!0}function ug(e,n,i){ju(e)&&i.delete(n)}function fx(){Oc=!1,xl!==null&&ju(xl)&&(xl=null),Sl!==null&&ju(Sl)&&(Sl=null),kl!==null&&ju(kl)&&(kl=null),Gr.forEach(ug),Vr.forEach(ug)}function Lu(e,n){e.blockedOn===n&&(e.blockedOn=null,Oc||(Oc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,fx)))}var Uu=null;function og(e){Uu!==e&&(Uu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Uu===e&&(Uu=null);for(var n=0;n<e.length;n+=3){var i=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if(Rc(u||i)===null)continue;break}var h=ci(i);h!==null&&(e.splice(n,3),n-=3,zs(h,{pending:!0,data:f,method:i.method,action:u},u,f))}}))}function Yi(e){function n(z){return Lu(z,e)}xl!==null&&Lu(xl,e),Sl!==null&&Lu(Sl,e),kl!==null&&Lu(kl,e),Gr.forEach(n),Vr.forEach(n);for(var i=0;i<wl.length;i++){var u=wl[i];u.blockedOn===e&&(u.blockedOn=null)}for(;0<wl.length&&(i=wl[0],i.blockedOn===null);)ag(i),i.blockedOn===null&&wl.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(u=0;u<i.length;u+=3){var f=i[u],h=i[u+1],b=f[Mt]||null;if(typeof h=="function")b||og(i);else if(b){var S=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Mt]||null)S=b.formAction;else if(Rc(f)!==null)continue}else S=b.action;typeof S=="function"?i[u+1]=S:(i.splice(u,3),u-=3),og(i)}}}function sg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(i,20)}function i(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Mc(e){this._internalRoot=e}Bu.prototype.render=Mc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,u=Zt();eg(i,u,e,n,null,null)},Bu.prototype.unmount=Mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;eg(e.current,2,null,e,null,null),bu(),n[oi]=null}};function Bu(e){this._internalRoot=e}Bu.prototype.unstable_scheduleHydration=function(e){if(e){var n=vh();e={blockedOn:null,target:e,priority:n};for(var i=0;i<wl.length&&n!==0&&n<wl[i].priority;i++);wl.splice(i,0,e),i===0&&ag(e)}};var cg=l.version;if(cg!=="19.2.7")throw Error(a(527,cg,"19.2.7"));K.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var hx={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hu.isDisabled&&Hu.supportsFiber)try{Et=Hu.inject(hx),ot=Hu}catch{}}return Ir.createRoot=function(e,n){if(!o(e))throw Error(a(299));var i=!1,u="",f=ym,h=bm,b=vm;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=$p(e,1,!1,null,null,i,u,null,f,h,b,sg),e[oi]=n.current,hc(e),new Mc(n)},Ir.hydrateRoot=function(e,n,i){if(!o(e))throw Error(a(299));var u=!1,f="",h=ym,b=bm,S=vm,z=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.formState!==void 0&&(z=i.formState)),n=$p(e,1,!0,n,i??null,u,f,z,h,b,S,sg),n.context=Wp(null),i=n.current,u=Zt(),u=So(u),f=ol(u),f.callback=null,sl(i,f,u),i=u,n.current.lanes=i,nr(n,i),Tn(n),e[oi]=n.current,hc(e),new Bu(n)},Ir.version="19.2.7",Ir}var Mg;function cS(){if(Mg)return Nc.exports;Mg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Nc.exports=sS(),Nc.exports}var fS=cS();var Bf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,tb=/^[\\/]{2}/;function hS(t,l){return l+t.replace(/\\/g,"/")}var _g="popstate";function Dg(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function dS(t={}){function l(a,o){let s=o.state?.masked,{pathname:c,search:d,hash:m}=s||a.location;return pf("",{pathname:c,search:d,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,o){return typeof o=="string"?o:sa(o)}return pS(l,r,null,t)}function Pe(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function vn(t,l){if(!t){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function mS(){return Math.random().toString(36).substring(2,10)}function Ng(t,l){return{usr:t.state,key:t.key,idx:l,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function pf(t,l,r=null,a,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof l=="string"?Ji(l):l,state:r,key:l&&l.key||a||mS(),mask:o}}function sa({pathname:t="/",search:l="",hash:r=""}){return l&&l!=="?"&&(t+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ji(t){let l={};if(t){let r=t.indexOf("#");r>=0&&(l.hash=t.substring(r),t=t.substring(0,r));let a=t.indexOf("?");a>=0&&(l.search=t.substring(a),t=t.substring(0,a)),t&&(l.pathname=t)}return l}function pS(t,l,r,a={}){let{window:o=document.defaultView,v5Compat:s=!1}=a,c=o.history,d="POP",m=null,p=y();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function y(){return(c.state||{idx:null}).idx}function g(){d="POP";let T=y(),A=T==null?null:T-p;p=T,m&&m({action:d,location:C.location,delta:A})}function v(T,A){d="PUSH";let B=Dg(T)?T:pf(C.location,T,A);p=y()+1;let _=Ng(B,p),ee=C.createHref(B.mask||B);try{c.pushState(_,"",ee)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;o.location.assign(ee)}s&&m&&m({action:d,location:C.location,delta:1})}function x(T,A){d="REPLACE";let B=Dg(T)?T:pf(C.location,T,A);p=y();let _=Ng(B,p),ee=C.createHref(B.mask||B);c.replaceState(_,"",ee),s&&m&&m({action:d,location:C.location,delta:0})}function k(T){return gS(o,T)}let C={get action(){return d},get location(){return t(o,c)},listen(T){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(_g,g),m=T,()=>{o.removeEventListener(_g,g),m=null}},createHref(T){return l(o,T)},createURL:k,encodeLocation(T){let A=k(T);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:v,replace:x,go(T){return c.go(T)}};return C}function gS(t,l,r=!1){let a="http://localhost";t&&(a=t.location.origin!=="null"?t.location.origin:t.location.href),Pe(a,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:sa(l);return o=o.replace(/ $/,"%20"),!r&&tb.test(o)&&(o=a+o),new URL(o,a)}function nb(t,l,r="/"){return yS(t,l,r,!1)}function yS(t,l,r,a,o){let s=typeof l=="string"?Ji(l):l,c=Pn(s.pathname||"/",r);if(c==null)return null;let d=bS(t),m=null,p=ub(c);for(let y=0;m==null&&y<d.length;++y)m=zS(d[y],p,a);return m}function bS(t){let l=lb(t);return vS(l),l}function lb(t,l=[],r=[],a="",o=!1){let s=(c,d,m=o,p)=>{let y={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(a)&&m)return;Pe(y.relativePath.startsWith(a),`Absolute route path "${y.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(a.length)}let g=yn([a,y.relativePath]),v=r.concat(y);c.children&&c.children.length>0&&(Pe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),lb(c.children,l,v,g,m)),!(c.path==null&&!c.index)&&l.push({path:g,score:TS(g,c.index),routesMeta:v.map((x,k)=>{let[C,T]=ab(x.relativePath,x.caseSensitive,k===v.length-1);return{...x,matcher:C,compiledParams:T}})})};return t.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))s(c,d);else for(let m of ib(c.path))s(c,d,!0,m)}),l}function ib(t){let l=t.split("/");if(l.length===0)return[];let[r,...a]=l,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(a.length===0)return o?[s,""]:[s];let c=ib(a.join("/")),d=[];return d.push(...c.map(m=>m===""?s:[s,m].join("/"))),o&&d.push(...c),d.map(m=>t.startsWith("/")&&m===""?"/":m)}function vS(t){t.sort((l,r)=>l.score!==r.score?r.score-l.score:AS(l.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var xS=/^:[\w-]+$/,SS=3,kS=2,wS=1,ES=10,CS=-2,jg=t=>t==="*";function TS(t,l){let r=t.split("/"),a=r.length;return r.some(jg)&&(a+=CS),l&&(a+=kS),r.filter(o=>!jg(o)).reduce((o,s)=>o+(xS.test(s)?SS:s===""?wS:ES),a)}function AS(t,l){return t.length===l.length&&t.slice(0,-1).every((a,o)=>a===l[o])?t[t.length-1]-l[l.length-1]:0}function zS(t,l,r=!1){let{routesMeta:a}=t,o={},s="/",c=[];for(let d=0;d<a.length;++d){let m=a[d],p=d===a.length-1,y=s==="/"?l:l.slice(s.length)||"/",g={path:m.relativePath,caseSensitive:m.caseSensitive,end:p},v=m.matcher&&m.compiledParams?rb(g,y,m.matcher,m.compiledParams):ca(g,y),x=m.route;if(!v&&p&&r&&!a[a.length-1].route.index&&(v=ca({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:yn([s,v.pathname]),pathnameBase:MS(yn([s,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(s=yn([s,v.pathnameBase]))}return c}function ca(t,l){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,a]=ab(t.path,t.caseSensitive,t.end);return rb(t,l,r,a)}function rb(t,l,r,a){let o=l.match(r);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:a.reduce((p,{paramName:y,isOptional:g},v)=>{if(y==="*"){let k=d[v]||"";c=s.slice(0,s.length-k.length).replace(/(.)\/+$/,"$1")}const x=d[v];return g&&!x?p[y]=void 0:p[y]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:c,pattern:t}}function ab(t,l=!1,r=!0){vn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let a=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,m,p,y)=>{if(a.push({paramName:d,isOptional:m!=null}),m){let g=y.charAt(p+c.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(a.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),a]}function ub(t){try{return t.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return vn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),t}}function Pn(t,l){if(l==="/")return t;if(!t.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,a=t.charAt(r);return a&&a!=="/"?null:t.slice(r)||"/"}function RS(t,l="/"){let{pathname:r,search:a="",hash:o=""}=typeof t=="string"?Ji(t):t,s;return r?(r=ob(r),r.startsWith("/")?s=Lg(r.substring(1),"/"):s=Lg(r,l)):s=l,{pathname:s,search:_S(a),hash:DS(o)}}function Lg(t,l){let r=Wu(l).split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Bc(t,l,r,a){return`Cannot include a '${t}' character in a manually specified \`to.${l}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function OS(t){return t.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function Hf(t){let l=OS(t);return l.map((r,a)=>a===l.length-1?r.pathname:r.pathnameBase)}function ro(t,l,r,a=!1){let o;typeof t=="string"?o=Ji(t):(o={...t},Pe(!o.pathname||!o.pathname.includes("?"),Bc("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),Bc("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),Bc("#","search","hash",o)));let s=t===""||o.pathname==="",c=s?"/":o.pathname,d;if(c==null)d=r;else{let g=l.length-1;if(!a&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;o.pathname=v.join("/")}d=g>=0?l[g]:"/"}let m=RS(o,d),p=c&&c!=="/"&&c.endsWith("/"),y=(s||c===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var ob=t=>t.replace(/[\\/]{2,}/g,"/"),yn=t=>ob(t.join("/")),Wu=t=>t.replace(/\/+$/,""),MS=t=>Wu(t).replace(/^\/*/,"/"),_S=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,DS=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,NS=class{constructor(t,l,r,a=!1){this.status=t,this.statusText=l||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function jS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function LS(t){let l=t.map(r=>r.route.path).filter(Boolean);return yn(l)||"/"}var sb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cb(t,l){let r=t;if(typeof r!="string"||!Bf.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,o=!1;if(sb)try{let s=new URL(window.location.href),c=tb.test(r)?new URL(hS(r,s.protocol)):new URL(r),d=Pn(c.pathname,l);c.origin===s.origin&&d!=null?r=d+c.search+c.hash:o=!0}catch{vn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fb=["POST","PUT","PATCH","DELETE"];new Set(fb);var US=["GET",...fb];new Set(US);var BS=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function HS(t){try{return BS.includes(new URL(t).protocol)}catch{return!1}}var Pi=N.createContext(null);Pi.displayName="DataRouter";var ao=N.createContext(null);ao.displayName="DataRouterState";var hb=N.createContext(!1);function qS(){return N.useContext(hb)}var db=N.createContext({isTransitioning:!1});db.displayName="ViewTransition";var QS=N.createContext(new Map);QS.displayName="Fetchers";var FS=N.createContext(null);FS.displayName="Await";var $t=N.createContext(null);$t.displayName="Navigation";var ya=N.createContext(null);ya.displayName="Location";var hn=N.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var qf=N.createContext(null);qf.displayName="RouteError";var mb="REACT_ROUTER_ERROR",GS="REDIRECT",VS="ROUTE_ERROR_RESPONSE";function YS(t){if(t.startsWith(`${mb}:${GS}:{`))try{let l=JSON.parse(t.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function XS(t){if(t.startsWith(`${mb}:${VS}:{`))try{let l=JSON.parse(t.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new NS(l.status,l.statusText,l.data)}catch{}}function IS(t,{relative:l}={}){Pe(ei(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=N.useContext($t),{hash:o,pathname:s,search:c}=ba(t,{relative:l}),d=s;return r!=="/"&&(d=s==="/"?r:yn([r,s])),a.createHref({pathname:d,search:c,hash:o})}function ei(){return N.useContext(ya)!=null}function xn(){return Pe(ei(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(ya).location}function ZS(t){Pe(ei(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:l}=xn();return N.useMemo(()=>ca(t,ub(l)),[l,t])}var pb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gb(t){N.useContext($t).static||N.useLayoutEffect(t)}function Qf(){let{isDataRoute:t}=N.useContext(hn);return t?ck():KS()}function KS(){Pe(ei(),"useNavigate() may be used only in the context of a <Router> component.");let t=N.useContext(Pi),{basename:l,navigator:r}=N.useContext($t),{matches:a}=N.useContext(hn),{pathname:o}=xn(),s=JSON.stringify(Hf(a)),c=N.useRef(!1);return gb(()=>{c.current=!0}),N.useCallback((m,p={})=>{if(vn(c.current,pb),!c.current)return;if(typeof m=="number"){r.go(m);return}let y=ro(m,JSON.parse(s),o,p.relative==="path");t==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:yn([l,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[l,r,s,o,t])}var JS=N.createContext(null);function PS(t){let l=N.useContext(hn).outlet;return N.useMemo(()=>l&&N.createElement(JS.Provider,{value:t},l),[l,t])}function $S(){let{matches:t}=N.useContext(hn);return t[t.length-1]?.params??{}}function ba(t,{relative:l}={}){let{matches:r}=N.useContext(hn),{pathname:a}=xn(),o=JSON.stringify(Hf(r));return N.useMemo(()=>ro(t,JSON.parse(o),a,l==="path"),[t,o,a,l])}function WS(t,l){return yb(t,l)}function yb(t,l,r){Pe(ei(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=N.useContext($t),{matches:o}=N.useContext(hn),s=o[o.length-1],c=s?s.params:{},d=s?s.pathname:"/",m=s?s.pathnameBase:"/",p=s&&s.route;{let T=p&&p.path||"";vb(d,!p||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
8
+ `+u.stack}}var ai=Object.prototype.hasOwnProperty,ui=t.unstable_scheduleCallback,er=t.unstable_cancelCallback,yo=t.unstable_shouldYield,bo=t.unstable_requestPaint,wt=t.unstable_now,vo=t.unstable_getCurrentPriorityLevel,X=t.unstable_ImmediatePriority,ne=t.unstable_UserBlockingPriority,be=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,Be=t.unstable_IdlePriority,Qt=t.log,On=t.unstable_setDisableYieldValue,Et=null,ot=null;function Ot(e){if(typeof Qt=="function"&&On(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Et,e)}catch{}}var Ye=Math.clz32?Math.clz32:e1,el=Math.log,dn=Math.LN2;function e1(e){return e>>>=0,e===0?32:31-(el(e)/dn|0)|0}var Ea=256,Ca=262144,Ta=4194304;function Ol(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Aa(e,n,i){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=u&134217727;return S!==0?(u=S&~h,u!==0?f=Ol(u):(b&=S,b!==0?f=Ol(b):i||(i=S&~e,i!==0&&(f=Ol(i))))):(S=u&~h,S!==0?f=Ol(S):b!==0?f=Ol(b):i||(i=u&~e,i!==0&&(f=Ol(i)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,i=n&-n,h>=i||h===32&&(i&4194048)!==0)?n:f}function tr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function t1(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mh(){var e=Ta;return Ta<<=1,(Ta&62914560)===0&&(Ta=4194304),e}function xo(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function nr(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function n1(e,n,i,u,f,h){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var S=e.entanglements,z=e.expirationTimes,U=e.hiddenUpdates;for(i=b&~i;0<i;){var G=31-Ye(i),Z=1<<G;S[G]=0,z[G]=-1;var H=U[G];if(H!==null)for(U[G]=null,G=0;G<H.length;G++){var F=H[G];F!==null&&(F.lane&=-536870913)}i&=~Z}u!==0&&gh(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function gh(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Ye(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|i&261930}function yh(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var u=31-Ye(i),f=1<<u;f&n|e[u]&n&&(e[u]|=n),i&=~f}}function bh(e,n){var i=n&-n;return i=(i&42)!==0?1:So(i),(i&(e.suspendedLanes|n))!==0?0:i}function So(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ko(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vh(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:ig(e.type))}function xh(e,n){var i=K.p;try{return K.p=e,n()}finally{K.p=i}}var tl=Math.random().toString(36).slice(2),dt="__reactFiber$"+tl,Mt="__reactProps$"+tl,oi="__reactContainer$"+tl,wo="__reactEvents$"+tl,l1="__reactListeners$"+tl,i1="__reactHandles$"+tl,Sh="__reactResources$"+tl,lr="__reactMarker$"+tl;function Eo(e){delete e[dt],delete e[Mt],delete e[wo],delete e[l1],delete e[i1]}function si(e){var n=e[dt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[oi]||i[dt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Fm(e);e!==null;){if(i=e[dt])return i;e=Fm(e)}return n}e=i,i=e.parentNode}return null}function ci(e){if(e=e[dt]||e[oi]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function ir(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function fi(e){var n=e[Sh];return n||(n=e[Sh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ft(e){e[lr]=!0}var kh=new Set,wh={};function Ml(e,n){hi(e,n),hi(e+"Capture",n)}function hi(e,n){for(wh[e]=n,e=0;e<n.length;e++)kh.add(n[e])}var r1=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]*$"),Eh={},Ch={};function a1(e){return ai.call(Ch,e)?!0:ai.call(Eh,e)?!1:r1.test(e)?Ch[e]=!0:(Eh[e]=!0,!1)}function za(e,n,i){if(a1(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Ra(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function Mn(e,n,i,u){if(u===null)e.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+u)}}function Wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Th(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function u1(e,n,i){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){i=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Co(e){if(!e._valueTracker){var n=Th(e)?"checked":"value";e._valueTracker=u1(e,n,""+e[n])}}function Ah(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),u="";return e&&(u=Th(e)?e.checked?"true":"false":e.value),e=u,e!==i?(n.setValue(e),!0):!1}function Oa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var o1=/[\n"\\]/g;function en(e){return e.replace(o1,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function To(e,n,i,u,f,h,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Wt(n)):e.value!==""+Wt(n)&&(e.value=""+Wt(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Ao(e,b,Wt(n)):i!=null?Ao(e,b,Wt(i)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Wt(S):e.removeAttribute("name")}function zh(e,n,i,u,f,h,b,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Co(e);return}i=i!=null?""+Wt(i):"",n=n!=null?""+Wt(n):i,S||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=S?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Co(e)}function Ao(e,n,i){n==="number"&&Oa(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function di(e,n,i,u){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&u&&(e[i].defaultSelected=!0)}else{for(i=""+Wt(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Rh(e,n,i){if(n!=null&&(n=""+Wt(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+Wt(i):""}function Oh(e,n,i,u){if(n==null){if(u!=null){if(i!=null)throw Error(a(92));if(P(u)){if(1<u.length)throw Error(a(93));u=u[0]}i=u}i==null&&(i=""),n=i}i=Wt(n),e.defaultValue=i,u=e.textContent,u===i&&u!==""&&u!==null&&(e.value=u),Co(e)}function pi(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var s1=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 Mh(e,n,i){var u=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,i):typeof i!="number"||i===0||s1.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function _h(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var u in i)!i.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&i[f]!==u&&Mh(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&Mh(e,h,n[h])}function zo(e){if(e.indexOf("-")===-1)return!1;switch(e){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 c1=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"]]),f1=/^[\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 Ma(e){return f1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}var Ro=null;function Oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mi=null,gi=null;function Dh(e){var n=ci(e);if(n&&(e=n.stateNode)){var i=e[Mt]||null;e:switch(e=n.stateNode,n.type){case"input":if(To(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+en(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var u=i[n];if(u!==e&&u.form===e.form){var f=u[Mt]||null;if(!f)throw Error(a(90));To(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)u=i[n],u.form===e.form&&Ah(u)}break e;case"textarea":Rh(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&di(e,!!i.multiple,n,!1)}}}var Mo=!1;function Nh(e,n,i){if(Mo)return e(n,i);Mo=!0;try{var u=e(n);return u}finally{if(Mo=!1,(mi!==null||gi!==null)&&(bu(),mi&&(n=mi,e=gi,gi=mi=null,Dh(n),e)))for(n=0;n<e.length;n++)Dh(e[n])}}function rr(e,n){var i=e.stateNode;if(i===null)return null;var u=i[Mt]||null;if(u===null)return null;i=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=!1;if(Dn)try{var ar={};Object.defineProperty(ar,"passive",{get:function(){_o=!0}}),window.addEventListener("test",ar,ar),window.removeEventListener("test",ar,ar)}catch{_o=!1}var nl=null,Do=null,_a=null;function jh(){if(_a)return _a;var e,n=Do,i=n.length,u,f="value"in nl?nl.value:nl.textContent,h=f.length;for(e=0;e<i&&n[e]===f[e];e++);var b=i-e;for(u=1;u<=b&&n[i-u]===f[h-u];u++);return _a=f.slice(e,1<u?1-u:void 0)}function Da(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Na(){return!0}function Lh(){return!1}function _t(e){function n(i,u,f,h,b){this._reactName=i,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(i=e[S],this[S]=i?i(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Na:Lh,this.isPropagationStopped=Lh,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Na)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Na)},persist:function(){},isPersistent:Na}),n}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ja=_t(_l),ur=g({},_l,{view:0,detail:0}),h1=_t(ur),No,jo,or,La=g({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==or&&(or&&e.type==="mousemove"?(No=e.screenX-or.screenX,jo=e.screenY-or.screenY):jo=No=0,or=e),No)},movementY:function(e){return"movementY"in e?e.movementY:jo}}),Uh=_t(La),d1=g({},La,{dataTransfer:0}),p1=_t(d1),m1=g({},ur,{relatedTarget:0}),Lo=_t(m1),g1=g({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),y1=_t(g1),b1=g({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v1=_t(b1),x1=g({},_l,{data:0}),Bh=_t(x1),S1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k1={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"},w1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E1(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=w1[e])?!!n[e]:!1}function Uo(){return E1}var C1=g({},ur,{key:function(e){if(e.key){var n=S1[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Da(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?k1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uo,charCode:function(e){return e.type==="keypress"?Da(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Da(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T1=_t(C1),A1=g({},La,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hh=_t(A1),z1=g({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uo}),R1=_t(z1),O1=g({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),M1=_t(O1),_1=g({},La,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),D1=_t(_1),N1=g({},_l,{newState:0,oldState:0}),j1=_t(N1),L1=[9,13,27,32],Bo=Dn&&"CompositionEvent"in window,sr=null;Dn&&"documentMode"in document&&(sr=document.documentMode);var U1=Dn&&"TextEvent"in window&&!sr,qh=Dn&&(!Bo||sr&&8<sr&&11>=sr),Qh=" ",Fh=!1;function Gh(e,n){switch(e){case"keyup":return L1.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yi=!1;function B1(e,n){switch(e){case"compositionend":return Vh(n);case"keypress":return n.which!==32?null:(Fh=!0,Qh);case"textInput":return e=n.data,e===Qh&&Fh?null:e;default:return null}}function H1(e,n){if(yi)return e==="compositionend"||!Bo&&Gh(e,n)?(e=jh(),_a=Do=nl=null,yi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return qh&&n.locale!=="ko"?null:n.data;default:return null}}var q1={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 Yh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!q1[e.type]:n==="textarea"}function Xh(e,n,i,u){mi?gi?gi.push(u):gi=[u]:mi=u,n=Cu(n,"onChange"),0<n.length&&(i=new ja("onChange","change",null,i,u),e.push({event:i,listeners:n}))}var cr=null,fr=null;function Q1(e){zm(e,0)}function Ua(e){var n=ir(e);if(Ah(n))return e}function Ih(e,n){if(e==="change")return n}var Zh=!1;if(Dn){var Ho;if(Dn){var qo="oninput"in document;if(!qo){var Kh=document.createElement("div");Kh.setAttribute("oninput","return;"),qo=typeof Kh.oninput=="function"}Ho=qo}else Ho=!1;Zh=Ho&&(!document.documentMode||9<document.documentMode)}function Jh(){cr&&(cr.detachEvent("onpropertychange",Ph),fr=cr=null)}function Ph(e){if(e.propertyName==="value"&&Ua(fr)){var n=[];Xh(n,fr,e,Oo(e)),Nh(Q1,n)}}function F1(e,n,i){e==="focusin"?(Jh(),cr=n,fr=i,cr.attachEvent("onpropertychange",Ph)):e==="focusout"&&Jh()}function G1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ua(fr)}function V1(e,n){if(e==="click")return Ua(n)}function Y1(e,n){if(e==="input"||e==="change")return Ua(n)}function X1(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ft=typeof Object.is=="function"?Object.is:X1;function hr(e,n){if(Ft(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),u=Object.keys(n);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var f=i[u];if(!ai.call(n,f)||!Ft(e[f],n[f]))return!1}return!0}function $h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wh(e,n){var i=$h(e);e=0;for(var u;i;){if(i.nodeType===3){if(u=e+i.textContent.length,e<=n&&u>=n)return{node:i,offset:n-e};e=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=$h(i)}}function ed(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ed(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function td(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Oa(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Oa(e.document)}return n}function Qo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var I1=Dn&&"documentMode"in document&&11>=document.documentMode,bi=null,Fo=null,dr=null,Go=!1;function nd(e,n,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Go||bi==null||bi!==Oa(u)||(u=bi,"selectionStart"in u&&Qo(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),dr&&hr(dr,u)||(dr=u,u=Cu(Fo,"onSelect"),0<u.length&&(n=new ja("onSelect","select",null,n,i),e.push({event:n,listeners:u}),n.target=bi)))}function Dl(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var vi={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionrun:Dl("Transition","TransitionRun"),transitionstart:Dl("Transition","TransitionStart"),transitioncancel:Dl("Transition","TransitionCancel"),transitionend:Dl("Transition","TransitionEnd")},Vo={},ld={};Dn&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function Nl(e){if(Vo[e])return Vo[e];if(!vi[e])return e;var n=vi[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in ld)return Vo[e]=n[i];return e}var id=Nl("animationend"),rd=Nl("animationiteration"),ad=Nl("animationstart"),Z1=Nl("transitionrun"),K1=Nl("transitionstart"),J1=Nl("transitioncancel"),ud=Nl("transitionend"),od=new Map,Yo="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(" ");Yo.push("scrollEnd");function pn(e,n){od.set(e,n),Ml(n,[e])}var Ba=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},tn=[],xi=0,Xo=0;function Ha(){for(var e=xi,n=Xo=xi=0;n<e;){var i=tn[n];tn[n++]=null;var u=tn[n];tn[n++]=null;var f=tn[n];tn[n++]=null;var h=tn[n];if(tn[n++]=null,u!==null&&f!==null){var b=u.pending;b===null?f.next=f:(f.next=b.next,b.next=f),u.pending=f}h!==0&&sd(i,f,h)}}function qa(e,n,i,u){tn[xi++]=e,tn[xi++]=n,tn[xi++]=i,tn[xi++]=u,Xo|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Io(e,n,i,u){return qa(e,n,i,u),Qa(e)}function jl(e,n){return qa(e,null,null,n),Qa(e)}function sd(e,n,i){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i);for(var f=!1,h=e.return;h!==null;)h.childLanes|=i,u=h.alternate,u!==null&&(u.childLanes|=i),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Ye(i),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=i|536870912),h):null}function Qa(e){if(50<jr)throw jr=0,nc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Si={};function P1(e,n,i,u){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,n,i,u){return new P1(e,n,i,u)}function Zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,n){var i=e.alternate;return i===null?(i=Gt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function cd(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Fa(e,n,i,u,f,h){var b=0;if(u=e,typeof e=="function")Zo(e)&&(b=1);else if(typeof e=="string")b=nx(e,i,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Gt(31,i,n,f),e.elementType=ae,e.lanes=h,e;case C:return Ll(i.children,f,h,n);case T:b=8,f|=24;break;case A:return e=Gt(12,i,n,f|2),e.elementType=A,e.lanes=h,e;case W:return e=Gt(13,i,n,f),e.elementType=W,e.lanes=h,e;case Q:return e=Gt(19,i,n,f),e.elementType=Q,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:b=10;break e;case B:b=9;break e;case ee:b=11;break e;case J:b=14;break e;case Y:b=16,u=null;break e}b=29,i=Error(a(130,e===null?"null":typeof e,"")),u=null}return n=Gt(b,i,n,f),n.elementType=e,n.type=u,n.lanes=h,n}function Ll(e,n,i,u){return e=Gt(7,e,u,n),e.lanes=i,e}function Ko(e,n,i){return e=Gt(6,e,null,n),e.lanes=i,e}function fd(e){var n=Gt(18,null,null,0);return n.stateNode=e,n}function Jo(e,n,i){return n=Gt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var hd=new WeakMap;function nn(e,n){if(typeof e=="object"&&e!==null){var i=hd.get(e);return i!==void 0?i:(n={value:e,source:n,stack:wa(n)},hd.set(e,n),n)}return{value:e,source:n,stack:wa(n)}}var ki=[],wi=0,Ga=null,pr=0,ln=[],rn=0,ll=null,wn=1,En="";function jn(e,n){ki[wi++]=pr,ki[wi++]=Ga,Ga=e,pr=n}function dd(e,n,i){ln[rn++]=wn,ln[rn++]=En,ln[rn++]=ll,ll=e;var u=wn;e=En;var f=32-Ye(u)-1;u&=~(1<<f),i+=1;var h=32-Ye(n)+f;if(30<h){var b=f-f%5;h=(u&(1<<b)-1).toString(32),u>>=b,f-=b,wn=1<<32-Ye(n)+f|i<<f|u,En=h+e}else wn=1<<h|i<<f|u,En=e}function Po(e){e.return!==null&&(jn(e,1),dd(e,1,0))}function $o(e){for(;e===Ga;)Ga=ki[--wi],ki[wi]=null,pr=ki[--wi],ki[wi]=null;for(;e===ll;)ll=ln[--rn],ln[rn]=null,En=ln[--rn],ln[rn]=null,wn=ln[--rn],ln[rn]=null}function pd(e,n){ln[rn++]=wn,ln[rn++]=En,ln[rn++]=ll,wn=n.id,En=n.overflow,ll=e}var pt=null,Ke=null,De=!1,il=null,an=!1,Wo=Error(a(519));function rl(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mr(nn(n,e)),Wo}function md(e){var n=e.stateNode,i=e.type,u=e.memoizedProps;switch(n[dt]=e,n[Mt]=u,i){case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":case"embed":Re("load",n);break;case"video":case"audio":for(i=0;i<Ur.length;i++)Re(Ur[i],n);break;case"source":Re("error",n);break;case"img":case"image":case"link":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"input":Re("invalid",n),zh(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Re("invalid",n);break;case"textarea":Re("invalid",n),Oh(n,u.value,u.defaultValue,u.children)}i=u.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||u.suppressHydrationWarning===!0||_m(n.textContent,i)?(u.popover!=null&&(Re("beforetoggle",n),Re("toggle",n)),u.onScroll!=null&&Re("scroll",n),u.onScrollEnd!=null&&Re("scrollend",n),u.onClick!=null&&(n.onclick=_n),n=!0):n=!1,n||rl(e,!0)}function gd(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:an=!1;return;case 27:case 3:an=!0;return;default:pt=pt.return}}function Ei(e){if(e!==pt)return!1;if(!De)return gd(e),De=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||yc(e.type,e.memoizedProps)),i=!i),i&&Ke&&rl(e),gd(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Ke=Qm(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Ke=Qm(e)}else n===27?(n=Ke,vl(e.type)?(e=kc,kc=null,Ke=e):Ke=n):Ke=pt?on(e.stateNode.nextSibling):null;return!0}function Ul(){Ke=pt=null,De=!1}function es(){var e=il;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),il=null),e}function mr(e){il===null?il=[e]:il.push(e)}var ts=O(null),Bl=null,Ln=null;function al(e,n,i){E(ts,n._currentValue),n._currentValue=i}function Un(e){e._currentValue=ts.current,V(ts)}function ns(e,n,i){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===i)break;e=e.return}}function ls(e,n,i,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=f;for(var z=0;z<n.length;z++)if(S.context===n[z]){h.lanes|=i,S=h.alternate,S!==null&&(S.lanes|=i),ns(h.return,i,e),u||(b=null);break e}h=S.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=i,h=b.alternate,h!==null&&(h.lanes|=i),ns(b,i,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function Ci(e,n,i,u){e=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var S=f.type;Ft(f.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(f===Ee.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Fr):e=[Fr])}f=f.return}e!==null&&ls(n,e,i,u),n.flags|=262144}function Va(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hl(e){Bl=e,Ln=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return yd(Bl,e)}function Ya(e,n){return Bl===null&&Hl(e),yd(e,n)}function yd(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Ln===null){if(e===null)throw Error(a(308));Ln=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Ln=Ln.next=n;return i}var $1=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},W1=t.unstable_scheduleCallback,e0=t.unstable_NormalPriority,lt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function is(){return{controller:new $1,data:new Map,refCount:0}}function gr(e){e.refCount--,e.refCount===0&&W1(e0,function(){e.controller.abort()})}var yr=null,rs=0,Ti=0,Ai=null;function t0(e,n){if(yr===null){var i=yr=[];rs=0,Ti=oc(),Ai={status:"pending",value:void 0,then:function(u){i.push(u)}}}return rs++,n.then(bd,bd),n}function bd(){if(--rs===0&&yr!==null){Ai!==null&&(Ai.status="fulfilled");var e=yr;yr=null,Ti=0,Ai=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function n0(e,n){var i=[],u={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),u}var vd=j.S;j.S=function(e,n){nm=wt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&t0(e,n),vd!==null&&vd(e,n)};var ql=O(null);function as(){var e=ql.current;return e!==null?e:Xe.pooledCache}function Xa(e,n){n===null?E(ql,ql.current):E(ql,n.pool)}function xd(){var e=as();return e===null?null:{parent:lt._currentValue,pool:e}}var zi=Error(a(460)),us=Error(a(474)),Ia=Error(a(542)),Za={then:function(){}};function Sd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function kd(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(_n,_n),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ed(e),e;default:if(typeof n.status=="string")n.then(_n,_n);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ed(e),e}throw Fl=n,zi}}function Ql(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Fl=i,zi):i}}var Fl=null;function wd(){if(Fl===null)throw Error(a(459));var e=Fl;return Fl=null,e}function Ed(e){if(e===zi||e===Ia)throw Error(a(483))}var Ri=null,br=0;function Ka(e){var n=br;return br+=1,Ri===null&&(Ri=[]),kd(Ri,e,n)}function vr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ja(e,n){throw n.$$typeof===v?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Cd(e){function n(D,M){if(e){var L=D.deletions;L===null?(D.deletions=[M],D.flags|=16):L.push(M)}}function i(D,M){if(!e)return null;for(;M!==null;)n(D,M),M=M.sibling;return null}function u(D){for(var M=new Map;D!==null;)D.key!==null?M.set(D.key,D):M.set(D.index,D),D=D.sibling;return M}function f(D,M){return D=Nn(D,M),D.index=0,D.sibling=null,D}function h(D,M,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<M?(D.flags|=67108866,M):L):(D.flags|=67108866,M)):(D.flags|=1048576,M)}function b(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,M,L,I){return M===null||M.tag!==6?(M=Ko(L,D.mode,I),M.return=D,M):(M=f(M,L),M.return=D,M)}function z(D,M,L,I){var pe=L.type;return pe===C?G(D,M,L.props.children,I,L.key):M!==null&&(M.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Y&&Ql(pe)===M.type)?(M=f(M,L.props),vr(M,L),M.return=D,M):(M=Fa(L.type,L.key,L.props,null,D.mode,I),vr(M,L),M.return=D,M)}function U(D,M,L,I){return M===null||M.tag!==4||M.stateNode.containerInfo!==L.containerInfo||M.stateNode.implementation!==L.implementation?(M=Jo(L,D.mode,I),M.return=D,M):(M=f(M,L.children||[]),M.return=D,M)}function G(D,M,L,I,pe){return M===null||M.tag!==7?(M=Ll(L,D.mode,I,pe),M.return=D,M):(M=f(M,L),M.return=D,M)}function Z(D,M,L){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Ko(""+M,D.mode,L),M.return=D,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return L=Fa(M.type,M.key,M.props,null,D.mode,L),vr(L,M),L.return=D,L;case k:return M=Jo(M,D.mode,L),M.return=D,M;case Y:return M=Ql(M),Z(D,M,L)}if(P(M)||te(M))return M=Ll(M,D.mode,L,null),M.return=D,M;if(typeof M.then=="function")return Z(D,Ka(M),L);if(M.$$typeof===_)return Z(D,Ya(D,M),L);Ja(D,M)}return null}function H(D,M,L,I){var pe=M!==null?M.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return pe!==null?null:S(D,M,""+L,I);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case x:return L.key===pe?z(D,M,L,I):null;case k:return L.key===pe?U(D,M,L,I):null;case Y:return L=Ql(L),H(D,M,L,I)}if(P(L)||te(L))return pe!==null?null:G(D,M,L,I,null);if(typeof L.then=="function")return H(D,M,Ka(L),I);if(L.$$typeof===_)return H(D,M,Ya(D,L),I);Ja(D,L)}return null}function F(D,M,L,I,pe){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return D=D.get(L)||null,S(M,D,""+I,pe);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case x:return D=D.get(I.key===null?L:I.key)||null,z(M,D,I,pe);case k:return D=D.get(I.key===null?L:I.key)||null,U(M,D,I,pe);case Y:return I=Ql(I),F(D,M,L,I,pe)}if(P(I)||te(I))return D=D.get(L)||null,G(M,D,I,pe,null);if(typeof I.then=="function")return F(D,M,L,Ka(I),pe);if(I.$$typeof===_)return F(D,M,L,Ya(M,I),pe);Ja(M,I)}return null}function fe(D,M,L,I){for(var pe=null,je=null,de=M,Ce=M=0,_e=null;de!==null&&Ce<L.length;Ce++){de.index>Ce?(_e=de,de=null):_e=de.sibling;var Le=H(D,de,L[Ce],I);if(Le===null){de===null&&(de=_e);break}e&&de&&Le.alternate===null&&n(D,de),M=h(Le,M,Ce),je===null?pe=Le:je.sibling=Le,je=Le,de=_e}if(Ce===L.length)return i(D,de),De&&jn(D,Ce),pe;if(de===null){for(;Ce<L.length;Ce++)de=Z(D,L[Ce],I),de!==null&&(M=h(de,M,Ce),je===null?pe=de:je.sibling=de,je=de);return De&&jn(D,Ce),pe}for(de=u(de);Ce<L.length;Ce++)_e=F(de,D,Ce,L[Ce],I),_e!==null&&(e&&_e.alternate!==null&&de.delete(_e.key===null?Ce:_e.key),M=h(_e,M,Ce),je===null?pe=_e:je.sibling=_e,je=_e);return e&&de.forEach(function(El){return n(D,El)}),De&&jn(D,Ce),pe}function ge(D,M,L,I){if(L==null)throw Error(a(151));for(var pe=null,je=null,de=M,Ce=M=0,_e=null,Le=L.next();de!==null&&!Le.done;Ce++,Le=L.next()){de.index>Ce?(_e=de,de=null):_e=de.sibling;var El=H(D,de,Le.value,I);if(El===null){de===null&&(de=_e);break}e&&de&&El.alternate===null&&n(D,de),M=h(El,M,Ce),je===null?pe=El:je.sibling=El,je=El,de=_e}if(Le.done)return i(D,de),De&&jn(D,Ce),pe;if(de===null){for(;!Le.done;Ce++,Le=L.next())Le=Z(D,Le.value,I),Le!==null&&(M=h(Le,M,Ce),je===null?pe=Le:je.sibling=Le,je=Le);return De&&jn(D,Ce),pe}for(de=u(de);!Le.done;Ce++,Le=L.next())Le=F(de,D,Ce,Le.value,I),Le!==null&&(e&&Le.alternate!==null&&de.delete(Le.key===null?Ce:Le.key),M=h(Le,M,Ce),je===null?pe=Le:je.sibling=Le,je=Le);return e&&de.forEach(function(dx){return n(D,dx)}),De&&jn(D,Ce),pe}function Ge(D,M,L,I){if(typeof L=="object"&&L!==null&&L.type===C&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case x:e:{for(var pe=L.key;M!==null;){if(M.key===pe){if(pe=L.type,pe===C){if(M.tag===7){i(D,M.sibling),I=f(M,L.props.children),I.return=D,D=I;break e}}else if(M.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Y&&Ql(pe)===M.type){i(D,M.sibling),I=f(M,L.props),vr(I,L),I.return=D,D=I;break e}i(D,M);break}else n(D,M);M=M.sibling}L.type===C?(I=Ll(L.props.children,D.mode,I,L.key),I.return=D,D=I):(I=Fa(L.type,L.key,L.props,null,D.mode,I),vr(I,L),I.return=D,D=I)}return b(D);case k:e:{for(pe=L.key;M!==null;){if(M.key===pe)if(M.tag===4&&M.stateNode.containerInfo===L.containerInfo&&M.stateNode.implementation===L.implementation){i(D,M.sibling),I=f(M,L.children||[]),I.return=D,D=I;break e}else{i(D,M);break}else n(D,M);M=M.sibling}I=Jo(L,D.mode,I),I.return=D,D=I}return b(D);case Y:return L=Ql(L),Ge(D,M,L,I)}if(P(L))return fe(D,M,L,I);if(te(L)){if(pe=te(L),typeof pe!="function")throw Error(a(150));return L=pe.call(L),ge(D,M,L,I)}if(typeof L.then=="function")return Ge(D,M,Ka(L),I);if(L.$$typeof===_)return Ge(D,M,Ya(D,L),I);Ja(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,M!==null&&M.tag===6?(i(D,M.sibling),I=f(M,L),I.return=D,D=I):(i(D,M),I=Ko(L,D.mode,I),I.return=D,D=I),b(D)):i(D,M)}return function(D,M,L,I){try{br=0;var pe=Ge(D,M,L,I);return Ri=null,pe}catch(de){if(de===zi||de===Ia)throw de;var je=Gt(29,de,null,D.mode);return je.lanes=I,je.return=D,je}}}var Gl=Cd(!0),Td=Cd(!1),ul=!1;function os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ss(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ol(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sl(e,n,i){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Ue&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=Qa(e),sd(e,null,i),n}return qa(e,u,n,i),Qa(e)}function xr(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,yh(e,i)}}function cs(e,n){var i=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var f=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,i=i.next}while(i!==null);h===null?f=h=n:h=h.next=n}else f=h=n;i={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var fs=!1;function Sr(){if(fs){var e=Ai;if(e!==null)throw e}}function kr(e,n,i,u){fs=!1;var f=e.updateQueue;ul=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var z=S,U=z.next;z.next=null,b===null?h=U:b.next=U,b=z;var G=e.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==b&&(S===null?G.firstBaseUpdate=U:S.next=U,G.lastBaseUpdate=z))}if(h!==null){var Z=f.baseState;b=0,G=U=z=null,S=h;do{var H=S.lane&-536870913,F=H!==S.lane;if(F?(Me&H)===H:(u&H)===H){H!==0&&H===Ti&&(fs=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var fe=e,ge=S;H=n;var Ge=i;switch(ge.tag){case 1:if(fe=ge.payload,typeof fe=="function"){Z=fe.call(Ge,Z,H);break e}Z=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ge.payload,H=typeof fe=="function"?fe.call(Ge,Z,H):fe,H==null)break e;Z=g({},Z,H);break e;case 2:ul=!0}}H=S.callback,H!==null&&(e.flags|=64,F&&(e.flags|=8192),F=f.callbacks,F===null?f.callbacks=[H]:F.push(H))}else F={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(U=G=F,z=Z):G=G.next=F,b|=H;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;F=S,S=F.next,F.next=null,f.lastBaseUpdate=F,f.shared.pending=null}}while(!0);G===null&&(z=Z),f.baseState=z,f.firstBaseUpdate=U,f.lastBaseUpdate=G,h===null&&(f.shared.lanes=0),pl|=b,e.lanes=b,e.memoizedState=Z}}function Ad(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function zd(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Ad(i[e],n)}var Oi=O(null),Pa=O(0);function Rd(e,n){e=Xn,E(Pa,e),E(Oi,n),Xn=e|n.baseLanes}function hs(){E(Pa,Xn),E(Oi,Oi.current)}function ds(){Xn=Pa.current,V(Oi),V(Pa)}var Vt=O(null),un=null;function cl(e){var n=e.alternate;E(tt,tt.current&1),E(Vt,e),un===null&&(n===null||Oi.current!==null||n.memoizedState!==null)&&(un=e)}function ps(e){E(tt,tt.current),E(Vt,e),un===null&&(un=e)}function Od(e){e.tag===22?(E(tt,tt.current),E(Vt,e),un===null&&(un=e)):fl()}function fl(){E(tt,tt.current),E(Vt,Vt.current)}function Yt(e){V(Vt),un===e&&(un=null),V(tt)}var tt=O(0);function $a(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||xc(i)||Sc(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Bn=0,we=null,Qe=null,it=null,Wa=!1,Mi=!1,Vl=!1,eu=0,wr=0,_i=null,l0=0;function We(){throw Error(a(321))}function ms(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Ft(e[i],n[i]))return!1;return!0}function gs(e,n,i,u,f,h){return Bn=h,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,j.H=e===null||e.memoizedState===null?dp:Ms,Vl=!1,h=i(u,f),Vl=!1,Mi&&(h=_d(n,i,u,f)),Md(e),h}function Md(e){j.H=Tr;var n=Qe!==null&&Qe.next!==null;if(Bn=0,it=Qe=we=null,Wa=!1,wr=0,_i=null,n)throw Error(a(300));e===null||rt||(e=e.dependencies,e!==null&&Va(e)&&(rt=!0))}function _d(e,n,i,u){we=e;var f=0;do{if(Mi&&(_i=null),wr=0,Mi=!1,25<=f)throw Error(a(301));if(f+=1,it=Qe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}j.H=pp,h=n(i,u)}while(Mi);return h}function i0(){var e=j.H,n=e.useState()[0];return n=typeof n.then=="function"?Er(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(we.flags|=1024),n}function ys(){var e=eu!==0;return eu=0,e}function bs(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function vs(e){if(Wa){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Wa=!1}Bn=0,it=Qe=we=null,Mi=!1,wr=eu=0,_i=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?we.memoizedState=it=e:it=it.next=e,it}function nt(){if(Qe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=it===null?we.memoizedState:it.next;if(n!==null)it=n,Qe=e;else{if(e===null)throw we.alternate===null?Error(a(467)):Error(a(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},it===null?we.memoizedState=it=e:it=it.next=e}return it}function tu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Er(e){var n=wr;return wr+=1,_i===null&&(_i=[]),e=kd(_i,e,n),n=we,(it===null?n.memoizedState:it.next)===null&&(n=n.alternate,j.H=n===null||n.memoizedState===null?dp:Ms),e}function nu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Er(e);if(e.$$typeof===_)return mt(e)}throw Error(a(438,String(e)))}function xs(e){var n=null,i=we.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var u=we.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=tu(),we.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),u=0;u<e;u++)i[u]=q;return n.index++,i}function Hn(e,n){return typeof n=="function"?n(e):n}function lu(e){var n=nt();return Ss(n,Qe,e)}function Ss(e,n,i){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var S=b=null,z=null,U=n,G=!1;do{var Z=U.lane&-536870913;if(Z!==U.lane?(Me&Z)===Z:(Bn&Z)===Z){var H=U.revertLane;if(H===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Z===Ti&&(G=!0);else if((Bn&H)===H){U=U.next,H===Ti&&(G=!0);continue}else Z={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},z===null?(S=z=Z,b=h):z=z.next=Z,we.lanes|=H,pl|=H;Z=U.action,Vl&&i(h,Z),h=U.hasEagerState?U.eagerState:i(h,Z)}else H={lane:Z,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},z===null?(S=z=H,b=h):z=z.next=H,we.lanes|=Z,pl|=Z;U=U.next}while(U!==null&&U!==n);if(z===null?b=h:z.next=S,!Ft(h,e.memoizedState)&&(rt=!0,G&&(i=Ai,i!==null)))throw i;e.memoizedState=h,e.baseState=b,e.baseQueue=z,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function ks(e){var n=nt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var u=i.dispatch,f=i.pending,h=n.memoizedState;if(f!==null){i.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);Ft(h,n.memoizedState)||(rt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,u]}function Dd(e,n,i){var u=we,f=nt(),h=De;if(h){if(i===void 0)throw Error(a(407));i=i()}else i=n();var b=!Ft((Qe||f).memoizedState,i);if(b&&(f.memoizedState=i,rt=!0),f=f.queue,Cs(Ld.bind(null,u,f,e),[e]),f.getSnapshot!==n||b||it!==null&&it.memoizedState.tag&1){if(u.flags|=2048,Di(9,{destroy:void 0},jd.bind(null,u,f,i,n),null),Xe===null)throw Error(a(349));h||(Bn&127)!==0||Nd(u,n,i)}return i}function Nd(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=we.updateQueue,n===null?(n=tu(),we.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function jd(e,n,i,u){n.value=i,n.getSnapshot=u,Ud(n)&&Bd(e)}function Ld(e,n,i){return i(function(){Ud(n)&&Bd(e)})}function Ud(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Ft(e,i)}catch{return!0}}function Bd(e){var n=jl(e,2);n!==null&&Ut(n,e,2)}function ws(e){var n=Ct();if(typeof e=="function"){var i=e;if(e=i(),Vl){Ot(!0);try{i()}finally{Ot(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:e},n}function Hd(e,n,i,u){return e.baseState=i,Ss(e,Qe,typeof u=="function"?u:Hn)}function r0(e,n,i,u,f){if(au(e))throw Error(a(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};j.T!==null?i(!0):h.isTransition=!1,u(h),i=n.pending,i===null?(h.next=n.pending=h,qd(n,h)):(h.next=i.next,n.pending=i.next=h)}}function qd(e,n){var i=n.action,u=n.payload,f=e.state;if(n.isTransition){var h=j.T,b={};j.T=b;try{var S=i(f,u),z=j.S;z!==null&&z(b,S),Qd(e,n,S)}catch(U){Es(e,n,U)}finally{h!==null&&b.types!==null&&(h.types=b.types),j.T=h}}else try{h=i(f,u),Qd(e,n,h)}catch(U){Es(e,n,U)}}function Qd(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(u){Fd(e,n,u)},function(u){return Es(e,n,u)}):Fd(e,n,i)}function Fd(e,n,i){n.status="fulfilled",n.value=i,Gd(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,qd(e,i)))}function Es(e,n,i){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=i,Gd(n),n=n.next;while(n!==u)}e.action=null}function Gd(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Vd(e,n){return n}function Yd(e,n){if(De){var i=Xe.formState;if(i!==null){e:{var u=we;if(De){if(Ke){t:{for(var f=Ke,h=an;f.nodeType!==8;){if(!h){f=null;break t}if(f=on(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Ke=on(f.nextSibling),u=f.data==="F!";break e}}rl(u)}u=!1}u&&(n=i[0])}}return i=Ct(),i.memoizedState=i.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vd,lastRenderedState:n},i.queue=u,i=cp.bind(null,we,u),u.dispatch=i,u=ws(!1),h=Os.bind(null,we,!1,u.queue),u=Ct(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,i=r0.bind(null,we,f,h,i),f.dispatch=i,u.memoizedState=e,[n,i,!1]}function Xd(e){var n=nt();return Id(n,Qe,e)}function Id(e,n,i){if(n=Ss(e,n,Vd)[0],e=lu(Hn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Er(n)}catch(b){throw b===zi?Ia:b}else u=n;n=nt();var f=n.queue,h=f.dispatch;return i!==n.memoizedState&&(we.flags|=2048,Di(9,{destroy:void 0},a0.bind(null,f,i),null)),[u,h,e]}function a0(e,n){e.action=n}function Zd(e){var n=nt(),i=Qe;if(i!==null)return Id(n,i,e);nt(),n=n.memoizedState,i=nt();var u=i.queue.dispatch;return i.memoizedState=e,[n,u,!1]}function Di(e,n,i,u){return e={tag:e,create:i,deps:u,inst:n,next:null},n=we.updateQueue,n===null&&(n=tu(),we.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(u=i.next,i.next=e,e.next=u,n.lastEffect=e),e}function Kd(){return nt().memoizedState}function iu(e,n,i,u){var f=Ct();we.flags|=e,f.memoizedState=Di(1|n,{destroy:void 0},i,u===void 0?null:u)}function ru(e,n,i,u){var f=nt();u=u===void 0?null:u;var h=f.memoizedState.inst;Qe!==null&&u!==null&&ms(u,Qe.memoizedState.deps)?f.memoizedState=Di(n,h,i,u):(we.flags|=e,f.memoizedState=Di(1|n,h,i,u))}function Jd(e,n){iu(8390656,8,e,n)}function Cs(e,n){ru(2048,8,e,n)}function u0(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=tu(),we.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Pd(e){var n=nt().memoizedState;return u0({ref:n,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function $d(e,n){return ru(4,2,e,n)}function Wd(e,n){return ru(4,4,e,n)}function ep(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function tp(e,n,i){i=i!=null?i.concat([e]):null,ru(4,4,ep.bind(null,n,e),i)}function Ts(){}function np(e,n){var i=nt();n=n===void 0?null:n;var u=i.memoizedState;return n!==null&&ms(n,u[1])?u[0]:(i.memoizedState=[e,n],e)}function lp(e,n){var i=nt();n=n===void 0?null:n;var u=i.memoizedState;if(n!==null&&ms(n,u[1]))return u[0];if(u=e(),Vl){Ot(!0);try{e()}finally{Ot(!1)}}return i.memoizedState=[u,n],u}function As(e,n,i){return i===void 0||(Bn&1073741824)!==0&&(Me&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=im(),we.lanes|=e,pl|=e,i)}function ip(e,n,i,u){return Ft(i,n)?i:Oi.current!==null?(e=As(e,i,u),Ft(e,n)||(rt=!0),e):(Bn&42)===0||(Bn&1073741824)!==0&&(Me&261930)===0?(rt=!0,e.memoizedState=i):(e=im(),we.lanes|=e,pl|=e,n)}function rp(e,n,i,u,f){var h=K.p;K.p=h!==0&&8>h?h:8;var b=j.T,S={};j.T=S,Os(e,!1,n,i);try{var z=f(),U=j.S;if(U!==null&&U(S,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var G=n0(z,u);Cr(e,n,G,Zt(e))}else Cr(e,n,u,Zt(e))}catch(Z){Cr(e,n,{then:function(){},status:"rejected",reason:Z},Zt())}finally{K.p=h,b!==null&&S.types!==null&&(b.types=S.types),j.T=b}}function o0(){}function zs(e,n,i,u){if(e.tag!==5)throw Error(a(476));var f=ap(e).queue;rp(e,f,n,he,i===null?o0:function(){return up(e),i(u)})}function ap(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:he},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function up(e){var n=ap(e);n.next===null&&(n=e.alternate.memoizedState),Cr(e,n.next.queue,{},Zt())}function Rs(){return mt(Fr)}function op(){return nt().memoizedState}function sp(){return nt().memoizedState}function s0(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Zt();e=ol(i);var u=sl(n,e,i);u!==null&&(Ut(u,n,i),xr(u,n,i)),n={cache:is()},e.payload=n;return}n=n.return}}function c0(e,n,i){var u=Zt();i={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},au(e)?fp(n,i):(i=Io(e,n,i,u),i!==null&&(Ut(i,e,u),hp(i,n,u)))}function cp(e,n,i){var u=Zt();Cr(e,n,i,u)}function Cr(e,n,i,u){var f={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(au(e))fp(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,S=h(b,i);if(f.hasEagerState=!0,f.eagerState=S,Ft(S,b))return qa(e,n,f,0),Xe===null&&Ha(),!1}catch{}if(i=Io(e,n,f,u),i!==null)return Ut(i,e,u),hp(i,n,u),!0}return!1}function Os(e,n,i,u){if(u={lane:2,revertLane:oc(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},au(e)){if(n)throw Error(a(479))}else n=Io(e,i,u,2),n!==null&&Ut(n,e,2)}function au(e){var n=e.alternate;return e===we||n!==null&&n===we}function fp(e,n){Mi=Wa=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function hp(e,n,i){if((i&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,yh(e,i)}}var Tr={readContext:mt,use:nu,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};Tr.useEffectEvent=We;var dp={readContext:mt,use:nu,useCallback:function(e,n){return Ct().memoizedState=[e,n===void 0?null:n],e},useContext:mt,useEffect:Jd,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,iu(4194308,4,ep.bind(null,n,e),i)},useLayoutEffect:function(e,n){return iu(4194308,4,e,n)},useInsertionEffect:function(e,n){iu(4,2,e,n)},useMemo:function(e,n){var i=Ct();n=n===void 0?null:n;var u=e();if(Vl){Ot(!0);try{e()}finally{Ot(!1)}}return i.memoizedState=[u,n],u},useReducer:function(e,n,i){var u=Ct();if(i!==void 0){var f=i(n);if(Vl){Ot(!0);try{i(n)}finally{Ot(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=c0.bind(null,we,e),[u.memoizedState,e]},useRef:function(e){var n=Ct();return e={current:e},n.memoizedState=e},useState:function(e){e=ws(e);var n=e.queue,i=cp.bind(null,we,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Ts,useDeferredValue:function(e,n){var i=Ct();return As(i,e,n)},useTransition:function(){var e=ws(!1);return e=rp.bind(null,we,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var u=we,f=Ct();if(De){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),Xe===null)throw Error(a(349));(Me&127)!==0||Nd(u,n,i)}f.memoizedState=i;var h={value:i,getSnapshot:n};return f.queue=h,Jd(Ld.bind(null,u,h,e),[e]),u.flags|=2048,Di(9,{destroy:void 0},jd.bind(null,u,h,i,n),null),i},useId:function(){var e=Ct(),n=Xe.identifierPrefix;if(De){var i=En,u=wn;i=(u&~(1<<32-Ye(u)-1)).toString(32)+i,n="_"+n+"R_"+i,i=eu++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=l0++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Rs,useFormState:Yd,useActionState:Yd,useOptimistic:function(e){var n=Ct();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Os.bind(null,we,!0,i),i.dispatch=n,[e,n]},useMemoCache:xs,useCacheRefresh:function(){return Ct().memoizedState=s0.bind(null,we)},useEffectEvent:function(e){var n=Ct(),i={impl:e};return n.memoizedState=i,function(){if((Ue&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},Ms={readContext:mt,use:nu,useCallback:np,useContext:mt,useEffect:Cs,useImperativeHandle:tp,useInsertionEffect:$d,useLayoutEffect:Wd,useMemo:lp,useReducer:lu,useRef:Kd,useState:function(){return lu(Hn)},useDebugValue:Ts,useDeferredValue:function(e,n){var i=nt();return ip(i,Qe.memoizedState,e,n)},useTransition:function(){var e=lu(Hn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:Er(e),n]},useSyncExternalStore:Dd,useId:op,useHostTransitionStatus:Rs,useFormState:Xd,useActionState:Xd,useOptimistic:function(e,n){var i=nt();return Hd(i,Qe,e,n)},useMemoCache:xs,useCacheRefresh:sp};Ms.useEffectEvent=Pd;var pp={readContext:mt,use:nu,useCallback:np,useContext:mt,useEffect:Cs,useImperativeHandle:tp,useInsertionEffect:$d,useLayoutEffect:Wd,useMemo:lp,useReducer:ks,useRef:Kd,useState:function(){return ks(Hn)},useDebugValue:Ts,useDeferredValue:function(e,n){var i=nt();return Qe===null?As(i,e,n):ip(i,Qe.memoizedState,e,n)},useTransition:function(){var e=ks(Hn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:Er(e),n]},useSyncExternalStore:Dd,useId:op,useHostTransitionStatus:Rs,useFormState:Zd,useActionState:Zd,useOptimistic:function(e,n){var i=nt();return Qe!==null?Hd(i,Qe,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:xs,useCacheRefresh:sp};pp.useEffectEvent=Pd;function _s(e,n,i,u){n=e.memoizedState,i=i(u,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ds={enqueueSetState:function(e,n,i){e=e._reactInternals;var u=Zt(),f=ol(u);f.payload=n,i!=null&&(f.callback=i),n=sl(e,f,u),n!==null&&(Ut(n,e,u),xr(n,e,u))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var u=Zt(),f=ol(u);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=sl(e,f,u),n!==null&&(Ut(n,e,u),xr(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=Zt(),u=ol(i);u.tag=2,n!=null&&(u.callback=n),n=sl(e,u,i),n!==null&&(Ut(n,e,i),xr(n,e,i))}};function mp(e,n,i,u,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):n.prototype&&n.prototype.isPureReactComponent?!hr(i,u)||!hr(f,h):!0}function gp(e,n,i,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,u),n.state!==e&&Ds.enqueueReplaceState(n,n.state,null)}function Yl(e,n){var i=n;if("ref"in n){i={};for(var u in n)u!=="ref"&&(i[u]=n[u])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function yp(e){Ba(e)}function bp(e){console.error(e)}function vp(e){Ba(e)}function uu(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function xp(e,n,i){try{var u=e.onCaughtError;u(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Ns(e,n,i){return i=ol(i),i.tag=3,i.payload={element:null},i.callback=function(){uu(e,n)},i}function Sp(e){return e=ol(e),e.tag=3,e}function kp(e,n,i,u){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){xp(n,i,u)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){xp(n,i,u),typeof f!="function"&&(ml===null?ml=new Set([this]):ml.add(this));var S=u.stack;this.componentDidCatch(u.value,{componentStack:S!==null?S:""})})}function f0(e,n,i,u,f){if(i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=i.alternate,n!==null&&Ci(n,i,f,!0),i=Vt.current,i!==null){switch(i.tag){case 31:case 13:return un===null?vu():i.alternate===null&&et===0&&(et=3),i.flags&=-257,i.flags|=65536,i.lanes=f,u===Za?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([u]):n.add(u),rc(e,u,f)),!1;case 22:return i.flags|=65536,u===Za?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([u]):i.add(u)),rc(e,u,f)),!1}throw Error(a(435,i.tag))}return rc(e,u,f),vu(),!1}if(De)return n=Vt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==Wo&&(e=Error(a(422),{cause:u}),mr(nn(e,i)))):(u!==Wo&&(n=Error(a(423),{cause:u}),mr(nn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=nn(u,i),f=Ns(e.stateNode,u,f),cs(e,f),et!==4&&(et=2)),!1;var h=Error(a(520),{cause:u});if(h=nn(h,i),Nr===null?Nr=[h]:Nr.push(h),et!==4&&(et=2),n===null)return!0;u=nn(u,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=Ns(i.stateNode,u,e),cs(i,e),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ml===null||!ml.has(h))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Sp(f),kp(f,e,i,u),cs(i,f),!1}i=i.return}while(i!==null);return!1}var js=Error(a(461)),rt=!1;function gt(e,n,i,u){n.child=e===null?Td(n,null,i,u):Gl(n,e.child,i,u)}function wp(e,n,i,u,f){i=i.render;var h=n.ref;if("ref"in u){var b={};for(var S in u)S!=="ref"&&(b[S]=u[S])}else b=u;return Hl(n),u=gs(e,n,i,b,h,f),S=ys(),e!==null&&!rt?(bs(e,n,f),qn(e,n,f)):(De&&S&&Po(n),n.flags|=1,gt(e,n,u,f),n.child)}function Ep(e,n,i,u,f){if(e===null){var h=i.type;return typeof h=="function"&&!Zo(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,Cp(e,n,h,u,f)):(e=Fa(i.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!Gs(e,f)){var b=h.memoizedProps;if(i=i.compare,i=i!==null?i:hr,i(b,u)&&e.ref===n.ref)return qn(e,n,f)}return n.flags|=1,e=Nn(h,u),e.ref=n.ref,e.return=n,n.child=e}function Cp(e,n,i,u,f){if(e!==null){var h=e.memoizedProps;if(hr(h,u)&&e.ref===n.ref)if(rt=!1,n.pendingProps=u=h,Gs(e,f))(e.flags&131072)!==0&&(rt=!0);else return n.lanes=e.lanes,qn(e,n,f)}return Ls(e,n,i,u,f)}function Tp(e,n,i,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,n.child=null;return Ap(e,n,h,i,u)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xa(n,h!==null?h.cachePool:null),h!==null?Rd(n,h):hs(),Od(n);else return u=n.lanes=536870912,Ap(e,n,h!==null?h.baseLanes|i:i,i,u)}else h!==null?(Xa(n,h.cachePool),Rd(n,h),fl(),n.memoizedState=null):(e!==null&&Xa(n,null),hs(),fl());return gt(e,n,f,i),n.child}function Ar(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Ap(e,n,i,u,f){var h=as();return h=h===null?null:{parent:lt._currentValue,pool:h},n.memoizedState={baseLanes:i,cachePool:h},e!==null&&Xa(n,null),hs(),Od(n),e!==null&&Ci(e,n,u,!0),n.childLanes=f,null}function ou(e,n){return n=cu({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function zp(e,n,i){return Gl(n,e.child,null,i),e=ou(n,n.pendingProps),e.flags|=2,Yt(n),n.memoizedState=null,e}function h0(e,n,i){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(De){if(u.mode==="hidden")return e=ou(n,u),n.lanes=536870912,Ar(null,e);if(ps(n),(e=Ke)?(e=qm(e,an),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ll!==null?{id:wn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},i=fd(e),i.return=n,n.child=i,pt=n,Ke=null)):e=null,e===null)throw rl(n);return n.lanes=536870912,null}return ou(n,u)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(ps(n),f)if(n.flags&256)n.flags&=-257,n=zp(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(rt||Ci(e,n,i,!1),f=(i&e.childLanes)!==0,rt||f){if(u=Xe,u!==null&&(b=bh(u,i),b!==0&&b!==h.retryLane))throw h.retryLane=b,jl(e,b),Ut(u,e,b),js;vu(),n=zp(e,n,i)}else e=h.treeContext,Ke=on(b.nextSibling),pt=n,De=!0,il=null,an=!1,e!==null&&pd(n,e),n=ou(n,u),n.flags|=4096;return n}return e=Nn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function su(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Ls(e,n,i,u,f){return Hl(n),i=gs(e,n,i,u,void 0,f),u=ys(),e!==null&&!rt?(bs(e,n,f),qn(e,n,f)):(De&&u&&Po(n),n.flags|=1,gt(e,n,i,f),n.child)}function Rp(e,n,i,u,f,h){return Hl(n),n.updateQueue=null,i=_d(n,u,i,f),Md(e),u=ys(),e!==null&&!rt?(bs(e,n,h),qn(e,n,h)):(De&&u&&Po(n),n.flags|=1,gt(e,n,i,h),n.child)}function Op(e,n,i,u,f){if(Hl(n),n.stateNode===null){var h=Si,b=i.contextType;typeof b=="object"&&b!==null&&(h=mt(b)),h=new i(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ds,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},os(n),b=i.contextType,h.context=typeof b=="object"&&b!==null?mt(b):Si,h.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(_s(n,i,b,u),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Ds.enqueueReplaceState(h,h.state,null),kr(n,u,h,f),Sr(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var S=n.memoizedProps,z=Yl(i,S);h.props=z;var U=h.context,G=i.contextType;b=Si,typeof G=="object"&&G!==null&&(b=mt(G));var Z=i.getDerivedStateFromProps;G=typeof Z=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,G||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||U!==b)&&gp(n,h,u,b),ul=!1;var H=n.memoizedState;h.state=H,kr(n,u,h,f),Sr(),U=n.memoizedState,S||H!==U||ul?(typeof Z=="function"&&(_s(n,i,Z,u),U=n.memoizedState),(z=ul||mp(n,i,z,u,H,U,b))?(G||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=U),h.props=u,h.state=U,h.context=b,u=z):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,ss(e,n),b=n.memoizedProps,G=Yl(i,b),h.props=G,Z=n.pendingProps,H=h.context,U=i.contextType,z=Si,typeof U=="object"&&U!==null&&(z=mt(U)),S=i.getDerivedStateFromProps,(U=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==Z||H!==z)&&gp(n,h,u,z),ul=!1,H=n.memoizedState,h.state=H,kr(n,u,h,f),Sr();var F=n.memoizedState;b!==Z||H!==F||ul||e!==null&&e.dependencies!==null&&Va(e.dependencies)?(typeof S=="function"&&(_s(n,i,S,u),F=n.memoizedState),(G=ul||mp(n,i,G,u,H,F,z)||e!==null&&e.dependencies!==null&&Va(e.dependencies))?(U||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,F,z),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,F,z)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=F),h.props=u,h.state=F,h.context=z,u=G):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,su(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,i=u&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=Gl(n,e.child,null,f),n.child=Gl(n,null,i,f)):gt(e,n,i,f),n.memoizedState=h.state,e=n.child):e=qn(e,n,f),e}function Mp(e,n,i,u){return Ul(),n.flags|=256,gt(e,n,i,u),n.child}var Us={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bs(e){return{baseLanes:e,cachePool:xd()}}function Hs(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=It),e}function _p(e,n,i){var u=n.pendingProps,f=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),b&&(f=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(De){if(f?cl(n):fl(),(e=Ke)?(e=qm(e,an),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ll!==null?{id:wn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},i=fd(e),i.return=n,n.child=i,pt=n,Ke=null)):e=null,e===null)throw rl(n);return Sc(e)?n.lanes=32:n.lanes=536870912,null}var S=u.children;return u=u.fallback,f?(fl(),f=n.mode,S=cu({mode:"hidden",children:S},f),u=Ll(u,f,i,null),S.return=n,u.return=n,S.sibling=u,n.child=S,u=n.child,u.memoizedState=Bs(i),u.childLanes=Hs(e,b,i),n.memoizedState=Us,Ar(null,u)):(cl(n),qs(n,S))}var z=e.memoizedState;if(z!==null&&(S=z.dehydrated,S!==null)){if(h)n.flags&256?(cl(n),n.flags&=-257,n=Qs(e,n,i)):n.memoizedState!==null?(fl(),n.child=e.child,n.flags|=128,n=null):(fl(),S=u.fallback,f=n.mode,u=cu({mode:"visible",children:u.children},f),S=Ll(S,f,i,null),S.flags|=2,u.return=n,S.return=n,u.sibling=S,n.child=u,Gl(n,e.child,null,i),u=n.child,u.memoizedState=Bs(i),u.childLanes=Hs(e,b,i),n.memoizedState=Us,n=Ar(null,u));else if(cl(n),Sc(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,u=Error(a(419)),u.stack="",u.digest=b,mr({value:u,source:null,stack:null}),n=Qs(e,n,i)}else if(rt||Ci(e,n,i,!1),b=(i&e.childLanes)!==0,rt||b){if(b=Xe,b!==null&&(u=bh(b,i),u!==0&&u!==z.retryLane))throw z.retryLane=u,jl(e,u),Ut(b,e,u),js;xc(S)||vu(),n=Qs(e,n,i)}else xc(S)?(n.flags|=192,n.child=e.child,n=null):(e=z.treeContext,Ke=on(S.nextSibling),pt=n,De=!0,il=null,an=!1,e!==null&&pd(n,e),n=qs(n,u.children),n.flags|=4096);return n}return f?(fl(),S=u.fallback,f=n.mode,z=e.child,U=z.sibling,u=Nn(z,{mode:"hidden",children:u.children}),u.subtreeFlags=z.subtreeFlags&65011712,U!==null?S=Nn(U,S):(S=Ll(S,f,i,null),S.flags|=2),S.return=n,u.return=n,u.sibling=S,n.child=u,Ar(null,u),u=n.child,S=e.child.memoizedState,S===null?S=Bs(i):(f=S.cachePool,f!==null?(z=lt._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=xd(),S={baseLanes:S.baseLanes|i,cachePool:f}),u.memoizedState=S,u.childLanes=Hs(e,b,i),n.memoizedState=Us,Ar(e.child,u)):(cl(n),i=e.child,e=i.sibling,i=Nn(i,{mode:"visible",children:u.children}),i.return=n,i.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=i,n.memoizedState=null,i)}function qs(e,n){return n=cu({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function cu(e,n){return e=Gt(22,e,null,n),e.lanes=0,e}function Qs(e,n,i){return Gl(n,e.child,null,i),e=qs(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Dp(e,n,i){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),ns(e.return,n,i)}function Fs(e,n,i,u,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=i,b.tailMode=f,b.treeForkCount=h)}function Np(e,n,i){var u=n.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var b=tt.current,S=(b&2)!==0;if(S?(b=b&1|2,n.flags|=128):b&=1,E(tt,b),gt(e,n,u,i),u=De?pr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dp(e,i,n);else if(e.tag===19)Dp(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&$a(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Fs(n,!1,f,i,h,u);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&$a(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Fs(n,!0,i,null,h,u);break;case"together":Fs(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function qn(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),pl|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Ci(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=Nn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Nn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Gs(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Va(e)))}function d0(e,n,i){switch(n.tag){case 3:Ve(n,n.stateNode.containerInfo),al(n,lt,e.memoizedState.cache),Ul();break;case 27:case 5:kt(n);break;case 4:Ve(n,n.stateNode.containerInfo);break;case 10:al(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,ps(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(cl(n),n.flags|=128,null):(i&n.child.childLanes)!==0?_p(e,n,i):(cl(n),e=qn(e,n,i),e!==null?e.sibling:null);cl(n);break;case 19:var f=(e.flags&128)!==0;if(u=(i&n.childLanes)!==0,u||(Ci(e,n,i,!1),u=(i&n.childLanes)!==0),f){if(u)return Np(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),E(tt,tt.current),u)break;return null;case 22:return n.lanes=0,Tp(e,n,i,n.pendingProps);case 24:al(n,lt,e.memoizedState.cache)}return qn(e,n,i)}function jp(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)rt=!0;else{if(!Gs(e,i)&&(n.flags&128)===0)return rt=!1,d0(e,n,i);rt=(e.flags&131072)!==0}else rt=!1,De&&(n.flags&1048576)!==0&&dd(n,pr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=Ql(n.elementType),n.type=e,typeof e=="function")Zo(e)?(u=Yl(e,u),n.tag=1,n=Op(null,n,e,u,i)):(n.tag=0,n=Ls(null,n,e,u,i));else{if(e!=null){var f=e.$$typeof;if(f===ee){n.tag=11,n=wp(null,n,e,u,i);break e}else if(f===J){n.tag=14,n=Ep(null,n,e,u,i);break e}}throw n=ue(e)||e,Error(a(306,n,""))}}return n;case 0:return Ls(e,n,n.type,n.pendingProps,i);case 1:return u=n.type,f=Yl(u,n.pendingProps),Op(e,n,u,f,i);case 3:e:{if(Ve(n,n.stateNode.containerInfo),e===null)throw Error(a(387));u=n.pendingProps;var h=n.memoizedState;f=h.element,ss(e,n),kr(n,u,null,i);var b=n.memoizedState;if(u=b.cache,al(n,lt,u),u!==h.cache&&ls(n,[lt],i,!0),Sr(),u=b.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=Mp(e,n,u,i);break e}else if(u!==f){f=nn(Error(a(424)),n),mr(f),n=Mp(e,n,u,i);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ke=on(e.firstChild),pt=n,De=!0,il=null,an=!0,i=Td(n,null,u,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ul(),u===f){n=qn(e,n,i);break e}gt(e,n,u,i)}n=n.child}return n;case 26:return su(e,n),e===null?(i=Xm(n.type,null,n.pendingProps,null))?n.memoizedState=i:De||(i=n.type,e=n.pendingProps,u=Tu(re.current).createElement(i),u[dt]=n,u[Mt]=e,yt(u,i,e),ft(u),n.stateNode=u):n.memoizedState=Xm(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return kt(n),e===null&&De&&(u=n.stateNode=Gm(n.type,n.pendingProps,re.current),pt=n,an=!0,f=Ke,vl(n.type)?(kc=f,Ke=on(u.firstChild)):Ke=f),gt(e,n,n.pendingProps.children,i),su(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&De&&((f=u=Ke)&&(u=G0(u,n.type,n.pendingProps,an),u!==null?(n.stateNode=u,pt=n,Ke=on(u.firstChild),an=!1,f=!0):f=!1),f||rl(n)),kt(n),f=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,yc(f,h)?u=null:b!==null&&yc(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=gs(e,n,i0,null,null,i),Fr._currentValue=f),su(e,n),gt(e,n,u,i),n.child;case 6:return e===null&&De&&((e=i=Ke)&&(i=V0(i,n.pendingProps,an),i!==null?(n.stateNode=i,pt=n,Ke=null,e=!0):e=!1),e||rl(n)),null;case 13:return _p(e,n,i);case 4:return Ve(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Gl(n,null,u,i):gt(e,n,u,i),n.child;case 11:return wp(e,n,n.type,n.pendingProps,i);case 7:return gt(e,n,n.pendingProps,i),n.child;case 8:return gt(e,n,n.pendingProps.children,i),n.child;case 12:return gt(e,n,n.pendingProps.children,i),n.child;case 10:return u=n.pendingProps,al(n,n.type,u.value),gt(e,n,u.children,i),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,Hl(n),f=mt(f),u=u(f),n.flags|=1,gt(e,n,u,i),n.child;case 14:return Ep(e,n,n.type,n.pendingProps,i);case 15:return Cp(e,n,n.type,n.pendingProps,i);case 19:return Np(e,n,i);case 31:return h0(e,n,i);case 22:return Tp(e,n,i,n.pendingProps);case 24:return Hl(n),u=mt(lt),e===null?(f=as(),f===null&&(f=Xe,h=is(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=i),f=h),n.memoizedState={parent:u,cache:f},os(n),al(n,lt,f)):((e.lanes&i)!==0&&(ss(e,n),kr(n,null,null,i),Sr()),f=e.memoizedState,h=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),al(n,lt,u)):(u=h.cache,al(n,lt,u),u!==f.cache&&ls(n,[lt],i,!0))),gt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function Qn(e){e.flags|=4}function Vs(e,n,i,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(om())e.flags|=8192;else throw Fl=Za,us}else e.flags&=-16777217}function Lp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pm(n))if(om())e.flags|=8192;else throw Fl=Za,us}function fu(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?mh():536870912,e.lanes|=n,Ui|=n)}function zr(e,n){if(!De)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Je(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,u=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=i,n}function p0(e,n,i){var u=n.pendingProps;switch($o(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(n),null;case 1:return Je(n),null;case 3:return i=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),Un(lt),ve(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ei(n)?Qn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,es())),Je(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(Qn(n),h!==null?(Je(n),Lp(n,h)):(Je(n),Vs(n,f,null,u,i))):h?h!==e.memoizedState?(Qn(n),Je(n),Lp(n,h)):(Je(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&Qn(n),Je(n),Vs(n,f,e,u,i)),null;case 27:if(zt(n),i=re.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Qn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return Je(n),null}e=le.current,Ei(n)?md(n):(e=Gm(f,u,i),n.stateNode=e,Qn(n))}return Je(n),null;case 5:if(zt(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Qn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return Je(n),null}if(h=le.current,Ei(n))md(n);else{var b=Tu(re.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?b.createElement(f,{is:u.is}):b.createElement(f)}}h[dt]=n,h[Mt]=u;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(yt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Qn(n)}}return Je(n),Vs(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&Qn(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(a(166));if(e=re.current,Ei(n)){if(e=n.stateNode,i=n.memoizedProps,u=null,f=pt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[dt]=n,e=!!(e.nodeValue===i||u!==null&&u.suppressHydrationWarning===!0||_m(e.nodeValue,i)),e||rl(n,!0)}else e=Tu(e).createTextNode(u),e[dt]=n,n.stateNode=e}return Je(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(u=Ei(n),i!==null){if(e===null){if(!u)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[dt]=n}else Ul(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),e=!1}else i=es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Yt(n),n):(Yt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return Je(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ei(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[dt]=n}else Ul(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),f=!1}else f=es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Yt(n),n):(Yt(n),null)}return Yt(n),(n.flags&128)!==0?(n.lanes=i,n):(i=u!==null,e=e!==null&&e.memoizedState!==null,i&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),fu(n,n.updateQueue),Je(n),null);case 4:return ve(),e===null&&hc(n.stateNode.containerInfo),Je(n),null;case 10:return Un(n.type),Je(n),null;case 19:if(V(tt),u=n.memoizedState,u===null)return Je(n),null;if(f=(n.flags&128)!==0,h=u.rendering,h===null)if(f)zr(u,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=$a(e),h!==null){for(n.flags|=128,zr(u,!1),e=h.updateQueue,n.updateQueue=e,fu(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)cd(i,e),i=i.sibling;return E(tt,tt.current&1|2),De&&jn(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&wt()>gu&&(n.flags|=128,f=!0,zr(u,!1),n.lanes=4194304)}else{if(!f)if(e=$a(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,fu(n,e),zr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!De)return Je(n),null}else 2*wt()-u.renderingStartTime>gu&&i!==536870912&&(n.flags|=128,f=!0,zr(u,!1),n.lanes=4194304);u.isBackwards?(h.sibling=n.child,n.child=h):(e=u.last,e!==null?e.sibling=h:n.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=wt(),e.sibling=null,i=tt.current,E(tt,f?i&1|2:i&1),De&&jn(n,u.treeForkCount),e):(Je(n),null);case 22:case 23:return Yt(n),ds(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(i&536870912)!==0&&(n.flags&128)===0&&(Je(n),n.subtreeFlags&6&&(n.flags|=8192)):Je(n),i=n.updateQueue,i!==null&&fu(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048),e!==null&&V(ql),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Un(lt),Je(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function m0(e,n){switch($o(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Un(lt),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return zt(n),null;case 31:if(n.memoizedState!==null){if(Yt(n),n.alternate===null)throw Error(a(340));Ul()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Yt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Ul()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return V(tt),null;case 4:return ve(),null;case 10:return Un(n.type),null;case 22:case 23:return Yt(n),ds(),e!==null&&V(ql),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Un(lt),null;case 25:return null;default:return null}}function Up(e,n){switch($o(n),n.tag){case 3:Un(lt),ve();break;case 26:case 27:case 5:zt(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&Yt(n);break;case 13:Yt(n);break;case 19:V(tt);break;case 10:Un(n.type);break;case 22:case 23:Yt(n),ds(),e!==null&&V(ql);break;case 24:Un(lt)}}function Rr(e,n){try{var i=n.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var f=u.next;i=f;do{if((i.tag&e)===e){u=void 0;var h=i.create,b=i.inst;u=h(),b.destroy=u}i=i.next}while(i!==f)}}catch(S){qe(n,n.return,S)}}function hl(e,n,i){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var b=u.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,f=n;var z=i,U=S;try{U()}catch(G){qe(f,z,G)}}}u=u.next}while(u!==h)}}catch(G){qe(n,n.return,G)}}function Bp(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{zd(n,i)}catch(u){qe(e,e.return,u)}}}function Hp(e,n,i){i.props=Yl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(u){qe(e,n,u)}}function Or(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof i=="function"?e.refCleanup=i(u):i.current=u}}catch(f){qe(e,n,f)}}function Cn(e,n){var i=e.ref,u=e.refCleanup;if(i!==null)if(typeof u=="function")try{u()}catch(f){qe(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){qe(e,n,f)}else i.current=null}function qp(e){var n=e.type,i=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&u.focus();break e;case"img":i.src?u.src=i.src:i.srcSet&&(u.srcset=i.srcSet)}}catch(f){qe(e,e.return,f)}}function Ys(e,n,i){try{var u=e.stateNode;U0(u,e.type,i,n),u[Mt]=n}catch(f){qe(e,e.return,f)}}function Qp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&vl(e.type)||e.tag===4}function Xs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&vl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Is(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=_n));else if(u!==4&&(u===27&&vl(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Is(e,n,i),e=e.sibling;e!==null;)Is(e,n,i),e=e.sibling}function hu(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(u!==4&&(u===27&&vl(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(hu(e,n,i),e=e.sibling;e!==null;)hu(e,n,i),e=e.sibling}function Fp(e){var n=e.stateNode,i=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);yt(n,u,i),n[dt]=e,n[Mt]=i}catch(h){qe(e,e.return,h)}}var Fn=!1,at=!1,Zs=!1,Gp=typeof WeakSet=="function"?WeakSet:Set,ht=null;function g0(e,n){if(e=e.containerInfo,mc=Du,e=td(e),Qo(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var b=0,S=-1,z=-1,U=0,G=0,Z=e,H=null;t:for(;;){for(var F;Z!==i||f!==0&&Z.nodeType!==3||(S=b+f),Z!==h||u!==0&&Z.nodeType!==3||(z=b+u),Z.nodeType===3&&(b+=Z.nodeValue.length),(F=Z.firstChild)!==null;)H=Z,Z=F;for(;;){if(Z===e)break t;if(H===i&&++U===f&&(S=b),H===h&&++G===u&&(z=b),(F=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=F}i=S===-1||z===-1?null:{start:S,end:z}}else i=null}i=i||{start:0,end:0}}else i=null;for(gc={focusedElem:e,selectionRange:i},Du=!1,ht=n;ht!==null;)if(n=ht,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ht=e;else for(;ht!==null;){switch(n=ht,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,i=n,f=h.memoizedProps,h=h.memoizedState,u=i.stateNode;try{var fe=Yl(i.type,f);e=u.getSnapshotBeforeUpdate(fe,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ge){qe(i,i.return,ge)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)vc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,ht=e;break}ht=n.return}}function Vp(e,n,i){var u=i.flags;switch(i.tag){case 0:case 11:case 15:Vn(e,i),u&4&&Rr(5,i);break;case 1:if(Vn(e,i),u&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(b){qe(i,i.return,b)}else{var f=Yl(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){qe(i,i.return,b)}}u&64&&Bp(i),u&512&&Or(i,i.return);break;case 3:if(Vn(e,i),u&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{zd(e,n)}catch(b){qe(i,i.return,b)}}break;case 27:n===null&&u&4&&Fp(i);case 26:case 5:Vn(e,i),n===null&&u&4&&qp(i),u&512&&Or(i,i.return);break;case 12:Vn(e,i);break;case 31:Vn(e,i),u&4&&Ip(e,i);break;case 13:Vn(e,i),u&4&&Zp(e,i),u&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=C0.bind(null,i),Y0(e,i))));break;case 22:if(u=i.memoizedState!==null||Fn,!u){n=n!==null&&n.memoizedState!==null||at,f=Fn;var h=at;Fn=u,(at=n)&&!h?Yn(e,i,(i.subtreeFlags&8772)!==0):Vn(e,i),Fn=f,at=h}break;case 30:break;default:Vn(e,i)}}function Yp(e){var n=e.alternate;n!==null&&(e.alternate=null,Yp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Eo(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $e=null,Dt=!1;function Gn(e,n,i){for(i=i.child;i!==null;)Xp(e,n,i),i=i.sibling}function Xp(e,n,i){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Et,i)}catch{}switch(i.tag){case 26:at||Cn(i,n),Gn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:at||Cn(i,n);var u=$e,f=Dt;vl(i.type)&&($e=i.stateNode,Dt=!1),Gn(e,n,i),Hr(i.stateNode),$e=u,Dt=f;break;case 5:at||Cn(i,n);case 6:if(u=$e,f=Dt,$e=null,Gn(e,n,i),$e=u,Dt=f,$e!==null)if(Dt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(i.stateNode)}catch(h){qe(i,n,h)}else try{$e.removeChild(i.stateNode)}catch(h){qe(i,n,h)}break;case 18:$e!==null&&(Dt?(e=$e,Bm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Yi(e)):Bm($e,i.stateNode));break;case 4:u=$e,f=Dt,$e=i.stateNode.containerInfo,Dt=!0,Gn(e,n,i),$e=u,Dt=f;break;case 0:case 11:case 14:case 15:hl(2,i,n),at||hl(4,i,n),Gn(e,n,i);break;case 1:at||(Cn(i,n),u=i.stateNode,typeof u.componentWillUnmount=="function"&&Hp(i,n,u)),Gn(e,n,i);break;case 21:Gn(e,n,i);break;case 22:at=(u=at)||i.memoizedState!==null,Gn(e,n,i),at=u;break;default:Gn(e,n,i)}}function Ip(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Yi(e)}catch(i){qe(n,n.return,i)}}}function Zp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yi(e)}catch(i){qe(n,n.return,i)}}function y0(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Gp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Gp),n;default:throw Error(a(435,e.tag))}}function du(e,n){var i=y0(e);n.forEach(function(u){if(!i.has(u)){i.add(u);var f=T0.bind(null,e,u);u.then(f,f)}})}function Nt(e,n){var i=n.deletions;if(i!==null)for(var u=0;u<i.length;u++){var f=i[u],h=e,b=n,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(vl(S.type)){$e=S.stateNode,Dt=!1;break e}break;case 5:$e=S.stateNode,Dt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,Dt=!0;break e}S=S.return}if($e===null)throw Error(a(160));Xp(h,b,f),$e=null,Dt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Kp(n,e),n=n.sibling}var mn=null;function Kp(e,n){var i=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nt(n,e),jt(e),u&4&&(hl(3,e,e.return),Rr(3,e),hl(5,e,e.return));break;case 1:Nt(n,e),jt(e),u&512&&(at||i===null||Cn(i,i.return)),u&64&&Fn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?u:i.concat(u))));break;case 26:var f=mn;if(Nt(n,e),jt(e),u&512&&(at||i===null||Cn(i,i.return)),u&4){var h=i!==null?i.memoizedState:null;if(u=e.memoizedState,i===null)if(u===null)if(e.stateNode===null){e:{u=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[lr]||h[dt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),yt(h,u,i),h[dt]=e,ft(h),u=h;break e;case"link":var b=Km("link","href",f).get(u+(i.href||""));if(b){for(var S=0;S<b.length;S++)if(h=b[S],h.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(S,1);break t}}h=f.createElement(u),yt(h,u,i),f.head.appendChild(h);break;case"meta":if(b=Km("meta","content",f).get(u+(i.content||""))){for(S=0;S<b.length;S++)if(h=b[S],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(S,1);break t}}h=f.createElement(u),yt(h,u,i),f.head.appendChild(h);break;default:throw Error(a(468,u))}h[dt]=e,ft(h),u=h}e.stateNode=u}else Jm(f,e.type,e.stateNode);else e.stateNode=Zm(f,u,e.memoizedProps);else h!==u?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,u===null?Jm(f,e.type,e.stateNode):Zm(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&Ys(e,e.memoizedProps,i.memoizedProps)}break;case 27:Nt(n,e),jt(e),u&512&&(at||i===null||Cn(i,i.return)),i!==null&&u&4&&Ys(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Nt(n,e),jt(e),u&512&&(at||i===null||Cn(i,i.return)),e.flags&32){f=e.stateNode;try{pi(f,"")}catch(fe){qe(e,e.return,fe)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,Ys(e,f,i!==null?i.memoizedProps:f)),u&1024&&(Zs=!0);break;case 6:if(Nt(n,e),jt(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,i=e.stateNode;try{i.nodeValue=u}catch(fe){qe(e,e.return,fe)}}break;case 3:if(Ru=null,f=mn,mn=Au(n.containerInfo),Nt(n,e),mn=f,jt(e),u&4&&i!==null&&i.memoizedState.isDehydrated)try{Yi(n.containerInfo)}catch(fe){qe(e,e.return,fe)}Zs&&(Zs=!1,Jp(e));break;case 4:u=mn,mn=Au(e.stateNode.containerInfo),Nt(n,e),jt(e),mn=u;break;case 12:Nt(n,e),jt(e);break;case 31:Nt(n,e),jt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,du(e,u)));break;case 13:Nt(n,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(mu=wt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,du(e,u)));break;case 22:f=e.memoizedState!==null;var z=i!==null&&i.memoizedState!==null,U=Fn,G=at;if(Fn=U||f,at=G||z,Nt(n,e),at=G,Fn=U,jt(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||z||Fn||at||Xl(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){z=i=n;try{if(h=z.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=z.stateNode;var Z=z.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){qe(z,z.return,fe)}}}else if(n.tag===6){if(i===null){z=n;try{z.stateNode.nodeValue=f?"":z.memoizedProps}catch(fe){qe(z,z.return,fe)}}}else if(n.tag===18){if(i===null){z=n;try{var F=z.stateNode;f?Hm(F,!0):Hm(z.stateNode,!1)}catch(fe){qe(z,z.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(i=u.retryQueue,i!==null&&(u.retryQueue=null,du(e,i))));break;case 19:Nt(n,e),jt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,du(e,u)));break;case 30:break;case 21:break;default:Nt(n,e),jt(e)}}function jt(e){var n=e.flags;if(n&2){try{for(var i,u=e.return;u!==null;){if(Qp(u)){i=u;break}u=u.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,h=Xs(e);hu(e,h,f);break;case 5:var b=i.stateNode;i.flags&32&&(pi(b,""),i.flags&=-33);var S=Xs(e);hu(e,S,b);break;case 3:case 4:var z=i.stateNode.containerInfo,U=Xs(e);Is(e,U,z);break;default:throw Error(a(161))}}catch(G){qe(e,e.return,G)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Jp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Jp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Vn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Vp(e,n.alternate,n),n=n.sibling}function Xl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:hl(4,n,n.return),Xl(n);break;case 1:Cn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Hp(n,n.return,i),Xl(n);break;case 27:Hr(n.stateNode);case 26:case 5:Cn(n,n.return),Xl(n);break;case 22:n.memoizedState===null&&Xl(n);break;case 30:Xl(n);break;default:Xl(n)}e=e.sibling}}function Yn(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Yn(f,h,i),Rr(4,h);break;case 1:if(Yn(f,h,i),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){qe(u,u.return,U)}if(u=h,f=u.updateQueue,f!==null){var S=u.stateNode;try{var z=f.shared.hiddenCallbacks;if(z!==null)for(f.shared.hiddenCallbacks=null,f=0;f<z.length;f++)Ad(z[f],S)}catch(U){qe(u,u.return,U)}}i&&b&64&&Bp(h),Or(h,h.return);break;case 27:Fp(h);case 26:case 5:Yn(f,h,i),i&&u===null&&b&4&&qp(h),Or(h,h.return);break;case 12:Yn(f,h,i);break;case 31:Yn(f,h,i),i&&b&4&&Ip(f,h);break;case 13:Yn(f,h,i),i&&b&4&&Zp(f,h);break;case 22:h.memoizedState===null&&Yn(f,h,i),Or(h,h.return);break;case 30:break;default:Yn(f,h,i)}n=n.sibling}}function Ks(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&gr(i))}function Js(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&gr(e))}function gn(e,n,i,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Pp(e,n,i,u),n=n.sibling}function Pp(e,n,i,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:gn(e,n,i,u),f&2048&&Rr(9,n);break;case 1:gn(e,n,i,u);break;case 3:gn(e,n,i,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&gr(e)));break;case 12:if(f&2048){gn(e,n,i,u),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,S=h.onPostCommit;typeof S=="function"&&S(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){qe(n,n.return,z)}}else gn(e,n,i,u);break;case 31:gn(e,n,i,u);break;case 13:gn(e,n,i,u);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?gn(e,n,i,u):Mr(e,n):h._visibility&2?gn(e,n,i,u):(h._visibility|=2,Ni(e,n,i,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Ks(b,n);break;case 24:gn(e,n,i,u),f&2048&&Js(n.alternate,n);break;default:gn(e,n,i,u)}}function Ni(e,n,i,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,S=i,z=u,U=b.flags;switch(b.tag){case 0:case 11:case 15:Ni(h,b,S,z,f),Rr(8,b);break;case 23:break;case 22:var G=b.stateNode;b.memoizedState!==null?G._visibility&2?Ni(h,b,S,z,f):Mr(h,b):(G._visibility|=2,Ni(h,b,S,z,f)),f&&U&2048&&Ks(b.alternate,b);break;case 24:Ni(h,b,S,z,f),f&&U&2048&&Js(b.alternate,b);break;default:Ni(h,b,S,z,f)}n=n.sibling}}function Mr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,u=n,f=u.flags;switch(u.tag){case 22:Mr(i,u),f&2048&&Ks(u.alternate,u);break;case 24:Mr(i,u),f&2048&&Js(u.alternate,u);break;default:Mr(i,u)}n=n.sibling}}var _r=8192;function ji(e,n,i){if(e.subtreeFlags&_r)for(e=e.child;e!==null;)$p(e,n,i),e=e.sibling}function $p(e,n,i){switch(e.tag){case 26:ji(e,n,i),e.flags&_r&&e.memoizedState!==null&&lx(i,mn,e.memoizedState,e.memoizedProps);break;case 5:ji(e,n,i);break;case 3:case 4:var u=mn;mn=Au(e.stateNode.containerInfo),ji(e,n,i),mn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=_r,_r=16777216,ji(e,n,i),_r=u):ji(e,n,i));break;default:ji(e,n,i)}}function Wp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Dr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];ht=u,tm(u,e)}Wp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)em(e),e=e.sibling}function em(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&hl(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,pu(e)):Dr(e);break;default:Dr(e)}}function pu(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];ht=u,tm(u,e)}Wp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:hl(8,n,n.return),pu(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,pu(n));break;default:pu(n)}e=e.sibling}}function tm(e,n){for(;ht!==null;){var i=ht;switch(i.tag){case 0:case 11:case 15:hl(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var u=i.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:gr(i.memoizedState.cache)}if(u=i.child,u!==null)u.return=i,ht=u;else e:for(i=e;ht!==null;){u=ht;var f=u.sibling,h=u.return;if(Yp(u),u===i){ht=null;break e}if(f!==null){f.return=h,ht=f;break e}ht=h}}}var b0={getCacheForType:function(e){var n=mt(lt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return mt(lt).controller.signal}},v0=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Xe=null,ze=null,Me=0,He=0,Xt=null,dl=!1,Li=!1,Ps=!1,Xn=0,et=0,pl=0,Il=0,$s=0,It=0,Ui=0,Nr=null,Lt=null,Ws=!1,mu=0,nm=0,gu=1/0,yu=null,ml=null,st=0,gl=null,Bi=null,In=0,ec=0,tc=null,lm=null,jr=0,nc=null;function Zt(){return(Ue&2)!==0&&Me!==0?Me&-Me:j.T!==null?oc():vh()}function im(){if(It===0)if((Me&536870912)===0||De){var e=Ca;Ca<<=1,(Ca&3932160)===0&&(Ca=262144),It=e}else It=536870912;return e=Vt.current,e!==null&&(e.flags|=32),It}function Ut(e,n,i){(e===Xe&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Hi(e,0),yl(e,Me,It,!1)),nr(e,i),((Ue&2)===0||e!==Xe)&&(e===Xe&&((Ue&2)===0&&(Il|=i),et===4&&yl(e,Me,It,!1)),Tn(e))}function rm(e,n,i){if((Ue&6)!==0)throw Error(a(327));var u=!i&&(n&127)===0&&(n&e.expiredLanes)===0||tr(e,n),f=u?k0(e,n):ic(e,n,!0),h=u;do{if(f===0){Li&&!u&&yl(e,n,0,!1);break}else{if(i=e.current.alternate,h&&!x0(i)){f=ic(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var S=e;f=Nr;var z=S.current.memoizedState.isDehydrated;if(z&&(Hi(S,b).flags|=256),b=ic(S,b,!1),b!==2){if(Ps&&!z){S.errorRecoveryDisabledLanes|=h,Il|=h,f=4;break e}h=Lt,Lt=f,h!==null&&(Lt===null?Lt=h:Lt.push.apply(Lt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){Hi(e,0),yl(e,n,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:yl(u,n,It,!dl);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=mu+300-wt(),10<f)){if(yl(u,n,It,!dl),Aa(u,0,!0)!==0)break e;In=n,u.timeoutHandle=Lm(am.bind(null,u,i,Lt,yu,Ws,n,It,Il,Ui,dl,h,"Throttled",-0,0),f);break e}am(u,i,Lt,yu,Ws,n,It,Il,Ui,dl,h,null,-0,0)}}break}while(!0);Tn(e)}function am(e,n,i,u,f,h,b,S,z,U,G,Z,H,F){if(e.timeoutHandle=-1,Z=n.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},$p(n,h,Z);var fe=(h&62914560)===h?mu-wt():(h&4194048)===h?nm-wt():0;if(fe=ix(Z,fe),fe!==null){In=h,e.cancelPendingCommit=fe(pm.bind(null,e,n,h,i,u,f,b,S,z,G,Z,null,H,F)),yl(e,h,b,!U);return}}pm(e,n,h,i,u,f,b,S,z)}function x0(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var u=0;u<i.length;u++){var f=i[u],h=f.getSnapshot;f=f.value;try{if(!Ft(h(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function yl(e,n,i,u){n&=~$s,n&=~Il,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var h=31-Ye(f),b=1<<h;u[h]=-1,f&=~b}i!==0&&gh(e,i,n)}function bu(){return(Ue&6)===0?(Lr(0),!1):!0}function lc(){if(ze!==null){if(He===0)var e=ze.return;else e=ze,Ln=Bl=null,vs(e),Ri=null,br=0,e=ze;for(;e!==null;)Up(e.alternate,e),e=e.return;ze=null}}function Hi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,q0(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),In=0,lc(),Xe=e,ze=i=Nn(e.current,null),Me=n,He=0,Xt=null,dl=!1,Li=tr(e,n),Ps=!1,Ui=It=$s=Il=pl=et=0,Lt=Nr=null,Ws=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Ye(u),h=1<<f;n|=e[f],u&=~h}return Xn=n,Ha(),i}function um(e,n){we=null,j.H=Tr,n===zi||n===Ia?(n=wd(),He=3):n===us?(n=wd(),He=4):He=n===js?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Xt=n,ze===null&&(et=1,uu(e,nn(n,e.current)))}function om(){var e=Vt.current;return e===null?!0:(Me&4194048)===Me?un===null:(Me&62914560)===Me||(Me&536870912)!==0?e===un:!1}function sm(){var e=j.H;return j.H=Tr,e===null?Tr:e}function cm(){var e=j.A;return j.A=b0,e}function vu(){et=4,dl||(Me&4194048)!==Me&&Vt.current!==null||(Li=!0),(pl&134217727)===0&&(Il&134217727)===0||Xe===null||yl(Xe,Me,It,!1)}function ic(e,n,i){var u=Ue;Ue|=2;var f=sm(),h=cm();(Xe!==e||Me!==n)&&(yu=null,Hi(e,n)),n=!1;var b=et;e:do try{if(He!==0&&ze!==null){var S=ze,z=Xt;switch(He){case 8:lc(),b=6;break e;case 3:case 2:case 9:case 6:Vt.current===null&&(n=!0);var U=He;if(He=0,Xt=null,qi(e,S,z,U),i&&Li){b=0;break e}break;default:U=He,He=0,Xt=null,qi(e,S,z,U)}}S0(),b=et;break}catch(G){um(e,G)}while(!0);return n&&e.shellSuspendCounter++,Ln=Bl=null,Ue=u,j.H=f,j.A=h,ze===null&&(Xe=null,Me=0,Ha()),b}function S0(){for(;ze!==null;)fm(ze)}function k0(e,n){var i=Ue;Ue|=2;var u=sm(),f=cm();Xe!==e||Me!==n?(yu=null,gu=wt()+500,Hi(e,n)):Li=tr(e,n);e:do try{if(He!==0&&ze!==null){n=ze;var h=Xt;t:switch(He){case 1:He=0,Xt=null,qi(e,n,h,1);break;case 2:case 9:if(Sd(h)){He=0,Xt=null,hm(n);break}n=function(){He!==2&&He!==9||Xe!==e||(He=7),Tn(e)},h.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Sd(h)?(He=0,Xt=null,hm(n)):(He=0,Xt=null,qi(e,n,h,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var S=ze;if(b?Pm(b):S.stateNode.complete){He=0,Xt=null;var z=S.sibling;if(z!==null)ze=z;else{var U=S.return;U!==null?(ze=U,xu(U)):ze=null}break t}}He=0,Xt=null,qi(e,n,h,5);break;case 6:He=0,Xt=null,qi(e,n,h,6);break;case 8:lc(),et=6;break e;default:throw Error(a(462))}}w0();break}catch(G){um(e,G)}while(!0);return Ln=Bl=null,j.H=u,j.A=f,Ue=i,ze!==null?0:(Xe=null,Me=0,Ha(),et)}function w0(){for(;ze!==null&&!yo();)fm(ze)}function fm(e){var n=jp(e.alternate,e,Xn);e.memoizedProps=e.pendingProps,n===null?xu(e):ze=n}function hm(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=Rp(i,n,n.pendingProps,n.type,void 0,Me);break;case 11:n=Rp(i,n,n.pendingProps,n.type.render,n.ref,Me);break;case 5:vs(n);default:Up(i,n),n=ze=cd(n,Xn),n=jp(i,n,Xn)}e.memoizedProps=e.pendingProps,n===null?xu(e):ze=n}function qi(e,n,i,u){Ln=Bl=null,vs(n),Ri=null,br=0;var f=n.return;try{if(f0(e,f,n,i,Me)){et=1,uu(e,nn(i,e.current)),ze=null;return}}catch(h){if(f!==null)throw ze=f,h;et=1,uu(e,nn(i,e.current)),ze=null;return}n.flags&32768?(De||u===1?e=!0:Li||(Me&536870912)!==0?e=!1:(dl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Vt.current,u!==null&&u.tag===13&&(u.flags|=16384))),dm(n,e)):xu(n)}function xu(e){var n=e;do{if((n.flags&32768)!==0){dm(n,dl);return}e=n.return;var i=p0(n.alternate,n,Xn);if(i!==null){ze=i;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);et===0&&(et=5)}function dm(e,n){do{var i=m0(e.alternate,e);if(i!==null){i.flags&=32767,ze=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=i}while(e!==null);et=6,ze=null}function pm(e,n,i,u,f,h,b,S,z){e.cancelPendingCommit=null;do Su();while(st!==0);if((Ue&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=Xo,n1(e,i,h,b,S,z),e===Xe&&(ze=Xe=null,Me=0),Bi=n,gl=e,In=i,ec=h,tc=f,lm=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,A0(be,function(){return vm(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=j.T,j.T=null,f=K.p,K.p=2,b=Ue,Ue|=4;try{g0(e,n,i)}finally{Ue=b,K.p=f,j.T=u}}st=1,mm(),gm(),ym()}}function mm(){if(st===1){st=0;var e=gl,n=Bi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=j.T,j.T=null;var u=K.p;K.p=2;var f=Ue;Ue|=4;try{Kp(n,e);var h=gc,b=td(e.containerInfo),S=h.focusedElem,z=h.selectionRange;if(b!==S&&S&&S.ownerDocument&&ed(S.ownerDocument.documentElement,S)){if(z!==null&&Qo(S)){var U=z.start,G=z.end;if(G===void 0&&(G=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(G,S.value.length);else{var Z=S.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var F=H.getSelection(),fe=S.textContent.length,ge=Math.min(z.start,fe),Ge=z.end===void 0?ge:Math.min(z.end,fe);!F.extend&&ge>Ge&&(b=Ge,Ge=ge,ge=b);var D=Wh(S,ge),M=Wh(S,Ge);if(D&&M&&(F.rangeCount!==1||F.anchorNode!==D.node||F.anchorOffset!==D.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var L=Z.createRange();L.setStart(D.node,D.offset),F.removeAllRanges(),ge>Ge?(F.addRange(L),F.extend(M.node,M.offset)):(L.setEnd(M.node,M.offset),F.addRange(L))}}}}for(Z=[],F=S;F=F.parentNode;)F.nodeType===1&&Z.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var I=Z[S];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}Du=!!mc,gc=mc=null}finally{Ue=f,K.p=u,j.T=i}}e.current=n,st=2}}function gm(){if(st===2){st=0;var e=gl,n=Bi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=j.T,j.T=null;var u=K.p;K.p=2;var f=Ue;Ue|=4;try{Vp(e,n.alternate,n)}finally{Ue=f,K.p=u,j.T=i}}st=3}}function ym(){if(st===4||st===3){st=0,bo();var e=gl,n=Bi,i=In,u=lm;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?st=5:(st=0,Bi=gl=null,bm(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(ml=null),ko(i),n=n.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Et,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=j.T,f=K.p,K.p=2,j.T=null;try{for(var h=e.onRecoverableError,b=0;b<u.length;b++){var S=u[b];h(S.value,{componentStack:S.stack})}}finally{j.T=n,K.p=f}}(In&3)!==0&&Su(),Tn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===nc?jr++:(jr=0,nc=e):jr=0,Lr(0)}}function bm(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,gr(n)))}function Su(){return mm(),gm(),ym(),vm()}function vm(){if(st!==5)return!1;var e=gl,n=ec;ec=0;var i=ko(In),u=j.T,f=K.p;try{K.p=32>i?32:i,j.T=null,i=tc,tc=null;var h=gl,b=In;if(st=0,Bi=gl=null,In=0,(Ue&6)!==0)throw Error(a(331));var S=Ue;if(Ue|=4,em(h.current),Pp(h,h.current,b,i),Ue=S,Lr(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Et,h)}catch{}return!0}finally{K.p=f,j.T=u,bm(e,n)}}function xm(e,n,i){n=nn(i,n),n=Ns(e.stateNode,n,2),e=sl(e,n,2),e!==null&&(nr(e,2),Tn(e))}function qe(e,n,i){if(e.tag===3)xm(e,e,i);else for(;n!==null;){if(n.tag===3){xm(n,e,i);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ml===null||!ml.has(u))){e=nn(i,e),i=Sp(2),u=sl(n,i,2),u!==null&&(kp(i,u,n,e),nr(u,2),Tn(u));break}}n=n.return}}function rc(e,n,i){var u=e.pingCache;if(u===null){u=e.pingCache=new v0;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(i)||(Ps=!0,f.add(i),e=E0.bind(null,e,n,i),n.then(e,e))}function E0(e,n,i){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Xe===e&&(Me&i)===i&&(et===4||et===3&&(Me&62914560)===Me&&300>wt()-mu?(Ue&2)===0&&Hi(e,0):$s|=i,Ui===Me&&(Ui=0)),Tn(e)}function Sm(e,n){n===0&&(n=mh()),e=jl(e,n),e!==null&&(nr(e,n),Tn(e))}function C0(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Sm(e,i)}function T0(e,n){var i=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(n),Sm(e,i)}function A0(e,n){return ui(e,n)}var ku=null,Qi=null,ac=!1,wu=!1,uc=!1,bl=0;function Tn(e){e!==Qi&&e.next===null&&(Qi===null?ku=Qi=e:Qi=Qi.next=e),wu=!0,ac||(ac=!0,R0())}function Lr(e,n){if(!uc&&wu){uc=!0;do for(var i=!1,u=ku;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var b=u.suspendedLanes,S=u.pingedLanes;h=(1<<31-Ye(42|e)+1)-1,h&=f&~(b&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,Cm(u,h))}else h=Me,h=Aa(u,u===Xe?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||tr(u,h)||(i=!0,Cm(u,h));u=u.next}while(i);uc=!1}}function z0(){km()}function km(){wu=ac=!1;var e=0;bl!==0&&H0()&&(e=bl);for(var n=wt(),i=null,u=ku;u!==null;){var f=u.next,h=wm(u,n);h===0?(u.next=null,i===null?ku=f:i.next=f,f===null&&(Qi=i)):(i=u,(e!==0||(h&3)!==0)&&(wu=!0)),u=f}st!==0&&st!==5||Lr(e),bl!==0&&(bl=0)}function wm(e,n){for(var i=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ye(h),S=1<<b,z=f[b];z===-1?((S&i)===0||(S&u)!==0)&&(f[b]=t1(S,n)):z<=n&&(e.expiredLanes|=S),h&=~S}if(n=Xe,i=Me,i=Aa(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,i===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&er(u),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||tr(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(u!==null&&er(u),ko(i)){case 2:case 8:i=ne;break;case 32:i=be;break;case 268435456:i=Be;break;default:i=be}return u=Em.bind(null,e),i=ui(i,u),e.callbackPriority=n,e.callbackNode=i,n}return u!==null&&u!==null&&er(u),e.callbackPriority=2,e.callbackNode=null,2}function Em(e,n){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Su()&&e.callbackNode!==i)return null;var u=Me;return u=Aa(e,e===Xe?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(rm(e,u,n),wm(e,wt()),e.callbackNode!=null&&e.callbackNode===i?Em.bind(null,e):null)}function Cm(e,n){if(Su())return null;rm(e,n,!0)}function R0(){Q0(function(){(Ue&6)!==0?ui(X,z0):km()})}function oc(){if(bl===0){var e=Ti;e===0&&(e=Ea,Ea<<=1,(Ea&261888)===0&&(Ea=256)),bl=e}return bl}function Tm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ma(""+e)}function Am(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function O0(e,n,i,u,f){if(n==="submit"&&i&&i.stateNode===f){var h=Tm((f[Mt]||null).action),b=u.submitter;b&&(n=(n=b[Mt]||null)?Tm(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var S=new ja("action","action",null,u,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(bl!==0){var z=b?Am(f,b):new FormData(f);zs(i,{pending:!0,data:z,method:f.method,action:h},null,z)}}else typeof h=="function"&&(S.preventDefault(),z=b?Am(f,b):new FormData(f),zs(i,{pending:!0,data:z,method:f.method,action:h},h,z))},currentTarget:f}]})}}for(var sc=0;sc<Yo.length;sc++){var cc=Yo[sc],M0=cc.toLowerCase(),_0=cc[0].toUpperCase()+cc.slice(1);pn(M0,"on"+_0)}pn(id,"onAnimationEnd"),pn(rd,"onAnimationIteration"),pn(ad,"onAnimationStart"),pn("dblclick","onDoubleClick"),pn("focusin","onFocus"),pn("focusout","onBlur"),pn(Z1,"onTransitionRun"),pn(K1,"onTransitionStart"),pn(J1,"onTransitionCancel"),pn(ud,"onTransitionEnd"),hi("onMouseEnter",["mouseout","mouseover"]),hi("onMouseLeave",["mouseout","mouseover"]),hi("onPointerEnter",["pointerout","pointerover"]),hi("onPointerLeave",["pointerout","pointerover"]),Ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="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(" "),D0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ur));function zm(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var u=e[i],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var b=u.length-1;0<=b;b--){var S=u[b],z=S.instance,U=S.currentTarget;if(S=S.listener,z!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=U;try{h(f)}catch(G){Ba(G)}f.currentTarget=null,h=z}else for(b=0;b<u.length;b++){if(S=u[b],z=S.instance,U=S.currentTarget,S=S.listener,z!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=U;try{h(f)}catch(G){Ba(G)}f.currentTarget=null,h=z}}}}function Re(e,n){var i=n[wo];i===void 0&&(i=n[wo]=new Set);var u=e+"__bubble";i.has(u)||(Rm(n,e,2,!1),i.add(u))}function fc(e,n,i){var u=0;n&&(u|=4),Rm(i,e,u,n)}var Eu="_reactListening"+Math.random().toString(36).slice(2);function hc(e){if(!e[Eu]){e[Eu]=!0,kh.forEach(function(i){i!=="selectionchange"&&(D0.has(i)||fc(i,!1,e),fc(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Eu]||(n[Eu]=!0,fc("selectionchange",!1,n))}}function Rm(e,n,i,u){switch(ig(n)){case 2:var f=ux;break;case 8:f=ox;break;default:f=Ac}i=f.bind(null,n,i,e),f=void 0,!_o||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function dc(e,n,i,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var S=u.stateNode.containerInfo;if(S===f)break;if(b===4)for(b=u.return;b!==null;){var z=b.tag;if((z===3||z===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;S!==null;){if(b=si(S),b===null)return;if(z=b.tag,z===5||z===6||z===26||z===27){u=h=b;continue e}S=S.parentNode}}u=u.return}Nh(function(){var U=h,G=Oo(i),Z=[];e:{var H=od.get(e);if(H!==void 0){var F=ja,fe=e;switch(e){case"keypress":if(Da(i)===0)break e;case"keydown":case"keyup":F=T1;break;case"focusin":fe="focus",F=Lo;break;case"focusout":fe="blur",F=Lo;break;case"beforeblur":case"afterblur":F=Lo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=p1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=R1;break;case id:case rd:case ad:F=y1;break;case ud:F=M1;break;case"scroll":case"scrollend":F=h1;break;case"wheel":F=D1;break;case"copy":case"cut":case"paste":F=v1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Hh;break;case"toggle":case"beforetoggle":F=j1}var ge=(n&4)!==0,Ge=!ge&&(e==="scroll"||e==="scrollend"),D=ge?H!==null?H+"Capture":null:H;ge=[];for(var M=U,L;M!==null;){var I=M;if(L=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||L===null||D===null||(I=rr(M,D),I!=null&&ge.push(Br(M,I,L))),Ge)break;M=M.return}0<ge.length&&(H=new F(H,fe,null,i,G),Z.push({event:H,listeners:ge}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",H&&i!==Ro&&(fe=i.relatedTarget||i.fromElement)&&(si(fe)||fe[oi]))break e;if((F||H)&&(H=G.window===G?G:(H=G.ownerDocument)?H.defaultView||H.parentWindow:window,F?(fe=i.relatedTarget||i.toElement,F=U,fe=fe?si(fe):null,fe!==null&&(Ge=s(fe),ge=fe.tag,fe!==Ge||ge!==5&&ge!==27&&ge!==6)&&(fe=null)):(F=null,fe=U),F!==fe)){if(ge=Uh,I="onMouseLeave",D="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Hh,I="onPointerLeave",D="onPointerEnter",M="pointer"),Ge=F==null?H:ir(F),L=fe==null?H:ir(fe),H=new ge(I,M+"leave",F,i,G),H.target=Ge,H.relatedTarget=L,I=null,si(G)===U&&(ge=new ge(D,M+"enter",fe,i,G),ge.target=L,ge.relatedTarget=Ge,I=ge),Ge=I,F&&fe)t:{for(ge=N0,D=F,M=fe,L=0,I=D;I;I=ge(I))L++;I=0;for(var pe=M;pe;pe=ge(pe))I++;for(;0<L-I;)D=ge(D),L--;for(;0<I-L;)M=ge(M),I--;for(;L--;){if(D===M||M!==null&&D===M.alternate){ge=D;break t}D=ge(D),M=ge(M)}ge=null}else ge=null;F!==null&&Om(Z,H,F,ge,!1),fe!==null&&Ge!==null&&Om(Z,Ge,fe,ge,!0)}}e:{if(H=U?ir(U):window,F=H.nodeName&&H.nodeName.toLowerCase(),F==="select"||F==="input"&&H.type==="file")var je=Ih;else if(Yh(H))if(Zh)je=Y1;else{je=G1;var de=F1}else F=H.nodeName,!F||F.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&zo(U.elementType)&&(je=Ih):je=V1;if(je&&(je=je(e,U))){Xh(Z,je,i,G);break e}de&&de(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&Ao(H,"number",H.value)}switch(de=U?ir(U):window,e){case"focusin":(Yh(de)||de.contentEditable==="true")&&(bi=de,Fo=U,dr=null);break;case"focusout":dr=Fo=bi=null;break;case"mousedown":Go=!0;break;case"contextmenu":case"mouseup":case"dragend":Go=!1,nd(Z,i,G);break;case"selectionchange":if(I1)break;case"keydown":case"keyup":nd(Z,i,G)}var Ce;if(Bo)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else yi?Gh(e,i)&&(_e="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(_e="onCompositionStart");_e&&(qh&&i.locale!=="ko"&&(yi||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&yi&&(Ce=jh()):(nl=G,Do="value"in nl?nl.value:nl.textContent,yi=!0)),de=Cu(U,_e),0<de.length&&(_e=new Bh(_e,e,null,i,G),Z.push({event:_e,listeners:de}),Ce?_e.data=Ce:(Ce=Vh(i),Ce!==null&&(_e.data=Ce)))),(Ce=U1?B1(e,i):H1(e,i))&&(_e=Cu(U,"onBeforeInput"),0<_e.length&&(de=new Bh("onBeforeInput","beforeinput",null,i,G),Z.push({event:de,listeners:_e}),de.data=Ce)),O0(Z,e,U,i,G)}zm(Z,n)})}function Br(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Cu(e,n){for(var i=n+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=rr(e,i),f!=null&&u.unshift(Br(e,f,h)),f=rr(e,n),f!=null&&u.push(Br(e,f,h))),e.tag===3)return u;e=e.return}return[]}function N0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Om(e,n,i,u,f){for(var h=n._reactName,b=[];i!==null&&i!==u;){var S=i,z=S.alternate,U=S.stateNode;if(S=S.tag,z!==null&&z===u)break;S!==5&&S!==26&&S!==27||U===null||(z=U,f?(U=rr(i,h),U!=null&&b.unshift(Br(i,U,z))):f||(U=rr(i,h),U!=null&&b.push(Br(i,U,z)))),i=i.return}b.length!==0&&e.push({event:n,listeners:b})}var j0=/\r\n?/g,L0=/\u0000|\uFFFD/g;function Mm(e){return(typeof e=="string"?e:""+e).replace(j0,`
9
+ `).replace(L0,"")}function _m(e,n){return n=Mm(n),Mm(e)===n}function Fe(e,n,i,u,f,h){switch(i){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||pi(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&pi(e,""+u);break;case"className":Ra(e,"class",u);break;case"tabIndex":Ra(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ra(e,i,u);break;case"style":_h(e,u,h);break;case"data":if(n!=="object"){Ra(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Ma(""+u),e.setAttribute(i,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(i,"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 h=="function"&&(i==="formAction"?(n!=="input"&&Fe(e,n,"name",f.name,f,null),Fe(e,n,"formEncType",f.formEncType,f,null),Fe(e,n,"formMethod",f.formMethod,f,null),Fe(e,n,"formTarget",f.formTarget,f,null)):(Fe(e,n,"encType",f.encType,f,null),Fe(e,n,"method",f.method,f,null),Fe(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Ma(""+u),e.setAttribute(i,u);break;case"onClick":u!=null&&(e.onclick=_n);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}i=Ma(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""+u):e.removeAttribute(i);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":u===!0?e.setAttribute(i,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,u):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(i,u):e.removeAttribute(i);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(i):e.setAttribute(i,u);break;case"popover":Re("beforetoggle",e),Re("toggle",e),za(e,"popover",u);break;case"xlinkActuate":Mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Mn(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Mn(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Mn(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Mn(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":za(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=c1.get(i)||i,za(e,i,u))}}function pc(e,n,i,u,f,h){switch(i){case"style":_h(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof u=="string"?pi(e,u):(typeof u=="number"||typeof u=="bigint")&&pi(e,""+u);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"onClick":u!=null&&(e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),h=e[Mt]||null,h=h!=null?h[i]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,u,f);break e}i in e?e[i]=u:u===!0?e.setAttribute(i,""):za(e,i,u)}}}function yt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var u=!1,f=!1,h;for(h in i)if(i.hasOwnProperty(h)){var b=i[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,h,b,i,null)}}f&&Fe(e,n,"srcSet",i.srcSet,i,null),u&&Fe(e,n,"src",i.src,i,null);return;case"input":Re("invalid",e);var S=h=b=f=null,z=null,U=null;for(u in i)if(i.hasOwnProperty(u)){var G=i[u];if(G!=null)switch(u){case"name":f=G;break;case"type":b=G;break;case"checked":z=G;break;case"defaultChecked":U=G;break;case"value":h=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:Fe(e,n,u,G,i,null)}}zh(e,h,S,z,U,b,f,!1);return;case"select":Re("invalid",e),u=b=h=null;for(f in i)if(i.hasOwnProperty(f)&&(S=i[f],S!=null))switch(f){case"value":h=S;break;case"defaultValue":b=S;break;case"multiple":u=S;default:Fe(e,n,f,S,i,null)}n=h,i=b,e.multiple=!!u,n!=null?di(e,!!u,n,!1):i!=null&&di(e,!!u,i,!0);return;case"textarea":Re("invalid",e),h=f=u=null;for(b in i)if(i.hasOwnProperty(b)&&(S=i[b],S!=null))switch(b){case"value":u=S;break;case"defaultValue":f=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:Fe(e,n,b,S,i,null)}Oh(e,u,f,h);return;case"option":for(z in i)i.hasOwnProperty(z)&&(u=i[z],u!=null)&&(z==="selected"?e.selected=u&&typeof u!="function"&&typeof u!="symbol":Fe(e,n,z,u,i,null));return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(u=0;u<Ur.length;u++)Re(Ur[u],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in i)if(i.hasOwnProperty(U)&&(u=i[U],u!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,U,u,i,null)}return;default:if(zo(n)){for(G in i)i.hasOwnProperty(G)&&(u=i[G],u!==void 0&&pc(e,n,G,u,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(u=i[S],u!=null&&Fe(e,n,S,u,i,null))}function U0(e,n,i,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,S=null,z=null,U=null,G=null;for(F in i){var Z=i[F];if(i.hasOwnProperty(F)&&Z!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":z=Z;default:u.hasOwnProperty(F)||Fe(e,n,F,null,u,Z)}}for(var H in u){var F=u[H];if(Z=i[H],u.hasOwnProperty(H)&&(F!=null||Z!=null))switch(H){case"type":h=F;break;case"name":f=F;break;case"checked":U=F;break;case"defaultChecked":G=F;break;case"value":b=F;break;case"defaultValue":S=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:F!==Z&&Fe(e,n,H,F,u,Z)}}To(e,b,S,z,U,G,h,f);return;case"select":F=b=S=H=null;for(h in i)if(z=i[h],i.hasOwnProperty(h)&&z!=null)switch(h){case"value":break;case"multiple":F=z;default:u.hasOwnProperty(h)||Fe(e,n,h,null,u,z)}for(f in u)if(h=u[f],z=i[f],u.hasOwnProperty(f)&&(h!=null||z!=null))switch(f){case"value":H=h;break;case"defaultValue":S=h;break;case"multiple":b=h;default:h!==z&&Fe(e,n,f,h,u,z)}n=S,i=b,u=F,H!=null?di(e,!!i,H,!1):!!u!=!!i&&(n!=null?di(e,!!i,n,!0):di(e,!!i,i?[]:"",!1));return;case"textarea":F=H=null;for(S in i)if(f=i[S],i.hasOwnProperty(S)&&f!=null&&!u.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Fe(e,n,S,null,u,f)}for(b in u)if(f=u[b],h=i[b],u.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":H=f;break;case"defaultValue":F=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Fe(e,n,b,f,u,h)}Rh(e,H,F);return;case"option":for(var fe in i)H=i[fe],i.hasOwnProperty(fe)&&H!=null&&!u.hasOwnProperty(fe)&&(fe==="selected"?e.selected=!1:Fe(e,n,fe,null,u,H));for(z in u)H=u[z],F=i[z],u.hasOwnProperty(z)&&H!==F&&(H!=null||F!=null)&&(z==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":Fe(e,n,z,H,u,F));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 ge in i)H=i[ge],i.hasOwnProperty(ge)&&H!=null&&!u.hasOwnProperty(ge)&&Fe(e,n,ge,null,u,H);for(U in u)if(H=u[U],F=i[U],u.hasOwnProperty(U)&&H!==F&&(H!=null||F!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,n));break;default:Fe(e,n,U,H,u,F)}return;default:if(zo(n)){for(var Ge in i)H=i[Ge],i.hasOwnProperty(Ge)&&H!==void 0&&!u.hasOwnProperty(Ge)&&pc(e,n,Ge,void 0,u,H);for(G in u)H=u[G],F=i[G],!u.hasOwnProperty(G)||H===F||H===void 0&&F===void 0||pc(e,n,G,H,u,F);return}}for(var D in i)H=i[D],i.hasOwnProperty(D)&&H!=null&&!u.hasOwnProperty(D)&&Fe(e,n,D,null,u,H);for(Z in u)H=u[Z],F=i[Z],!u.hasOwnProperty(Z)||H===F||H==null&&F==null||Fe(e,n,Z,H,u,F)}function Dm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function B0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),u=0;u<i.length;u++){var f=i[u],h=f.transferSize,b=f.initiatorType,S=f.duration;if(h&&S&&Dm(b)){for(b=0,S=f.responseEnd,u+=1;u<i.length;u++){var z=i[u],U=z.startTime;if(U>S)break;var G=z.transferSize,Z=z.initiatorType;G&&Dm(Z)&&(z=z.responseEnd,b+=G*(z<S?1:(S-U)/(z-U)))}if(--u,n+=8*(h+b)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var mc=null,gc=null;function Tu(e){return e.nodeType===9?e:e.ownerDocument}function Nm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jm(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function yc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var bc=null;function H0(){var e=window.event;return e&&e.type==="popstate"?e===bc?!1:(bc=e,!0):(bc=null,!1)}var Lm=typeof setTimeout=="function"?setTimeout:void 0,q0=typeof clearTimeout=="function"?clearTimeout:void 0,Um=typeof Promise=="function"?Promise:void 0,Q0=typeof queueMicrotask=="function"?queueMicrotask:typeof Um<"u"?function(e){return Um.resolve(null).then(e).catch(F0)}:Lm;function F0(e){setTimeout(function(){throw e})}function vl(e){return e==="head"}function Bm(e,n){var i=n,u=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(u===0){e.removeChild(f),Yi(n);return}u--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")u++;else if(i==="html")Hr(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Hr(i);for(var h=i.firstChild;h;){var b=h.nextSibling,S=h.nodeName;h[lr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||i.removeChild(h),h=b}}else i==="body"&&Hr(e.ownerDocument.body);i=f}while(i);Yi(n)}function Hm(e,n){var i=e;e=0;do{var u=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=u}while(i)}function vc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":vc(i),Eo(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function G0(e,n,i,u){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[lr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=on(e.nextSibling),e===null)break}return null}function V0(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=on(e.nextSibling),e===null))return null;return e}function qm(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=on(e.nextSibling),e===null))return null;return e}function xc(e){return e.data==="$?"||e.data==="$~"}function Sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Y0(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var u=function(){n(),i.removeEventListener("DOMContentLoaded",u)};i.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function on(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var kc=null;function Qm(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return on(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Fm(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Gm(e,n,i){switch(n=Tu(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function Hr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Eo(e)}var sn=new Map,Vm=new Set;function Au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zn=K.d;K.d={f:X0,r:I0,D:Z0,C:K0,L:J0,m:P0,X:W0,S:$0,M:ex};function X0(){var e=Zn.f(),n=bu();return e||n}function I0(e){var n=ci(e);n!==null&&n.tag===5&&n.type==="form"?up(n):Zn.r(e)}var Fi=typeof document>"u"?null:document;function Ym(e,n,i){var u=Fi;if(u&&typeof n=="string"&&n){var f=en(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Vm.has(f)||(Vm.add(f),e={rel:e,crossOrigin:i,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),yt(n,"link",e),ft(n),u.head.appendChild(n)))}}function Z0(e){Zn.D(e),Ym("dns-prefetch",e,null)}function K0(e,n){Zn.C(e,n),Ym("preconnect",e,n)}function J0(e,n,i){Zn.L(e,n,i);var u=Fi;if(u&&e&&n){var f='link[rel="preload"][as="'+en(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+en(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+en(i.imageSizes)+'"]')):f+='[href="'+en(e)+'"]';var h=f;switch(n){case"style":h=Gi(e);break;case"script":h=Vi(e)}sn.has(h)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),sn.set(h,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(qr(h))||n==="script"&&u.querySelector(Qr(h))||(n=u.createElement("link"),yt(n,"link",e),ft(n),u.head.appendChild(n)))}}function P0(e,n){Zn.m(e,n);var i=Fi;if(i&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+en(u)+'"][href="'+en(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Vi(e)}if(!sn.has(h)&&(e=g({rel:"modulepreload",href:e},n),sn.set(h,e),i.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Qr(h)))return}u=i.createElement("link"),yt(u,"link",e),ft(u),i.head.appendChild(u)}}}function $0(e,n,i){Zn.S(e,n,i);var u=Fi;if(u&&e){var f=fi(u).hoistableStyles,h=Gi(e);n=n||"default";var b=f.get(h);if(!b){var S={loading:0,preload:null};if(b=u.querySelector(qr(h)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=sn.get(h))&&wc(e,i);var z=b=u.createElement("link");ft(z),yt(z,"link",e),z._p=new Promise(function(U,G){z.onload=U,z.onerror=G}),z.addEventListener("load",function(){S.loading|=1}),z.addEventListener("error",function(){S.loading|=2}),S.loading|=4,zu(b,n,u)}b={type:"stylesheet",instance:b,count:1,state:S},f.set(h,b)}}}function W0(e,n){Zn.X(e,n);var i=Fi;if(i&&e){var u=fi(i).hoistableScripts,f=Vi(e),h=u.get(f);h||(h=i.querySelector(Qr(f)),h||(e=g({src:e,async:!0},n),(n=sn.get(f))&&Ec(e,n),h=i.createElement("script"),ft(h),yt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function ex(e,n){Zn.M(e,n);var i=Fi;if(i&&e){var u=fi(i).hoistableScripts,f=Vi(e),h=u.get(f);h||(h=i.querySelector(Qr(f)),h||(e=g({src:e,async:!0,type:"module"},n),(n=sn.get(f))&&Ec(e,n),h=i.createElement("script"),ft(h),yt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function Xm(e,n,i,u){var f=(f=re.current)?Au(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Gi(i.href),i=fi(f).hoistableStyles,u=i.get(n),u||(u={type:"style",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Gi(i.href);var h=fi(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(qr(e)))&&!h._p&&(b.instance=h,b.state.loading=5),sn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},sn.set(e,i),h||tx(f,e,i,b.state))),n&&u===null)throw Error(a(528,""));return b}if(n&&u!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Vi(i),i=fi(f).hoistableScripts,u=i.get(n),u||(u={type:"script",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Gi(e){return'href="'+en(e)+'"'}function qr(e){return'link[rel="stylesheet"]['+e+"]"}function Im(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function tx(e,n,i,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),yt(n,"link",i),ft(n),e.head.appendChild(n))}function Vi(e){return'[src="'+en(e)+'"]'}function Qr(e){return"script[async]"+e}function Zm(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+en(i.href)+'"]');if(u)return n.instance=u,ft(u),u;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),ft(u),yt(u,"style",f),zu(u,i.precedence,e),n.instance=u;case"stylesheet":f=Gi(i.href);var h=e.querySelector(qr(f));if(h)return n.state.loading|=4,n.instance=h,ft(h),h;u=Im(i),(f=sn.get(f))&&wc(u,f),h=(e.ownerDocument||e).createElement("link"),ft(h);var b=h;return b._p=new Promise(function(S,z){b.onload=S,b.onerror=z}),yt(h,"link",u),n.state.loading|=4,zu(h,i.precedence,e),n.instance=h;case"script":return h=Vi(i.src),(f=e.querySelector(Qr(h)))?(n.instance=f,ft(f),f):(u=i,(f=sn.get(h))&&(u=g({},i),Ec(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),ft(f),yt(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,zu(u,i.precedence,e));return n.instance}function zu(e,n,i){for(var u=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,b=0;b<u.length;b++){var S=u[b];if(S.dataset.precedence===n)h=S;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function wc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Ec(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ru=null;function Km(e,n,i){if(Ru===null){var u=new Map,f=Ru=new Map;f.set(i,u)}else f=Ru,u=f.get(i),u||(u=new Map,f.set(i,u));if(u.has(e))return u;for(u.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var h=i[f];if(!(h[lr]||h[dt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var S=u.get(b);S?S.push(h):u.set(b,[h])}}return u}function Jm(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function nx(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Pm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function lx(e,n,i,u){if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=Gi(u.href),h=n.querySelector(qr(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ou.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=h,ft(h);return}h=n.ownerDocument||n,u=Im(u),(f=sn.get(f))&&wc(u,f),h=h.createElement("link"),ft(h);var b=h;b._p=new Promise(function(S,z){b.onload=S,b.onerror=z}),yt(h,"link",u),i.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Ou.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var Cc=0;function ix(e,n){return e.stylesheets&&e.count===0&&_u(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var u=setTimeout(function(){if(e.stylesheets&&_u(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Cc===0&&(Cc=62500*B0());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_u(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Cc?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Ou(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_u(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mu=null;function _u(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mu=new Map,n.forEach(rx,e),Mu=null,Ou.call(e))}function rx(e,n){if(!(n.state.loading&4)){var i=Mu.get(e);if(i)var u=i.get(null);else{i=new Map,Mu.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),u=b)}u&&i.set(null,u)}f=n.instance,b=f.getAttribute("data-precedence"),h=i.get(b)||u,h===u&&i.set(null,f),i.set(b,f),this.count++,u=Ou.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var Fr={$$typeof:_,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function ax(e,n,i,u,f,h,b,S,z){this.tag=1,this.containerInfo=e,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=xo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.hiddenUpdates=xo(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function $m(e,n,i,u,f,h,b,S,z,U,G,Z){return e=new ax(e,n,i,b,z,U,G,Z,S),n=1,h===!0&&(n|=24),h=Gt(3,null,null,n),e.current=h,h.stateNode=e,n=is(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:i,cache:n},os(h),e}function Wm(e){return e?(e=Si,e):Si}function eg(e,n,i,u,f,h){f=Wm(f),u.context===null?u.context=f:u.pendingContext=f,u=ol(n),u.payload={element:i},h=h===void 0?null:h,h!==null&&(u.callback=h),i=sl(e,u,n),i!==null&&(Ut(i,e,n),xr(i,e,n))}function tg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Tc(e,n){tg(e,n),(e=e.alternate)&&tg(e,n)}function ng(e){if(e.tag===13||e.tag===31){var n=jl(e,67108864);n!==null&&Ut(n,e,67108864),Tc(e,67108864)}}function lg(e){if(e.tag===13||e.tag===31){var n=Zt();n=So(n);var i=jl(e,n);i!==null&&Ut(i,e,n),Tc(e,n)}}var Du=!0;function ux(e,n,i,u){var f=j.T;j.T=null;var h=K.p;try{K.p=2,Ac(e,n,i,u)}finally{K.p=h,j.T=f}}function ox(e,n,i,u){var f=j.T;j.T=null;var h=K.p;try{K.p=8,Ac(e,n,i,u)}finally{K.p=h,j.T=f}}function Ac(e,n,i,u){if(Du){var f=zc(u);if(f===null)dc(e,n,u,Nu,i),rg(e,u);else if(cx(f,e,n,i,u))u.stopPropagation();else if(rg(e,u),n&4&&-1<sx.indexOf(e)){for(;f!==null;){var h=ci(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Ol(h.pendingLanes);if(b!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var z=1<<31-Ye(b);S.entanglements[1]|=z,b&=~z}Tn(h),(Ue&6)===0&&(gu=wt()+500,Lr(0))}}break;case 31:case 13:S=jl(h,2),S!==null&&Ut(S,h,2),bu(),Tc(h,2)}if(h=zc(u),h===null&&dc(e,n,u,Nu,i),h===f)break;f=h}f!==null&&u.stopPropagation()}else dc(e,n,u,null,i)}}function zc(e){return e=Oo(e),Rc(e)}var Nu=null;function Rc(e){if(Nu=null,e=si(e),e!==null){var n=s(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=d(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Nu=e,null}function ig(e){switch(e){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(vo()){case X:return 2;case ne:return 8;case be:case Ae:return 32;case Be:return 268435456;default:return 32}default:return 32}}var Oc=!1,xl=null,Sl=null,kl=null,Gr=new Map,Vr=new Map,wl=[],sx="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 rg(e,n){switch(e){case"focusin":case"focusout":xl=null;break;case"dragenter":case"dragleave":Sl=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":Gr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vr.delete(n.pointerId)}}function Yr(e,n,i,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:i,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=ci(n),n!==null&&ng(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function cx(e,n,i,u,f){switch(n){case"focusin":return xl=Yr(xl,e,n,i,u,f),!0;case"dragenter":return Sl=Yr(Sl,e,n,i,u,f),!0;case"mouseover":return kl=Yr(kl,e,n,i,u,f),!0;case"pointerover":var h=f.pointerId;return Gr.set(h,Yr(Gr.get(h)||null,e,n,i,u,f)),!0;case"gotpointercapture":return h=f.pointerId,Vr.set(h,Yr(Vr.get(h)||null,e,n,i,u,f)),!0}return!1}function ag(e){var n=si(e.target);if(n!==null){var i=s(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,xh(e.priority,function(){lg(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,xh(e.priority,function(){lg(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ju(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=zc(e.nativeEvent);if(i===null){i=e.nativeEvent;var u=new i.constructor(i.type,i);Ro=u,i.target.dispatchEvent(u),Ro=null}else return n=ci(i),n!==null&&ng(n),e.blockedOn=i,!1;n.shift()}return!0}function ug(e,n,i){ju(e)&&i.delete(n)}function fx(){Oc=!1,xl!==null&&ju(xl)&&(xl=null),Sl!==null&&ju(Sl)&&(Sl=null),kl!==null&&ju(kl)&&(kl=null),Gr.forEach(ug),Vr.forEach(ug)}function Lu(e,n){e.blockedOn===n&&(e.blockedOn=null,Oc||(Oc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,fx)))}var Uu=null;function og(e){Uu!==e&&(Uu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Uu===e&&(Uu=null);for(var n=0;n<e.length;n+=3){var i=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if(Rc(u||i)===null)continue;break}var h=ci(i);h!==null&&(e.splice(n,3),n-=3,zs(h,{pending:!0,data:f,method:i.method,action:u},u,f))}}))}function Yi(e){function n(z){return Lu(z,e)}xl!==null&&Lu(xl,e),Sl!==null&&Lu(Sl,e),kl!==null&&Lu(kl,e),Gr.forEach(n),Vr.forEach(n);for(var i=0;i<wl.length;i++){var u=wl[i];u.blockedOn===e&&(u.blockedOn=null)}for(;0<wl.length&&(i=wl[0],i.blockedOn===null);)ag(i),i.blockedOn===null&&wl.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(u=0;u<i.length;u+=3){var f=i[u],h=i[u+1],b=f[Mt]||null;if(typeof h=="function")b||og(i);else if(b){var S=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Mt]||null)S=b.formAction;else if(Rc(f)!==null)continue}else S=b.action;typeof S=="function"?i[u+1]=S:(i.splice(u,3),u-=3),og(i)}}}function sg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(i,20)}function i(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Mc(e){this._internalRoot=e}Bu.prototype.render=Mc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,u=Zt();eg(i,u,e,n,null,null)},Bu.prototype.unmount=Mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;eg(e.current,2,null,e,null,null),bu(),n[oi]=null}};function Bu(e){this._internalRoot=e}Bu.prototype.unstable_scheduleHydration=function(e){if(e){var n=vh();e={blockedOn:null,target:e,priority:n};for(var i=0;i<wl.length&&n!==0&&n<wl[i].priority;i++);wl.splice(i,0,e),i===0&&ag(e)}};var cg=l.version;if(cg!=="19.2.7")throw Error(a(527,cg,"19.2.7"));K.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=m(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var hx={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hu.isDisabled&&Hu.supportsFiber)try{Et=Hu.inject(hx),ot=Hu}catch{}}return Ir.createRoot=function(e,n){if(!o(e))throw Error(a(299));var i=!1,u="",f=yp,h=bp,b=vp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=$m(e,1,!1,null,null,i,u,null,f,h,b,sg),e[oi]=n.current,hc(e),new Mc(n)},Ir.hydrateRoot=function(e,n,i){if(!o(e))throw Error(a(299));var u=!1,f="",h=yp,b=bp,S=vp,z=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.formState!==void 0&&(z=i.formState)),n=$m(e,1,!0,n,i??null,u,f,z,h,b,S,sg),n.context=Wm(null),i=n.current,u=Zt(),u=So(u),f=ol(u),f.callback=null,sl(i,f,u),i=u,n.current.lanes=i,nr(n,i),Tn(n),e[oi]=n.current,hc(e),new Bu(n)},Ir.version="19.2.7",Ir}var Mg;function cS(){if(Mg)return Nc.exports;Mg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Nc.exports=sS(),Nc.exports}var fS=cS();var Bf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,tb=/^[\\/]{2}/;function hS(t,l){return l+t.replace(/\\/g,"/")}var _g="popstate";function Dg(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function dS(t={}){function l(a,o){let s=o.state?.masked,{pathname:c,search:d,hash:p}=s||a.location;return mf("",{pathname:c,search:d,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,o){return typeof o=="string"?o:sa(o)}return mS(l,r,null,t)}function Pe(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function vn(t,l){if(!t){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function pS(){return Math.random().toString(36).substring(2,10)}function Ng(t,l){return{usr:t.state,key:t.key,idx:l,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function mf(t,l,r=null,a,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof l=="string"?Ji(l):l,state:r,key:l&&l.key||a||pS(),mask:o}}function sa({pathname:t="/",search:l="",hash:r=""}){return l&&l!=="?"&&(t+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ji(t){let l={};if(t){let r=t.indexOf("#");r>=0&&(l.hash=t.substring(r),t=t.substring(0,r));let a=t.indexOf("?");a>=0&&(l.search=t.substring(a),t=t.substring(0,a)),t&&(l.pathname=t)}return l}function mS(t,l,r,a={}){let{window:o=document.defaultView,v5Compat:s=!1}=a,c=o.history,d="POP",p=null,m=y();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function y(){return(c.state||{idx:null}).idx}function g(){d="POP";let T=y(),A=T==null?null:T-m;m=T,p&&p({action:d,location:C.location,delta:A})}function v(T,A){d="PUSH";let B=Dg(T)?T:mf(C.location,T,A);m=y()+1;let _=Ng(B,m),ee=C.createHref(B.mask||B);try{c.pushState(_,"",ee)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;o.location.assign(ee)}s&&p&&p({action:d,location:C.location,delta:1})}function x(T,A){d="REPLACE";let B=Dg(T)?T:mf(C.location,T,A);m=y();let _=Ng(B,m),ee=C.createHref(B.mask||B);c.replaceState(_,"",ee),s&&p&&p({action:d,location:C.location,delta:0})}function k(T){return gS(o,T)}let C={get action(){return d},get location(){return t(o,c)},listen(T){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(_g,g),p=T,()=>{o.removeEventListener(_g,g),p=null}},createHref(T){return l(o,T)},createURL:k,encodeLocation(T){let A=k(T);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:v,replace:x,go(T){return c.go(T)}};return C}function gS(t,l,r=!1){let a="http://localhost";t&&(a=t.location.origin!=="null"?t.location.origin:t.location.href),Pe(a,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:sa(l);return o=o.replace(/ $/,"%20"),!r&&tb.test(o)&&(o=a+o),new URL(o,a)}function nb(t,l,r="/"){return yS(t,l,r,!1)}function yS(t,l,r,a,o){let s=typeof l=="string"?Ji(l):l,c=Pn(s.pathname||"/",r);if(c==null)return null;let d=bS(t),p=null,m=ub(c);for(let y=0;p==null&&y<d.length;++y)p=zS(d[y],m,a);return p}function bS(t){let l=lb(t);return vS(l),l}function lb(t,l=[],r=[],a="",o=!1){let s=(c,d,p=o,m)=>{let y={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(a)&&p)return;Pe(y.relativePath.startsWith(a),`Absolute route path "${y.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(a.length)}let g=yn([a,y.relativePath]),v=r.concat(y);c.children&&c.children.length>0&&(Pe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),lb(c.children,l,v,g,p)),!(c.path==null&&!c.index)&&l.push({path:g,score:TS(g,c.index),routesMeta:v.map((x,k)=>{let[C,T]=ab(x.relativePath,x.caseSensitive,k===v.length-1);return{...x,matcher:C,compiledParams:T}})})};return t.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))s(c,d);else for(let p of ib(c.path))s(c,d,!0,p)}),l}function ib(t){let l=t.split("/");if(l.length===0)return[];let[r,...a]=l,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(a.length===0)return o?[s,""]:[s];let c=ib(a.join("/")),d=[];return d.push(...c.map(p=>p===""?s:[s,p].join("/"))),o&&d.push(...c),d.map(p=>t.startsWith("/")&&p===""?"/":p)}function vS(t){t.sort((l,r)=>l.score!==r.score?r.score-l.score:AS(l.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var xS=/^:[\w-]+$/,SS=3,kS=2,wS=1,ES=10,CS=-2,jg=t=>t==="*";function TS(t,l){let r=t.split("/"),a=r.length;return r.some(jg)&&(a+=CS),l&&(a+=kS),r.filter(o=>!jg(o)).reduce((o,s)=>o+(xS.test(s)?SS:s===""?wS:ES),a)}function AS(t,l){return t.length===l.length&&t.slice(0,-1).every((a,o)=>a===l[o])?t[t.length-1]-l[l.length-1]:0}function zS(t,l,r=!1){let{routesMeta:a}=t,o={},s="/",c=[];for(let d=0;d<a.length;++d){let p=a[d],m=d===a.length-1,y=s==="/"?l:l.slice(s.length)||"/",g={path:p.relativePath,caseSensitive:p.caseSensitive,end:m},v=p.matcher&&p.compiledParams?rb(g,y,p.matcher,p.compiledParams):ca(g,y),x=p.route;if(!v&&m&&r&&!a[a.length-1].route.index&&(v=ca({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:yn([s,v.pathname]),pathnameBase:MS(yn([s,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(s=yn([s,v.pathnameBase]))}return c}function ca(t,l){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,a]=ab(t.path,t.caseSensitive,t.end);return rb(t,l,r,a)}function rb(t,l,r,a){let o=l.match(r);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:a.reduce((m,{paramName:y,isOptional:g},v)=>{if(y==="*"){let k=d[v]||"";c=s.slice(0,s.length-k.length).replace(/(.)\/+$/,"$1")}const x=d[v];return g&&!x?m[y]=void 0:m[y]=(x||"").replace(/%2F/g,"/"),m},{}),pathname:s,pathnameBase:c,pattern:t}}function ab(t,l=!1,r=!0){vn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let a=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,p,m,y)=>{if(a.push({paramName:d,isOptional:p!=null}),p){let g=y.charAt(m+c.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(a.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),a]}function ub(t){try{return t.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return vn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),t}}function Pn(t,l){if(l==="/")return t;if(!t.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,a=t.charAt(r);return a&&a!=="/"?null:t.slice(r)||"/"}function RS(t,l="/"){let{pathname:r,search:a="",hash:o=""}=typeof t=="string"?Ji(t):t,s;return r?(r=ob(r),r.startsWith("/")?s=Lg(r.substring(1),"/"):s=Lg(r,l)):s=l,{pathname:s,search:_S(a),hash:DS(o)}}function Lg(t,l){let r=Wu(l).split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Bc(t,l,r,a){return`Cannot include a '${t}' character in a manually specified \`to.${l}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function OS(t){return t.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function Hf(t){let l=OS(t);return l.map((r,a)=>a===l.length-1?r.pathname:r.pathnameBase)}function ro(t,l,r,a=!1){let o;typeof t=="string"?o=Ji(t):(o={...t},Pe(!o.pathname||!o.pathname.includes("?"),Bc("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),Bc("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),Bc("#","search","hash",o)));let s=t===""||o.pathname==="",c=s?"/":o.pathname,d;if(c==null)d=r;else{let g=l.length-1;if(!a&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;o.pathname=v.join("/")}d=g>=0?l[g]:"/"}let p=RS(o,d),m=c&&c!=="/"&&c.endsWith("/"),y=(s||c===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(m||y)&&(p.pathname+="/"),p}var ob=t=>t.replace(/[\\/]{2,}/g,"/"),yn=t=>ob(t.join("/")),Wu=t=>t.replace(/\/+$/,""),MS=t=>Wu(t).replace(/^\/*/,"/"),_S=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,DS=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,NS=class{constructor(t,l,r,a=!1){this.status=t,this.statusText=l||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function jS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function LS(t){let l=t.map(r=>r.route.path).filter(Boolean);return yn(l)||"/"}var sb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cb(t,l){let r=t;if(typeof r!="string"||!Bf.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,o=!1;if(sb)try{let s=new URL(window.location.href),c=tb.test(r)?new URL(hS(r,s.protocol)):new URL(r),d=Pn(c.pathname,l);c.origin===s.origin&&d!=null?r=d+c.search+c.hash:o=!0}catch{vn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fb=["POST","PUT","PATCH","DELETE"];new Set(fb);var US=["GET",...fb];new Set(US);var BS=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function HS(t){try{return BS.includes(new URL(t).protocol)}catch{return!1}}var Pi=N.createContext(null);Pi.displayName="DataRouter";var ao=N.createContext(null);ao.displayName="DataRouterState";var hb=N.createContext(!1);function qS(){return N.useContext(hb)}var db=N.createContext({isTransitioning:!1});db.displayName="ViewTransition";var QS=N.createContext(new Map);QS.displayName="Fetchers";var FS=N.createContext(null);FS.displayName="Await";var $t=N.createContext(null);$t.displayName="Navigation";var ya=N.createContext(null);ya.displayName="Location";var hn=N.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var qf=N.createContext(null);qf.displayName="RouteError";var pb="REACT_ROUTER_ERROR",GS="REDIRECT",VS="ROUTE_ERROR_RESPONSE";function YS(t){if(t.startsWith(`${pb}:${GS}:{`))try{let l=JSON.parse(t.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function XS(t){if(t.startsWith(`${pb}:${VS}:{`))try{let l=JSON.parse(t.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new NS(l.status,l.statusText,l.data)}catch{}}function IS(t,{relative:l}={}){Pe(ei(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=N.useContext($t),{hash:o,pathname:s,search:c}=ba(t,{relative:l}),d=s;return r!=="/"&&(d=s==="/"?r:yn([r,s])),a.createHref({pathname:d,search:c,hash:o})}function ei(){return N.useContext(ya)!=null}function xn(){return Pe(ei(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(ya).location}function ZS(t){Pe(ei(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:l}=xn();return N.useMemo(()=>ca(t,ub(l)),[l,t])}var mb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gb(t){N.useContext($t).static||N.useLayoutEffect(t)}function Qf(){let{isDataRoute:t}=N.useContext(hn);return t?ck():KS()}function KS(){Pe(ei(),"useNavigate() may be used only in the context of a <Router> component.");let t=N.useContext(Pi),{basename:l,navigator:r}=N.useContext($t),{matches:a}=N.useContext(hn),{pathname:o}=xn(),s=JSON.stringify(Hf(a)),c=N.useRef(!1);return gb(()=>{c.current=!0}),N.useCallback((p,m={})=>{if(vn(c.current,mb),!c.current)return;if(typeof p=="number"){r.go(p);return}let y=ro(p,JSON.parse(s),o,m.relative==="path");t==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:yn([l,y.pathname])),(m.replace?r.replace:r.push)(y,m.state,m)},[l,r,s,o,t])}var JS=N.createContext(null);function PS(t){let l=N.useContext(hn).outlet;return N.useMemo(()=>l&&N.createElement(JS.Provider,{value:t},l),[l,t])}function $S(){let{matches:t}=N.useContext(hn);return t[t.length-1]?.params??{}}function ba(t,{relative:l}={}){let{matches:r}=N.useContext(hn),{pathname:a}=xn(),o=JSON.stringify(Hf(r));return N.useMemo(()=>ro(t,JSON.parse(o),a,l==="path"),[t,o,a,l])}function WS(t,l){return yb(t,l)}function yb(t,l,r){Pe(ei(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=N.useContext($t),{matches:o}=N.useContext(hn),s=o[o.length-1],c=s?s.params:{},d=s?s.pathname:"/",p=s?s.pathnameBase:"/",m=s&&s.route;{let T=m&&m.path||"";vb(d,!m||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
10
 
11
- Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let y=xn(),g;if(l){let T=typeof l=="string"?Ji(l):l;Pe(m==="/"||T.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${T.pathname}" was given in the \`location\` prop.`),g=T}else g=y;let v=g.pathname||"/",x=v;if(m!=="/"){let T=m.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(T.length).join("/")}let k=r&&r.state.matches.length?r.state.matches.map(T=>Object.assign(T,{route:r.manifest[T.route.id]||T.route})):nb(t,{pathname:x});vn(p||k!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),vn(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=ik(k&&k.map(T=>Object.assign({},T,{params:Object.assign({},c,T.params),pathname:yn([m,a.encodeLocation?a.encodeLocation(T.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?m:yn([m,a.encodeLocation?a.encodeLocation(T.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),o,r);return l&&C?N.createElement(ya.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},C):C}function ek(){let t=sk(),l=jS(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",t),c=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:s},"ErrorBoundary")," or"," ",N.createElement("code",{style:s},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},l),r?N.createElement("pre",{style:o},r):null,c)}var tk=N.createElement(ek,null),bb=class extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,l){return l.location!==t.location||l.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:l.error,location:l.location,revalidation:t.revalidation||l.revalidation}}componentDidCatch(t,l){this.props.onError?this.props.onError(t,l):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=XS(t.digest);r&&(t=r)}let l=t!==void 0?N.createElement(hn.Provider,{value:this.props.routeContext},N.createElement(qf.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?N.createElement(nk,{error:t},l):l}};bb.contextType=hb;var Hc=new WeakMap;function nk({children:t,error:l}){let{basename:r}=N.useContext($t);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let a=YS(l.digest);if(a){let o=Hc.get(l);if(o)throw o;let s=cb(a.location,r),c=s.absoluteURL||s.to;if(HS(c))throw new Error("Invalid redirect location");if(sb&&!Hc.get(l))if(s.isExternal||a.reloadDocument)window.location.href=c;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw Hc.set(l,d),d}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c}`})}}return t}function lk({routeContext:t,match:l,children:r}){let a=N.useContext(Pi);return a&&a.static&&a.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=l.route.id),N.createElement(hn.Provider,{value:t},r)}function ik(t,l=[],r){let a=r?.state;if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(l.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let o=t,s=a?.errors;if(s!=null){let y=o.findIndex(g=>g.route.id&&s?.[g.route.id]!==void 0);Pe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let c=!1,d=-1;if(r&&a){c=a.renderFallback;for(let y=0;y<o.length;y++){let g=o[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=y),g.route.id){let{loaderData:v,errors:x}=a,k=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||k){r.isStatic&&(c=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let m=r?.onError,p=a&&m?(y,g)=>{m(y,{location:a.location,params:a.matches?.[0]?.params??{},pattern:LS(a.matches),errorInfo:g})}:void 0;return o.reduceRight((y,g,v)=>{let x,k=!1,C=null,T=null;a&&(x=s&&g.route.id?s[g.route.id]:void 0,C=g.route.errorElement||tk,c&&(d<0&&v===0?(vb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,T=null):d===v&&(k=!0,T=g.route.hydrateFallbackElement||null)));let A=l.concat(o.slice(0,v+1)),B=()=>{let _;return x?_=C:k?_=T:g.route.Component?_=N.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=y,N.createElement(lk,{match:g,routeContext:{outlet:y,matches:A,isDataRoute:a!=null},children:_})};return a&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?N.createElement(bb,{location:a.location,revalidation:a.revalidation,component:C,error:x,children:B(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):B()},null)}function Ff(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rk(t){let l=N.useContext(Pi);return Pe(l,Ff(t)),l}function ak(t){let l=N.useContext(ao);return Pe(l,Ff(t)),l}function uk(t){let l=N.useContext(hn);return Pe(l,Ff(t)),l}function Gf(t){let l=uk(t),r=l.matches[l.matches.length-1];return Pe(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function ok(){return Gf("useRouteId")}function sk(){let t=N.useContext(qf),l=ak("useRouteError"),r=Gf("useRouteError");return t!==void 0?t:l.errors?.[r]}function ck(){let{router:t}=rk("useNavigate"),l=Gf("useNavigate"),r=N.useRef(!1);return gb(()=>{r.current=!0}),N.useCallback(async(o,s={})=>{vn(r.current,pb),r.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:l,...s}))},[t,l])}var Ug={};function vb(t,l,r){!l&&!Ug[t]&&(Ug[t]=!0,vn(!1,r))}N.memo(fk);function fk({routes:t,manifest:l,future:r,state:a,isStatic:o,onError:s}){return yb(t,void 0,{manifest:l,state:a,isStatic:o,onError:s})}function hk({to:t,replace:l,state:r,relative:a}){Pe(ei(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=N.useContext($t);vn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=N.useContext(hn),{pathname:c}=xn(),d=Qf(),m=ro(t,Hf(s),c,a==="path"),p=JSON.stringify(m);return N.useEffect(()=>{d(JSON.parse(p),{replace:l,state:r,relative:a})},[d,p,a,l,r]),null}function dk(t){return PS(t.context)}function na(t){Pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function mk({basename:t="/",children:l=null,location:r,navigationType:a="POP",navigator:o,static:s=!1,useTransitions:c}){Pe(!ei(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),m=N.useMemo(()=>({basename:d,navigator:o,static:s,useTransitions:c,future:{}}),[d,o,s,c]);typeof r=="string"&&(r=Ji(r));let{pathname:p="/",search:y="",hash:g="",state:v=null,key:x="default",mask:k}=r,C=N.useMemo(()=>{let T=Pn(p,d);return T==null?null:{location:{pathname:T,search:y,hash:g,state:v,key:x,mask:k},navigationType:a}},[d,p,y,g,v,x,a,k]);return vn(C!=null,`<Router basename="${d}"> is not able to match the URL "${p}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:N.createElement($t.Provider,{value:m},N.createElement(ya.Provider,{children:l,value:C}))}function pk({children:t,location:l}){return WS(gf(t),l)}function gf(t,l=[]){let r=[];return N.Children.forEach(t,(a,o)=>{if(!N.isValidElement(a))return;let s=[...l,o];if(a.type===N.Fragment){r.push.apply(r,gf(a.props.children,s));return}Pe(a.type===na,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=gf(a.props.children,s)),r.push(c)}),r}var Ku="get",Ju="application/x-www-form-urlencoded";function uo(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function gk(t){return uo(t)&&t.tagName.toLowerCase()==="button"}function yk(t){return uo(t)&&t.tagName.toLowerCase()==="form"}function bk(t){return uo(t)&&t.tagName.toLowerCase()==="input"}function vk(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function xk(t,l){return t.button===0&&(!l||l==="_self")&&!vk(t)}var Fu=null;function Sk(){if(Fu===null)try{new FormData(document.createElement("form"),0),Fu=!1}catch{Fu=!0}return Fu}var kk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qc(t){return t!=null&&!kk.has(t)?(vn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ju}"`),null):t}function wk(t,l){let r,a,o,s,c;if(yk(t)){let d=t.getAttribute("action");a=d?Pn(d,l):null,r=t.getAttribute("method")||Ku,o=qc(t.getAttribute("enctype"))||Ju,s=new FormData(t)}else if(gk(t)||bk(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||d.getAttribute("action");if(a=m?Pn(m,l):null,r=t.getAttribute("formmethod")||d.getAttribute("method")||Ku,o=qc(t.getAttribute("formenctype"))||qc(d.getAttribute("enctype"))||Ju,s=new FormData(d,t),!Sk()){let{name:p,type:y,value:g}=t;if(y==="image"){let v=p?`${p}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else p&&s.append(p,g)}}else{if(uo(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ku,a=null,o=Ju,c=t}return s&&o==="text/plain"&&(c=s,s=void 0),{action:a,method:r.toLowerCase(),encType:o,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vf(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function xb(t,l,r,a){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${a}`:o.pathname=`${o.pathname}.${a}`:o.pathname==="/"?o.pathname=`_root.${a}`:l&&Pn(o.pathname,l)==="/"?o.pathname=`${Wu(l)}/_root.${a}`:o.pathname=`${Wu(o.pathname)}.${a}`,o}async function Ek(t,l){if(t.id in l)return l[t.id];try{let r=await import(t.module);return l[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ck(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Tk(t,l,r){let a=await Promise.all(t.map(async o=>{let s=l.routes[o.route.id];if(s){let c=await Ek(s,r);return c.links?c.links():[]}return[]}));return Ok(a.flat(1).filter(Ck).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Bg(t,l,r,a,o,s){let c=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,d=(m,p)=>r[p].pathname!==m.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==m.params["*"];return s==="assets"?l.filter((m,p)=>c(m,p)||d(m,p)):s==="data"?l.filter((m,p)=>{let y=a.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(c(m,p)||d(m,p))return!0;if(m.route.shouldRevalidate){let g=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function Ak(t,l,{includeHydrateFallback:r}={}){return zk(t.map(a=>{let o=l.routes[a.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function zk(t){return[...new Set(t)]}function Rk(t){let l={},r=Object.keys(t).sort();for(let a of r)l[a]=t[a];return l}function Ok(t,l){let r=new Set;return new Set(l),t.reduce((a,o)=>{let s=JSON.stringify(Rk(o));return r.has(s)||(r.add(s),a.push({key:s,link:o})),a},[])}function Yf(){let t=N.useContext(Pi);return Vf(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Mk(){let t=N.useContext(ao);return Vf(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Xf=N.createContext(void 0);Xf.displayName="FrameworkContext";function oo(){let t=N.useContext(Xf);return Vf(t,"You must render this element inside a <HydratedRouter> element"),t}function _k(t,l){let r=N.useContext(Xf),[a,o]=N.useState(!1),[s,c]=N.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:g}=l,v=N.useRef(null);N.useEffect(()=>{if(t==="render"&&c(!0),t==="viewport"){let C=A=>{A.forEach(B=>{c(B.isIntersecting)})},T=new IntersectionObserver(C,{threshold:.5});return v.current&&T.observe(v.current),()=>{T.disconnect()}}},[t]),N.useEffect(()=>{if(a){let C=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(C)}}},[a]);let x=()=>{o(!0)},k=()=>{o(!1),c(!1)};return r?t!=="intent"?[s,v,{}]:[s,v,{onFocus:Zr(d,x),onBlur:Zr(m,k),onMouseEnter:Zr(p,x),onMouseLeave:Zr(y,k),onTouchStart:Zr(g,x)}]:[!1,v,{}]}function Zr(t,l){return r=>{t&&t(r),r.defaultPrevented||l(r)}}function Dk({page:t,...l}){let r=qS(),{nonce:a}=oo(),{router:o}=Yf(),s=N.useMemo(()=>nb(o.routes,t,o.basename),[o.routes,t,o.basename]);return s?(l.nonce==null&&a&&(l={...l,nonce:a}),r?N.createElement(jk,{page:t,matches:s,...l}):N.createElement(Lk,{page:t,matches:s,...l})):null}function Nk(t){let{manifest:l,routeModules:r}=oo(),[a,o]=N.useState([]);return N.useEffect(()=>{let s=!1;return Tk(t,l,r).then(c=>{s||o(c)}),()=>{s=!0}},[t,l,r]),a}function jk({page:t,matches:l,...r}){let a=xn(),{future:o}=oo(),{basename:s}=Yf(),c=N.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let d=xb(t,s,o.v8_trailingSlashAwareDataRequests,"rsc"),m=!1,p=[];for(let y of l)typeof y.route.shouldRevalidate=="function"?m=!0:p.push(y.route.id);return m&&p.length>0&&d.searchParams.set("_routes",p.join(",")),[d.pathname+d.search]},[s,o.v8_trailingSlashAwareDataRequests,t,a,l]);return N.createElement(N.Fragment,null,c.map(d=>N.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})))}function Lk({page:t,matches:l,...r}){let a=xn(),{future:o,manifest:s,routeModules:c}=oo(),{basename:d}=Yf(),{loaderData:m,matches:p}=Mk(),y=N.useMemo(()=>Bg(t,l,p,s,a,"data"),[t,l,p,s,a]),g=N.useMemo(()=>Bg(t,l,p,s,a,"assets"),[t,l,p,s,a]),v=N.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let C=new Set,T=!1;if(l.forEach(B=>{let _=s.routes[B.route.id];!_||!_.hasLoader||(!y.some(ee=>ee.route.id===B.route.id)&&B.route.id in m&&c[B.route.id]?.shouldRevalidate||_.hasClientLoader?T=!0:C.add(B.route.id))}),C.size===0)return[];let A=xb(t,d,o.v8_trailingSlashAwareDataRequests,"data");return T&&C.size>0&&A.searchParams.set("_routes",l.filter(B=>C.has(B.route.id)).map(B=>B.route.id).join(",")),[A.pathname+A.search]},[d,o.v8_trailingSlashAwareDataRequests,m,a,s,y,l,t,c]),x=N.useMemo(()=>Ak(g,s),[g,s]),k=Nk(g);return N.createElement(N.Fragment,null,v.map(C=>N.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...r})),x.map(C=>N.createElement("link",{key:C,rel:"modulepreload",href:C,...r})),k.map(({key:C,link:T})=>N.createElement("link",{key:C,nonce:r.nonce,...T,crossOrigin:T.crossOrigin??r.crossOrigin})))}function Uk(...t){return l=>{t.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var Bk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Bk&&(window.__reactRouterVersion="7.18.1")}catch{}function Hk({basename:t,children:l,useTransitions:r,window:a}){let o=N.useRef();o.current==null&&(o.current=dS({window:a,v5Compat:!0}));let s=o.current,[c,d]=N.useState({action:s.action,location:s.location}),m=N.useCallback(p=>{r===!1?d(p):N.startTransition(()=>d(p))},[r]);return N.useLayoutEffect(()=>s.listen(m),[s,m]),N.createElement(mk,{basename:t,children:l,location:c.location,navigationType:c.action,navigator:s,useTransitions:r})}var Sb=N.forwardRef(function({onClick:l,discover:r="render",prefetch:a="none",relative:o,reloadDocument:s,replace:c,mask:d,state:m,target:p,to:y,preventScrollReset:g,viewTransition:v,defaultShouldRevalidate:x,...k},C){let{basename:T,navigator:A,useTransitions:B}=N.useContext($t),_=typeof y=="string"&&Bf.test(y),ee=cb(y,T);y=ee.to;let W=IS(y,{relative:o}),Q=xn(),J=null;if(d){let P=ro(d,[],Q.mask?Q.mask.pathname:"/",!0);T!=="/"&&(P.pathname=P.pathname==="/"?T:yn([T,P.pathname])),J=A.createHref(P)}let[Y,ae,q]=_k(a,k),ie=Gk(y,{replace:c,mask:d,state:m,target:p,preventScrollReset:g,relative:o,viewTransition:v,defaultShouldRevalidate:x,useTransitions:B});function te(P){l&&l(P),P.defaultPrevented||ie(P)}let ye=!(ee.isExternal||s),ue=N.createElement("a",{...k,...q,href:(ye?J:void 0)||ee.absoluteURL||W,onClick:ye?te:l,ref:Uk(C,ae),target:p,"data-discover":!_&&r==="render"?"true":void 0});return Y&&!_?N.createElement(N.Fragment,null,ue,N.createElement(Dk,{page:W})):ue});Sb.displayName="Link";var qk=N.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:a="",end:o=!1,style:s,to:c,viewTransition:d,children:m,...p},y){let g=ba(c,{relative:p.relative}),v=xn(),x=N.useContext(ao),{navigator:k,basename:C}=N.useContext($t),T=x!=null&&Zk(g)&&d===!0,A=k.encodeLocation?k.encodeLocation(g).pathname:g.pathname,B=v.pathname,_=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(B=B.toLowerCase(),_=_?_.toLowerCase():null,A=A.toLowerCase()),_&&C&&(_=Pn(_,C)||_);const ee=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let W=B===A||!o&&B.startsWith(A)&&B.charAt(ee)==="/",Q=_!=null&&(_===A||!o&&_.startsWith(A)&&_.charAt(A.length)==="/"),J={isActive:W,isPending:Q,isTransitioning:T},Y=W?l:void 0,ae;typeof a=="function"?ae=a(J):ae=[a,W?"active":null,Q?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let q=typeof s=="function"?s(J):s;return N.createElement(Sb,{...p,"aria-current":Y,className:ae,ref:y,style:q,to:c,viewTransition:d},typeof m=="function"?m(J):m)});qk.displayName="NavLink";var Qk=N.forwardRef(({discover:t="render",fetcherKey:l,navigate:r,reloadDocument:a,replace:o,state:s,method:c=Ku,action:d,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v,...x},k)=>{let{useTransitions:C}=N.useContext($t),T=Xk(),A=Ik(d,{relative:p}),B=c.toLowerCase()==="get"?"get":"post",_=typeof d=="string"&&Bf.test(d),ee=W=>{if(m&&m(W),W.defaultPrevented)return;W.preventDefault();let Q=W.nativeEvent.submitter,J=Q?.getAttribute("formmethod")||c,Y=()=>T(Q||W.currentTarget,{fetcherKey:l,method:J,navigate:r,replace:o,state:s,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v});C&&r!==!1?N.startTransition(()=>Y()):Y()};return N.createElement("form",{ref:k,method:B,action:A,onSubmit:a?m:ee,...x,"data-discover":!_&&t==="render"?"true":void 0})});Qk.displayName="Form";function Fk(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kb(t){let l=N.useContext(Pi);return Pe(l,Fk(t)),l}function Gk(t,{target:l,replace:r,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:m,useTransitions:p}={}){let y=Qf(),g=xn(),v=ba(t,{relative:c});return N.useCallback(x=>{if(xk(x,l)){x.preventDefault();let k=r!==void 0?r:sa(g)===sa(v),C=()=>y(t,{replace:k,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:m});p?N.startTransition(()=>C()):C()}},[g,y,v,r,a,o,l,t,s,c,d,m,p])}var Vk=0,Yk=()=>`__${String(++Vk)}__`;function Xk(){let{router:t}=kb("useSubmit"),{basename:l}=N.useContext($t),r=ok(),a=t.fetch,o=t.navigate;return N.useCallback(async(s,c={})=>{let{action:d,method:m,encType:p,formData:y,body:g}=wk(s,l);if(c.navigate===!1){let v=c.fetcherKey||Yk();await a(v,r,c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||m,formEncType:c.encType||p,flushSync:c.flushSync})}else await o(c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||m,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,o,l,r])}function Ik(t,{relative:l}={}){let{basename:r}=N.useContext($t),a=N.useContext(hn);Pe(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),s={...ba(t||".",{relative:l})},c=xn();if(t==null){s.search=c.search;let d=new URLSearchParams(s.search),m=d.getAll("index");if(m.some(y=>y==="")){d.delete("index"),m.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();s.search=y?`?${y}`:""}}return(!t||t===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:yn([r,s.pathname])),sa(s)}function Zk(t,{relative:l}={}){let r=N.useContext(db);Pe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=kb("useViewTransitionState"),o=ba(t,{relative:l});if(!r.isTransitioning)return!1;let s=Pn(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=Pn(r.nextLocation.pathname,a)||r.nextLocation.pathname;return ca(o.pathname,c)!=null||ca(o.pathname,s)!=null}const wb=(...t)=>t.filter((l,r,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===r).join(" ").trim();const Kk=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Jk=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,a)=>a?a.toUpperCase():r.toLowerCase());const Hg=t=>{const l=Jk(t);return l.charAt(0).toUpperCase()+l.slice(1)};var Pk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const $k=t=>{for(const l in t)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const Wk=N.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:s,iconNode:c,...d},m)=>N.createElement("svg",{ref:m,...Pk,width:l,height:l,stroke:t,strokeWidth:a?Number(r)*24/Number(l):r,className:wb("lucide",o),...!s&&!$k(d)&&{"aria-hidden":"true"},...d},[...c.map(([p,y])=>N.createElement(p,y)),...Array.isArray(s)?s:[s]]));const Sn=(t,l)=>{const r=N.forwardRef(({className:a,...o},s)=>N.createElement(Wk,{ref:s,iconNode:l,className:wb(`lucide-${Kk(Hg(t))}`,`lucide-${t}`,a),...o}));return r.displayName=Hg(t),r};const ew=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],tw=Sn("arrow-up",ew);const nw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],lw=Sn("check",nw);const iw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],rw=Sn("chevron-down",iw);const aw=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],uw=Sn("copy",aw);const ow=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],sw=Sn("file-diff",ow);const cw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],fw=Sn("info",cw);const hw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],dw=Sn("panel-left",hw);const mw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],pw=Sn("plus",mw);const gw=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],yw=Sn("qr-code",gw);const bw=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],vw=Sn("sliders-horizontal",bw);const xw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],If=Sn("x",xw),fa="conductor-remote-token";function Sw(){const l=new URLSearchParams(location.hash.slice(1)).get("token");return l&&(localStorage.setItem(fa,l),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(fa)}function Eb(){return localStorage.getItem(fa)}function kw(){localStorage.removeItem(fa)}function ww(t){localStorage.setItem(fa,t)}function Ew(t){const l=t.trim();if(!l)return null;const r=l.match(/token=([^&\s]+)/);return r?decodeURIComponent(r[1]):/\s/.test(l)?null:l}class Cb extends Error{constructor(l,r){super(l),this.status=r}status}async function Xi(t,l={}){const r=Eb(),a=await fetch(t,{...l,headers:{authorization:`Bearer ${r??""}`,"content-type":"application/json",...l.headers}});if(!a.ok){const o=await a.json().catch(()=>({}));throw new Cb(o.error||`HTTP ${a.status}`,a.status)}return a.json()}const ti={state:()=>Xi("/api/state"),repoIconUrl:t=>`/api/repos/${encodeURIComponent(t)}/icon?token=${encodeURIComponent(Eb()??"")}`,sessions:t=>Xi(`/api/workspaces/${encodeURIComponent(t)}/sessions`),messages:(t,l)=>Xi(`/api/sessions/${encodeURIComponent(t)}/messages?after=${l}`),diff:t=>Xi(`/api/workspaces/${encodeURIComponent(t)}/diff`),sendPrompt:(t,l,r)=>Xi(`/api/sessions/${encodeURIComponent(t)}/prompt`,{method:"POST",body:JSON.stringify({text:l,workspaceId:r})}),newChat:t=>Xi(`/api/workspaces/${encodeURIComponent(t)}/sessions`,{method:"POST"})},qg=t=>{let l;const r=new Set,a=(p,y)=>{const g=typeof p=="function"?p(l):p;if(!Object.is(g,l)){const v=l;l=y??(typeof g!="object"||g===null)?g:Object.assign({},l,g),r.forEach(x=>x(l,v))}},o=()=>l,d={setState:a,getState:o,getInitialState:()=>m,subscribe:p=>(r.add(p),()=>r.delete(p))},m=l=t(a,o,d);return d},Cw=(t=>t?qg(t):qg),Tw=t=>t;function Aw(t,l=Tw){const r=Qu.useSyncExternalStore(t.subscribe,Qu.useCallback(()=>l(t.getState()),[t,l]),Qu.useCallback(()=>l(t.getInitialState()),[t,l]));return Qu.useDebugValue(r),r}const Qg=t=>{const l=Cw(t),r=a=>Aw(l,a);return Object.assign(r,l),r},zw=(t=>t?Qg(t):Qg),Tb="conductor-remote-view",Fg={groupBy:"status",repo:null,sortBy:"updated",collapsed:[]};function Rw(){try{return{...Fg,...JSON.parse(localStorage.getItem(Tb)??"{}")}}catch{return Fg}}const At=zw((t,l)=>{const r=a=>{localStorage.setItem(Tb,JSON.stringify(a)),t({view:a})};return{token:Sw(),online:!0,sidebarOpen:!location.pathname.startsWith("/w/"),view:Rw(),setToken:a=>{a?ww(a):kw(),t({token:a})},setOnline:a=>t({online:a}),setSidebarOpen:a=>t({sidebarOpen:a}),setView:a=>r({...l().view,...a}),toggleGroup:a=>{const{collapsed:o}=l().view;r({...l().view,collapsed:o.includes(a)?o.filter(s=>s!==a):[...o,a]})}}});function so(){const t=At(r=>r.setOnline),l=At(r=>r.setToken);return N.useCallback((r,a)=>{t(r),a instanceof Cb&&a.status===401&&l(null)},[t,l])}function Ab(){const t=so(),l=Uf({queryKey:["state"],queryFn:()=>ti.state(),refetchInterval:2500});return N.useEffect(()=>{l.isSuccess&&t(!0),l.isError&&t(!1,l.error)},[l.isSuccess,l.isError,l.error,t]),l}function Ow(t){const l=so(),r=Uf({queryKey:["sessions",t],queryFn:()=>ti.sessions(t),enabled:!!t,refetchInterval:4e3});return N.useEffect(()=>{r.isError&&l(!1,r.error)},[r.isError,r.error,l]),r}function Mw(t,l){const r=so(),a=Uf({queryKey:["diff",t],queryFn:()=>ti.diff(t),enabled:!!t,refetchInterval:5e3});return N.useEffect(()=>{a.isError&&r(!1,a.error)},[a.isError,a.error,r]),a}function _w(t){const l=so(),[r,a]=N.useState({entries:[],loading:!0,error:null}),o=N.useRef(0);return N.useEffect(()=>{if(!t){a({entries:[],loading:!1,error:null});return}o.current=0,a({entries:[],loading:!0,error:null});let s=!0;const c=async()=>{try{const{entries:m,cursor:p}=await ti.messages(t,o.current);if(!s)return;l(!0),m.length?(o.current=p,a(y=>({entries:[...y.entries,...m],loading:!1,error:null}))):a(y=>y.loading?{...y,loading:!1}:y)}catch(m){if(!s)return;l(!1,m),a(p=>({...p,loading:!1,error:m instanceof Error?m.message:String(m)}))}};c();const d=setInterval(c,1800);return()=>{s=!1,clearInterval(d)}},[t,l]),r}function zb(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(r=zb(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function Dw(){for(var t,l,r=0,a="",o=arguments.length;r<o;r++)(t=arguments[r])&&(l=zb(t))&&(a&&(a+=" "),a+=l);return a}const Nw=(t,l)=>{const r=new Array(t.length+l.length);for(let a=0;a<t.length;a++)r[a]=t[a];for(let a=0;a<l.length;a++)r[t.length+a]=l[a];return r},jw=(t,l)=>({classGroupId:t,validator:l}),Rb=(t=new Map,l=null,r)=>({nextPart:t,validators:l,classGroupId:r}),eo="-",Gg=[],Lw="arbitrary..",Uw=t=>{const l=Hw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Bw(c);const d=c.split(eo),m=d[0]===""&&d.length>1?1:0;return Ob(d,m,l)},getConflictingClassGroupIds:(c,d)=>{if(d){const m=a[c],p=r[c];return m?p?Nw(p,m):m:p||Gg}return r[c]||Gg}}},Ob=(t,l,r)=>{if(t.length-l===0)return r.classGroupId;const o=t[l],s=r.nextPart.get(o);if(s){const p=Ob(t,l+1,s);if(p)return p}const c=r.validators;if(c===null)return;const d=l===0?t.join(eo):t.slice(l).join(eo),m=c.length;for(let p=0;p<m;p++){const y=c[p];if(y.validator(d))return y.classGroupId}},Bw=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=t.slice(1,-1),r=l.indexOf(":"),a=l.slice(0,r);return a?Lw+a:void 0})(),Hw=t=>{const{theme:l,classGroups:r}=t;return qw(r,l)},qw=(t,l)=>{const r=Rb();for(const a in t){const o=t[a];Zf(o,r,a,l)}return r},Zf=(t,l,r,a)=>{const o=t.length;for(let s=0;s<o;s++){const c=t[s];Qw(c,l,r,a)}},Qw=(t,l,r,a)=>{if(typeof t=="string"){Fw(t,l,r);return}if(typeof t=="function"){Gw(t,l,r,a);return}Vw(t,l,r,a)},Fw=(t,l,r)=>{const a=t===""?l:Mb(l,t);a.classGroupId=r},Gw=(t,l,r,a)=>{if(Yw(t)){Zf(t(a),l,r,a);return}l.validators===null&&(l.validators=[]),l.validators.push(jw(r,t))},Vw=(t,l,r,a)=>{const o=Object.entries(t),s=o.length;for(let c=0;c<s;c++){const[d,m]=o[c];Zf(m,Mb(l,d),r,a)}},Mb=(t,l)=>{let r=t;const a=l.split(eo),o=a.length;for(let s=0;s<o;s++){const c=a[s];let d=r.nextPart.get(c);d||(d=Rb(),r.nextPart.set(c,d)),r=d}return r},Yw=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Xw=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=Object.create(null),a=Object.create(null);const o=(s,c)=>{r[s]=c,l++,l>t&&(l=0,a=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=a[s])!==void 0)return o(s,c),c},set(s,c){s in r?r[s]=c:o(s,c)}}},yf="!",Vg=":",Iw=[],Yg=(t,l,r,a,o)=>({modifiers:t,hasImportantModifier:l,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),Zw=t=>{const{prefix:l,experimentalParseClassName:r}=t;let a=o=>{const s=[];let c=0,d=0,m=0,p;const y=o.length;for(let C=0;C<y;C++){const T=o[C];if(c===0&&d===0){if(T===Vg){s.push(o.slice(m,C)),m=C+1;continue}if(T==="/"){p=C;continue}}T==="["?c++:T==="]"?c--:T==="("?d++:T===")"&&d--}const g=s.length===0?o:o.slice(m);let v=g,x=!1;g.endsWith(yf)?(v=g.slice(0,-1),x=!0):g.startsWith(yf)&&(v=g.slice(1),x=!0);const k=p&&p>m?p-m:void 0;return Yg(s,x,v,k)};if(l){const o=l+Vg,s=a;a=c=>c.startsWith(o)?s(c.slice(o.length)):Yg(Iw,!1,c,void 0,!0)}if(r){const o=a;a=s=>r({className:s,parseClassName:o})}return a},Kw=t=>{const l=new Map;return t.orderSensitiveModifiers.forEach((r,a)=>{l.set(r,1e6+a)}),r=>{const a=[];let o=[];for(let s=0;s<r.length;s++){const c=r[s],d=c[0]==="[",m=l.has(c);d||m?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},Jw=t=>({cache:Xw(t.cacheSize),parseClassName:Zw(t),sortModifiers:Kw(t),postfixLookupClassGroupIds:Pw(t),...Uw(t)}),Pw=t=>{const l=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let a=0;a<r.length;a++)l[r[a]]=!0;return l},$w=/\s+/,Ww=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:c}=l,d=[],m=t.trim().split($w);let p="";for(let y=m.length-1;y>=0;y-=1){const g=m[y],{isExternal:v,modifiers:x,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:T}=r(g);if(v){p=g+(p.length>0?" "+p:p);continue}let A=!!T,B;if(A){const J=C.substring(0,T);B=a(J);const Y=B&&c[B]?a(C):void 0;Y&&Y!==B&&(B=Y,A=!1)}else B=a(C);if(!B){if(!A){p=g+(p.length>0?" "+p:p);continue}if(B=a(C),!B){p=g+(p.length>0?" "+p:p);continue}A=!1}const _=x.length===0?"":x.length===1?x[0]:s(x).join(":"),ee=k?_+yf:_,W=ee+B;if(d.indexOf(W)>-1)continue;d.push(W);const Q=o(B,A);for(let J=0;J<Q.length;++J){const Y=Q[J];d.push(ee+Y)}p=g+(p.length>0?" "+p:p)}return p},eE=(...t)=>{let l=0,r,a,o="";for(;l<t.length;)(r=t[l++])&&(a=_b(r))&&(o&&(o+=" "),o+=a);return o},_b=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=_b(t[a]))&&(r&&(r+=" "),r+=l);return r},tE=(t,...l)=>{let r,a,o,s;const c=m=>{const p=l.reduce((y,g)=>g(y),t());return r=Jw(p),a=r.cache.get,o=r.cache.set,s=d,d(m)},d=m=>{const p=a(m);if(p)return p;const y=Ww(m,r);return o(m,y),y};return s=c,(...m)=>s(eE(...m))},nE=[],ct=t=>{const l=r=>r[t]||nE;return l.isThemeGetter=!0,l},Db=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,iE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,aE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Cl=t=>lE.test(t),Te=t=>!!t&&!Number.isNaN(Number(t)),An=t=>!!t&&Number.isInteger(Number(t)),Qc=t=>t.endsWith("%")&&Te(t.slice(0,-1)),Kn=t=>iE.test(t),jb=()=>!0,sE=t=>rE.test(t)&&!aE.test(t),Kf=()=>!1,cE=t=>uE.test(t),fE=t=>oE.test(t),hE=t=>!oe(t)&&!ce(t),dE=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),mE=t=>zl(t,Bb,Kf),oe=t=>Db.test(t),Zl=t=>zl(t,Hb,sE),Xg=t=>zl(t,kE,Te),pE=t=>zl(t,Qb,jb),gE=t=>zl(t,qb,Kf),Ig=t=>zl(t,Lb,Kf),yE=t=>zl(t,Ub,fE),Gu=t=>zl(t,Fb,cE),ce=t=>Nb.test(t),Kr=t=>ni(t,Hb),bE=t=>ni(t,qb),Zg=t=>ni(t,Lb),vE=t=>ni(t,Bb),xE=t=>ni(t,Ub),Vu=t=>ni(t,Fb,!0),SE=t=>ni(t,Qb,!0),zl=(t,l,r)=>{const a=Db.exec(t);return a?a[1]?l(a[1]):r(a[2]):!1},ni=(t,l,r=!1)=>{const a=Nb.exec(t);return a?a[1]?l(a[1]):r:!1},Lb=t=>t==="position"||t==="percentage",Ub=t=>t==="image"||t==="url",Bb=t=>t==="length"||t==="size"||t==="bg-size",Hb=t=>t==="length",kE=t=>t==="number",qb=t=>t==="family-name",Qb=t=>t==="number"||t==="weight",Fb=t=>t==="shadow",wE=()=>{const t=ct("color"),l=ct("font"),r=ct("text"),a=ct("font-weight"),o=ct("tracking"),s=ct("leading"),c=ct("breakpoint"),d=ct("container"),m=ct("spacing"),p=ct("radius"),y=ct("shadow"),g=ct("inset-shadow"),v=ct("text-shadow"),x=ct("drop-shadow"),k=ct("blur"),C=ct("perspective"),T=ct("aspect"),A=ct("ease"),B=ct("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...ee(),ce,oe],Q=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],Y=()=>[ce,oe,m],ae=()=>[Cl,"full","auto",...Y()],q=()=>[An,"none","subgrid",ce,oe],ie=()=>["auto",{span:["full",An,ce,oe]},An,ce,oe],te=()=>[An,"auto",ce,oe],ye=()=>["auto","min","max","fr",ce,oe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...Y()],K=()=>[Cl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],he=()=>[Cl,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],ke=()=>[Cl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],w=()=>[t,ce,oe],O=()=>[...ee(),Zg,Ig,{position:[ce,oe]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",vE,mE,{size:[ce,oe]}],le=()=>[Qc,Kr,Zl],se=()=>["","none","full",p,ce,oe],re=()=>["",Te,Kr,Zl],Ee=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Te,Qc,Zg,Ig],kt=()=>["","none",k,ce,oe],zt=()=>["none",Te,ce,oe],kn=()=>["none",Te,ce,oe],Wn=()=>[Te,ce,oe],Rt=()=>[Cl,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kn],breakpoint:[Kn],color:[jb],container:[Kn],"drop-shadow":[Kn],ease:["in","out","in-out"],font:[hE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kn],shadow:[Kn],spacing:["px",Te],text:[Kn],"text-shadow":[Kn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Cl,oe,ce,T]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,oe]}],"container-named":[dE],columns:[{columns:[Te,oe,ce,d]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:W()}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[An,"auto",ce,oe]}],basis:[{basis:[Cl,"full","auto",d,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,Cl,"auto","initial","none",oe]}],grow:[{grow:["",Te,ce,oe]}],shrink:[{shrink:["",Te,ce,oe]}],order:[{order:[An,"first","last","none",ce,oe]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...ke()]}],"min-block-size":[{"min-block":["auto",...ke()]}],"max-block-size":[{"max-block":["none",...ke()]}],w:[{w:[d,"screen",...K()]}],"min-w":[{"min-w":[d,"screen","none",...K()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,Kr,Zl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,SE,pE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qc,oe]}],"font-family":[{font:[bE,gE,l]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ce,oe]}],"line-clamp":[{"line-clamp":[Te,"none",ce,Xg]}],leading:[{leading:[s,...Y()]}],"list-image":[{"list-image":["none",ce,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ce,Zl]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Te,"auto",ce,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"tab-size":[{tab:[An,ce,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},An,ce,oe],radial:["",ce,oe],conic:[An,ce,oe]},xE,yE]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ce,oe]}],"outline-w":[{outline:["",Te,Kr,Zl]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",y,Vu,Gu]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",g,Vu,Gu]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Te,Zl]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",v,Vu,Gu]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Te,ce,oe]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[ce,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":ee()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,oe]}],filter:[{filter:["","none",ce,oe]}],blur:[{blur:kt()}],brightness:[{brightness:[Te,ce,oe]}],contrast:[{contrast:[Te,ce,oe]}],"drop-shadow":[{"drop-shadow":["","none",x,Vu,Gu]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",Te,ce,oe]}],"hue-rotate":[{"hue-rotate":[Te,ce,oe]}],invert:[{invert:["",Te,ce,oe]}],saturate:[{saturate:[Te,ce,oe]}],sepia:[{sepia:["",Te,ce,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,oe]}],"backdrop-blur":[{"backdrop-blur":kt()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ce,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ce,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ce,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ce,oe]}],"backdrop-invert":[{"backdrop-invert":["",Te,ce,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ce,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ce,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ce,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ce,oe]}],ease:[{ease:["linear","initial",A,ce,oe]}],delay:[{delay:[Te,ce,oe]}],animate:[{animate:["none",B,ce,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ce,oe]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:zt()}],"rotate-x":[{"rotate-x":zt()}],"rotate-y":[{"rotate-y":zt()}],"rotate-z":[{"rotate-z":zt()}],scale:[{scale:kn()}],"scale-x":[{"scale-x":kn()}],"scale-y":[{"scale-y":kn()}],"scale-z":[{"scale-z":kn()}],"scale-3d":["scale-3d"],skew:[{skew:Wn()}],"skew-x":[{"skew-x":Wn()}],"skew-y":[{"skew-y":Wn()}],transform:[{transform:[ce,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Rt()}],"translate-x":[{"translate-x":Rt()}],"translate-y":[{"translate-y":Rt()}],"translate-z":[{"translate-z":Rt()}],"translate-none":["translate-none"],zoom:[{zoom:[An,ce,oe]}],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,oe]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[Te,Kr,Zl,Xg]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},EE=tE(wE);function fn(...t){return EE(Dw(t))}function ha(t){return t.workspace_name||CE(t.branch)||t.directory_name||t.id.slice(0,8)}function CE(t){if(!t)return"";const r=(t.includes("/")?t.slice(t.indexOf("/")+1):t).replace(/[-_]/g," ").trim();return r?r[0].toUpperCase()+r.slice(1):""}function TE(t){return((t.repo_name||ha(t)).trim()[0]??"?").toUpperCase()}function Gb(t){return t.session_status==="working"?"working":t.derived_status==="done"||t.manual_status==="done"?"done":"idle"}function AE(t){const l=Gb(t);return l==="working"?"working":l==="done"?"done":t.session_status||"idle"}function zE(t){return t.manual_status||t.derived_status||"in-progress"}const Kg=["done","in-review","in-progress","backlog"];function RE(t){return{done:"Done","in-review":"In review","in-progress":"In progress",backlog:"Backlog"}[t]??t}function Vb(t){return t?t.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}function OE(t){const l=new Date(t).getTime();if(!Number.isFinite(l))return"";const r=Math.round((Date.now()-l)/1e3);if(r<45)return"now";if(r<90)return"1m";const a=Math.round(r/60);if(a<60)return`${a}m`;const o=Math.round(a/60);return o<24?`${o}h`:`${Math.round(o/24)}d`}function ME({sessionId:t,workspaceId:l,actuator:r}){const[a,o]=N.useState(""),[s,c]=N.useState(!1),[d,m]=N.useState(null),p=N.useRef(null);N.useEffect(()=>{if(!d)return;const k=setTimeout(()=>m(null),d.kind==="err"?5e3:2800);return()=>clearTimeout(k)},[d]);const y=()=>{const k=p.current;k&&(k.style.height="auto",k.style.height=`${Math.min(k.scrollHeight,160)}px`)},g=async()=>{const k=a.trim();if(!(!k||!t||s)){c(!0);try{const C=await ti.sendPrompt(t,k,l);C.ok?(o(""),requestAnimationFrame(y),m({kind:C.warning?"warn":"ok",msg:C.warning||"Sent"})):m({kind:"err",msg:C.error||"Send failed"})}catch(C){m({kind:"err",msg:C instanceof Error?C.message:String(C)})}finally{c(!1)}}},v=!t,x=r?.precise&&r.available;return R.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[d?R.jsx("div",{className:fn("mb-2 rounded-lg px-3 py-1.5 text-xs",d.kind==="ok"&&"bg-idle/10 text-idle",d.kind==="warn"&&"bg-working/10 text-working",d.kind==="err"&&"bg-del/10 text-del"),children:d.msg}):R.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[R.jsx(fw,{size:12}),x?"Precise send — targets this session directly":r?.caveat||"Sends to the focused session"]}),R.jsxs("div",{className:"flex items-end gap-2 rounded-2xl border border-border bg-surface px-2.5 py-1.5 focus-within:border-accent/60",children:[R.jsx("textarea",{ref:p,rows:1,value:a,disabled:v,placeholder:v?"No active session":"Send a prompt…",className:"max-h-40 flex-1 resize-none bg-transparent py-1.5 text-[15px] outline-none placeholder:text-faint disabled:opacity-50",onChange:k=>{o(k.target.value),y()},onKeyDown:k=>{k.key==="Enter"&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),g())}}),R.jsx("button",{type:"button",onClick:g,disabled:v||s||!a.trim(),"aria-label":"Send",className:"mb-0.5 flex size-9 shrink-0 items-center justify-center rounded-full bg-accent text-white transition active:scale-90 disabled:bg-surface-2 disabled:text-faint",children:R.jsx(tw,{size:19})})]})]})}function _E({status:t,className:l}){return R.jsx("span",{className:fn("dot",`dot-${t}`,l)})}function DE(){const t=At(l=>l.online);return R.jsx("span",{title:t?"connected":"offline",className:"dot",style:{background:t?"var(--color-idle)":"var(--color-del)"}})}function Jg({children:t,className:l}){return R.jsx("span",{className:fn("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",l),children:t})}function Yb({children:t}){return R.jsx("span",{className:"grid min-w-5 place-items-center rounded-full bg-accent px-1.5 text-[11px] font-bold text-white",children:t})}function Jn({children:t}){return R.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:t})}function co({label:t}){return R.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[R.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),t]})}function NE({workspaceId:t}){const{data:l,isLoading:r,isError:a,error:o}=Mw(t);return r&&!l?R.jsx(co,{label:"Computing diff…"}):a?R.jsx(Jn,{children:o?.message}):l?l.files.length===0?R.jsxs(Jn,{children:["No changes vs ",R.jsx("span",{className:"font-mono",children:l.base}),"."]}):R.jsxs("div",{className:"pb-safe flex-1 overflow-y-auto",children:[R.jsxs("div",{className:"border-b border-border-soft px-3 py-2 text-xs text-muted",children:["vs ",R.jsx("span",{className:"font-mono text-faint",children:l.base})," · ",l.files.length," file",l.files.length===1?"":"s"]}),R.jsx("ul",{className:"flex flex-col gap-1 px-3 py-3",children:l.files.map(s=>R.jsxs("li",{className:"flex items-center gap-2 font-mono text-[12px]",children:[R.jsx("span",{className:"truncate text-muted",children:s.path}),R.jsxs("span",{className:"ml-auto shrink-0 text-add",children:["+",s.added]}),R.jsxs("span",{className:"shrink-0 text-del",children:["−",s.removed]})]},s.path))}),R.jsx(jE,{patch:l.patch,truncated:l.truncated})]}):R.jsx(Jn,{children:"No diff."})}function jE({patch:t,truncated:l}){const r=N.useMemo(()=>t.split(`
12
- `),[t]);return R.jsxs("pre",{className:"overflow-x-auto border-t border-border-soft px-3 py-3 font-mono text-[11.5px] leading-[1.5]",children:[r.map((a,o)=>R.jsx("div",{className:fn("whitespace-pre",LE(a)),children:a||" "},o)),l?R.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function LE(t){return t.startsWith("+")&&!t.startsWith("+++")?"text-add":t.startsWith("-")&&!t.startsWith("---")?"text-del":t.startsWith("@@")?"text-accent":t.startsWith("diff ")||t.startsWith("index ")||t.startsWith("+++")||t.startsWith("---")?"text-faint":"text-muted"}function bf({title:t,subtitle:l,menu:r,right:a}){const o=At(s=>s.setSidebarOpen);return R.jsxs("header",{className:"pt-safe sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft bg-bg/80 px-3 pb-2.5 backdrop-blur-xl",children:[r?R.jsx("button",{type:"button",onClick:()=>o(!0),"aria-label":"Open workspaces",className:"-ml-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:R.jsx(dw,{size:20})}):R.jsx("span",{className:"w-1"}),R.jsxs("div",{className:"min-w-0 flex-1",children:[R.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:t}),l?R.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:l}):null]}),a,R.jsx(DE,{})]})}function UE(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const BE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qE={};function Pg(t,l){return(qE.jsx?HE:BE).test(t)}const QE=/[ \t\n\f\r]/g;function FE(t){return typeof t=="object"?t.type==="text"?$g(t.value):!1:$g(t)}function $g(t){return t.replace(QE,"")===""}class va{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}va.prototype.normal={};va.prototype.property={};va.prototype.space=void 0;function Xb(t,l){const r={},a={};for(const o of t)Object.assign(r,o.property),Object.assign(a,o.normal);return new va(r,a,l)}function vf(t){return t.toLowerCase()}class qt{constructor(l,r){this.attribute=r,this.property=l}}qt.prototype.attribute="";qt.prototype.booleanish=!1;qt.prototype.boolean=!1;qt.prototype.commaOrSpaceSeparated=!1;qt.prototype.commaSeparated=!1;qt.prototype.defined=!1;qt.prototype.mustUseProperty=!1;qt.prototype.number=!1;qt.prototype.overloadedBoolean=!1;qt.prototype.property="";qt.prototype.spaceSeparated=!1;qt.prototype.space=void 0;let GE=0;const xe=li(),ut=li(),xf=li(),$=li(),Ie=li(),$l=li(),Kt=li();function li(){return 2**++GE}const Sf=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:ut,commaOrSpaceSeparated:Kt,commaSeparated:$l,number:$,overloadedBoolean:xf,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Fc=Object.keys(Sf);class Jf extends qt{constructor(l,r,a,o){let s=-1;if(super(l,r),Wg(this,"space",o),typeof a=="number")for(;++s<Fc.length;){const c=Fc[s];Wg(this,Fc[s],(a&Sf[c])===Sf[c])}}}Jf.prototype.defined=!0;function Wg(t,l,r){r&&(t[l]=r)}function $i(t){const l={},r={};for(const[a,o]of Object.entries(t.properties)){const s=new Jf(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),l[a]=s,r[vf(a)]=a,r[vf(s.attribute)]=a}return new va(l,r,t.space)}const Ib=$i({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Ie,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:$,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Ie,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:ut,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Zb(t,l){return l in t?t[l]:l}function Kb(t,l){return Zb(t,l.toLowerCase())}const VE=$i({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$l,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alpha:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:Ie,autoFocus:xe,autoPlay:xe,blocking:Ie,capture:null,charSet:null,checked:xe,cite:null,className:Ie,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:ut,controls:xe,controlsList:Ie,coords:$|$l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:xf,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:Ie,height:$,hidden:xf,high:$,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:xe,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:$,pattern:null,ping:Ie,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:Ie,required:xe,reversed:xe,rows:$,rowSpan:$,sandbox:Ie,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootCustomElementRegistry:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shadowRootSerializable:xe,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:ut,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:xe,disablePictureInPicture:xe,disableRemotePlayback:xe,exportParts:$l,part:Ie,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:Kb}),YE=$i({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kt,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$l,g2:$l,glyphName:$l,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zb}),Jb=$i({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Pb=$i({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Kb}),$b=$i({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),XE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},IE=/[A-Z]/g,ey=/-[a-z]/g,ZE=/^data[-\w.:]+$/i;function KE(t,l){const r=vf(l);let a=l,o=qt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ZE.test(l)){if(l.charAt(4)==="-"){const s=l.slice(5).replace(ey,PE);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=l.slice(4);if(!ey.test(s)){let c=s.replace(IE,JE);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}o=Jf}return new o(a,l)}function JE(t){return"-"+t.toLowerCase()}function PE(t){return t.charAt(1).toUpperCase()}const $E=Xb([Ib,VE,Jb,Pb,$b],"html"),Pf=Xb([Ib,YE,Jb,Pb,$b],"svg");function WE(t){return t.join(" ").trim()}var Ii={},Gc,ty;function e2(){if(ty)return Gc;ty=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
13
- `,p="/",y="*",g="",v="comment",x="declaration";function k(T,A){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];A=A||{};var B=1,_=1;function ee(ue){var P=ue.match(l);P&&(B+=P.length);var j=ue.lastIndexOf(m);_=~j?ue.length-j:_+ue.length}function W(){var ue={line:B,column:_};return function(P){return P.position=new Q(ue),ae(),P}}function Q(ue){this.start=ue,this.end={line:B,column:_},this.source=A.source}Q.prototype.content=T;function J(ue){var P=new Error(A.source+":"+B+":"+_+": "+ue);if(P.reason=ue,P.filename=A.source,P.line=B,P.column=_,P.source=T,!A.silent)throw P}function Y(ue){var P=ue.exec(T);if(P){var j=P[0];return ee(j),T=T.slice(j.length),P}}function ae(){Y(r)}function q(ue){var P;for(ue=ue||[];P=ie();)P!==!1&&ue.push(P);return ue}function ie(){var ue=W();if(!(p!=T.charAt(0)||y!=T.charAt(1))){for(var P=2;g!=T.charAt(P)&&(y!=T.charAt(P)||p!=T.charAt(P+1));)++P;if(P+=2,g===T.charAt(P-1))return J("End of comment missing");var j=T.slice(2,P-2);return _+=2,ee(j),T=T.slice(P),_+=2,ue({type:v,comment:j})}}function te(){var ue=W(),P=Y(a);if(P){if(ie(),!Y(o))return J("property missing ':'");var j=Y(s),K=ue({type:x,property:C(P[0].replace(t,g)),value:j?C(j[0].replace(t,g)):g});return Y(c),K}}function ye(){var ue=[];q(ue);for(var P;P=te();)P!==!1&&(ue.push(P),q(ue));return ue}return ae(),ye()}function C(T){return T?T.replace(d,g):g}return Gc=k,Gc}var ny;function t2(){if(ny)return Ii;ny=1;var t=Ii&&Ii.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=r;const l=t(e2());function r(a,o){let s=null;if(!a||typeof a!="string")return s;const c=(0,l.default)(a),d=typeof o=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:y}=m;d?o(p,y,m):y&&(s=s||{},s[p]=y)}),s}return Ii}var Jr={},ly;function n2(){if(ly)return Jr;ly=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(p){return!p||r.test(p)||t.test(p)},c=function(p,y){return y.toUpperCase()},d=function(p,y){return"".concat(y,"-")},m=function(p,y){return y===void 0&&(y={}),s(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(o,d):p=p.replace(a,d),p.replace(l,c))};return Jr.camelCase=m,Jr}var Pr,iy;function l2(){if(iy)return Pr;iy=1;var t=Pr&&Pr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=t(t2()),r=n2();function a(o,s){var c={};return!o||typeof o!="string"||(0,l.default)(o,function(d,m){d&&m&&(c[(0,r.camelCase)(d,s)]=m)}),c}return a.default=a,Pr=a,Pr}var i2=l2();const r2=Mf(i2),Wb=ev("end"),$f=ev("start");function ev(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function a2(t){const l=$f(t),r=Wb(t);if(l&&r)return{start:l,end:r}}function la(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?ry(t.position):"start"in t||"end"in t?ry(t):"line"in t||"column"in t?kf(t):""}function kf(t){return ay(t&&t.line)+":"+ay(t&&t.column)}function ry(t){return kf(t&&t.start)+"-"+kf(t&&t.end)}function ay(t){return t&&typeof t=="number"?t:1}class St extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof l=="string"?o=l:!s.cause&&l&&(c=!0,o=l.message,s.cause=l),!s.ruleId&&!s.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?s.ruleId=a:(s.source=a.slice(0,m),s.ruleId=a.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=la(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}St.prototype.file="";St.prototype.name="";St.prototype.reason="";St.prototype.message="";St.prototype.stack="";St.prototype.column=void 0;St.prototype.line=void 0;St.prototype.ancestors=void 0;St.prototype.cause=void 0;St.prototype.fatal=void 0;St.prototype.place=void 0;St.prototype.ruleId=void 0;St.prototype.source=void 0;const Wf={}.hasOwnProperty,u2=new Map,o2=/[A-Z]/g,s2=new Set(["table","tbody","thead","tfoot","tr"]),c2=new Set(["td","th"]),tv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function f2(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=v2(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=b2(r,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Pf:$E,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},s=nv(o,t,void 0);return s&&typeof s!="string"?s:o.create(t,o.Fragment,{children:s||void 0},void 0)}function nv(t,l,r){if(l.type==="element")return h2(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return d2(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return p2(t,l,r);if(l.type==="mdxjsEsm")return m2(t,l);if(l.type==="root")return g2(t,l,r);if(l.type==="text")return y2(t,l)}function h2(t,l,r){const a=t.schema;let o=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Pf,t.schema=o),t.ancestors.push(l);const s=iv(t,l.tagName,!1),c=x2(t,l);let d=th(t,l);return s2.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!FE(m):!0})),lv(t,c,s,l),eh(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function d2(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}da(t,l.position)}function m2(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);da(t,l.position)}function p2(t,l,r){const a=t.schema;let o=a;l.name==="svg"&&a.space==="html"&&(o=Pf,t.schema=o),t.ancestors.push(l);const s=l.name===null?t.Fragment:iv(t,l.name,!0),c=S2(t,l),d=th(t,l);return lv(t,c,s,l),eh(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function g2(t,l,r){const a={};return eh(a,th(t,l)),t.create(l,t.Fragment,a,r)}function y2(t,l){return l.value}function lv(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function eh(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function b2(t,l,r){return a;function a(o,s,c,d){const p=Array.isArray(c.children)?r:l;return d?p(s,c,d):p(s,c)}}function v2(t,l){return r;function r(a,o,s,c){const d=Array.isArray(s.children),m=$f(a);return l(o,s,c,d,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function x2(t,l){const r={};let a,o;for(o in l.properties)if(o!=="children"&&Wf.call(l.properties,o)){const s=k2(t,o,l.properties[o]);if(s){const[c,d]=s;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&c2.has(l.tagName)?a=d:r[c]=d}}if(a){const s=r.style||(r.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function S2(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else da(t,l.position);else{const o=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,s=t.evaluater.evaluateExpression(d.expression)}else da(t,l.position);else s=a.value===null?!0:a.value;r[o]=s}return r}function th(t,l){const r=[];let a=-1;const o=t.passKeys?new Map:u2;for(;++a<l.children.length;){const s=l.children[a];let c;if(t.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const p=o.get(m)||0;c=m+"-"+p,o.set(m,p+1)}}const d=nv(t,s,c);d!==void 0&&r.push(d)}return r}function k2(t,l,r){const a=KE(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?UE(r):WE(r)),a.property==="style"){let o=typeof r=="object"?r:w2(t,String(r));return t.stylePropertyNameCase==="css"&&(o=E2(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&a.space?XE[a.property]||a.property:a.attribute,r]}}function w2(t,l){try{return r2(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,o=new St("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=tv+"#cannot-parse-style-attribute",o}}function iv(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let s=-1,c;for(;++s<o.length;){const d=Pg(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}a=c}else a=Pg(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const o=a.value;return Wf.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(a);da(t)}function da(t,l){const r=new St("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=tv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function E2(t){const l={};let r;for(r in t)Wf.call(t,r)&&(l[C2(r)]=t[r]);return l}function C2(t){let l=t.replace(o2,T2);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function T2(t){return"-"+t.toLowerCase()}const Vc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},A2={};function nh(t,l){const r=A2,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return rv(t,a,o)}function rv(t,l,r){if(z2(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return uy(t.children,l,r)}return Array.isArray(t)?uy(t,l,r):""}function uy(t,l,r){const a=[];let o=-1;for(;++o<t.length;)a[o]=rv(t[o],l,r);return a.join("")}function z2(t){return!!(t&&typeof t=="object")}const oy=document.createElement("i");function lh(t){const l="&"+t+";";oy.innerHTML=l;const r=oy.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function Pt(t,l,r,a){const o=t.length;let s=0,c;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);s<a.length;)c=a.slice(s,s+1e4),c.unshift(l,0),t.splice(...c),s+=1e4,l+=1e4}function cn(t,l){return t.length>0?(Pt(t,t.length,0,l),t):l}const sy={}.hasOwnProperty;function av(t){const l={};let r=-1;for(;++r<t.length;)R2(l,t[r]);return l}function R2(t,l){let r;for(r in l){const o=(sy.call(t,r)?t[r]:void 0)||(t[r]={}),s=l[r];let c;if(s)for(c in s){sy.call(o,c)||(o[c]=[]);const d=s[c];O2(o[c],Array.isArray(d)?d:d?[d]:[])}}}function O2(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);Pt(t,0,0,a)}function uv(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function bn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=Rl(/[A-Za-z]/),xt=Rl(/[\dA-Za-z]/),M2=Rl(/[#-'*+\--9=?A-Z^-~]/);function to(t){return t!==null&&(t<32||t===127)}const wf=Rl(/\d/),_2=Rl(/[\dA-Fa-f]/),D2=Rl(/[!-/:-@[-`{-~]/);function pe(t){return t!==null&&t<-2}function Ze(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const fo=Rl(new RegExp("\\p{P}|\\p{S}","u")),Wl=Rl(/\s/);function Rl(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Wi(t){const l=[];let r=-1,a=0,o=0;for(;++r<t.length;){const s=t.charCodeAt(r);let c="";if(s===37&&xt(t.charCodeAt(r+1))&&xt(t.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=t.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+o+1,c=""),o&&(r+=o,o=0)}return l.join("")+t.slice(a)}function Ne(t,l,r,a){const o=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(m){return Oe(m)?(t.enter(r),d(m)):l(m)}function d(m){return Oe(m)&&s++<o?(t.consume(m),d):(t.exit(r),l(m))}}const N2={tokenize:j2};function j2(t){const l=t.attempt(this.parser.constructs.contentInitial,a,o);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ne(t,l,"linePrefix")}function o(d){return t.enter("paragraph"),s(d)}function s(d){const m=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=m),r=m,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return pe(d)?(t.consume(d),t.exit("chunkText"),s):(t.consume(d),c)}}const L2={tokenize:U2},cy={tokenize:B2};function U2(t){const l=this,r=[];let a=0,o,s,c;return d;function d(_){if(a<r.length){const ee=r[a];return l.containerState=ee[1],t.attempt(ee[0].continuation,m,p)(_)}return p(_)}function m(_){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&B();const ee=l.events.length;let W=ee,Q;for(;W--;)if(l.events[W][0]==="exit"&&l.events[W][1].type==="chunkFlow"){Q=l.events[W][1].end;break}A(a);let J=ee;for(;J<l.events.length;)l.events[J][1].end={...Q},J++;return Pt(l.events,W+1,0,l.events.slice(ee)),l.events.length=J,p(_)}return d(_)}function p(_){if(a===r.length){if(!o)return v(_);if(o.currentConstruct&&o.currentConstruct.concrete)return k(_);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(cy,y,g)(_)}function y(_){return o&&B(),A(a),v(_)}function g(_){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,k(_)}function v(_){return l.containerState={},t.attempt(cy,x,k)(_)}function x(_){return a++,r.push([l.currentConstruct,l.containerState]),v(_)}function k(_){if(_===null){o&&B(),A(0),t.consume(_);return}return o=o||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),C(_)}function C(_){if(_===null){T(t.exit("chunkFlow"),!0),A(0),t.consume(_);return}return pe(_)?(t.consume(_),T(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(_),C)}function T(_,ee){const W=l.sliceStream(_);if(ee&&W.push(null),_.previous=s,s&&(s.next=_),s=_,o.defineSkip(_.start),o.write(W),l.parser.lazy[_.start.line]){let Q=o.events.length;for(;Q--;)if(o.events[Q][1].start.offset<c&&(!o.events[Q][1].end||o.events[Q][1].end.offset>c))return;const J=l.events.length;let Y=J,ae,q;for(;Y--;)if(l.events[Y][0]==="exit"&&l.events[Y][1].type==="chunkFlow"){if(ae){q=l.events[Y][1].end;break}ae=!0}for(A(a),Q=J;Q<l.events.length;)l.events[Q][1].end={...q},Q++;Pt(l.events,Y+1,0,l.events.slice(J)),l.events.length=Q}}function A(_){let ee=r.length;for(;ee-- >_;){const W=r[ee];l.containerState=W[1],W[0].exit.call(l,t)}r.length=_}function B(){o.write([null]),s=void 0,o=void 0,l.containerState._closeFlow=void 0}}function B2(t,l,r){return Ne(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ki(t){if(t===null||Ze(t)||Wl(t))return 1;if(fo(t))return 2}function ho(t,l,r){const a=[];let o=-1;for(;++o<t.length;){const s=t[o].resolveAll;s&&!a.includes(s)&&(l=s(l,r),a.push(s))}return l}const Ef={name:"attention",resolveAll:H2,tokenize:q2};function H2(t,l){let r=-1,a,o,s,c,d,m,p,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;m=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[r][1].start};fy(g,-m),fy(v,m),c={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},s={type:m>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},o={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},p=[],t[a][1].end.offset-t[a][1].start.offset&&(p=cn(p,[["enter",t[a][1],l],["exit",t[a][1],l]])),p=cn(p,[["enter",o,l],["enter",c,l],["exit",c,l],["enter",s,l]]),p=cn(p,ho(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),p=cn(p,[["exit",s,l],["enter",d,l],["exit",d,l],["exit",o,l]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,p=cn(p,[["enter",t[r][1],l],["exit",t[r][1],l]])):y=0,Pt(t,a-1,r-a+3,p),r=a+p.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function q2(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=Ki(a);let s;return c;function c(m){return s=m,t.enter("attentionSequence"),d(m)}function d(m){if(m===s)return t.consume(m),d;const p=t.exit("attentionSequence"),y=Ki(m),g=!y||y===2&&o||r.includes(m),v=!o||o===2&&y||r.includes(a);return p._open=!!(s===42?g:g&&(o||!v)),p._close=!!(s===42?v:v&&(y||!g)),l(m)}}function fy(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const Q2={name:"autolink",tokenize:F2};function F2(t,l,r){let a=0;return o;function o(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(x){return Tt(x)?(t.consume(x),c):x===64?r(x):p(x)}function c(x){return x===43||x===45||x===46||xt(x)?(a=1,d(x)):p(x)}function d(x){return x===58?(t.consume(x),a=0,m):(x===43||x===45||x===46||xt(x))&&a++<32?(t.consume(x),d):(a=0,p(x))}function m(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):x===null||x===32||x===60||to(x)?r(x):(t.consume(x),m)}function p(x){return x===64?(t.consume(x),y):M2(x)?(t.consume(x),p):r(x)}function y(x){return xt(x)?g(x):r(x)}function g(x){return x===46?(t.consume(x),a=0,y):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):v(x)}function v(x){if((x===45||xt(x))&&a++<63){const k=x===45?v:g;return t.consume(x),k}return r(x)}}const xa={partial:!0,tokenize:G2};function G2(t,l,r){return a;function a(s){return Oe(s)?Ne(t,o,"linePrefix")(s):o(s)}function o(s){return s===null||pe(s)?l(s):r(s)}}const ov={continuation:{tokenize:Y2},exit:X2,name:"blockQuote",tokenize:V2};function V2(t,l,r){const a=this;return o;function o(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Oe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function Y2(t,l,r){const a=this;return o;function o(c){return Oe(c)?Ne(t,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return t.attempt(ov,l,r)(c)}}function X2(t){t.exit("blockQuote")}const sv={name:"characterEscape",tokenize:I2};function I2(t,l,r){return a;function a(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),o}function o(s){return D2(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(s)}}const cv={name:"characterReference",tokenize:Z2};function Z2(t,l,r){const a=this;let o=0,s,c;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),m}function m(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),s=31,c=xt,y(g))}function p(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,c=_2,y):(t.enter("characterReferenceValue"),s=7,c=wf,y(g))}function y(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return c===xt&&!lh(a.sliceSerialize(v))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(g)&&o++<s?(t.consume(g),y):r(g)}}const hy={partial:!0,tokenize:J2},dy={concrete:!0,name:"codeFenced",tokenize:K2};function K2(t,l,r){const a=this,o={partial:!0,tokenize:W};let s=0,c=0,d;return m;function m(Q){return p(Q)}function p(Q){const J=a.events[a.events.length-1];return s=J&&J[1].type==="linePrefix"?J[2].sliceSerialize(J[1],!0).length:0,d=Q,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(Q)}function y(Q){return Q===d?(c++,t.consume(Q),y):c<3?r(Q):(t.exit("codeFencedFenceSequence"),Oe(Q)?Ne(t,g,"whitespace")(Q):g(Q))}function g(Q){return Q===null||pe(Q)?(t.exit("codeFencedFence"),a.interrupt?l(Q):t.check(hy,C,ee)(Q)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(Q))}function v(Q){return Q===null||pe(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(Q)):Oe(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ne(t,x,"whitespace")(Q)):Q===96&&Q===d?r(Q):(t.consume(Q),v)}function x(Q){return Q===null||pe(Q)?g(Q):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),k(Q))}function k(Q){return Q===null||pe(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(Q)):Q===96&&Q===d?r(Q):(t.consume(Q),k)}function C(Q){return t.attempt(o,ee,T)(Q)}function T(Q){return t.enter("lineEnding"),t.consume(Q),t.exit("lineEnding"),A}function A(Q){return s>0&&Oe(Q)?Ne(t,B,"linePrefix",s+1)(Q):B(Q)}function B(Q){return Q===null||pe(Q)?t.check(hy,C,ee)(Q):(t.enter("codeFlowValue"),_(Q))}function _(Q){return Q===null||pe(Q)?(t.exit("codeFlowValue"),B(Q)):(t.consume(Q),_)}function ee(Q){return t.exit("codeFenced"),l(Q)}function W(Q,J,Y){let ae=0;return q;function q(P){return Q.enter("lineEnding"),Q.consume(P),Q.exit("lineEnding"),ie}function ie(P){return Q.enter("codeFencedFence"),Oe(P)?Ne(Q,te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):te(P)}function te(P){return P===d?(Q.enter("codeFencedFenceSequence"),ye(P)):Y(P)}function ye(P){return P===d?(ae++,Q.consume(P),ye):ae>=c?(Q.exit("codeFencedFenceSequence"),Oe(P)?Ne(Q,ue,"whitespace")(P):ue(P)):Y(P)}function ue(P){return P===null||pe(P)?(Q.exit("codeFencedFence"),J(P)):Y(P)}}}function J2(t,l,r){const a=this;return o;function o(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const Yc={name:"codeIndented",tokenize:$2},P2={partial:!0,tokenize:W2};function $2(t,l,r){const a=this;return o;function o(p){return t.enter("codeIndented"),Ne(t,s,"linePrefix",5)(p)}function s(p){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?m(p):pe(p)?t.attempt(P2,c,m)(p):(t.enter("codeFlowValue"),d(p))}function d(p){return p===null||pe(p)?(t.exit("codeFlowValue"),c(p)):(t.consume(p),d)}function m(p){return t.exit("codeIndented"),l(p)}}function W2(t,l,r){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?r(c):pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):Ne(t,s,"linePrefix",5)(c)}function s(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):pe(c)?o(c):r(c)}}const eC={name:"codeText",previous:nC,resolve:tC,tokenize:lC};function tC(t){let l=t.length-4,r=3,a,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)o===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(o=a):(a===l||t[a][1].type==="lineEnding")&&(t[o][1].type="codeTextData",a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),l-=a-o-2,a=o+2),o=void 0);return t}function nC(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lC(t,l,r){let a=0,o,s;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),m(g))}function m(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),m):g===96?(s=t.enter("codeTextSequence"),o=0,y(g)):pe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||pe(g)?(t.exit("codeTextData"),m(g)):(t.consume(g),p)}function y(g){return g===96?(t.consume(g),o++,y):o===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(s.type="codeTextData",p(g))}}class iC{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const o=r||0;this.setCursor(Math.trunc(l));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&$r(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),$r(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),$r(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);$r(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);$r(this.left,r.reverse())}}}function $r(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function fv(t){const l={};let r=-1,a,o,s,c,d,m,p;const y=new iC(t);for(;++r<y.length;){for(;r in l;)r=l[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,rC(y,r)),r=l[r],p=!0);else if(a[1]._container){for(s=r,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,r),d.unshift(a),y.splice(o,r-o+1,d))}}return Pt(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function rC(t,l){const r=t.get(l)[1],a=t.get(l)[2];let o=l-1;const s=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,m=[],p={};let y,g,v=-1,x=r,k=0,C=0;const T=[C];for(;x;){for(;t.get(++o)[1]!==x;);s.push(o),x._tokenizer||(y=a.sliceStream(x),x.next||y.push(null),g&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(C=v+1,T.push(C),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):T.pop(),v=T.length;v--;){const A=d.slice(T[v],T[v+1]),B=s.pop();m.push([B,B+A.length-1]),t.splice(B,2,A)}for(m.reverse(),v=-1;++v<m.length;)p[k+m[v][0]]=k+m[v][1],k+=m[v][1]-m[v][0]-1;return p}const aC={resolve:oC,tokenize:sC},uC={partial:!0,tokenize:cC};function oC(t){return fv(t),t}function sC(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):pe(d)?t.check(uC,c,s)(d):(t.consume(d),o)}function s(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function cC(t,l,r){const a=this;return o;function o(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ne(t,s,"linePrefix")}function s(c){if(c===null||pe(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function hv(t,l,r,a,o,s,c,d,m){const p=m||Number.POSITIVE_INFINITY;let y=0;return g;function g(A){return A===60?(t.enter(a),t.enter(o),t.enter(s),t.consume(A),t.exit(s),v):A===null||A===32||A===41||to(A)?r(A):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),C(A))}function v(A){return A===62?(t.enter(s),t.consume(A),t.exit(s),t.exit(o),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===62?(t.exit("chunkString"),t.exit(d),v(A)):A===null||A===60||pe(A)?r(A):(t.consume(A),A===92?k:x)}function k(A){return A===60||A===62||A===92?(t.consume(A),x):x(A)}function C(A){return!y&&(A===null||A===41||Ze(A))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(A)):y<p&&A===40?(t.consume(A),y++,C):A===41?(t.consume(A),y--,C):A===null||A===32||A===40||to(A)?r(A):(t.consume(A),A===92?T:C)}function T(A){return A===40||A===41||A===92?(t.consume(A),C):C(A)}}function dv(t,l,r,a,o,s){const c=this;let d=0,m;return p;function p(x){return t.enter(a),t.enter(o),t.consume(x),t.exit(o),t.enter(s),y}function y(x){return d>999||x===null||x===91||x===93&&!m||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(t.exit(s),t.enter(o),t.consume(x),t.exit(o),t.exit(a),l):pe(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||pe(x)||d++>999?(t.exit("chunkString"),y(x)):(t.consume(x),m||(m=!Oe(x)),x===92?v:g)}function v(x){return x===91||x===92||x===93?(t.consume(x),d++,g):g(x)}}function mv(t,l,r,a,o,s){let c;return d;function d(v){return v===34||v===39||v===40?(t.enter(a),t.enter(o),t.consume(v),t.exit(o),c=v===40?41:v,m):r(v)}function m(v){return v===c?(t.enter(o),t.consume(v),t.exit(o),t.exit(a),l):(t.enter(s),p(v))}function p(v){return v===c?(t.exit(s),m(c)):v===null?r(v):pe(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ne(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||pe(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(t.consume(v),y):y(v)}}function ia(t,l){let r;return a;function a(o){return pe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,a):Oe(o)?Ne(t,a,r?"linePrefix":"lineSuffix")(o):l(o)}}const fC={name:"definition",tokenize:dC},hC={partial:!0,tokenize:mC};function dC(t,l,r){const a=this;let o;return s;function s(x){return t.enter("definition"),c(x)}function c(x){return dv.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=bn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),m):r(x)}function m(x){return Ze(x)?ia(t,p)(x):p(x)}function p(x){return hv(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function y(x){return t.attempt(hC,g,g)(x)}function g(x){return Oe(x)?Ne(t,v,"whitespace")(x):v(x)}function v(x){return x===null||pe(x)?(t.exit("definition"),a.parser.defined.push(o),l(x)):r(x)}}function mC(t,l,r){return a;function a(d){return Ze(d)?ia(t,o)(d):r(d)}function o(d){return mv(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Oe(d)?Ne(t,c,"whitespace")(d):c(d)}function c(d){return d===null||pe(d)?l(d):r(d)}}const pC={name:"hardBreakEscape",tokenize:gC};function gC(t,l,r){return a;function a(s){return t.enter("hardBreakEscape"),t.consume(s),o}function o(s){return pe(s)?(t.exit("hardBreakEscape"),l(s)):r(s)}}const yC={name:"headingAtx",resolve:bC,tokenize:vC};function bC(t,l){let r=t.length-2,a=3,o,s;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(o={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},s={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},Pt(t,a,r-a+1,[["enter",o,l],["enter",s,l],["exit",s,l],["exit",o,l]])),t}function vC(t,l,r){let a=0;return o;function o(y){return t.enter("atxHeading"),s(y)}function s(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||Ze(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),m(y)):y===null||pe(y)?(t.exit("atxHeading"),l(y)):Oe(y)?Ne(t,d,"whitespace")(y):(t.enter("atxHeadingText"),p(y))}function m(y){return y===35?(t.consume(y),m):(t.exit("atxHeadingSequence"),d(y))}function p(y){return y===null||y===35||Ze(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),p)}}const xC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],my=["pre","script","style","textarea"],SC={concrete:!0,name:"htmlFlow",resolveTo:EC,tokenize:CC},kC={partial:!0,tokenize:AC},wC={partial:!0,tokenize:TC};function EC(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function CC(t,l,r){const a=this;let o,s,c,d,m;return p;function p(E){return y(E)}function y(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),g}function g(E){return E===33?(t.consume(E),v):E===47?(t.consume(E),s=!0,C):E===63?(t.consume(E),o=3,a.interrupt?l:w):Tt(E)?(t.consume(E),c=String.fromCharCode(E),T):r(E)}function v(E){return E===45?(t.consume(E),o=2,x):E===91?(t.consume(E),o=5,d=0,k):Tt(E)?(t.consume(E),o=4,a.interrupt?l:w):r(E)}function x(E){return E===45?(t.consume(E),a.interrupt?l:w):r(E)}function k(E){const le="CDATA[";return E===le.charCodeAt(d++)?(t.consume(E),d===le.length?a.interrupt?l:te:k):r(E)}function C(E){return Tt(E)?(t.consume(E),c=String.fromCharCode(E),T):r(E)}function T(E){if(E===null||E===47||E===62||Ze(E)){const le=E===47,se=c.toLowerCase();return!le&&!s&&my.includes(se)?(o=1,a.interrupt?l(E):te(E)):xC.includes(c.toLowerCase())?(o=6,le?(t.consume(E),A):a.interrupt?l(E):te(E)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(E):s?B(E):_(E))}return E===45||xt(E)?(t.consume(E),c+=String.fromCharCode(E),T):r(E)}function A(E){return E===62?(t.consume(E),a.interrupt?l:te):r(E)}function B(E){return Oe(E)?(t.consume(E),B):q(E)}function _(E){return E===47?(t.consume(E),q):E===58||E===95||Tt(E)?(t.consume(E),ee):Oe(E)?(t.consume(E),_):q(E)}function ee(E){return E===45||E===46||E===58||E===95||xt(E)?(t.consume(E),ee):W(E)}function W(E){return E===61?(t.consume(E),Q):Oe(E)?(t.consume(E),W):_(E)}function Q(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),m=E,J):Oe(E)?(t.consume(E),Q):Y(E)}function J(E){return E===m?(t.consume(E),m=null,ae):E===null||pe(E)?r(E):(t.consume(E),J)}function Y(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ze(E)?W(E):(t.consume(E),Y)}function ae(E){return E===47||E===62||Oe(E)?_(E):r(E)}function q(E){return E===62?(t.consume(E),ie):r(E)}function ie(E){return E===null||pe(E)?te(E):Oe(E)?(t.consume(E),ie):r(E)}function te(E){return E===45&&o===2?(t.consume(E),j):E===60&&o===1?(t.consume(E),K):E===62&&o===4?(t.consume(E),O):E===63&&o===3?(t.consume(E),w):E===93&&o===5?(t.consume(E),ke):pe(E)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(kC,V,ye)(E)):E===null||pe(E)?(t.exit("htmlFlowData"),ye(E)):(t.consume(E),te)}function ye(E){return t.check(wC,ue,V)(E)}function ue(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),P}function P(E){return E===null||pe(E)?ye(E):(t.enter("htmlFlowData"),te(E))}function j(E){return E===45?(t.consume(E),w):te(E)}function K(E){return E===47?(t.consume(E),c="",he):te(E)}function he(E){if(E===62){const le=c.toLowerCase();return my.includes(le)?(t.consume(E),O):te(E)}return Tt(E)&&c.length<8?(t.consume(E),c+=String.fromCharCode(E),he):te(E)}function ke(E){return E===93?(t.consume(E),w):te(E)}function w(E){return E===62?(t.consume(E),O):E===45&&o===2?(t.consume(E),w):te(E)}function O(E){return E===null||pe(E)?(t.exit("htmlFlowData"),V(E)):(t.consume(E),O)}function V(E){return t.exit("htmlFlow"),l(E)}}function TC(t,l,r){const a=this;return o;function o(c){return pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):r(c)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function AC(t,l,r){return a;function a(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(xa,l,r)}}const zC={name:"htmlText",tokenize:RC};function RC(t,l,r){const a=this;let o,s,c;return d;function d(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),m}function m(w){return w===33?(t.consume(w),p):w===47?(t.consume(w),W):w===63?(t.consume(w),_):Tt(w)?(t.consume(w),Y):r(w)}function p(w){return w===45?(t.consume(w),y):w===91?(t.consume(w),s=0,k):Tt(w)?(t.consume(w),B):r(w)}function y(w){return w===45?(t.consume(w),x):r(w)}function g(w){return w===null?r(w):w===45?(t.consume(w),v):pe(w)?(c=g,K(w)):(t.consume(w),g)}function v(w){return w===45?(t.consume(w),x):g(w)}function x(w){return w===62?j(w):w===45?v(w):g(w)}function k(w){const O="CDATA[";return w===O.charCodeAt(s++)?(t.consume(w),s===O.length?C:k):r(w)}function C(w){return w===null?r(w):w===93?(t.consume(w),T):pe(w)?(c=C,K(w)):(t.consume(w),C)}function T(w){return w===93?(t.consume(w),A):C(w)}function A(w){return w===62?j(w):w===93?(t.consume(w),A):C(w)}function B(w){return w===null||w===62?j(w):pe(w)?(c=B,K(w)):(t.consume(w),B)}function _(w){return w===null?r(w):w===63?(t.consume(w),ee):pe(w)?(c=_,K(w)):(t.consume(w),_)}function ee(w){return w===62?j(w):_(w)}function W(w){return Tt(w)?(t.consume(w),Q):r(w)}function Q(w){return w===45||xt(w)?(t.consume(w),Q):J(w)}function J(w){return pe(w)?(c=J,K(w)):Oe(w)?(t.consume(w),J):j(w)}function Y(w){return w===45||xt(w)?(t.consume(w),Y):w===47||w===62||Ze(w)?ae(w):r(w)}function ae(w){return w===47?(t.consume(w),j):w===58||w===95||Tt(w)?(t.consume(w),q):pe(w)?(c=ae,K(w)):Oe(w)?(t.consume(w),ae):j(w)}function q(w){return w===45||w===46||w===58||w===95||xt(w)?(t.consume(w),q):ie(w)}function ie(w){return w===61?(t.consume(w),te):pe(w)?(c=ie,K(w)):Oe(w)?(t.consume(w),ie):ae(w)}function te(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),o=w,ye):pe(w)?(c=te,K(w)):Oe(w)?(t.consume(w),te):(t.consume(w),ue)}function ye(w){return w===o?(t.consume(w),o=void 0,P):w===null?r(w):pe(w)?(c=ye,K(w)):(t.consume(w),ye)}function ue(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||Ze(w)?ae(w):(t.consume(w),ue)}function P(w){return w===47||w===62||Ze(w)?ae(w):r(w)}function j(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),l):r(w)}function K(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),he}function he(w){return Oe(w)?Ne(t,ke,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ke(w)}function ke(w){return t.enter("htmlTextData"),c(w)}}const ih={name:"labelEnd",resolveAll:DC,resolveTo:NC,tokenize:jC},OC={tokenize:LC},MC={tokenize:UC},_C={tokenize:BC};function DC(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",l+=o}}return t.length!==r.length&&Pt(t,0,t.length,r),t}function NC(t,l){let r=t.length,a=0,o,s,c,d;for(;r--;)if(o=t[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=r);const m={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[s][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[s+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",m,l],["enter",p,l]],d=cn(d,t.slice(s+1,s+a+3)),d=cn(d,[["enter",y,l]]),d=cn(d,ho(l.parser.constructs.insideSpan.null,t.slice(s+a+4,c-3),l)),d=cn(d,[["exit",y,l],t[c-2],t[c-1],["exit",p,l]]),d=cn(d,t.slice(c+1)),d=cn(d,[["exit",m,l]]),Pt(t,s,t.length,d),t}function jC(t,l,r){const a=this;let o=a.events.length,s,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){s=a.events[o][1];break}return d;function d(v){return s?s._inactive?g(v):(c=a.parser.defined.includes(bn(a.sliceSerialize({start:s.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),m):r(v)}function m(v){return v===40?t.attempt(OC,y,c?y:g)(v):v===91?t.attempt(MC,y,c?p:g)(v):c?y(v):g(v)}function p(v){return t.attempt(_C,y,g)(v)}function y(v){return l(v)}function g(v){return s._balanced=!0,r(v)}}function LC(t,l,r){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),o}function o(g){return Ze(g)?ia(t,s)(g):s(g)}function s(g){return g===41?y(g):hv(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Ze(g)?ia(t,m)(g):y(g)}function d(g){return r(g)}function m(g){return g===34||g===39||g===40?mv(t,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function p(g){return Ze(g)?ia(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):r(g)}}function UC(t,l,r){const a=this;return o;function o(d){return dv.call(a,t,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return a.parser.defined.includes(bn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function BC(t,l,r){return a;function a(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),o}function o(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),l):r(s)}}const HC={name:"labelStartImage",resolveAll:ih.resolveAll,tokenize:qC};function qC(t,l,r){const a=this;return o;function o(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),s}function s(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const QC={name:"labelStartLink",resolveAll:ih.resolveAll,tokenize:FC};function FC(t,l,r){const a=this;return o;function o(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const Xc={name:"lineEnding",tokenize:GC};function GC(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ne(t,l,"linePrefix")}}const Pu={name:"thematicBreak",tokenize:VC};function VC(t,l,r){let a=0,o;return s;function s(p){return t.enter("thematicBreak"),c(p)}function c(p){return o=p,d(p)}function d(p){return p===o?(t.enter("thematicBreakSequence"),m(p)):a>=3&&(p===null||pe(p))?(t.exit("thematicBreak"),l(p)):r(p)}function m(p){return p===o?(t.consume(p),a++,m):(t.exit("thematicBreakSequence"),Oe(p)?Ne(t,d,"whitespace")(p):d(p))}}const Bt={continuation:{tokenize:ZC},exit:JC,name:"list",tokenize:IC},YC={partial:!0,tokenize:PC},XC={partial:!0,tokenize:KC};function IC(t,l,r){const a=this,o=a.events[a.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(x){const k=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:wf(x)){if(a.containerState.type||(a.containerState.type=k,t.enter(k,{_container:!0})),k==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(Pu,r,p)(x):p(x);if(!a.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(x)}return r(x)}function m(x){return wf(x)&&++c<10?(t.consume(x),m):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),p(x)):r(x)}function p(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,t.check(xa,a.interrupt?r:y,t.attempt(YC,v,g))}function y(x){return a.containerState.initialBlankLine=!0,s++,v(x)}function g(x){return Oe(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),v):r(x)}function v(x){return a.containerState.size=s+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(x)}}function ZC(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(xa,o,s);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ne(t,l,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!Oe(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(XC,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ne(t,t.attempt(Bt,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function KC(t,l,r){const a=this;return Ne(t,o,"listItemIndent",a.containerState.size+1);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(s):r(s)}}function JC(t){t.exit(this.containerState.type)}function PC(t,l,r){const a=this;return Ne(t,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=a.events[a.events.length-1];return!Oe(s)&&c&&c[1].type==="listItemPrefixWhitespace"?l(s):r(s)}}const py={name:"setextUnderline",resolveTo:$C,tokenize:WC};function $C(t,l){let r=t.length,a,o,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(o=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",s?(t.splice(o,0,["enter",c,l]),t.splice(s+1,0,["exit",t[a][1],l]),t[a][1].end={...t[s][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function WC(t,l,r){const a=this;let o;return s;function s(p){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),o=p,c(p)):r(p)}function c(p){return t.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===o?(t.consume(p),d):(t.exit("setextHeadingLineSequence"),Oe(p)?Ne(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||pe(p)?(t.exit("setextHeadingLine"),l(p)):r(p)}}const eT={tokenize:tT};function tT(t){const l=this,r=t.attempt(xa,a,t.attempt(this.parser.constructs.flowInitial,o,Ne(t,t.attempt(this.parser.constructs.flow,o,t.attempt(aC,o)),"linePrefix")));return r;function a(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function o(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const nT={resolveAll:gv()},lT=pv("string"),iT=pv("text");function pv(t){return{resolveAll:gv(t==="text"?rT:void 0),tokenize:l};function l(r){const a=this,o=this.parser.constructs[t],s=r.attempt(o,c,d);return c;function c(y){return p(y)?s(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),m}function m(y){return p(y)?(r.exit("data"),s(y)):(r.consume(y),m)}function p(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const x=g[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function gv(t){return l;function l(r,a){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return t?t(r,a):r}}function rT(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],o=l.sliceStream(a);let s=o.length,c=-1,d=0,m;for(;s--;){const p=o[s];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)m=!0,d++;else if(p!==-1){s++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const p={type:r===t.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:a.start._bufferIndex+c,_index:a.start._index+s,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(t.splice(r,0,["enter",p,l],["exit",p,l]),r+=2)}r++}return t}const aT={42:Bt,43:Bt,45:Bt,48:Bt,49:Bt,50:Bt,51:Bt,52:Bt,53:Bt,54:Bt,55:Bt,56:Bt,57:Bt,62:ov},uT={91:fC},oT={[-2]:Yc,[-1]:Yc,32:Yc},sT={35:yC,42:Pu,45:[py,Pu],60:SC,61:py,95:Pu,96:dy,126:dy},cT={38:cv,92:sv},fT={[-5]:Xc,[-4]:Xc,[-3]:Xc,33:HC,38:cv,42:Ef,60:[Q2,zC],91:QC,92:[pC,sv],93:ih,95:Ef,96:eC},hT={null:[Ef,nT]},dT={null:[42,95]},mT={null:[]},pT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dT,contentInitial:uT,disable:mT,document:aT,flow:sT,flowInitial:oT,insideSpan:hT,string:cT,text:fT},Symbol.toStringTag,{value:"Module"}));function gT(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],d=[];const m={attempt:J(W),check:J(Q),consume:B,enter:_,exit:ee,interrupt:J(Q,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:k,parser:t,previous:null,sliceSerialize:v,sliceStream:x,write:g};let y=l.tokenize.call(p,m);return l.resolveAll&&s.push(l),p;function g(ie){return c=cn(c,ie),T(),c[c.length-1]!==null?[]:(Y(l,0),p.events=ho(s,p.events,p),p.events)}function v(ie,te){return bT(x(ie),te)}function x(ie){return yT(c,ie)}function k(){const{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}=a;return{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}}function C(ie){o[ie.line]=ie.column,q()}function T(){let ie;for(;a._index<c.length;){const te=c[a._index];if(typeof te=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<te.length;)A(te.charCodeAt(a._bufferIndex));else A(te)}}function A(ie){y=y(ie)}function B(ie){pe(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,q()):ie!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=ie}function _(ie,te){const ye=te||{};return ye.type=ie,ye.start=k(),p.events.push(["enter",ye,p]),d.push(ye),ye}function ee(ie){const te=d.pop();return te.end=k(),p.events.push(["exit",te,p]),te}function W(ie,te){Y(ie,te.from)}function Q(ie,te){te.restore()}function J(ie,te){return ye;function ye(ue,P,j){let K,he,ke,w;return Array.isArray(ue)?V(ue):"tokenize"in ue?V([ue]):O(ue);function O(re){return Ee;function Ee(Ve){const ve=Ve!==null&&re[Ve],kt=Ve!==null&&re.null,zt=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(kt)?kt:kt?[kt]:[]];return V(zt)(Ve)}}function V(re){return K=re,he=0,re.length===0?j:E(re[he])}function E(re){return Ee;function Ee(Ve){return w=ae(),ke=re,re.partial||(p.currentConstruct=re),re.name&&p.parser.constructs.disable.null.includes(re.name)?se():re.tokenize.call(te?Object.assign(Object.create(p),te):p,m,le,se)(Ve)}}function le(re){return ie(ke,w),P}function se(re){return w.restore(),++he<K.length?E(K[he]):j}}}function Y(ie,te){ie.resolveAll&&!s.includes(ie)&&s.push(ie),ie.resolve&&Pt(p.events,te,p.events.length-te,ie.resolve(p.events.slice(te),p)),ie.resolveTo&&(p.events=ie.resolveTo(p.events,p))}function ae(){const ie=k(),te=p.previous,ye=p.currentConstruct,ue=p.events.length,P=Array.from(d);return{from:ue,restore:j};function j(){a=ie,p.previous=te,p.currentConstruct=ye,p.events.length=ue,d=P,q()}}function q(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function yT(t,l){const r=l.start._index,a=l.start._bufferIndex,o=l.end._index,s=l.end._bufferIndex;let c;if(r===o)c=[t[r].slice(a,s)];else{if(c=t.slice(r,o),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}s>0&&c.push(t[o].slice(0,s))}return c}function bT(t,l){let r=-1;const a=[];let o;for(;++r<t.length;){const s=t[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
11
+ Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let y=xn(),g;if(l){let T=typeof l=="string"?Ji(l):l;Pe(p==="/"||T.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${T.pathname}" was given in the \`location\` prop.`),g=T}else g=y;let v=g.pathname||"/",x=v;if(p!=="/"){let T=p.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(T.length).join("/")}let k=r&&r.state.matches.length?r.state.matches.map(T=>Object.assign(T,{route:r.manifest[T.route.id]||T.route})):nb(t,{pathname:x});vn(m||k!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),vn(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=ik(k&&k.map(T=>Object.assign({},T,{params:Object.assign({},c,T.params),pathname:yn([p,a.encodeLocation?a.encodeLocation(T.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?p:yn([p,a.encodeLocation?a.encodeLocation(T.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),o,r);return l&&C?N.createElement(ya.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},C):C}function ek(){let t=sk(),l=jS(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",t),c=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:s},"ErrorBoundary")," or"," ",N.createElement("code",{style:s},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},l),r?N.createElement("pre",{style:o},r):null,c)}var tk=N.createElement(ek,null),bb=class extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,l){return l.location!==t.location||l.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:l.error,location:l.location,revalidation:t.revalidation||l.revalidation}}componentDidCatch(t,l){this.props.onError?this.props.onError(t,l):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=XS(t.digest);r&&(t=r)}let l=t!==void 0?N.createElement(hn.Provider,{value:this.props.routeContext},N.createElement(qf.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?N.createElement(nk,{error:t},l):l}};bb.contextType=hb;var Hc=new WeakMap;function nk({children:t,error:l}){let{basename:r}=N.useContext($t);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let a=YS(l.digest);if(a){let o=Hc.get(l);if(o)throw o;let s=cb(a.location,r),c=s.absoluteURL||s.to;if(HS(c))throw new Error("Invalid redirect location");if(sb&&!Hc.get(l))if(s.isExternal||a.reloadDocument)window.location.href=c;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw Hc.set(l,d),d}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c}`})}}return t}function lk({routeContext:t,match:l,children:r}){let a=N.useContext(Pi);return a&&a.static&&a.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=l.route.id),N.createElement(hn.Provider,{value:t},r)}function ik(t,l=[],r){let a=r?.state;if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(l.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let o=t,s=a?.errors;if(s!=null){let y=o.findIndex(g=>g.route.id&&s?.[g.route.id]!==void 0);Pe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let c=!1,d=-1;if(r&&a){c=a.renderFallback;for(let y=0;y<o.length;y++){let g=o[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=y),g.route.id){let{loaderData:v,errors:x}=a,k=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||k){r.isStatic&&(c=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let p=r?.onError,m=a&&p?(y,g)=>{p(y,{location:a.location,params:a.matches?.[0]?.params??{},pattern:LS(a.matches),errorInfo:g})}:void 0;return o.reduceRight((y,g,v)=>{let x,k=!1,C=null,T=null;a&&(x=s&&g.route.id?s[g.route.id]:void 0,C=g.route.errorElement||tk,c&&(d<0&&v===0?(vb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,T=null):d===v&&(k=!0,T=g.route.hydrateFallbackElement||null)));let A=l.concat(o.slice(0,v+1)),B=()=>{let _;return x?_=C:k?_=T:g.route.Component?_=N.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=y,N.createElement(lk,{match:g,routeContext:{outlet:y,matches:A,isDataRoute:a!=null},children:_})};return a&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?N.createElement(bb,{location:a.location,revalidation:a.revalidation,component:C,error:x,children:B(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:m}):B()},null)}function Ff(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rk(t){let l=N.useContext(Pi);return Pe(l,Ff(t)),l}function ak(t){let l=N.useContext(ao);return Pe(l,Ff(t)),l}function uk(t){let l=N.useContext(hn);return Pe(l,Ff(t)),l}function Gf(t){let l=uk(t),r=l.matches[l.matches.length-1];return Pe(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function ok(){return Gf("useRouteId")}function sk(){let t=N.useContext(qf),l=ak("useRouteError"),r=Gf("useRouteError");return t!==void 0?t:l.errors?.[r]}function ck(){let{router:t}=rk("useNavigate"),l=Gf("useNavigate"),r=N.useRef(!1);return gb(()=>{r.current=!0}),N.useCallback(async(o,s={})=>{vn(r.current,mb),r.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:l,...s}))},[t,l])}var Ug={};function vb(t,l,r){!l&&!Ug[t]&&(Ug[t]=!0,vn(!1,r))}N.memo(fk);function fk({routes:t,manifest:l,future:r,state:a,isStatic:o,onError:s}){return yb(t,void 0,{manifest:l,state:a,isStatic:o,onError:s})}function hk({to:t,replace:l,state:r,relative:a}){Pe(ei(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=N.useContext($t);vn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=N.useContext(hn),{pathname:c}=xn(),d=Qf(),p=ro(t,Hf(s),c,a==="path"),m=JSON.stringify(p);return N.useEffect(()=>{d(JSON.parse(m),{replace:l,state:r,relative:a})},[d,m,a,l,r]),null}function dk(t){return PS(t.context)}function na(t){Pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function pk({basename:t="/",children:l=null,location:r,navigationType:a="POP",navigator:o,static:s=!1,useTransitions:c}){Pe(!ei(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),p=N.useMemo(()=>({basename:d,navigator:o,static:s,useTransitions:c,future:{}}),[d,o,s,c]);typeof r=="string"&&(r=Ji(r));let{pathname:m="/",search:y="",hash:g="",state:v=null,key:x="default",mask:k}=r,C=N.useMemo(()=>{let T=Pn(m,d);return T==null?null:{location:{pathname:T,search:y,hash:g,state:v,key:x,mask:k},navigationType:a}},[d,m,y,g,v,x,a,k]);return vn(C!=null,`<Router basename="${d}"> is not able to match the URL "${m}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:N.createElement($t.Provider,{value:p},N.createElement(ya.Provider,{children:l,value:C}))}function mk({children:t,location:l}){return WS(gf(t),l)}function gf(t,l=[]){let r=[];return N.Children.forEach(t,(a,o)=>{if(!N.isValidElement(a))return;let s=[...l,o];if(a.type===N.Fragment){r.push.apply(r,gf(a.props.children,s));return}Pe(a.type===na,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=gf(a.props.children,s)),r.push(c)}),r}var Ku="get",Ju="application/x-www-form-urlencoded";function uo(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function gk(t){return uo(t)&&t.tagName.toLowerCase()==="button"}function yk(t){return uo(t)&&t.tagName.toLowerCase()==="form"}function bk(t){return uo(t)&&t.tagName.toLowerCase()==="input"}function vk(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function xk(t,l){return t.button===0&&(!l||l==="_self")&&!vk(t)}var Fu=null;function Sk(){if(Fu===null)try{new FormData(document.createElement("form"),0),Fu=!1}catch{Fu=!0}return Fu}var kk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qc(t){return t!=null&&!kk.has(t)?(vn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ju}"`),null):t}function wk(t,l){let r,a,o,s,c;if(yk(t)){let d=t.getAttribute("action");a=d?Pn(d,l):null,r=t.getAttribute("method")||Ku,o=qc(t.getAttribute("enctype"))||Ju,s=new FormData(t)}else if(gk(t)||bk(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=t.getAttribute("formaction")||d.getAttribute("action");if(a=p?Pn(p,l):null,r=t.getAttribute("formmethod")||d.getAttribute("method")||Ku,o=qc(t.getAttribute("formenctype"))||qc(d.getAttribute("enctype"))||Ju,s=new FormData(d,t),!Sk()){let{name:m,type:y,value:g}=t;if(y==="image"){let v=m?`${m}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else m&&s.append(m,g)}}else{if(uo(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ku,a=null,o=Ju,c=t}return s&&o==="text/plain"&&(c=s,s=void 0),{action:a,method:r.toLowerCase(),encType:o,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vf(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function xb(t,l,r,a){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${a}`:o.pathname=`${o.pathname}.${a}`:o.pathname==="/"?o.pathname=`_root.${a}`:l&&Pn(o.pathname,l)==="/"?o.pathname=`${Wu(l)}/_root.${a}`:o.pathname=`${Wu(o.pathname)}.${a}`,o}async function Ek(t,l){if(t.id in l)return l[t.id];try{let r=await import(t.module);return l[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ck(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Tk(t,l,r){let a=await Promise.all(t.map(async o=>{let s=l.routes[o.route.id];if(s){let c=await Ek(s,r);return c.links?c.links():[]}return[]}));return Ok(a.flat(1).filter(Ck).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Bg(t,l,r,a,o,s){let c=(p,m)=>r[m]?p.route.id!==r[m].route.id:!0,d=(p,m)=>r[m].pathname!==p.pathname||r[m].route.path?.endsWith("*")&&r[m].params["*"]!==p.params["*"];return s==="assets"?l.filter((p,m)=>c(p,m)||d(p,m)):s==="data"?l.filter((p,m)=>{let y=a.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(c(p,m)||d(p,m))return!0;if(p.route.shouldRevalidate){let g=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function Ak(t,l,{includeHydrateFallback:r}={}){return zk(t.map(a=>{let o=l.routes[a.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function zk(t){return[...new Set(t)]}function Rk(t){let l={},r=Object.keys(t).sort();for(let a of r)l[a]=t[a];return l}function Ok(t,l){let r=new Set;return new Set(l),t.reduce((a,o)=>{let s=JSON.stringify(Rk(o));return r.has(s)||(r.add(s),a.push({key:s,link:o})),a},[])}function Yf(){let t=N.useContext(Pi);return Vf(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Mk(){let t=N.useContext(ao);return Vf(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Xf=N.createContext(void 0);Xf.displayName="FrameworkContext";function oo(){let t=N.useContext(Xf);return Vf(t,"You must render this element inside a <HydratedRouter> element"),t}function _k(t,l){let r=N.useContext(Xf),[a,o]=N.useState(!1),[s,c]=N.useState(!1),{onFocus:d,onBlur:p,onMouseEnter:m,onMouseLeave:y,onTouchStart:g}=l,v=N.useRef(null);N.useEffect(()=>{if(t==="render"&&c(!0),t==="viewport"){let C=A=>{A.forEach(B=>{c(B.isIntersecting)})},T=new IntersectionObserver(C,{threshold:.5});return v.current&&T.observe(v.current),()=>{T.disconnect()}}},[t]),N.useEffect(()=>{if(a){let C=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(C)}}},[a]);let x=()=>{o(!0)},k=()=>{o(!1),c(!1)};return r?t!=="intent"?[s,v,{}]:[s,v,{onFocus:Zr(d,x),onBlur:Zr(p,k),onMouseEnter:Zr(m,x),onMouseLeave:Zr(y,k),onTouchStart:Zr(g,x)}]:[!1,v,{}]}function Zr(t,l){return r=>{t&&t(r),r.defaultPrevented||l(r)}}function Dk({page:t,...l}){let r=qS(),{nonce:a}=oo(),{router:o}=Yf(),s=N.useMemo(()=>nb(o.routes,t,o.basename),[o.routes,t,o.basename]);return s?(l.nonce==null&&a&&(l={...l,nonce:a}),r?N.createElement(jk,{page:t,matches:s,...l}):N.createElement(Lk,{page:t,matches:s,...l})):null}function Nk(t){let{manifest:l,routeModules:r}=oo(),[a,o]=N.useState([]);return N.useEffect(()=>{let s=!1;return Tk(t,l,r).then(c=>{s||o(c)}),()=>{s=!0}},[t,l,r]),a}function jk({page:t,matches:l,...r}){let a=xn(),{future:o}=oo(),{basename:s}=Yf(),c=N.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let d=xb(t,s,o.v8_trailingSlashAwareDataRequests,"rsc"),p=!1,m=[];for(let y of l)typeof y.route.shouldRevalidate=="function"?p=!0:m.push(y.route.id);return p&&m.length>0&&d.searchParams.set("_routes",m.join(",")),[d.pathname+d.search]},[s,o.v8_trailingSlashAwareDataRequests,t,a,l]);return N.createElement(N.Fragment,null,c.map(d=>N.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})))}function Lk({page:t,matches:l,...r}){let a=xn(),{future:o,manifest:s,routeModules:c}=oo(),{basename:d}=Yf(),{loaderData:p,matches:m}=Mk(),y=N.useMemo(()=>Bg(t,l,m,s,a,"data"),[t,l,m,s,a]),g=N.useMemo(()=>Bg(t,l,m,s,a,"assets"),[t,l,m,s,a]),v=N.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let C=new Set,T=!1;if(l.forEach(B=>{let _=s.routes[B.route.id];!_||!_.hasLoader||(!y.some(ee=>ee.route.id===B.route.id)&&B.route.id in p&&c[B.route.id]?.shouldRevalidate||_.hasClientLoader?T=!0:C.add(B.route.id))}),C.size===0)return[];let A=xb(t,d,o.v8_trailingSlashAwareDataRequests,"data");return T&&C.size>0&&A.searchParams.set("_routes",l.filter(B=>C.has(B.route.id)).map(B=>B.route.id).join(",")),[A.pathname+A.search]},[d,o.v8_trailingSlashAwareDataRequests,p,a,s,y,l,t,c]),x=N.useMemo(()=>Ak(g,s),[g,s]),k=Nk(g);return N.createElement(N.Fragment,null,v.map(C=>N.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...r})),x.map(C=>N.createElement("link",{key:C,rel:"modulepreload",href:C,...r})),k.map(({key:C,link:T})=>N.createElement("link",{key:C,nonce:r.nonce,...T,crossOrigin:T.crossOrigin??r.crossOrigin})))}function Uk(...t){return l=>{t.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var Bk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Bk&&(window.__reactRouterVersion="7.18.1")}catch{}function Hk({basename:t,children:l,useTransitions:r,window:a}){let o=N.useRef();o.current==null&&(o.current=dS({window:a,v5Compat:!0}));let s=o.current,[c,d]=N.useState({action:s.action,location:s.location}),p=N.useCallback(m=>{r===!1?d(m):N.startTransition(()=>d(m))},[r]);return N.useLayoutEffect(()=>s.listen(p),[s,p]),N.createElement(pk,{basename:t,children:l,location:c.location,navigationType:c.action,navigator:s,useTransitions:r})}var Sb=N.forwardRef(function({onClick:l,discover:r="render",prefetch:a="none",relative:o,reloadDocument:s,replace:c,mask:d,state:p,target:m,to:y,preventScrollReset:g,viewTransition:v,defaultShouldRevalidate:x,...k},C){let{basename:T,navigator:A,useTransitions:B}=N.useContext($t),_=typeof y=="string"&&Bf.test(y),ee=cb(y,T);y=ee.to;let W=IS(y,{relative:o}),Q=xn(),J=null;if(d){let P=ro(d,[],Q.mask?Q.mask.pathname:"/",!0);T!=="/"&&(P.pathname=P.pathname==="/"?T:yn([T,P.pathname])),J=A.createHref(P)}let[Y,ae,q]=_k(a,k),ie=Gk(y,{replace:c,mask:d,state:p,target:m,preventScrollReset:g,relative:o,viewTransition:v,defaultShouldRevalidate:x,useTransitions:B});function te(P){l&&l(P),P.defaultPrevented||ie(P)}let ye=!(ee.isExternal||s),ue=N.createElement("a",{...k,...q,href:(ye?J:void 0)||ee.absoluteURL||W,onClick:ye?te:l,ref:Uk(C,ae),target:m,"data-discover":!_&&r==="render"?"true":void 0});return Y&&!_?N.createElement(N.Fragment,null,ue,N.createElement(Dk,{page:W})):ue});Sb.displayName="Link";var qk=N.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:a="",end:o=!1,style:s,to:c,viewTransition:d,children:p,...m},y){let g=ba(c,{relative:m.relative}),v=xn(),x=N.useContext(ao),{navigator:k,basename:C}=N.useContext($t),T=x!=null&&Zk(g)&&d===!0,A=k.encodeLocation?k.encodeLocation(g).pathname:g.pathname,B=v.pathname,_=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(B=B.toLowerCase(),_=_?_.toLowerCase():null,A=A.toLowerCase()),_&&C&&(_=Pn(_,C)||_);const ee=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let W=B===A||!o&&B.startsWith(A)&&B.charAt(ee)==="/",Q=_!=null&&(_===A||!o&&_.startsWith(A)&&_.charAt(A.length)==="/"),J={isActive:W,isPending:Q,isTransitioning:T},Y=W?l:void 0,ae;typeof a=="function"?ae=a(J):ae=[a,W?"active":null,Q?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let q=typeof s=="function"?s(J):s;return N.createElement(Sb,{...m,"aria-current":Y,className:ae,ref:y,style:q,to:c,viewTransition:d},typeof p=="function"?p(J):p)});qk.displayName="NavLink";var Qk=N.forwardRef(({discover:t="render",fetcherKey:l,navigate:r,reloadDocument:a,replace:o,state:s,method:c=Ku,action:d,onSubmit:p,relative:m,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v,...x},k)=>{let{useTransitions:C}=N.useContext($t),T=Xk(),A=Ik(d,{relative:m}),B=c.toLowerCase()==="get"?"get":"post",_=typeof d=="string"&&Bf.test(d),ee=W=>{if(p&&p(W),W.defaultPrevented)return;W.preventDefault();let Q=W.nativeEvent.submitter,J=Q?.getAttribute("formmethod")||c,Y=()=>T(Q||W.currentTarget,{fetcherKey:l,method:J,navigate:r,replace:o,state:s,relative:m,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v});C&&r!==!1?N.startTransition(()=>Y()):Y()};return N.createElement("form",{ref:k,method:B,action:A,onSubmit:a?p:ee,...x,"data-discover":!_&&t==="render"?"true":void 0})});Qk.displayName="Form";function Fk(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kb(t){let l=N.useContext(Pi);return Pe(l,Fk(t)),l}function Gk(t,{target:l,replace:r,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:p,useTransitions:m}={}){let y=Qf(),g=xn(),v=ba(t,{relative:c});return N.useCallback(x=>{if(xk(x,l)){x.preventDefault();let k=r!==void 0?r:sa(g)===sa(v),C=()=>y(t,{replace:k,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:p});m?N.startTransition(()=>C()):C()}},[g,y,v,r,a,o,l,t,s,c,d,p,m])}var Vk=0,Yk=()=>`__${String(++Vk)}__`;function Xk(){let{router:t}=kb("useSubmit"),{basename:l}=N.useContext($t),r=ok(),a=t.fetch,o=t.navigate;return N.useCallback(async(s,c={})=>{let{action:d,method:p,encType:m,formData:y,body:g}=wk(s,l);if(c.navigate===!1){let v=c.fetcherKey||Yk();await a(v,r,c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||p,formEncType:c.encType||m,flushSync:c.flushSync})}else await o(c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||p,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,o,l,r])}function Ik(t,{relative:l}={}){let{basename:r}=N.useContext($t),a=N.useContext(hn);Pe(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),s={...ba(t||".",{relative:l})},c=xn();if(t==null){s.search=c.search;let d=new URLSearchParams(s.search),p=d.getAll("index");if(p.some(y=>y==="")){d.delete("index"),p.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();s.search=y?`?${y}`:""}}return(!t||t===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:yn([r,s.pathname])),sa(s)}function Zk(t,{relative:l}={}){let r=N.useContext(db);Pe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=kb("useViewTransitionState"),o=ba(t,{relative:l});if(!r.isTransitioning)return!1;let s=Pn(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=Pn(r.nextLocation.pathname,a)||r.nextLocation.pathname;return ca(o.pathname,c)!=null||ca(o.pathname,s)!=null}const wb=(...t)=>t.filter((l,r,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===r).join(" ").trim();const Kk=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Jk=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,a)=>a?a.toUpperCase():r.toLowerCase());const Hg=t=>{const l=Jk(t);return l.charAt(0).toUpperCase()+l.slice(1)};var Pk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const $k=t=>{for(const l in t)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const Wk=N.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:s,iconNode:c,...d},p)=>N.createElement("svg",{ref:p,...Pk,width:l,height:l,stroke:t,strokeWidth:a?Number(r)*24/Number(l):r,className:wb("lucide",o),...!s&&!$k(d)&&{"aria-hidden":"true"},...d},[...c.map(([m,y])=>N.createElement(m,y)),...Array.isArray(s)?s:[s]]));const Sn=(t,l)=>{const r=N.forwardRef(({className:a,...o},s)=>N.createElement(Wk,{ref:s,iconNode:l,className:wb(`lucide-${Kk(Hg(t))}`,`lucide-${t}`,a),...o}));return r.displayName=Hg(t),r};const ew=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],tw=Sn("arrow-up",ew);const nw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],lw=Sn("check",nw);const iw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],rw=Sn("chevron-down",iw);const aw=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],uw=Sn("copy",aw);const ow=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],sw=Sn("file-diff",ow);const cw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],fw=Sn("info",cw);const hw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],dw=Sn("panel-left",hw);const pw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mw=Sn("plus",pw);const gw=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],yw=Sn("qr-code",gw);const bw=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],vw=Sn("sliders-horizontal",bw);const xw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],If=Sn("x",xw),fa="conductor-remote-token";function Sw(){const l=new URLSearchParams(location.hash.slice(1)).get("token");return l&&(localStorage.setItem(fa,l),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(fa)}function Eb(){return localStorage.getItem(fa)}function kw(){localStorage.removeItem(fa)}function ww(t){localStorage.setItem(fa,t)}function Ew(t){const l=t.trim();if(!l)return null;const r=l.match(/token=([^&\s]+)/);return r?decodeURIComponent(r[1]):/\s/.test(l)?null:l}class Cb extends Error{constructor(l,r){super(l),this.status=r}status}async function Xi(t,l={}){const r=Eb(),a=await fetch(t,{...l,headers:{authorization:`Bearer ${r??""}`,"content-type":"application/json",...l.headers}});if(!a.ok){const o=await a.json().catch(()=>({}));throw new Cb(o.error||`HTTP ${a.status}`,a.status)}return a.json()}const ti={state:()=>Xi("/api/state"),repoIconUrl:t=>`/api/repos/${encodeURIComponent(t)}/icon?token=${encodeURIComponent(Eb()??"")}`,sessions:t=>Xi(`/api/workspaces/${encodeURIComponent(t)}/sessions`),messages:(t,l)=>Xi(`/api/sessions/${encodeURIComponent(t)}/messages?after=${l}`),diff:t=>Xi(`/api/workspaces/${encodeURIComponent(t)}/diff`),sendPrompt:(t,l,r)=>Xi(`/api/sessions/${encodeURIComponent(t)}/prompt`,{method:"POST",body:JSON.stringify({text:l,workspaceId:r})}),newChat:t=>Xi(`/api/workspaces/${encodeURIComponent(t)}/sessions`,{method:"POST"})},qg=t=>{let l;const r=new Set,a=(m,y)=>{const g=typeof m=="function"?m(l):m;if(!Object.is(g,l)){const v=l;l=y??(typeof g!="object"||g===null)?g:Object.assign({},l,g),r.forEach(x=>x(l,v))}},o=()=>l,d={setState:a,getState:o,getInitialState:()=>p,subscribe:m=>(r.add(m),()=>r.delete(m))},p=l=t(a,o,d);return d},Cw=(t=>t?qg(t):qg),Tw=t=>t;function Aw(t,l=Tw){const r=Qu.useSyncExternalStore(t.subscribe,Qu.useCallback(()=>l(t.getState()),[t,l]),Qu.useCallback(()=>l(t.getInitialState()),[t,l]));return Qu.useDebugValue(r),r}const Qg=t=>{const l=Cw(t),r=a=>Aw(l,a);return Object.assign(r,l),r},zw=(t=>t?Qg(t):Qg),Tb="conductor-remote-view",Fg={groupBy:"status",repo:null,sortBy:"updated",collapsed:[]};function Rw(){try{return{...Fg,...JSON.parse(localStorage.getItem(Tb)??"{}")}}catch{return Fg}}const At=zw((t,l)=>{const r=a=>{localStorage.setItem(Tb,JSON.stringify(a)),t({view:a})};return{token:Sw(),online:!0,sidebarOpen:!location.pathname.startsWith("/w/"),view:Rw(),setToken:a=>{a?ww(a):kw(),t({token:a})},setOnline:a=>t({online:a}),setSidebarOpen:a=>t({sidebarOpen:a}),setView:a=>r({...l().view,...a}),toggleGroup:a=>{const{collapsed:o}=l().view;r({...l().view,collapsed:o.includes(a)?o.filter(s=>s!==a):[...o,a]})}}});function so(){const t=At(r=>r.setOnline),l=At(r=>r.setToken);return N.useCallback((r,a)=>{t(r),a instanceof Cb&&a.status===401&&l(null)},[t,l])}function Ab(){const t=so(),l=Uf({queryKey:["state"],queryFn:()=>ti.state(),refetchInterval:2500});return N.useEffect(()=>{l.isSuccess&&t(!0),l.isError&&t(!1,l.error)},[l.isSuccess,l.isError,l.error,t]),l}function Ow(t){const l=so(),r=Uf({queryKey:["sessions",t],queryFn:()=>ti.sessions(t),enabled:!!t,refetchInterval:4e3});return N.useEffect(()=>{r.isError&&l(!1,r.error)},[r.isError,r.error,l]),r}function Mw(t,l){const r=so(),a=Uf({queryKey:["diff",t],queryFn:()=>ti.diff(t),enabled:!!t,refetchInterval:5e3});return N.useEffect(()=>{a.isError&&r(!1,a.error)},[a.isError,a.error,r]),a}function _w(t){const l=so(),[r,a]=N.useState({entries:[],loading:!0,error:null}),o=N.useRef(0);return N.useEffect(()=>{if(!t){a({entries:[],loading:!1,error:null});return}o.current=0,a({entries:[],loading:!0,error:null});let s=!0;const c=async()=>{try{const{entries:p,cursor:m}=await ti.messages(t,o.current);if(!s)return;l(!0),p.length?(o.current=m,a(y=>({entries:[...y.entries,...p],loading:!1,error:null}))):a(y=>y.loading?{...y,loading:!1}:y)}catch(p){if(!s)return;l(!1,p),a(m=>({...m,loading:!1,error:p instanceof Error?p.message:String(p)}))}};c();const d=setInterval(c,1800);return()=>{s=!1,clearInterval(d)}},[t,l]),r}function zb(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(r=zb(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function Dw(){for(var t,l,r=0,a="",o=arguments.length;r<o;r++)(t=arguments[r])&&(l=zb(t))&&(a&&(a+=" "),a+=l);return a}const Nw=(t,l)=>{const r=new Array(t.length+l.length);for(let a=0;a<t.length;a++)r[a]=t[a];for(let a=0;a<l.length;a++)r[t.length+a]=l[a];return r},jw=(t,l)=>({classGroupId:t,validator:l}),Rb=(t=new Map,l=null,r)=>({nextPart:t,validators:l,classGroupId:r}),eo="-",Gg=[],Lw="arbitrary..",Uw=t=>{const l=Hw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Bw(c);const d=c.split(eo),p=d[0]===""&&d.length>1?1:0;return Ob(d,p,l)},getConflictingClassGroupIds:(c,d)=>{if(d){const p=a[c],m=r[c];return p?m?Nw(m,p):p:m||Gg}return r[c]||Gg}}},Ob=(t,l,r)=>{if(t.length-l===0)return r.classGroupId;const o=t[l],s=r.nextPart.get(o);if(s){const m=Ob(t,l+1,s);if(m)return m}const c=r.validators;if(c===null)return;const d=l===0?t.join(eo):t.slice(l).join(eo),p=c.length;for(let m=0;m<p;m++){const y=c[m];if(y.validator(d))return y.classGroupId}},Bw=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=t.slice(1,-1),r=l.indexOf(":"),a=l.slice(0,r);return a?Lw+a:void 0})(),Hw=t=>{const{theme:l,classGroups:r}=t;return qw(r,l)},qw=(t,l)=>{const r=Rb();for(const a in t){const o=t[a];Zf(o,r,a,l)}return r},Zf=(t,l,r,a)=>{const o=t.length;for(let s=0;s<o;s++){const c=t[s];Qw(c,l,r,a)}},Qw=(t,l,r,a)=>{if(typeof t=="string"){Fw(t,l,r);return}if(typeof t=="function"){Gw(t,l,r,a);return}Vw(t,l,r,a)},Fw=(t,l,r)=>{const a=t===""?l:Mb(l,t);a.classGroupId=r},Gw=(t,l,r,a)=>{if(Yw(t)){Zf(t(a),l,r,a);return}l.validators===null&&(l.validators=[]),l.validators.push(jw(r,t))},Vw=(t,l,r,a)=>{const o=Object.entries(t),s=o.length;for(let c=0;c<s;c++){const[d,p]=o[c];Zf(p,Mb(l,d),r,a)}},Mb=(t,l)=>{let r=t;const a=l.split(eo),o=a.length;for(let s=0;s<o;s++){const c=a[s];let d=r.nextPart.get(c);d||(d=Rb(),r.nextPart.set(c,d)),r=d}return r},Yw=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Xw=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=Object.create(null),a=Object.create(null);const o=(s,c)=>{r[s]=c,l++,l>t&&(l=0,a=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=a[s])!==void 0)return o(s,c),c},set(s,c){s in r?r[s]=c:o(s,c)}}},yf="!",Vg=":",Iw=[],Yg=(t,l,r,a,o)=>({modifiers:t,hasImportantModifier:l,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),Zw=t=>{const{prefix:l,experimentalParseClassName:r}=t;let a=o=>{const s=[];let c=0,d=0,p=0,m;const y=o.length;for(let C=0;C<y;C++){const T=o[C];if(c===0&&d===0){if(T===Vg){s.push(o.slice(p,C)),p=C+1;continue}if(T==="/"){m=C;continue}}T==="["?c++:T==="]"?c--:T==="("?d++:T===")"&&d--}const g=s.length===0?o:o.slice(p);let v=g,x=!1;g.endsWith(yf)?(v=g.slice(0,-1),x=!0):g.startsWith(yf)&&(v=g.slice(1),x=!0);const k=m&&m>p?m-p:void 0;return Yg(s,x,v,k)};if(l){const o=l+Vg,s=a;a=c=>c.startsWith(o)?s(c.slice(o.length)):Yg(Iw,!1,c,void 0,!0)}if(r){const o=a;a=s=>r({className:s,parseClassName:o})}return a},Kw=t=>{const l=new Map;return t.orderSensitiveModifiers.forEach((r,a)=>{l.set(r,1e6+a)}),r=>{const a=[];let o=[];for(let s=0;s<r.length;s++){const c=r[s],d=c[0]==="[",p=l.has(c);d||p?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},Jw=t=>({cache:Xw(t.cacheSize),parseClassName:Zw(t),sortModifiers:Kw(t),postfixLookupClassGroupIds:Pw(t),...Uw(t)}),Pw=t=>{const l=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let a=0;a<r.length;a++)l[r[a]]=!0;return l},$w=/\s+/,Ww=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:c}=l,d=[],p=t.trim().split($w);let m="";for(let y=p.length-1;y>=0;y-=1){const g=p[y],{isExternal:v,modifiers:x,hasImportantModifier:k,baseClassName:C,maybePostfixModifierPosition:T}=r(g);if(v){m=g+(m.length>0?" "+m:m);continue}let A=!!T,B;if(A){const J=C.substring(0,T);B=a(J);const Y=B&&c[B]?a(C):void 0;Y&&Y!==B&&(B=Y,A=!1)}else B=a(C);if(!B){if(!A){m=g+(m.length>0?" "+m:m);continue}if(B=a(C),!B){m=g+(m.length>0?" "+m:m);continue}A=!1}const _=x.length===0?"":x.length===1?x[0]:s(x).join(":"),ee=k?_+yf:_,W=ee+B;if(d.indexOf(W)>-1)continue;d.push(W);const Q=o(B,A);for(let J=0;J<Q.length;++J){const Y=Q[J];d.push(ee+Y)}m=g+(m.length>0?" "+m:m)}return m},eE=(...t)=>{let l=0,r,a,o="";for(;l<t.length;)(r=t[l++])&&(a=_b(r))&&(o&&(o+=" "),o+=a);return o},_b=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=_b(t[a]))&&(r&&(r+=" "),r+=l);return r},tE=(t,...l)=>{let r,a,o,s;const c=p=>{const m=l.reduce((y,g)=>g(y),t());return r=Jw(m),a=r.cache.get,o=r.cache.set,s=d,d(p)},d=p=>{const m=a(p);if(m)return m;const y=Ww(p,r);return o(p,y),y};return s=c,(...p)=>s(eE(...p))},nE=[],ct=t=>{const l=r=>r[t]||nE;return l.isThemeGetter=!0,l},Db=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,iE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,aE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Cl=t=>lE.test(t),Te=t=>!!t&&!Number.isNaN(Number(t)),An=t=>!!t&&Number.isInteger(Number(t)),Qc=t=>t.endsWith("%")&&Te(t.slice(0,-1)),Kn=t=>iE.test(t),jb=()=>!0,sE=t=>rE.test(t)&&!aE.test(t),Kf=()=>!1,cE=t=>uE.test(t),fE=t=>oE.test(t),hE=t=>!oe(t)&&!ce(t),dE=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),pE=t=>zl(t,Bb,Kf),oe=t=>Db.test(t),Zl=t=>zl(t,Hb,sE),Xg=t=>zl(t,kE,Te),mE=t=>zl(t,Qb,jb),gE=t=>zl(t,qb,Kf),Ig=t=>zl(t,Lb,Kf),yE=t=>zl(t,Ub,fE),Gu=t=>zl(t,Fb,cE),ce=t=>Nb.test(t),Kr=t=>ni(t,Hb),bE=t=>ni(t,qb),Zg=t=>ni(t,Lb),vE=t=>ni(t,Bb),xE=t=>ni(t,Ub),Vu=t=>ni(t,Fb,!0),SE=t=>ni(t,Qb,!0),zl=(t,l,r)=>{const a=Db.exec(t);return a?a[1]?l(a[1]):r(a[2]):!1},ni=(t,l,r=!1)=>{const a=Nb.exec(t);return a?a[1]?l(a[1]):r:!1},Lb=t=>t==="position"||t==="percentage",Ub=t=>t==="image"||t==="url",Bb=t=>t==="length"||t==="size"||t==="bg-size",Hb=t=>t==="length",kE=t=>t==="number",qb=t=>t==="family-name",Qb=t=>t==="number"||t==="weight",Fb=t=>t==="shadow",wE=()=>{const t=ct("color"),l=ct("font"),r=ct("text"),a=ct("font-weight"),o=ct("tracking"),s=ct("leading"),c=ct("breakpoint"),d=ct("container"),p=ct("spacing"),m=ct("radius"),y=ct("shadow"),g=ct("inset-shadow"),v=ct("text-shadow"),x=ct("drop-shadow"),k=ct("blur"),C=ct("perspective"),T=ct("aspect"),A=ct("ease"),B=ct("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],W=()=>[...ee(),ce,oe],Q=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],Y=()=>[ce,oe,p],ae=()=>[Cl,"full","auto",...Y()],q=()=>[An,"none","subgrid",ce,oe],ie=()=>["auto",{span:["full",An,ce,oe]},An,ce,oe],te=()=>[An,"auto",ce,oe],ye=()=>["auto","min","max","fr",ce,oe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...Y()],K=()=>[Cl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],he=()=>[Cl,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],ke=()=>[Cl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],w=()=>[t,ce,oe],O=()=>[...ee(),Zg,Ig,{position:[ce,oe]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",vE,pE,{size:[ce,oe]}],le=()=>[Qc,Kr,Zl],se=()=>["","none","full",m,ce,oe],re=()=>["",Te,Kr,Zl],Ee=()=>["solid","dashed","dotted","double"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Te,Qc,Zg,Ig],kt=()=>["","none",k,ce,oe],zt=()=>["none",Te,ce,oe],kn=()=>["none",Te,ce,oe],Wn=()=>[Te,ce,oe],Rt=()=>[Cl,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kn],breakpoint:[Kn],color:[jb],container:[Kn],"drop-shadow":[Kn],ease:["in","out","in-out"],font:[hE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kn],shadow:[Kn],spacing:["px",Te],text:[Kn],"text-shadow":[Kn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Cl,oe,ce,T]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,oe]}],"container-named":[dE],columns:[{columns:[Te,oe,ce,d]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:W()}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[An,"auto",ce,oe]}],basis:[{basis:[Cl,"full","auto",d,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,Cl,"auto","initial","none",oe]}],grow:[{grow:["",Te,ce,oe]}],shrink:[{shrink:["",Te,ce,oe]}],order:[{order:[An,"first","last","none",ce,oe]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...ke()]}],"min-block-size":[{"min-block":["auto",...ke()]}],"max-block-size":[{"max-block":["none",...ke()]}],w:[{w:[d,"screen",...K()]}],"min-w":[{"min-w":[d,"screen","none",...K()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,Kr,Zl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,SE,mE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qc,oe]}],"font-family":[{font:[bE,gE,l]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ce,oe]}],"line-clamp":[{"line-clamp":[Te,"none",ce,Xg]}],leading:[{leading:[s,...Y()]}],"list-image":[{"list-image":["none",ce,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ce,Zl]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Te,"auto",ce,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"tab-size":[{tab:[An,ce,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},An,ce,oe],radial:["",ce,oe],conic:[An,ce,oe]},xE,yE]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ce,oe]}],"outline-w":[{outline:["",Te,Kr,Zl]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",y,Vu,Gu]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",g,Vu,Gu]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Te,Zl]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",v,Vu,Gu]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Te,ce,oe]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[ce,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":ee()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,oe]}],filter:[{filter:["","none",ce,oe]}],blur:[{blur:kt()}],brightness:[{brightness:[Te,ce,oe]}],contrast:[{contrast:[Te,ce,oe]}],"drop-shadow":[{"drop-shadow":["","none",x,Vu,Gu]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",Te,ce,oe]}],"hue-rotate":[{"hue-rotate":[Te,ce,oe]}],invert:[{invert:["",Te,ce,oe]}],saturate:[{saturate:[Te,ce,oe]}],sepia:[{sepia:["",Te,ce,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,oe]}],"backdrop-blur":[{"backdrop-blur":kt()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ce,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ce,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ce,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ce,oe]}],"backdrop-invert":[{"backdrop-invert":["",Te,ce,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ce,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ce,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ce,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ce,oe]}],ease:[{ease:["linear","initial",A,ce,oe]}],delay:[{delay:[Te,ce,oe]}],animate:[{animate:["none",B,ce,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ce,oe]}],"perspective-origin":[{"perspective-origin":W()}],rotate:[{rotate:zt()}],"rotate-x":[{"rotate-x":zt()}],"rotate-y":[{"rotate-y":zt()}],"rotate-z":[{"rotate-z":zt()}],scale:[{scale:kn()}],"scale-x":[{"scale-x":kn()}],"scale-y":[{"scale-y":kn()}],"scale-z":[{"scale-z":kn()}],"scale-3d":["scale-3d"],skew:[{skew:Wn()}],"skew-x":[{"skew-x":Wn()}],"skew-y":[{"skew-y":Wn()}],transform:[{transform:[ce,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:W()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Rt()}],"translate-x":[{"translate-x":Rt()}],"translate-y":[{"translate-y":Rt()}],"translate-z":[{"translate-z":Rt()}],"translate-none":["translate-none"],zoom:[{zoom:[An,ce,oe]}],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,oe]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[Te,Kr,Zl,Xg]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},EE=tE(wE);function fn(...t){return EE(Dw(t))}function ha(t){return t.workspace_name||t.pr_title||CE(t.branch)||t.directory_name||t.id.slice(0,8)}function CE(t){if(!t)return"";const r=(t.includes("/")?t.slice(t.indexOf("/")+1):t).replace(/[-_]/g," ").trim();return r?r[0].toUpperCase()+r.slice(1):""}function TE(t){return((t.repo_name||ha(t)).trim()[0]??"?").toUpperCase()}function Gb(t){return t.session_status==="working"?"working":t.derived_status==="done"||t.manual_status==="done"?"done":"idle"}function AE(t){const l=Gb(t);return l==="working"?"working":l==="done"?"done":t.session_status||"idle"}function zE(t){return t.manual_status||t.derived_status||"in-progress"}const Kg=["done","in-review","in-progress","backlog"];function RE(t){return{done:"Done","in-review":"In review","in-progress":"In progress",backlog:"Backlog"}[t]??t}function Vb(t){return t?t.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}function OE(t){const l=new Date(t).getTime();if(!Number.isFinite(l))return"";const r=Math.round((Date.now()-l)/1e3);if(r<45)return"now";if(r<90)return"1m";const a=Math.round(r/60);if(a<60)return`${a}m`;const o=Math.round(a/60);return o<24?`${o}h`:`${Math.round(o/24)}d`}function ME({sessionId:t,workspaceId:l,actuator:r}){const[a,o]=N.useState(""),[s,c]=N.useState(!1),[d,p]=N.useState(null),m=N.useRef(null);N.useEffect(()=>{if(!d)return;const k=setTimeout(()=>p(null),d.kind==="err"?5e3:2800);return()=>clearTimeout(k)},[d]);const y=()=>{const k=m.current;k&&(k.style.height="auto",k.style.height=`${Math.min(k.scrollHeight,160)}px`)},g=async()=>{const k=a.trim();if(!(!k||!t||s)){c(!0);try{const C=await ti.sendPrompt(t,k,l);C.ok?(o(""),requestAnimationFrame(y),p({kind:C.warning?"warn":"ok",msg:C.warning||"Sent"})):p({kind:"err",msg:C.error||"Send failed"})}catch(C){p({kind:"err",msg:C instanceof Error?C.message:String(C)})}finally{c(!1)}}},v=!t,x=r?.precise&&r.available;return R.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[d?R.jsx("div",{className:fn("mb-2 rounded-lg px-3 py-1.5 text-xs",d.kind==="ok"&&"bg-idle/10 text-idle",d.kind==="warn"&&"bg-working/10 text-working",d.kind==="err"&&"bg-del/10 text-del"),children:d.msg}):R.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[R.jsx(fw,{size:12}),x?"Precise send — targets this session directly":r?.caveat||"Sends to the focused session"]}),R.jsxs("div",{className:"flex items-end gap-2 rounded-2xl border border-border bg-surface px-2.5 py-1.5 focus-within:border-accent/60",children:[R.jsx("textarea",{ref:m,rows:1,value:a,disabled:v,placeholder:v?"No active session":"Send a prompt…",className:"max-h-40 flex-1 resize-none bg-transparent py-1.5 text-[15px] outline-none placeholder:text-faint disabled:opacity-50",onChange:k=>{o(k.target.value),y()},onKeyDown:k=>{k.key==="Enter"&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),g())}}),R.jsx("button",{type:"button",onClick:g,disabled:v||s||!a.trim(),"aria-label":"Send",className:"mb-0.5 flex size-9 shrink-0 items-center justify-center rounded-full bg-accent text-white transition active:scale-90 disabled:bg-surface-2 disabled:text-faint",children:R.jsx(tw,{size:19})})]})]})}function _E({status:t,className:l}){return R.jsx("span",{className:fn("dot",`dot-${t}`,l)})}function DE(){const t=At(l=>l.online);return R.jsx("span",{title:t?"connected":"offline",className:"dot",style:{background:t?"var(--color-idle)":"var(--color-del)"}})}function Jg({children:t,className:l}){return R.jsx("span",{className:fn("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",l),children:t})}function Yb({children:t}){return R.jsx("span",{className:"grid min-w-5 place-items-center rounded-full bg-accent px-1.5 text-[11px] font-bold text-white",children:t})}function Jn({children:t}){return R.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:t})}function co({label:t}){return R.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[R.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),t]})}function NE({workspaceId:t}){const{data:l,isLoading:r,isError:a,error:o}=Mw(t);return r&&!l?R.jsx(co,{label:"Computing diff…"}):a?R.jsx(Jn,{children:o?.message}):l?l.files.length===0?R.jsxs(Jn,{children:["No changes vs ",R.jsx("span",{className:"font-mono",children:l.base}),"."]}):R.jsxs("div",{className:"pb-safe flex-1 overflow-y-auto",children:[R.jsxs("div",{className:"border-b border-border-soft px-3 py-2 text-xs text-muted",children:["vs ",R.jsx("span",{className:"font-mono text-faint",children:l.base})," · ",l.files.length," file",l.files.length===1?"":"s"]}),R.jsx("ul",{className:"flex flex-col gap-1 px-3 py-3",children:l.files.map(s=>R.jsxs("li",{className:"flex items-center gap-2 font-mono text-[12px]",children:[R.jsx("span",{className:"truncate text-muted",children:s.path}),R.jsxs("span",{className:"ml-auto shrink-0 text-add",children:["+",s.added]}),R.jsxs("span",{className:"shrink-0 text-del",children:["−",s.removed]})]},s.path))}),R.jsx(jE,{patch:l.patch,truncated:l.truncated})]}):R.jsx(Jn,{children:"No diff."})}function jE({patch:t,truncated:l}){const r=N.useMemo(()=>t.split(`
12
+ `),[t]);return R.jsxs("pre",{className:"overflow-x-auto border-t border-border-soft px-3 py-3 font-mono text-[11.5px] leading-[1.5]",children:[r.map((a,o)=>R.jsx("div",{className:fn("whitespace-pre",LE(a)),children:a||" "},o)),l?R.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function LE(t){return t.startsWith("+")&&!t.startsWith("+++")?"text-add":t.startsWith("-")&&!t.startsWith("---")?"text-del":t.startsWith("@@")?"text-accent":t.startsWith("diff ")||t.startsWith("index ")||t.startsWith("+++")||t.startsWith("---")?"text-faint":"text-muted"}function bf({title:t,subtitle:l,menu:r,right:a}){const o=At(s=>s.setSidebarOpen);return R.jsxs("header",{className:"pt-safe sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft bg-bg/80 px-3 pb-2.5 backdrop-blur-xl",children:[r?R.jsx("button",{type:"button",onClick:()=>o(!0),"aria-label":"Open workspaces",className:"-ml-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:R.jsx(dw,{size:20})}):R.jsx("span",{className:"w-1"}),R.jsxs("div",{className:"min-w-0 flex-1",children:[R.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:t}),l?R.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:l}):null]}),a,R.jsx(DE,{})]})}function UE(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const BE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qE={};function Pg(t,l){return(qE.jsx?HE:BE).test(t)}const QE=/[ \t\n\f\r]/g;function FE(t){return typeof t=="object"?t.type==="text"?$g(t.value):!1:$g(t)}function $g(t){return t.replace(QE,"")===""}class va{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}va.prototype.normal={};va.prototype.property={};va.prototype.space=void 0;function Xb(t,l){const r={},a={};for(const o of t)Object.assign(r,o.property),Object.assign(a,o.normal);return new va(r,a,l)}function vf(t){return t.toLowerCase()}class qt{constructor(l,r){this.attribute=r,this.property=l}}qt.prototype.attribute="";qt.prototype.booleanish=!1;qt.prototype.boolean=!1;qt.prototype.commaOrSpaceSeparated=!1;qt.prototype.commaSeparated=!1;qt.prototype.defined=!1;qt.prototype.mustUseProperty=!1;qt.prototype.number=!1;qt.prototype.overloadedBoolean=!1;qt.prototype.property="";qt.prototype.spaceSeparated=!1;qt.prototype.space=void 0;let GE=0;const xe=li(),ut=li(),xf=li(),$=li(),Ie=li(),$l=li(),Kt=li();function li(){return 2**++GE}const Sf=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:ut,commaOrSpaceSeparated:Kt,commaSeparated:$l,number:$,overloadedBoolean:xf,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Fc=Object.keys(Sf);class Jf extends qt{constructor(l,r,a,o){let s=-1;if(super(l,r),Wg(this,"space",o),typeof a=="number")for(;++s<Fc.length;){const c=Fc[s];Wg(this,Fc[s],(a&Sf[c])===Sf[c])}}}Jf.prototype.defined=!0;function Wg(t,l,r){r&&(t[l]=r)}function $i(t){const l={},r={};for(const[a,o]of Object.entries(t.properties)){const s=new Jf(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),l[a]=s,r[vf(a)]=a,r[vf(s.attribute)]=a}return new va(l,r,t.space)}const Ib=$i({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Ie,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:$,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Ie,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:ut,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Zb(t,l){return l in t?t[l]:l}function Kb(t,l){return Zb(t,l.toLowerCase())}const VE=$i({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$l,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alpha:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:Ie,autoFocus:xe,autoPlay:xe,blocking:Ie,capture:null,charSet:null,checked:xe,cite:null,className:Ie,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:ut,controls:xe,controlsList:Ie,coords:$|$l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:xf,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:Ie,height:$,hidden:xf,high:$,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:xe,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:$,pattern:null,ping:Ie,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:Ie,required:xe,reversed:xe,rows:$,rowSpan:$,sandbox:Ie,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootCustomElementRegistry:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shadowRootSerializable:xe,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:ut,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:xe,disablePictureInPicture:xe,disableRemotePlayback:xe,exportParts:$l,part:Ie,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:Kb}),YE=$i({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kt,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$l,g2:$l,glyphName:$l,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zb}),Jb=$i({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Pb=$i({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Kb}),$b=$i({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),XE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},IE=/[A-Z]/g,ey=/-[a-z]/g,ZE=/^data[-\w.:]+$/i;function KE(t,l){const r=vf(l);let a=l,o=qt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ZE.test(l)){if(l.charAt(4)==="-"){const s=l.slice(5).replace(ey,PE);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=l.slice(4);if(!ey.test(s)){let c=s.replace(IE,JE);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}o=Jf}return new o(a,l)}function JE(t){return"-"+t.toLowerCase()}function PE(t){return t.charAt(1).toUpperCase()}const $E=Xb([Ib,VE,Jb,Pb,$b],"html"),Pf=Xb([Ib,YE,Jb,Pb,$b],"svg");function WE(t){return t.join(" ").trim()}var Ii={},Gc,ty;function e2(){if(ty)return Gc;ty=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
13
+ `,m="/",y="*",g="",v="comment",x="declaration";function k(T,A){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];A=A||{};var B=1,_=1;function ee(ue){var P=ue.match(l);P&&(B+=P.length);var j=ue.lastIndexOf(p);_=~j?ue.length-j:_+ue.length}function W(){var ue={line:B,column:_};return function(P){return P.position=new Q(ue),ae(),P}}function Q(ue){this.start=ue,this.end={line:B,column:_},this.source=A.source}Q.prototype.content=T;function J(ue){var P=new Error(A.source+":"+B+":"+_+": "+ue);if(P.reason=ue,P.filename=A.source,P.line=B,P.column=_,P.source=T,!A.silent)throw P}function Y(ue){var P=ue.exec(T);if(P){var j=P[0];return ee(j),T=T.slice(j.length),P}}function ae(){Y(r)}function q(ue){var P;for(ue=ue||[];P=ie();)P!==!1&&ue.push(P);return ue}function ie(){var ue=W();if(!(m!=T.charAt(0)||y!=T.charAt(1))){for(var P=2;g!=T.charAt(P)&&(y!=T.charAt(P)||m!=T.charAt(P+1));)++P;if(P+=2,g===T.charAt(P-1))return J("End of comment missing");var j=T.slice(2,P-2);return _+=2,ee(j),T=T.slice(P),_+=2,ue({type:v,comment:j})}}function te(){var ue=W(),P=Y(a);if(P){if(ie(),!Y(o))return J("property missing ':'");var j=Y(s),K=ue({type:x,property:C(P[0].replace(t,g)),value:j?C(j[0].replace(t,g)):g});return Y(c),K}}function ye(){var ue=[];q(ue);for(var P;P=te();)P!==!1&&(ue.push(P),q(ue));return ue}return ae(),ye()}function C(T){return T?T.replace(d,g):g}return Gc=k,Gc}var ny;function t2(){if(ny)return Ii;ny=1;var t=Ii&&Ii.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=r;const l=t(e2());function r(a,o){let s=null;if(!a||typeof a!="string")return s;const c=(0,l.default)(a),d=typeof o=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;d?o(m,y,p):y&&(s=s||{},s[m]=y)}),s}return Ii}var Jr={},ly;function n2(){if(ly)return Jr;ly=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(m){return!m||r.test(m)||t.test(m)},c=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),s(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(o,d):m=m.replace(a,d),m.replace(l,c))};return Jr.camelCase=p,Jr}var Pr,iy;function l2(){if(iy)return Pr;iy=1;var t=Pr&&Pr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=t(t2()),r=n2();function a(o,s){var c={};return!o||typeof o!="string"||(0,l.default)(o,function(d,p){d&&p&&(c[(0,r.camelCase)(d,s)]=p)}),c}return a.default=a,Pr=a,Pr}var i2=l2();const r2=Mf(i2),Wb=ev("end"),$f=ev("start");function ev(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function a2(t){const l=$f(t),r=Wb(t);if(l&&r)return{start:l,end:r}}function la(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?ry(t.position):"start"in t||"end"in t?ry(t):"line"in t||"column"in t?kf(t):""}function kf(t){return ay(t&&t.line)+":"+ay(t&&t.column)}function ry(t){return kf(t&&t.start)+"-"+kf(t&&t.end)}function ay(t){return t&&typeof t=="number"?t:1}class St extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof l=="string"?o=l:!s.cause&&l&&(c=!0,o=l.message,s.cause=l),!s.ruleId&&!s.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?s.ruleId=a:(s.source=a.slice(0,p),s.ruleId=a.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=la(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}St.prototype.file="";St.prototype.name="";St.prototype.reason="";St.prototype.message="";St.prototype.stack="";St.prototype.column=void 0;St.prototype.line=void 0;St.prototype.ancestors=void 0;St.prototype.cause=void 0;St.prototype.fatal=void 0;St.prototype.place=void 0;St.prototype.ruleId=void 0;St.prototype.source=void 0;const Wf={}.hasOwnProperty,u2=new Map,o2=/[A-Z]/g,s2=new Set(["table","tbody","thead","tfoot","tr"]),c2=new Set(["td","th"]),tv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function f2(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=v2(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=b2(r,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Pf:$E,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},s=nv(o,t,void 0);return s&&typeof s!="string"?s:o.create(t,o.Fragment,{children:s||void 0},void 0)}function nv(t,l,r){if(l.type==="element")return h2(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return d2(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return m2(t,l,r);if(l.type==="mdxjsEsm")return p2(t,l);if(l.type==="root")return g2(t,l,r);if(l.type==="text")return y2(t,l)}function h2(t,l,r){const a=t.schema;let o=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Pf,t.schema=o),t.ancestors.push(l);const s=iv(t,l.tagName,!1),c=x2(t,l);let d=th(t,l);return s2.has(l.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!FE(p):!0})),lv(t,c,s,l),eh(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function d2(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}da(t,l.position)}function p2(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);da(t,l.position)}function m2(t,l,r){const a=t.schema;let o=a;l.name==="svg"&&a.space==="html"&&(o=Pf,t.schema=o),t.ancestors.push(l);const s=l.name===null?t.Fragment:iv(t,l.name,!0),c=S2(t,l),d=th(t,l);return lv(t,c,s,l),eh(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function g2(t,l,r){const a={};return eh(a,th(t,l)),t.create(l,t.Fragment,a,r)}function y2(t,l){return l.value}function lv(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function eh(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function b2(t,l,r){return a;function a(o,s,c,d){const m=Array.isArray(c.children)?r:l;return d?m(s,c,d):m(s,c)}}function v2(t,l){return r;function r(a,o,s,c){const d=Array.isArray(s.children),p=$f(a);return l(o,s,c,d,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function x2(t,l){const r={};let a,o;for(o in l.properties)if(o!=="children"&&Wf.call(l.properties,o)){const s=k2(t,o,l.properties[o]);if(s){const[c,d]=s;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&c2.has(l.tagName)?a=d:r[c]=d}}if(a){const s=r.style||(r.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function S2(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else da(t,l.position);else{const o=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,s=t.evaluater.evaluateExpression(d.expression)}else da(t,l.position);else s=a.value===null?!0:a.value;r[o]=s}return r}function th(t,l){const r=[];let a=-1;const o=t.passKeys?new Map:u2;for(;++a<l.children.length;){const s=l.children[a];let c;if(t.passKeys){const p=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(p){const m=o.get(p)||0;c=p+"-"+m,o.set(p,m+1)}}const d=nv(t,s,c);d!==void 0&&r.push(d)}return r}function k2(t,l,r){const a=KE(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?UE(r):WE(r)),a.property==="style"){let o=typeof r=="object"?r:w2(t,String(r));return t.stylePropertyNameCase==="css"&&(o=E2(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&a.space?XE[a.property]||a.property:a.attribute,r]}}function w2(t,l){try{return r2(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,o=new St("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=tv+"#cannot-parse-style-attribute",o}}function iv(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let s=-1,c;for(;++s<o.length;){const d=Pg(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}a=c}else a=Pg(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const o=a.value;return Wf.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(a);da(t)}function da(t,l){const r=new St("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=tv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function E2(t){const l={};let r;for(r in t)Wf.call(t,r)&&(l[C2(r)]=t[r]);return l}function C2(t){let l=t.replace(o2,T2);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function T2(t){return"-"+t.toLowerCase()}const Vc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},A2={};function nh(t,l){const r=A2,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return rv(t,a,o)}function rv(t,l,r){if(z2(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return uy(t.children,l,r)}return Array.isArray(t)?uy(t,l,r):""}function uy(t,l,r){const a=[];let o=-1;for(;++o<t.length;)a[o]=rv(t[o],l,r);return a.join("")}function z2(t){return!!(t&&typeof t=="object")}const oy=document.createElement("i");function lh(t){const l="&"+t+";";oy.innerHTML=l;const r=oy.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function Pt(t,l,r,a){const o=t.length;let s=0,c;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);s<a.length;)c=a.slice(s,s+1e4),c.unshift(l,0),t.splice(...c),s+=1e4,l+=1e4}function cn(t,l){return t.length>0?(Pt(t,t.length,0,l),t):l}const sy={}.hasOwnProperty;function av(t){const l={};let r=-1;for(;++r<t.length;)R2(l,t[r]);return l}function R2(t,l){let r;for(r in l){const o=(sy.call(t,r)?t[r]:void 0)||(t[r]={}),s=l[r];let c;if(s)for(c in s){sy.call(o,c)||(o[c]=[]);const d=s[c];O2(o[c],Array.isArray(d)?d:d?[d]:[])}}}function O2(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);Pt(t,0,0,a)}function uv(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function bn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=Rl(/[A-Za-z]/),xt=Rl(/[\dA-Za-z]/),M2=Rl(/[#-'*+\--9=?A-Z^-~]/);function to(t){return t!==null&&(t<32||t===127)}const wf=Rl(/\d/),_2=Rl(/[\dA-Fa-f]/),D2=Rl(/[!-/:-@[-`{-~]/);function me(t){return t!==null&&t<-2}function Ze(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const fo=Rl(new RegExp("\\p{P}|\\p{S}","u")),Wl=Rl(/\s/);function Rl(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Wi(t){const l=[];let r=-1,a=0,o=0;for(;++r<t.length;){const s=t.charCodeAt(r);let c="";if(s===37&&xt(t.charCodeAt(r+1))&&xt(t.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=t.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+o+1,c=""),o&&(r+=o,o=0)}return l.join("")+t.slice(a)}function Ne(t,l,r,a){const o=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(p){return Oe(p)?(t.enter(r),d(p)):l(p)}function d(p){return Oe(p)&&s++<o?(t.consume(p),d):(t.exit(r),l(p))}}const N2={tokenize:j2};function j2(t){const l=t.attempt(this.parser.constructs.contentInitial,a,o);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ne(t,l,"linePrefix")}function o(d){return t.enter("paragraph"),s(d)}function s(d){const p=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return me(d)?(t.consume(d),t.exit("chunkText"),s):(t.consume(d),c)}}const L2={tokenize:U2},cy={tokenize:B2};function U2(t){const l=this,r=[];let a=0,o,s,c;return d;function d(_){if(a<r.length){const ee=r[a];return l.containerState=ee[1],t.attempt(ee[0].continuation,p,m)(_)}return m(_)}function p(_){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&B();const ee=l.events.length;let W=ee,Q;for(;W--;)if(l.events[W][0]==="exit"&&l.events[W][1].type==="chunkFlow"){Q=l.events[W][1].end;break}A(a);let J=ee;for(;J<l.events.length;)l.events[J][1].end={...Q},J++;return Pt(l.events,W+1,0,l.events.slice(ee)),l.events.length=J,m(_)}return d(_)}function m(_){if(a===r.length){if(!o)return v(_);if(o.currentConstruct&&o.currentConstruct.concrete)return k(_);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(cy,y,g)(_)}function y(_){return o&&B(),A(a),v(_)}function g(_){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,k(_)}function v(_){return l.containerState={},t.attempt(cy,x,k)(_)}function x(_){return a++,r.push([l.currentConstruct,l.containerState]),v(_)}function k(_){if(_===null){o&&B(),A(0),t.consume(_);return}return o=o||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),C(_)}function C(_){if(_===null){T(t.exit("chunkFlow"),!0),A(0),t.consume(_);return}return me(_)?(t.consume(_),T(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(_),C)}function T(_,ee){const W=l.sliceStream(_);if(ee&&W.push(null),_.previous=s,s&&(s.next=_),s=_,o.defineSkip(_.start),o.write(W),l.parser.lazy[_.start.line]){let Q=o.events.length;for(;Q--;)if(o.events[Q][1].start.offset<c&&(!o.events[Q][1].end||o.events[Q][1].end.offset>c))return;const J=l.events.length;let Y=J,ae,q;for(;Y--;)if(l.events[Y][0]==="exit"&&l.events[Y][1].type==="chunkFlow"){if(ae){q=l.events[Y][1].end;break}ae=!0}for(A(a),Q=J;Q<l.events.length;)l.events[Q][1].end={...q},Q++;Pt(l.events,Y+1,0,l.events.slice(J)),l.events.length=Q}}function A(_){let ee=r.length;for(;ee-- >_;){const W=r[ee];l.containerState=W[1],W[0].exit.call(l,t)}r.length=_}function B(){o.write([null]),s=void 0,o=void 0,l.containerState._closeFlow=void 0}}function B2(t,l,r){return Ne(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ki(t){if(t===null||Ze(t)||Wl(t))return 1;if(fo(t))return 2}function ho(t,l,r){const a=[];let o=-1;for(;++o<t.length;){const s=t[o].resolveAll;s&&!a.includes(s)&&(l=s(l,r),a.push(s))}return l}const Ef={name:"attention",resolveAll:H2,tokenize:q2};function H2(t,l){let r=-1,a,o,s,c,d,p,m,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;p=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[r][1].start};fy(g,-p),fy(v,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},s={type:p>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},o={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},m=[],t[a][1].end.offset-t[a][1].start.offset&&(m=cn(m,[["enter",t[a][1],l],["exit",t[a][1],l]])),m=cn(m,[["enter",o,l],["enter",c,l],["exit",c,l],["enter",s,l]]),m=cn(m,ho(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),m=cn(m,[["exit",s,l],["enter",d,l],["exit",d,l],["exit",o,l]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,m=cn(m,[["enter",t[r][1],l],["exit",t[r][1],l]])):y=0,Pt(t,a-1,r-a+3,m),r=a+m.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function q2(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=Ki(a);let s;return c;function c(p){return s=p,t.enter("attentionSequence"),d(p)}function d(p){if(p===s)return t.consume(p),d;const m=t.exit("attentionSequence"),y=Ki(p),g=!y||y===2&&o||r.includes(p),v=!o||o===2&&y||r.includes(a);return m._open=!!(s===42?g:g&&(o||!v)),m._close=!!(s===42?v:v&&(y||!g)),l(p)}}function fy(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const Q2={name:"autolink",tokenize:F2};function F2(t,l,r){let a=0;return o;function o(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(x){return Tt(x)?(t.consume(x),c):x===64?r(x):m(x)}function c(x){return x===43||x===45||x===46||xt(x)?(a=1,d(x)):m(x)}function d(x){return x===58?(t.consume(x),a=0,p):(x===43||x===45||x===46||xt(x))&&a++<32?(t.consume(x),d):(a=0,m(x))}function p(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):x===null||x===32||x===60||to(x)?r(x):(t.consume(x),p)}function m(x){return x===64?(t.consume(x),y):M2(x)?(t.consume(x),m):r(x)}function y(x){return xt(x)?g(x):r(x)}function g(x){return x===46?(t.consume(x),a=0,y):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):v(x)}function v(x){if((x===45||xt(x))&&a++<63){const k=x===45?v:g;return t.consume(x),k}return r(x)}}const xa={partial:!0,tokenize:G2};function G2(t,l,r){return a;function a(s){return Oe(s)?Ne(t,o,"linePrefix")(s):o(s)}function o(s){return s===null||me(s)?l(s):r(s)}}const ov={continuation:{tokenize:Y2},exit:X2,name:"blockQuote",tokenize:V2};function V2(t,l,r){const a=this;return o;function o(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Oe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function Y2(t,l,r){const a=this;return o;function o(c){return Oe(c)?Ne(t,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return t.attempt(ov,l,r)(c)}}function X2(t){t.exit("blockQuote")}const sv={name:"characterEscape",tokenize:I2};function I2(t,l,r){return a;function a(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),o}function o(s){return D2(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(s)}}const cv={name:"characterReference",tokenize:Z2};function Z2(t,l,r){const a=this;let o=0,s,c;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),p}function p(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),s=31,c=xt,y(g))}function m(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,c=_2,y):(t.enter("characterReferenceValue"),s=7,c=wf,y(g))}function y(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return c===xt&&!lh(a.sliceSerialize(v))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(g)&&o++<s?(t.consume(g),y):r(g)}}const hy={partial:!0,tokenize:J2},dy={concrete:!0,name:"codeFenced",tokenize:K2};function K2(t,l,r){const a=this,o={partial:!0,tokenize:W};let s=0,c=0,d;return p;function p(Q){return m(Q)}function m(Q){const J=a.events[a.events.length-1];return s=J&&J[1].type==="linePrefix"?J[2].sliceSerialize(J[1],!0).length:0,d=Q,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(Q)}function y(Q){return Q===d?(c++,t.consume(Q),y):c<3?r(Q):(t.exit("codeFencedFenceSequence"),Oe(Q)?Ne(t,g,"whitespace")(Q):g(Q))}function g(Q){return Q===null||me(Q)?(t.exit("codeFencedFence"),a.interrupt?l(Q):t.check(hy,C,ee)(Q)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(Q))}function v(Q){return Q===null||me(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(Q)):Oe(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ne(t,x,"whitespace")(Q)):Q===96&&Q===d?r(Q):(t.consume(Q),v)}function x(Q){return Q===null||me(Q)?g(Q):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),k(Q))}function k(Q){return Q===null||me(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(Q)):Q===96&&Q===d?r(Q):(t.consume(Q),k)}function C(Q){return t.attempt(o,ee,T)(Q)}function T(Q){return t.enter("lineEnding"),t.consume(Q),t.exit("lineEnding"),A}function A(Q){return s>0&&Oe(Q)?Ne(t,B,"linePrefix",s+1)(Q):B(Q)}function B(Q){return Q===null||me(Q)?t.check(hy,C,ee)(Q):(t.enter("codeFlowValue"),_(Q))}function _(Q){return Q===null||me(Q)?(t.exit("codeFlowValue"),B(Q)):(t.consume(Q),_)}function ee(Q){return t.exit("codeFenced"),l(Q)}function W(Q,J,Y){let ae=0;return q;function q(P){return Q.enter("lineEnding"),Q.consume(P),Q.exit("lineEnding"),ie}function ie(P){return Q.enter("codeFencedFence"),Oe(P)?Ne(Q,te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):te(P)}function te(P){return P===d?(Q.enter("codeFencedFenceSequence"),ye(P)):Y(P)}function ye(P){return P===d?(ae++,Q.consume(P),ye):ae>=c?(Q.exit("codeFencedFenceSequence"),Oe(P)?Ne(Q,ue,"whitespace")(P):ue(P)):Y(P)}function ue(P){return P===null||me(P)?(Q.exit("codeFencedFence"),J(P)):Y(P)}}}function J2(t,l,r){const a=this;return o;function o(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const Yc={name:"codeIndented",tokenize:$2},P2={partial:!0,tokenize:W2};function $2(t,l,r){const a=this;return o;function o(m){return t.enter("codeIndented"),Ne(t,s,"linePrefix",5)(m)}function s(m){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?p(m):me(m)?t.attempt(P2,c,p)(m):(t.enter("codeFlowValue"),d(m))}function d(m){return m===null||me(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),d)}function p(m){return t.exit("codeIndented"),l(m)}}function W2(t,l,r){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?r(c):me(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):Ne(t,s,"linePrefix",5)(c)}function s(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):me(c)?o(c):r(c)}}const eC={name:"codeText",previous:nC,resolve:tC,tokenize:lC};function tC(t){let l=t.length-4,r=3,a,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)o===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(o=a):(a===l||t[a][1].type==="lineEnding")&&(t[o][1].type="codeTextData",a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),l-=a-o-2,a=o+2),o=void 0);return t}function nC(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lC(t,l,r){let a=0,o,s;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),p(g))}function p(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),p):g===96?(s=t.enter("codeTextSequence"),o=0,y(g)):me(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),p):(t.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||me(g)?(t.exit("codeTextData"),p(g)):(t.consume(g),m)}function y(g){return g===96?(t.consume(g),o++,y):o===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(s.type="codeTextData",m(g))}}class iC{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const o=r||0;this.setCursor(Math.trunc(l));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&$r(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),$r(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),$r(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);$r(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);$r(this.left,r.reverse())}}}function $r(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function fv(t){const l={};let r=-1,a,o,s,c,d,p,m;const y=new iC(t);for(;++r<y.length;){for(;r in l;)r=l[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,s=0,s<p.length&&p[s][1].type==="lineEndingBlank"&&(s+=2),s<p.length&&p[s][1].type==="content"))for(;++s<p.length&&p[s][1].type!=="content";)p[s][1].type==="chunkText"&&(p[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,rC(y,r)),r=l[r],m=!0);else if(a[1]._container){for(s=r,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,r),d.unshift(a),y.splice(o,r-o+1,d))}}return Pt(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function rC(t,l){const r=t.get(l)[1],a=t.get(l)[2];let o=l-1;const s=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],m={};let y,g,v=-1,x=r,k=0,C=0;const T=[C];for(;x;){for(;t.get(++o)[1]!==x;);s.push(o),x._tokenizer||(y=a.sliceStream(x),x.next||y.push(null),g&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(C=v+1,T.push(C),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):T.pop(),v=T.length;v--;){const A=d.slice(T[v],T[v+1]),B=s.pop();p.push([B,B+A.length-1]),t.splice(B,2,A)}for(p.reverse(),v=-1;++v<p.length;)m[k+p[v][0]]=k+p[v][1],k+=p[v][1]-p[v][0]-1;return m}const aC={resolve:oC,tokenize:sC},uC={partial:!0,tokenize:cC};function oC(t){return fv(t),t}function sC(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):me(d)?t.check(uC,c,s)(d):(t.consume(d),o)}function s(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function cC(t,l,r){const a=this;return o;function o(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ne(t,s,"linePrefix")}function s(c){if(c===null||me(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function hv(t,l,r,a,o,s,c,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(A){return A===60?(t.enter(a),t.enter(o),t.enter(s),t.consume(A),t.exit(s),v):A===null||A===32||A===41||to(A)?r(A):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),C(A))}function v(A){return A===62?(t.enter(s),t.consume(A),t.exit(s),t.exit(o),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===62?(t.exit("chunkString"),t.exit(d),v(A)):A===null||A===60||me(A)?r(A):(t.consume(A),A===92?k:x)}function k(A){return A===60||A===62||A===92?(t.consume(A),x):x(A)}function C(A){return!y&&(A===null||A===41||Ze(A))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(A)):y<m&&A===40?(t.consume(A),y++,C):A===41?(t.consume(A),y--,C):A===null||A===32||A===40||to(A)?r(A):(t.consume(A),A===92?T:C)}function T(A){return A===40||A===41||A===92?(t.consume(A),C):C(A)}}function dv(t,l,r,a,o,s){const c=this;let d=0,p;return m;function m(x){return t.enter(a),t.enter(o),t.consume(x),t.exit(o),t.enter(s),y}function y(x){return d>999||x===null||x===91||x===93&&!p||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(t.exit(s),t.enter(o),t.consume(x),t.exit(o),t.exit(a),l):me(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||me(x)||d++>999?(t.exit("chunkString"),y(x)):(t.consume(x),p||(p=!Oe(x)),x===92?v:g)}function v(x){return x===91||x===92||x===93?(t.consume(x),d++,g):g(x)}}function pv(t,l,r,a,o,s){let c;return d;function d(v){return v===34||v===39||v===40?(t.enter(a),t.enter(o),t.consume(v),t.exit(o),c=v===40?41:v,p):r(v)}function p(v){return v===c?(t.enter(o),t.consume(v),t.exit(o),t.exit(a),l):(t.enter(s),m(v))}function m(v){return v===c?(t.exit(s),p(c)):v===null?r(v):me(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ne(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||me(v)?(t.exit("chunkString"),m(v)):(t.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(t.consume(v),y):y(v)}}function ia(t,l){let r;return a;function a(o){return me(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,a):Oe(o)?Ne(t,a,r?"linePrefix":"lineSuffix")(o):l(o)}}const fC={name:"definition",tokenize:dC},hC={partial:!0,tokenize:pC};function dC(t,l,r){const a=this;let o;return s;function s(x){return t.enter("definition"),c(x)}function c(x){return dv.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=bn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),p):r(x)}function p(x){return Ze(x)?ia(t,m)(x):m(x)}function m(x){return hv(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function y(x){return t.attempt(hC,g,g)(x)}function g(x){return Oe(x)?Ne(t,v,"whitespace")(x):v(x)}function v(x){return x===null||me(x)?(t.exit("definition"),a.parser.defined.push(o),l(x)):r(x)}}function pC(t,l,r){return a;function a(d){return Ze(d)?ia(t,o)(d):r(d)}function o(d){return pv(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Oe(d)?Ne(t,c,"whitespace")(d):c(d)}function c(d){return d===null||me(d)?l(d):r(d)}}const mC={name:"hardBreakEscape",tokenize:gC};function gC(t,l,r){return a;function a(s){return t.enter("hardBreakEscape"),t.consume(s),o}function o(s){return me(s)?(t.exit("hardBreakEscape"),l(s)):r(s)}}const yC={name:"headingAtx",resolve:bC,tokenize:vC};function bC(t,l){let r=t.length-2,a=3,o,s;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(o={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},s={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},Pt(t,a,r-a+1,[["enter",o,l],["enter",s,l],["exit",s,l],["exit",o,l]])),t}function vC(t,l,r){let a=0;return o;function o(y){return t.enter("atxHeading"),s(y)}function s(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||Ze(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),p(y)):y===null||me(y)?(t.exit("atxHeading"),l(y)):Oe(y)?Ne(t,d,"whitespace")(y):(t.enter("atxHeadingText"),m(y))}function p(y){return y===35?(t.consume(y),p):(t.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||Ze(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),m)}}const xC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],py=["pre","script","style","textarea"],SC={concrete:!0,name:"htmlFlow",resolveTo:EC,tokenize:CC},kC={partial:!0,tokenize:AC},wC={partial:!0,tokenize:TC};function EC(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function CC(t,l,r){const a=this;let o,s,c,d,p;return m;function m(E){return y(E)}function y(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),g}function g(E){return E===33?(t.consume(E),v):E===47?(t.consume(E),s=!0,C):E===63?(t.consume(E),o=3,a.interrupt?l:w):Tt(E)?(t.consume(E),c=String.fromCharCode(E),T):r(E)}function v(E){return E===45?(t.consume(E),o=2,x):E===91?(t.consume(E),o=5,d=0,k):Tt(E)?(t.consume(E),o=4,a.interrupt?l:w):r(E)}function x(E){return E===45?(t.consume(E),a.interrupt?l:w):r(E)}function k(E){const le="CDATA[";return E===le.charCodeAt(d++)?(t.consume(E),d===le.length?a.interrupt?l:te:k):r(E)}function C(E){return Tt(E)?(t.consume(E),c=String.fromCharCode(E),T):r(E)}function T(E){if(E===null||E===47||E===62||Ze(E)){const le=E===47,se=c.toLowerCase();return!le&&!s&&py.includes(se)?(o=1,a.interrupt?l(E):te(E)):xC.includes(c.toLowerCase())?(o=6,le?(t.consume(E),A):a.interrupt?l(E):te(E)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(E):s?B(E):_(E))}return E===45||xt(E)?(t.consume(E),c+=String.fromCharCode(E),T):r(E)}function A(E){return E===62?(t.consume(E),a.interrupt?l:te):r(E)}function B(E){return Oe(E)?(t.consume(E),B):q(E)}function _(E){return E===47?(t.consume(E),q):E===58||E===95||Tt(E)?(t.consume(E),ee):Oe(E)?(t.consume(E),_):q(E)}function ee(E){return E===45||E===46||E===58||E===95||xt(E)?(t.consume(E),ee):W(E)}function W(E){return E===61?(t.consume(E),Q):Oe(E)?(t.consume(E),W):_(E)}function Q(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),p=E,J):Oe(E)?(t.consume(E),Q):Y(E)}function J(E){return E===p?(t.consume(E),p=null,ae):E===null||me(E)?r(E):(t.consume(E),J)}function Y(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ze(E)?W(E):(t.consume(E),Y)}function ae(E){return E===47||E===62||Oe(E)?_(E):r(E)}function q(E){return E===62?(t.consume(E),ie):r(E)}function ie(E){return E===null||me(E)?te(E):Oe(E)?(t.consume(E),ie):r(E)}function te(E){return E===45&&o===2?(t.consume(E),j):E===60&&o===1?(t.consume(E),K):E===62&&o===4?(t.consume(E),O):E===63&&o===3?(t.consume(E),w):E===93&&o===5?(t.consume(E),ke):me(E)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(kC,V,ye)(E)):E===null||me(E)?(t.exit("htmlFlowData"),ye(E)):(t.consume(E),te)}function ye(E){return t.check(wC,ue,V)(E)}function ue(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),P}function P(E){return E===null||me(E)?ye(E):(t.enter("htmlFlowData"),te(E))}function j(E){return E===45?(t.consume(E),w):te(E)}function K(E){return E===47?(t.consume(E),c="",he):te(E)}function he(E){if(E===62){const le=c.toLowerCase();return py.includes(le)?(t.consume(E),O):te(E)}return Tt(E)&&c.length<8?(t.consume(E),c+=String.fromCharCode(E),he):te(E)}function ke(E){return E===93?(t.consume(E),w):te(E)}function w(E){return E===62?(t.consume(E),O):E===45&&o===2?(t.consume(E),w):te(E)}function O(E){return E===null||me(E)?(t.exit("htmlFlowData"),V(E)):(t.consume(E),O)}function V(E){return t.exit("htmlFlow"),l(E)}}function TC(t,l,r){const a=this;return o;function o(c){return me(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):r(c)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function AC(t,l,r){return a;function a(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(xa,l,r)}}const zC={name:"htmlText",tokenize:RC};function RC(t,l,r){const a=this;let o,s,c;return d;function d(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),p}function p(w){return w===33?(t.consume(w),m):w===47?(t.consume(w),W):w===63?(t.consume(w),_):Tt(w)?(t.consume(w),Y):r(w)}function m(w){return w===45?(t.consume(w),y):w===91?(t.consume(w),s=0,k):Tt(w)?(t.consume(w),B):r(w)}function y(w){return w===45?(t.consume(w),x):r(w)}function g(w){return w===null?r(w):w===45?(t.consume(w),v):me(w)?(c=g,K(w)):(t.consume(w),g)}function v(w){return w===45?(t.consume(w),x):g(w)}function x(w){return w===62?j(w):w===45?v(w):g(w)}function k(w){const O="CDATA[";return w===O.charCodeAt(s++)?(t.consume(w),s===O.length?C:k):r(w)}function C(w){return w===null?r(w):w===93?(t.consume(w),T):me(w)?(c=C,K(w)):(t.consume(w),C)}function T(w){return w===93?(t.consume(w),A):C(w)}function A(w){return w===62?j(w):w===93?(t.consume(w),A):C(w)}function B(w){return w===null||w===62?j(w):me(w)?(c=B,K(w)):(t.consume(w),B)}function _(w){return w===null?r(w):w===63?(t.consume(w),ee):me(w)?(c=_,K(w)):(t.consume(w),_)}function ee(w){return w===62?j(w):_(w)}function W(w){return Tt(w)?(t.consume(w),Q):r(w)}function Q(w){return w===45||xt(w)?(t.consume(w),Q):J(w)}function J(w){return me(w)?(c=J,K(w)):Oe(w)?(t.consume(w),J):j(w)}function Y(w){return w===45||xt(w)?(t.consume(w),Y):w===47||w===62||Ze(w)?ae(w):r(w)}function ae(w){return w===47?(t.consume(w),j):w===58||w===95||Tt(w)?(t.consume(w),q):me(w)?(c=ae,K(w)):Oe(w)?(t.consume(w),ae):j(w)}function q(w){return w===45||w===46||w===58||w===95||xt(w)?(t.consume(w),q):ie(w)}function ie(w){return w===61?(t.consume(w),te):me(w)?(c=ie,K(w)):Oe(w)?(t.consume(w),ie):ae(w)}function te(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),o=w,ye):me(w)?(c=te,K(w)):Oe(w)?(t.consume(w),te):(t.consume(w),ue)}function ye(w){return w===o?(t.consume(w),o=void 0,P):w===null?r(w):me(w)?(c=ye,K(w)):(t.consume(w),ye)}function ue(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||Ze(w)?ae(w):(t.consume(w),ue)}function P(w){return w===47||w===62||Ze(w)?ae(w):r(w)}function j(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),l):r(w)}function K(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),he}function he(w){return Oe(w)?Ne(t,ke,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ke(w)}function ke(w){return t.enter("htmlTextData"),c(w)}}const ih={name:"labelEnd",resolveAll:DC,resolveTo:NC,tokenize:jC},OC={tokenize:LC},MC={tokenize:UC},_C={tokenize:BC};function DC(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",l+=o}}return t.length!==r.length&&Pt(t,0,t.length,r),t}function NC(t,l){let r=t.length,a=0,o,s,c,d;for(;r--;)if(o=t[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=r);const p={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[s][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[s+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",p,l],["enter",m,l]],d=cn(d,t.slice(s+1,s+a+3)),d=cn(d,[["enter",y,l]]),d=cn(d,ho(l.parser.constructs.insideSpan.null,t.slice(s+a+4,c-3),l)),d=cn(d,[["exit",y,l],t[c-2],t[c-1],["exit",m,l]]),d=cn(d,t.slice(c+1)),d=cn(d,[["exit",p,l]]),Pt(t,s,t.length,d),t}function jC(t,l,r){const a=this;let o=a.events.length,s,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){s=a.events[o][1];break}return d;function d(v){return s?s._inactive?g(v):(c=a.parser.defined.includes(bn(a.sliceSerialize({start:s.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),p):r(v)}function p(v){return v===40?t.attempt(OC,y,c?y:g)(v):v===91?t.attempt(MC,y,c?m:g)(v):c?y(v):g(v)}function m(v){return t.attempt(_C,y,g)(v)}function y(v){return l(v)}function g(v){return s._balanced=!0,r(v)}}function LC(t,l,r){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),o}function o(g){return Ze(g)?ia(t,s)(g):s(g)}function s(g){return g===41?y(g):hv(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Ze(g)?ia(t,p)(g):y(g)}function d(g){return r(g)}function p(g){return g===34||g===39||g===40?pv(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Ze(g)?ia(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):r(g)}}function UC(t,l,r){const a=this;return o;function o(d){return dv.call(a,t,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return a.parser.defined.includes(bn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function BC(t,l,r){return a;function a(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),o}function o(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),l):r(s)}}const HC={name:"labelStartImage",resolveAll:ih.resolveAll,tokenize:qC};function qC(t,l,r){const a=this;return o;function o(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),s}function s(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const QC={name:"labelStartLink",resolveAll:ih.resolveAll,tokenize:FC};function FC(t,l,r){const a=this;return o;function o(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const Xc={name:"lineEnding",tokenize:GC};function GC(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ne(t,l,"linePrefix")}}const Pu={name:"thematicBreak",tokenize:VC};function VC(t,l,r){let a=0,o;return s;function s(m){return t.enter("thematicBreak"),c(m)}function c(m){return o=m,d(m)}function d(m){return m===o?(t.enter("thematicBreakSequence"),p(m)):a>=3&&(m===null||me(m))?(t.exit("thematicBreak"),l(m)):r(m)}function p(m){return m===o?(t.consume(m),a++,p):(t.exit("thematicBreakSequence"),Oe(m)?Ne(t,d,"whitespace")(m):d(m))}}const Bt={continuation:{tokenize:ZC},exit:JC,name:"list",tokenize:IC},YC={partial:!0,tokenize:PC},XC={partial:!0,tokenize:KC};function IC(t,l,r){const a=this,o=a.events[a.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(x){const k=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:wf(x)){if(a.containerState.type||(a.containerState.type=k,t.enter(k,{_container:!0})),k==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(Pu,r,m)(x):m(x);if(!a.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(x)}return r(x)}function p(x){return wf(x)&&++c<10?(t.consume(x),p):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),m(x)):r(x)}function m(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,t.check(xa,a.interrupt?r:y,t.attempt(YC,v,g))}function y(x){return a.containerState.initialBlankLine=!0,s++,v(x)}function g(x){return Oe(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),v):r(x)}function v(x){return a.containerState.size=s+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(x)}}function ZC(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(xa,o,s);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ne(t,l,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!Oe(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(XC,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ne(t,t.attempt(Bt,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function KC(t,l,r){const a=this;return Ne(t,o,"listItemIndent",a.containerState.size+1);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(s):r(s)}}function JC(t){t.exit(this.containerState.type)}function PC(t,l,r){const a=this;return Ne(t,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=a.events[a.events.length-1];return!Oe(s)&&c&&c[1].type==="listItemPrefixWhitespace"?l(s):r(s)}}const my={name:"setextUnderline",resolveTo:$C,tokenize:WC};function $C(t,l){let r=t.length,a,o,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(o=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",s?(t.splice(o,0,["enter",c,l]),t.splice(s+1,0,["exit",t[a][1],l]),t[a][1].end={...t[s][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function WC(t,l,r){const a=this;let o;return s;function s(m){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),o=m,c(m)):r(m)}function c(m){return t.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===o?(t.consume(m),d):(t.exit("setextHeadingLineSequence"),Oe(m)?Ne(t,p,"lineSuffix")(m):p(m))}function p(m){return m===null||me(m)?(t.exit("setextHeadingLine"),l(m)):r(m)}}const eT={tokenize:tT};function tT(t){const l=this,r=t.attempt(xa,a,t.attempt(this.parser.constructs.flowInitial,o,Ne(t,t.attempt(this.parser.constructs.flow,o,t.attempt(aC,o)),"linePrefix")));return r;function a(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function o(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const nT={resolveAll:gv()},lT=mv("string"),iT=mv("text");function mv(t){return{resolveAll:gv(t==="text"?rT:void 0),tokenize:l};function l(r){const a=this,o=this.parser.constructs[t],s=r.attempt(o,c,d);return c;function c(y){return m(y)?s(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),p}function p(y){return m(y)?(r.exit("data"),s(y)):(r.consume(y),p)}function m(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const x=g[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function gv(t){return l;function l(r,a){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return t?t(r,a):r}}function rT(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],o=l.sliceStream(a);let s=o.length,c=-1,d=0,p;for(;s--;){const m=o[s];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){s++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const m={type:r===t.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:a.start._bufferIndex+c,_index:a.start._index+s,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...m.start},a.start.offset===a.end.offset?Object.assign(a,m):(t.splice(r,0,["enter",m,l],["exit",m,l]),r+=2)}r++}return t}const aT={42:Bt,43:Bt,45:Bt,48:Bt,49:Bt,50:Bt,51:Bt,52:Bt,53:Bt,54:Bt,55:Bt,56:Bt,57:Bt,62:ov},uT={91:fC},oT={[-2]:Yc,[-1]:Yc,32:Yc},sT={35:yC,42:Pu,45:[my,Pu],60:SC,61:my,95:Pu,96:dy,126:dy},cT={38:cv,92:sv},fT={[-5]:Xc,[-4]:Xc,[-3]:Xc,33:HC,38:cv,42:Ef,60:[Q2,zC],91:QC,92:[mC,sv],93:ih,95:Ef,96:eC},hT={null:[Ef,nT]},dT={null:[42,95]},pT={null:[]},mT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dT,contentInitial:uT,disable:pT,document:aT,flow:sT,flowInitial:oT,insideSpan:hT,string:cT,text:fT},Symbol.toStringTag,{value:"Module"}));function gT(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],d=[];const p={attempt:J(W),check:J(Q),consume:B,enter:_,exit:ee,interrupt:J(Q,{interrupt:!0})},m={code:null,containerState:{},defineSkip:C,events:[],now:k,parser:t,previous:null,sliceSerialize:v,sliceStream:x,write:g};let y=l.tokenize.call(m,p);return l.resolveAll&&s.push(l),m;function g(ie){return c=cn(c,ie),T(),c[c.length-1]!==null?[]:(Y(l,0),m.events=ho(s,m.events,m),m.events)}function v(ie,te){return bT(x(ie),te)}function x(ie){return yT(c,ie)}function k(){const{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}=a;return{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}}function C(ie){o[ie.line]=ie.column,q()}function T(){let ie;for(;a._index<c.length;){const te=c[a._index];if(typeof te=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<te.length;)A(te.charCodeAt(a._bufferIndex));else A(te)}}function A(ie){y=y(ie)}function B(ie){me(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,q()):ie!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),m.previous=ie}function _(ie,te){const ye=te||{};return ye.type=ie,ye.start=k(),m.events.push(["enter",ye,m]),d.push(ye),ye}function ee(ie){const te=d.pop();return te.end=k(),m.events.push(["exit",te,m]),te}function W(ie,te){Y(ie,te.from)}function Q(ie,te){te.restore()}function J(ie,te){return ye;function ye(ue,P,j){let K,he,ke,w;return Array.isArray(ue)?V(ue):"tokenize"in ue?V([ue]):O(ue);function O(re){return Ee;function Ee(Ve){const ve=Ve!==null&&re[Ve],kt=Ve!==null&&re.null,zt=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(kt)?kt:kt?[kt]:[]];return V(zt)(Ve)}}function V(re){return K=re,he=0,re.length===0?j:E(re[he])}function E(re){return Ee;function Ee(Ve){return w=ae(),ke=re,re.partial||(m.currentConstruct=re),re.name&&m.parser.constructs.disable.null.includes(re.name)?se():re.tokenize.call(te?Object.assign(Object.create(m),te):m,p,le,se)(Ve)}}function le(re){return ie(ke,w),P}function se(re){return w.restore(),++he<K.length?E(K[he]):j}}}function Y(ie,te){ie.resolveAll&&!s.includes(ie)&&s.push(ie),ie.resolve&&Pt(m.events,te,m.events.length-te,ie.resolve(m.events.slice(te),m)),ie.resolveTo&&(m.events=ie.resolveTo(m.events,m))}function ae(){const ie=k(),te=m.previous,ye=m.currentConstruct,ue=m.events.length,P=Array.from(d);return{from:ue,restore:j};function j(){a=ie,m.previous=te,m.currentConstruct=ye,m.events.length=ue,d=P,q()}}function q(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function yT(t,l){const r=l.start._index,a=l.start._bufferIndex,o=l.end._index,s=l.end._bufferIndex;let c;if(r===o)c=[t[r].slice(a,s)];else{if(c=t.slice(r,o),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}s>0&&c.push(t[o].slice(0,s))}return c}function bT(t,l){let r=-1;const a=[];let o;for(;++r<t.length;){const s=t[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
14
14
  `;break}case-3:{c=`\r
15
- `;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,a.push(c)}return a.join("")}function vT(t){const a={constructs:av([pT,...(t||{}).extensions||[]]),content:o(N2),defined:[],document:o(L2),flow:o(eT),lazy:{},string:o(lT),text:o(iT)};return a;function o(s){return c;function c(d){return gT(a,s,d)}}}function xT(t){for(;!fv(t););return t}const gy=/[\0\t\n\r]/g;function ST(){let t=1,l="",r=!0,a;return o;function o(s,c,d){const m=[];let p,y,g,v,x;for(s=l+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,l="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(gy.lastIndex=g,p=gy.exec(s),v=p&&p.index!==void 0?p.index:s.length,x=s.charCodeAt(v),!p){l=s.slice(g);break}if(x===10&&g===v&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),g<v&&(m.push(s.slice(g,v)),t+=v-g),x){case 0:{m.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,m.push(-2);t++<y;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return d&&(a&&m.push(-5),l&&m.push(l),m.push(null)),m}}const kT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wT(t){return t.replace(kT,ET)}function ET(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return uv(r.slice(s?2:1),s?16:10)}return lh(r)||t}const yv={}.hasOwnProperty;function CT(t,l,r){return l&&typeof l=="object"&&(r=l,l=void 0),TT(r)(xT(vT(r).document().write(ST()(t,l,!0))))}function TT(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ai),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:s(ii),blockQuote:s(kt),characterEscape:ae,characterReference:ae,codeFenced:s(zt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(zt,c),codeText:s(kn,c),codeTextData:ae,data:ae,codeFlowValue:ae,definition:s(Wn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Rt),hardBreakEscape:s(ri),hardBreakTrailing:s(ri),htmlFlow:s(ka,c),htmlFlowData:ae,htmlText:s(ka,c),htmlTextData:ae,image:s(wa),label:c,link:s(ai),listItem:s(er),listItemValue:v,listOrdered:s(ui,g),listUnordered:s(ui),paragraph:s(yo),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ii),strong:s(bo),thematicBreak:s(vo)},exit:{atxHeading:m(),atxHeadingSequence:W,autolink:m(),autolinkEmail:ve,autolinkProtocol:Ve,blockQuote:m(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:re,characterReference:Ee,codeFenced:m(T),codeFencedFence:C,codeFencedFenceInfo:x,codeFencedFenceMeta:k,codeFlowValue:q,codeIndented:m(A),codeText:m(P),codeTextData:q,data:q,definition:m(),definitionDestinationString:ee,definitionLabelString:B,definitionTitleString:_,emphasis:m(),hardBreakEscape:m(te),hardBreakTrailing:m(te),htmlFlow:m(ye),htmlFlowData:q,htmlText:m(ue),htmlTextData:q,image:m(K),label:ke,labelText:he,lineEnding:ie,link:m(j),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:le,resourceDestinationString:w,resourceTitleString:O,resource:V,setextHeading:m(Y),setextHeadingLineSequence:J,setextHeadingText:Q,strong:m(),thematicBreak:m()}};bv(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(X){let ne={type:"root",children:[]};const be={stack:[ne],tokenStack:[],config:l,enter:d,exit:p,buffer:c,resume:y,data:r},Ae=[];let Be=-1;for(;++Be<X.length;)if(X[Be][1].type==="listOrdered"||X[Be][1].type==="listUnordered")if(X[Be][0]==="enter")Ae.push(Be);else{const Qt=Ae.pop();Be=o(X,Qt,Be)}for(Be=-1;++Be<X.length;){const Qt=l[X[Be][0]];yv.call(Qt,X[Be][1].type)&&Qt[X[Be][1].type].call(Object.assign({sliceSerialize:X[Be][2].sliceSerialize},be),X[Be][1])}if(be.tokenStack.length>0){const Qt=be.tokenStack[be.tokenStack.length-1];(Qt[1]||yy).call(be,void 0,Qt[0])}for(ne.position={start:Tl(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Tl(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<l.transforms.length;)ne=l.transforms[Be](ne)||ne;return ne}function o(X,ne,be){let Ae=ne-1,Be=-1,Qt=!1,On,Et,ot,Ot;for(;++Ae<=be;){const Ye=X[Ae];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?Be++:Be--,Ot=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(On&&!Ot&&!Be&&!ot&&(ot=Ae),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!Be&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||Be===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(On){let el=Ae;for(Et=void 0;el--;){const dn=X[el];if(dn[1].type==="lineEnding"||dn[1].type==="lineEndingBlank"){if(dn[0]==="exit")continue;Et&&(X[Et][1].type="lineEndingBlank",Qt=!0),dn[1].type="lineEnding",Et=el}else if(!(dn[1].type==="linePrefix"||dn[1].type==="blockQuotePrefix"||dn[1].type==="blockQuotePrefixWhitespace"||dn[1].type==="blockQuoteMarker"||dn[1].type==="listItemIndent"))break}ot&&(!Et||ot<Et)&&(On._spread=!0),On.end=Object.assign({},Et?X[Et][1].start:Ye[1].end),X.splice(Et||Ae,0,["exit",On,Ye[2]]),Ae++,be++}if(Ye[1].type==="listItemPrefix"){const el={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};On=el,X.splice(Ae,0,["enter",el,Ye[2]]),Ae++,be++,ot=void 0,Ot=!0}}}return X[ne][1]._spread=Qt,be}function s(X,ne){return be;function be(Ae){d.call(this,X(Ae),Ae),ne&&ne.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(X,ne,be){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ne,be||void 0]),X.position={start:Tl(ne.start),end:void 0}}function m(X){return ne;function ne(be){X&&X.call(this,be),p.call(this,be)}}function p(X,ne){const be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==X.type&&(ne?ne.call(this,X,Ae[0]):(Ae[1]||yy).call(this,X,Ae[0]));else throw new Error("Cannot close `"+X.type+"` ("+la({start:X.start,end:X.end})+"): it’s not open");be.position.end=Tl(X.end)}function y(){return nh(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function x(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=X}function k(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=X}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/(\r?\n|\r)$/g,"")}function B(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=bn(this.sliceSerialize(X)).toLowerCase()}function _(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function ee(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function W(X){const ne=this.stack[this.stack.length-1];if(!ne.depth){const be=this.sliceSerialize(X).length;ne.depth=be}}function Q(){this.data.setextHeadingSlurpLineEnding=!0}function J(X){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(X){const be=this.stack[this.stack.length-1].children;let Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=wt(),Ae.position={start:Tl(X.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function q(X){const ne=this.stack.pop();ne.value+=this.sliceSerialize(X),ne.position.end=Tl(X.end)}function ie(X){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=ne.children[ne.children.length-1];be.position.end=Tl(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(ne.type)&&(ae.call(this,X),q.call(this,X))}function te(){this.data.atHardBreak=!0}function ye(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function ue(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function P(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function j(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function K(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function he(X){const ne=this.sliceSerialize(X),be=this.stack[this.stack.length-2];be.label=wT(ne),be.identifier=bn(ne).toLowerCase()}function ke(){const X=this.stack[this.stack.length-1],ne=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ae=X.children;be.children=Ae}else be.alt=ne}function w(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function O(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function V(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function le(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=bn(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function se(X){this.data.characterReferenceType=X.type}function re(X){const ne=this.sliceSerialize(X),be=this.data.characterReferenceType;let Ae;be?(Ae=uv(ne,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=lh(ne);const Be=this.stack[this.stack.length-1];Be.value+=Ae}function Ee(X){const ne=this.stack.pop();ne.position.end=Tl(X.end)}function Ve(X){q.call(this,X);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(X)}function ve(X){q.call(this,X);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(X)}function kt(){return{type:"blockquote",children:[]}}function zt(){return{type:"code",lang:null,meta:null,value:""}}function kn(){return{type:"inlineCode",value:""}}function Wn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rt(){return{type:"emphasis",children:[]}}function ii(){return{type:"heading",depth:0,children:[]}}function ri(){return{type:"break"}}function ka(){return{type:"html",value:""}}function wa(){return{type:"image",title:null,url:"",alt:null}}function ai(){return{type:"link",title:null,url:"",children:[]}}function ui(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function er(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function yo(){return{type:"paragraph",children:[]}}function bo(){return{type:"strong",children:[]}}function wt(){return{type:"text",value:""}}function vo(){return{type:"thematicBreak"}}}function Tl(t){return{line:t.line,column:t.column,offset:t.offset}}function bv(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?bv(t,a):AT(t,a)}}function AT(t,l){let r;for(r in l)if(yv.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function yy(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+la({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+la({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+la({start:l.start,end:l.end})+") is still open")}function zT(t){const l=this;l.parser=r;function r(a){return CT(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function RT(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function OT(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
15
+ `;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,a.push(c)}return a.join("")}function vT(t){const a={constructs:av([mT,...(t||{}).extensions||[]]),content:o(N2),defined:[],document:o(L2),flow:o(eT),lazy:{},string:o(lT),text:o(iT)};return a;function o(s){return c;function c(d){return gT(a,s,d)}}}function xT(t){for(;!fv(t););return t}const gy=/[\0\t\n\r]/g;function ST(){let t=1,l="",r=!0,a;return o;function o(s,c,d){const p=[];let m,y,g,v,x;for(s=l+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,l="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(gy.lastIndex=g,m=gy.exec(s),v=m&&m.index!==void 0?m.index:s.length,x=s.charCodeAt(v),!m){l=s.slice(g);break}if(x===10&&g===v&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),g<v&&(p.push(s.slice(g,v)),t+=v-g),x){case 0:{p.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,p.push(-2);t++<y;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return d&&(a&&p.push(-5),l&&p.push(l),p.push(null)),p}}const kT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wT(t){return t.replace(kT,ET)}function ET(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return uv(r.slice(s?2:1),s?16:10)}return lh(r)||t}const yv={}.hasOwnProperty;function CT(t,l,r){return l&&typeof l=="object"&&(r=l,l=void 0),TT(r)(xT(vT(r).document().write(ST()(t,l,!0))))}function TT(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ai),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:s(ii),blockQuote:s(kt),characterEscape:ae,characterReference:ae,codeFenced:s(zt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(zt,c),codeText:s(kn,c),codeTextData:ae,data:ae,codeFlowValue:ae,definition:s(Wn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Rt),hardBreakEscape:s(ri),hardBreakTrailing:s(ri),htmlFlow:s(ka,c),htmlFlowData:ae,htmlText:s(ka,c),htmlTextData:ae,image:s(wa),label:c,link:s(ai),listItem:s(er),listItemValue:v,listOrdered:s(ui,g),listUnordered:s(ui),paragraph:s(yo),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ii),strong:s(bo),thematicBreak:s(vo)},exit:{atxHeading:p(),atxHeadingSequence:W,autolink:p(),autolinkEmail:ve,autolinkProtocol:Ve,blockQuote:p(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:re,characterReference:Ee,codeFenced:p(T),codeFencedFence:C,codeFencedFenceInfo:x,codeFencedFenceMeta:k,codeFlowValue:q,codeIndented:p(A),codeText:p(P),codeTextData:q,data:q,definition:p(),definitionDestinationString:ee,definitionLabelString:B,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(te),hardBreakTrailing:p(te),htmlFlow:p(ye),htmlFlowData:q,htmlText:p(ue),htmlTextData:q,image:p(K),label:ke,labelText:he,lineEnding:ie,link:p(j),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:le,resourceDestinationString:w,resourceTitleString:O,resource:V,setextHeading:p(Y),setextHeadingLineSequence:J,setextHeadingText:Q,strong:p(),thematicBreak:p()}};bv(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(X){let ne={type:"root",children:[]};const be={stack:[ne],tokenStack:[],config:l,enter:d,exit:m,buffer:c,resume:y,data:r},Ae=[];let Be=-1;for(;++Be<X.length;)if(X[Be][1].type==="listOrdered"||X[Be][1].type==="listUnordered")if(X[Be][0]==="enter")Ae.push(Be);else{const Qt=Ae.pop();Be=o(X,Qt,Be)}for(Be=-1;++Be<X.length;){const Qt=l[X[Be][0]];yv.call(Qt,X[Be][1].type)&&Qt[X[Be][1].type].call(Object.assign({sliceSerialize:X[Be][2].sliceSerialize},be),X[Be][1])}if(be.tokenStack.length>0){const Qt=be.tokenStack[be.tokenStack.length-1];(Qt[1]||yy).call(be,void 0,Qt[0])}for(ne.position={start:Tl(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Tl(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<l.transforms.length;)ne=l.transforms[Be](ne)||ne;return ne}function o(X,ne,be){let Ae=ne-1,Be=-1,Qt=!1,On,Et,ot,Ot;for(;++Ae<=be;){const Ye=X[Ae];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?Be++:Be--,Ot=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(On&&!Ot&&!Be&&!ot&&(ot=Ae),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!Be&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||Be===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(On){let el=Ae;for(Et=void 0;el--;){const dn=X[el];if(dn[1].type==="lineEnding"||dn[1].type==="lineEndingBlank"){if(dn[0]==="exit")continue;Et&&(X[Et][1].type="lineEndingBlank",Qt=!0),dn[1].type="lineEnding",Et=el}else if(!(dn[1].type==="linePrefix"||dn[1].type==="blockQuotePrefix"||dn[1].type==="blockQuotePrefixWhitespace"||dn[1].type==="blockQuoteMarker"||dn[1].type==="listItemIndent"))break}ot&&(!Et||ot<Et)&&(On._spread=!0),On.end=Object.assign({},Et?X[Et][1].start:Ye[1].end),X.splice(Et||Ae,0,["exit",On,Ye[2]]),Ae++,be++}if(Ye[1].type==="listItemPrefix"){const el={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};On=el,X.splice(Ae,0,["enter",el,Ye[2]]),Ae++,be++,ot=void 0,Ot=!0}}}return X[ne][1]._spread=Qt,be}function s(X,ne){return be;function be(Ae){d.call(this,X(Ae),Ae),ne&&ne.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(X,ne,be){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ne,be||void 0]),X.position={start:Tl(ne.start),end:void 0}}function p(X){return ne;function ne(be){X&&X.call(this,be),m.call(this,be)}}function m(X,ne){const be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==X.type&&(ne?ne.call(this,X,Ae[0]):(Ae[1]||yy).call(this,X,Ae[0]));else throw new Error("Cannot close `"+X.type+"` ("+la({start:X.start,end:X.end})+"): it’s not open");be.position.end=Tl(X.end)}function y(){return nh(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function x(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=X}function k(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=X}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/(\r?\n|\r)$/g,"")}function B(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=bn(this.sliceSerialize(X)).toLowerCase()}function _(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function ee(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function W(X){const ne=this.stack[this.stack.length-1];if(!ne.depth){const be=this.sliceSerialize(X).length;ne.depth=be}}function Q(){this.data.setextHeadingSlurpLineEnding=!0}function J(X){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(X){const be=this.stack[this.stack.length-1].children;let Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=wt(),Ae.position={start:Tl(X.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function q(X){const ne=this.stack.pop();ne.value+=this.sliceSerialize(X),ne.position.end=Tl(X.end)}function ie(X){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=ne.children[ne.children.length-1];be.position.end=Tl(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(ne.type)&&(ae.call(this,X),q.call(this,X))}function te(){this.data.atHardBreak=!0}function ye(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function ue(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function P(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function j(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function K(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function he(X){const ne=this.sliceSerialize(X),be=this.stack[this.stack.length-2];be.label=wT(ne),be.identifier=bn(ne).toLowerCase()}function ke(){const X=this.stack[this.stack.length-1],ne=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ae=X.children;be.children=Ae}else be.alt=ne}function w(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function O(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function V(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function le(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=bn(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function se(X){this.data.characterReferenceType=X.type}function re(X){const ne=this.sliceSerialize(X),be=this.data.characterReferenceType;let Ae;be?(Ae=uv(ne,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=lh(ne);const Be=this.stack[this.stack.length-1];Be.value+=Ae}function Ee(X){const ne=this.stack.pop();ne.position.end=Tl(X.end)}function Ve(X){q.call(this,X);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(X)}function ve(X){q.call(this,X);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(X)}function kt(){return{type:"blockquote",children:[]}}function zt(){return{type:"code",lang:null,meta:null,value:""}}function kn(){return{type:"inlineCode",value:""}}function Wn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rt(){return{type:"emphasis",children:[]}}function ii(){return{type:"heading",depth:0,children:[]}}function ri(){return{type:"break"}}function ka(){return{type:"html",value:""}}function wa(){return{type:"image",title:null,url:"",alt:null}}function ai(){return{type:"link",title:null,url:"",children:[]}}function ui(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function er(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function yo(){return{type:"paragraph",children:[]}}function bo(){return{type:"strong",children:[]}}function wt(){return{type:"text",value:""}}function vo(){return{type:"thematicBreak"}}}function Tl(t){return{line:t.line,column:t.column,offset:t.offset}}function bv(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?bv(t,a):AT(t,a)}}function AT(t,l){let r;for(r in l)if(yv.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function yy(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+la({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+la({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+la({start:l.start,end:l.end})+") is still open")}function zT(t){const l=this;l.parser=r;function r(a){return CT(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function RT(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function OT(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
16
16
  `}]}function MT(t,l){const r=l.value?l.value+`
17
- `:"",a={},o=l.lang?l.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return l.meta&&(s.data={meta:l.meta}),t.patch(l,s),s=t.applyData(l,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(l,s),s}function _T(t,l){const r={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function DT(t,l){const r={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function NT(t,l){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),o=Wi(a.toLowerCase()),s=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=s+1,d+=1,t.footnoteCounts.set(a,d);const m={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(l,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(l,p),t.applyData(l,p)}function jT(t,l){const r={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function LT(t,l){if(t.options.allowDangerousHtml){const r={type:"raw",value:l.value};return t.patch(l,r),t.applyData(l,r)}}function vv(t,l){const r=l.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const o=t.all(l),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=a:o.push({type:"text",value:a}),o}function UT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return vv(t,l);const o={src:Wi(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return t.patch(l,s),t.applyData(l,s)}function BT(t,l){const r={src:Wi(l.url)};l.alt!==null&&l.alt!==void 0&&(r.alt=l.alt),l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"img",properties:r,children:[]};return t.patch(l,a),t.applyData(l,a)}function HT(t,l){const r={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(l,a),t.applyData(l,a)}function qT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return vv(t,l);const o={href:Wi(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:t.all(l)};return t.patch(l,s),t.applyData(l,s)}function QT(t,l){const r={href:Wi(l.url)};l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"a",properties:r,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function FT(t,l,r){const a=t.all(l),o=r?GT(r):xv(l),s={},c=[];if(typeof l.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
18
- `}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const m=a[a.length-1];m&&(o||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
19
- `});const p={type:"element",tagName:"li",properties:s,children:c};return t.patch(l,p),t.applyData(l,p)}function GT(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const r=t.children;let a=-1;for(;!l&&++a<r.length;)l=xv(r[a])}return l}function xv(t){const l=t.spread;return l??t.children.length>1}function VT(t,l){const r={},a=t.all(l);let o=-1;for(typeof l.start=="number"&&l.start!==1&&(r.start=l.start);++o<a.length;){const c=a[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:l.ordered?"ol":"ul",properties:r,children:t.wrap(a,!0)};return t.patch(l,s),t.applyData(l,s)}function YT(t,l){const r={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function XT(t,l){const r={type:"root",children:t.wrap(t.all(l))};return t.patch(l,r),t.applyData(l,r)}function IT(t,l){const r={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function ZT(t,l){const r=t.all(l),a=r.shift(),o=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=$f(l.children[1]),m=Wb(l.children[l.children.length-1]);d&&m&&(c.position={start:d,end:m}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(l,s),t.applyData(l,s)}function KT(t,l,r){const a=r?r.children:void 0,s=(a?a.indexOf(l):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:l.children.length;let m=-1;const p=[];for(;++m<d;){const g=l.children[m],v={},x=c?c[m]:void 0;x&&(v.align=x);let k={type:"element",tagName:s,properties:v,children:[]};g&&(k.children=t.all(g),t.patch(g,k),k=t.applyData(g,k)),p.push(k)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(l,y),t.applyData(l,y)}function JT(t,l){const r={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}const by=9,vy=32;function PT(t){const l=String(t),r=/\r?\n|\r/g;let a=r.exec(l),o=0;const s=[];for(;a;)s.push(xy(l.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(l);return s.push(xy(l.slice(o),o>0,!1)),s.join("")}function xy(t,l,r){let a=0,o=t.length;if(l){let s=t.codePointAt(a);for(;s===by||s===vy;)a++,s=t.codePointAt(a)}if(r){let s=t.codePointAt(o-1);for(;s===by||s===vy;)o--,s=t.codePointAt(o-1)}return o>a?t.slice(a,o):""}function $T(t,l){const r={type:"text",value:PT(String(l.value))};return t.patch(l,r),t.applyData(l,r)}function WT(t,l){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,r),t.applyData(l,r)}const eA={blockquote:RT,break:OT,code:MT,delete:_T,emphasis:DT,footnoteReference:NT,heading:jT,html:LT,imageReference:UT,image:BT,inlineCode:HT,linkReference:qT,link:QT,listItem:FT,list:VT,paragraph:YT,root:XT,strong:IT,table:ZT,tableCell:JT,tableRow:KT,text:$T,thematicBreak:WT,toml:Yu,yaml:Yu,definition:Yu,footnoteDefinition:Yu};function Yu(){}const Sv=-1,mo=0,ra=1,no=2,rh=3,ah=4,uh=5,oh=6,kv=7,wv=8,Ev=typeof self=="object"?self:globalThis,Sy=(t,l)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new Ev[t](l)},tA=(t,l)=>{const r=(o,s)=>(t.set(s,o),o),a=o=>{if(t.has(o))return t.get(o);const[s,c]=l[o];switch(s){case mo:case Sv:return r(c,o);case ra:{const d=r([],o);for(const m of c)d.push(a(m));return d}case no:{const d=r({},o);for(const[m,p]of c)d[a(m)]=a(p);return d}case rh:return r(new Date(c),o);case ah:{const{source:d,flags:m}=c;return r(new RegExp(d,m),o)}case uh:{const d=r(new Map,o);for(const[m,p]of c)d.set(a(m),a(p));return d}case oh:{const d=r(new Set,o);for(const m of c)d.add(a(m));return d}case kv:{const{name:d,message:m}=c;return r(typeof Ev[d]=="function"?Sy(d,m):new Error(m),o)}case wv:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(Sy(s,c),o)};return a},ky=t=>tA(new Map,t)(0),Jl="",{toString:nA}={},{keys:lA}=Object,Wr=t=>{const l=typeof t;if(l!=="object"||!t)return[mo,l];const r=nA.call(t).slice(8,-1);switch(r){case"Array":return[ra,Jl];case"Object":return[no,Jl];case"Date":return[rh,Jl];case"RegExp":return[ah,Jl];case"Map":return[uh,Jl];case"Set":return[oh,Jl];case"DataView":return[ra,r]}return r.includes("Array")?[ra,r]:t instanceof Error?[kv,t.name||"Error"]:[no,r]},Xu=([t,l])=>t===mo&&(l==="function"||l==="symbol"),iA=(t,l,r,a)=>{const o=(c,d)=>{const m=a.push(c)-1;return r.set(d,m),m},s=c=>{if(r.has(c))return r.get(c);let[d,m]=Wr(c);switch(d){case mo:{let y=c;switch(m){case"bigint":d=wv,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return o([Sv],c)}return o([d,y],c)}case ra:{if(m){let v=c;return m==="DataView"?v=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(c)),o([m,[...v]],c)}const y=[],g=o([d,y],c);for(const v of c)y.push(s(v));return g}case no:{if(m)switch(m){case"BigInt":return o([m,c.toString()],c);case"Boolean":case"Number":case"String":return o([m,c.valueOf()],c)}if(l&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([d,y],c);for(const v of lA(c))(t||!Xu(Wr(c[v])))&&y.push([s(v),s(c[v])]);return g}case rh:return o([d,isNaN(c.getTime())?Jl:c.toISOString()],c);case ah:{const{source:y,flags:g}=c;return o([d,{source:y,flags:g}],c)}case uh:{const y=[],g=o([d,y],c);for(const[v,x]of c)(t||!(Xu(Wr(v))||Xu(Wr(x))))&&y.push([s(v),s(x)]);return g}case oh:{const y=[],g=o([d,y],c);for(const v of c)(t||!Xu(Wr(v)))&&y.push(s(v));return g}}const{message:p}=c;return o([d,{name:m,message:p}],c)};return s},wy=(t,{json:l,lossy:r}={})=>{const a=[];return iA(!(l||r),!!l,new Map,a)(t),a},lo=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?ky(wy(t,l)):structuredClone(t):(t,l)=>ky(wy(t,l));function rA(t,l){const r=[{type:"text",value:"↩"}];return l>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),r}function aA(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function uA(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||rA,a=t.options.footnoteBackLabel||aA,o=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[m]);if(!p)continue;const y=t.all(p),g=String(p.identifier).toUpperCase(),v=Wi(g.toLowerCase());let x=0;const k=[],C=t.footnoteCounts.get(g);for(;C!==void 0&&++x<=C;){k.length>0&&k.push({type:"text",value:" "});let B=typeof r=="string"?r:r(m,x);typeof B=="string"&&(B={type:"text",value:B}),k.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,x),className:["data-footnote-backref"]},children:Array.isArray(B)?B:[B]})}const T=y[y.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const B=T.children[T.children.length-1];B&&B.type==="text"?B.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...k)}else y.push(...k);const A={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(y,!0)};t.patch(p,A),d.push(A)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...lo(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
17
+ `:"",a={},o=l.lang?l.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return l.meta&&(s.data={meta:l.meta}),t.patch(l,s),s=t.applyData(l,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(l,s),s}function _T(t,l){const r={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function DT(t,l){const r={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function NT(t,l){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),o=Wi(a.toLowerCase()),s=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=s+1,d+=1,t.footnoteCounts.set(a,d);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(l,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return t.patch(l,m),t.applyData(l,m)}function jT(t,l){const r={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function LT(t,l){if(t.options.allowDangerousHtml){const r={type:"raw",value:l.value};return t.patch(l,r),t.applyData(l,r)}}function vv(t,l){const r=l.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const o=t.all(l),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=a:o.push({type:"text",value:a}),o}function UT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return vv(t,l);const o={src:Wi(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return t.patch(l,s),t.applyData(l,s)}function BT(t,l){const r={src:Wi(l.url)};l.alt!==null&&l.alt!==void 0&&(r.alt=l.alt),l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"img",properties:r,children:[]};return t.patch(l,a),t.applyData(l,a)}function HT(t,l){const r={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(l,a),t.applyData(l,a)}function qT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return vv(t,l);const o={href:Wi(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:t.all(l)};return t.patch(l,s),t.applyData(l,s)}function QT(t,l){const r={href:Wi(l.url)};l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"a",properties:r,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function FT(t,l,r){const a=t.all(l),o=r?GT(r):xv(l),s={},c=[];if(typeof l.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
18
+ `}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const p=a[a.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
19
+ `});const m={type:"element",tagName:"li",properties:s,children:c};return t.patch(l,m),t.applyData(l,m)}function GT(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const r=t.children;let a=-1;for(;!l&&++a<r.length;)l=xv(r[a])}return l}function xv(t){const l=t.spread;return l??t.children.length>1}function VT(t,l){const r={},a=t.all(l);let o=-1;for(typeof l.start=="number"&&l.start!==1&&(r.start=l.start);++o<a.length;){const c=a[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:l.ordered?"ol":"ul",properties:r,children:t.wrap(a,!0)};return t.patch(l,s),t.applyData(l,s)}function YT(t,l){const r={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function XT(t,l){const r={type:"root",children:t.wrap(t.all(l))};return t.patch(l,r),t.applyData(l,r)}function IT(t,l){const r={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function ZT(t,l){const r=t.all(l),a=r.shift(),o=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=$f(l.children[1]),p=Wb(l.children[l.children.length-1]);d&&p&&(c.position={start:d,end:p}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(l,s),t.applyData(l,s)}function KT(t,l,r){const a=r?r.children:void 0,s=(a?a.indexOf(l):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:l.children.length;let p=-1;const m=[];for(;++p<d;){const g=l.children[p],v={},x=c?c[p]:void 0;x&&(v.align=x);let k={type:"element",tagName:s,properties:v,children:[]};g&&(k.children=t.all(g),t.patch(g,k),k=t.applyData(g,k)),m.push(k)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(l,y),t.applyData(l,y)}function JT(t,l){const r={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}const by=9,vy=32;function PT(t){const l=String(t),r=/\r?\n|\r/g;let a=r.exec(l),o=0;const s=[];for(;a;)s.push(xy(l.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(l);return s.push(xy(l.slice(o),o>0,!1)),s.join("")}function xy(t,l,r){let a=0,o=t.length;if(l){let s=t.codePointAt(a);for(;s===by||s===vy;)a++,s=t.codePointAt(a)}if(r){let s=t.codePointAt(o-1);for(;s===by||s===vy;)o--,s=t.codePointAt(o-1)}return o>a?t.slice(a,o):""}function $T(t,l){const r={type:"text",value:PT(String(l.value))};return t.patch(l,r),t.applyData(l,r)}function WT(t,l){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,r),t.applyData(l,r)}const eA={blockquote:RT,break:OT,code:MT,delete:_T,emphasis:DT,footnoteReference:NT,heading:jT,html:LT,imageReference:UT,image:BT,inlineCode:HT,linkReference:qT,link:QT,listItem:FT,list:VT,paragraph:YT,root:XT,strong:IT,table:ZT,tableCell:JT,tableRow:KT,text:$T,thematicBreak:WT,toml:Yu,yaml:Yu,definition:Yu,footnoteDefinition:Yu};function Yu(){}const Sv=-1,po=0,ra=1,no=2,rh=3,ah=4,uh=5,oh=6,kv=7,wv=8,Ev=typeof self=="object"?self:globalThis,Sy=(t,l)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new Ev[t](l)},tA=(t,l)=>{const r=(o,s)=>(t.set(s,o),o),a=o=>{if(t.has(o))return t.get(o);const[s,c]=l[o];switch(s){case po:case Sv:return r(c,o);case ra:{const d=r([],o);for(const p of c)d.push(a(p));return d}case no:{const d=r({},o);for(const[p,m]of c)d[a(p)]=a(m);return d}case rh:return r(new Date(c),o);case ah:{const{source:d,flags:p}=c;return r(new RegExp(d,p),o)}case uh:{const d=r(new Map,o);for(const[p,m]of c)d.set(a(p),a(m));return d}case oh:{const d=r(new Set,o);for(const p of c)d.add(a(p));return d}case kv:{const{name:d,message:p}=c;return r(typeof Ev[d]=="function"?Sy(d,p):new Error(p),o)}case wv:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(Sy(s,c),o)};return a},ky=t=>tA(new Map,t)(0),Jl="",{toString:nA}={},{keys:lA}=Object,Wr=t=>{const l=typeof t;if(l!=="object"||!t)return[po,l];const r=nA.call(t).slice(8,-1);switch(r){case"Array":return[ra,Jl];case"Object":return[no,Jl];case"Date":return[rh,Jl];case"RegExp":return[ah,Jl];case"Map":return[uh,Jl];case"Set":return[oh,Jl];case"DataView":return[ra,r]}return r.includes("Array")?[ra,r]:t instanceof Error?[kv,t.name||"Error"]:[no,r]},Xu=([t,l])=>t===po&&(l==="function"||l==="symbol"),iA=(t,l,r,a)=>{const o=(c,d)=>{const p=a.push(c)-1;return r.set(d,p),p},s=c=>{if(r.has(c))return r.get(c);let[d,p]=Wr(c);switch(d){case po:{let y=c;switch(p){case"bigint":d=wv,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return o([Sv],c)}return o([d,y],c)}case ra:{if(p){let v=c;return p==="DataView"?v=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(c)),o([p,[...v]],c)}const y=[],g=o([d,y],c);for(const v of c)y.push(s(v));return g}case no:{if(p)switch(p){case"BigInt":return o([p,c.toString()],c);case"Boolean":case"Number":case"String":return o([p,c.valueOf()],c)}if(l&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([d,y],c);for(const v of lA(c))(t||!Xu(Wr(c[v])))&&y.push([s(v),s(c[v])]);return g}case rh:return o([d,isNaN(c.getTime())?Jl:c.toISOString()],c);case ah:{const{source:y,flags:g}=c;return o([d,{source:y,flags:g}],c)}case uh:{const y=[],g=o([d,y],c);for(const[v,x]of c)(t||!(Xu(Wr(v))||Xu(Wr(x))))&&y.push([s(v),s(x)]);return g}case oh:{const y=[],g=o([d,y],c);for(const v of c)(t||!Xu(Wr(v)))&&y.push(s(v));return g}}const{message:m}=c;return o([d,{name:p,message:m}],c)};return s},wy=(t,{json:l,lossy:r}={})=>{const a=[];return iA(!(l||r),!!l,new Map,a)(t),a},lo=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?ky(wy(t,l)):structuredClone(t):(t,l)=>ky(wy(t,l));function rA(t,l){const r=[{type:"text",value:"↩"}];return l>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),r}function aA(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function uA(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||rA,a=t.options.footnoteBackLabel||aA,o=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[p]);if(!m)continue;const y=t.all(m),g=String(m.identifier).toUpperCase(),v=Wi(g.toLowerCase());let x=0;const k=[],C=t.footnoteCounts.get(g);for(;C!==void 0&&++x<=C;){k.length>0&&k.push({type:"text",value:" "});let B=typeof r=="string"?r:r(p,x);typeof B=="string"&&(B={type:"text",value:B}),k.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,x),className:["data-footnote-backref"]},children:Array.isArray(B)?B:[B]})}const T=y[y.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const B=T.children[T.children.length-1];B&&B.type==="text"?B.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...k)}else y.push(...k);const A={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(y,!0)};t.patch(m,A),d.push(A)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...lo(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
20
20
  `},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
21
- `}]}}const po=(function(t){if(t==null)return fA;if(typeof t=="function")return go(t);if(typeof t=="object")return Array.isArray(t)?oA(t):sA(t);if(typeof t=="string")return cA(t);throw new Error("Expected function, string, or object as test")});function oA(t){const l=[];let r=-1;for(;++r<t.length;)l[r]=po(t[r]);return go(a);function a(...o){let s=-1;for(;++s<l.length;)if(l[s].apply(this,o))return!0;return!1}}function sA(t){const l=t;return go(r);function r(a){const o=a;let s;for(s in t)if(o[s]!==l[s])return!1;return!0}}function cA(t){return go(l);function l(r){return r&&r.type===t}}function go(t){return l;function l(r,a,o){return!!(hA(r)&&t.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function fA(){return!0}function hA(t){return t!==null&&typeof t=="object"&&"type"in t}const Cv=[],dA=!0,Cf=!1,mA="skip";function Tv(t,l,r,a){let o;typeof l=="function"&&typeof r!="function"?(a=r,r=l):o=l;const s=po(o),c=a?-1:1;d(t,void 0,[])();function d(m,p,y){const g=m&&typeof m=="object"?m:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=Cv,k,C,T;if((!l||s(m,p,y[y.length-1]||void 0))&&(x=pA(r(m,y)),x[0]===Cf))return x;if("children"in m&&m.children){const A=m;if(A.children&&x[0]!==mA)for(C=(a?A.children.length:-1)+c,T=y.concat(A);C>-1&&C<A.children.length;){const B=A.children[C];if(k=d(B,C,T)(),k[0]===Cf)return k;C=typeof k[1]=="number"?k[1]:C+c}}return x}}}function pA(t){return Array.isArray(t)?t:typeof t=="number"?[dA,t]:t==null?Cv:[t]}function sh(t,l,r,a){let o,s,c;typeof l=="function"&&typeof r!="function"?(s=void 0,c=l,o=r):(s=l,c=r,o=a),Tv(t,s,d,o);function d(m,p){const y=p[p.length-1],g=y?y.children.indexOf(m):void 0;return c(m,g,y)}}const Tf={}.hasOwnProperty,gA={};function yA(t,l){const r=l||gA,a=new Map,o=new Map,s=new Map,c={...eA,...r.handlers},d={all:p,applyData:vA,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:m,options:r,patch:bA,wrap:SA};return sh(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function m(y,g){const v=y.type,x=d.handlers[v];if(Tf.call(d.handlers,v)&&x)return x(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:C,...T}=y,A=lo(T);return A.children=d.all(y),A}return lo(y)}return(d.options.unknownHandler||xA)(d,y,g)}function p(y){const g=[];if("children"in y){const v=y.children;let x=-1;for(;++x<v.length;){const k=d.one(v[x],y);if(k){if(x&&v[x-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=Ey(k.value)),!Array.isArray(k)&&k.type==="element")){const C=k.children[0];C&&C.type==="text"&&(C.value=Ey(C.value))}Array.isArray(k)?g.push(...k):g.push(k)}}}return g}}function bA(t,l){t.position&&(l.position=a2(t))}function vA(t,l){let r=l;if(t&&t.data){const a=t.data.hName,o=t.data.hChildren,s=t.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,lo(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function xA(t,l){const r=l.data||{},a="value"in l&&!(Tf.call(r,"hProperties")||Tf.call(r,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function SA(t,l){const r=[];let a=-1;for(l&&r.push({type:"text",value:`
21
+ `}]}}const mo=(function(t){if(t==null)return fA;if(typeof t=="function")return go(t);if(typeof t=="object")return Array.isArray(t)?oA(t):sA(t);if(typeof t=="string")return cA(t);throw new Error("Expected function, string, or object as test")});function oA(t){const l=[];let r=-1;for(;++r<t.length;)l[r]=mo(t[r]);return go(a);function a(...o){let s=-1;for(;++s<l.length;)if(l[s].apply(this,o))return!0;return!1}}function sA(t){const l=t;return go(r);function r(a){const o=a;let s;for(s in t)if(o[s]!==l[s])return!1;return!0}}function cA(t){return go(l);function l(r){return r&&r.type===t}}function go(t){return l;function l(r,a,o){return!!(hA(r)&&t.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function fA(){return!0}function hA(t){return t!==null&&typeof t=="object"&&"type"in t}const Cv=[],dA=!0,Cf=!1,pA="skip";function Tv(t,l,r,a){let o;typeof l=="function"&&typeof r!="function"?(a=r,r=l):o=l;const s=mo(o),c=a?-1:1;d(t,void 0,[])();function d(p,m,y){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=Cv,k,C,T;if((!l||s(p,m,y[y.length-1]||void 0))&&(x=mA(r(p,y)),x[0]===Cf))return x;if("children"in p&&p.children){const A=p;if(A.children&&x[0]!==pA)for(C=(a?A.children.length:-1)+c,T=y.concat(A);C>-1&&C<A.children.length;){const B=A.children[C];if(k=d(B,C,T)(),k[0]===Cf)return k;C=typeof k[1]=="number"?k[1]:C+c}}return x}}}function mA(t){return Array.isArray(t)?t:typeof t=="number"?[dA,t]:t==null?Cv:[t]}function sh(t,l,r,a){let o,s,c;typeof l=="function"&&typeof r!="function"?(s=void 0,c=l,o=r):(s=l,c=r,o=a),Tv(t,s,d,o);function d(p,m){const y=m[m.length-1],g=y?y.children.indexOf(p):void 0;return c(p,g,y)}}const Tf={}.hasOwnProperty,gA={};function yA(t,l){const r=l||gA,a=new Map,o=new Map,s=new Map,c={...eA,...r.handlers},d={all:m,applyData:vA,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:p,options:r,patch:bA,wrap:SA};return sh(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function p(y,g){const v=y.type,x=d.handlers[v];if(Tf.call(d.handlers,v)&&x)return x(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:C,...T}=y,A=lo(T);return A.children=d.all(y),A}return lo(y)}return(d.options.unknownHandler||xA)(d,y,g)}function m(y){const g=[];if("children"in y){const v=y.children;let x=-1;for(;++x<v.length;){const k=d.one(v[x],y);if(k){if(x&&v[x-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=Ey(k.value)),!Array.isArray(k)&&k.type==="element")){const C=k.children[0];C&&C.type==="text"&&(C.value=Ey(C.value))}Array.isArray(k)?g.push(...k):g.push(k)}}}return g}}function bA(t,l){t.position&&(l.position=a2(t))}function vA(t,l){let r=l;if(t&&t.data){const a=t.data.hName,o=t.data.hChildren,s=t.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,lo(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function xA(t,l){const r=l.data||{},a="value"in l&&!(Tf.call(r,"hProperties")||Tf.call(r,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function SA(t,l){const r=[];let a=-1;for(l&&r.push({type:"text",value:`
22
22
  `});++a<t.length;)a&&r.push({type:"text",value:`
23
23
  `}),r.push(t[a]);return l&&t.length>0&&r.push({type:"text",value:`
24
24
  `}),r}function Ey(t){let l=0,r=t.charCodeAt(l);for(;r===9||r===32;)l++,r=t.charCodeAt(l);return t.slice(l)}function Cy(t,l){const r=yA(t,l),a=r.one(t,void 0),o=uA(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
25
- `},o),s}function kA(t,l){return t&&"run"in t?async function(r,a){const o=Cy(r,{file:a,...l});await t.run(o,a)}:function(r,a){return Cy(r,{file:a,...t||l})}}function Ty(t){if(t)throw t}var Ic,Ay;function wA(){if(Ay)return Ic;Ay=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},s=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var y=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},c=function(p,y){r&&y.name==="__proto__"?r(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},d=function(p,y){if(y==="__proto__")if(t.call(p,y)){if(a)return a(p,y).value}else return;return p[y]};return Ic=function m(){var p,y,g,v,x,k,C=arguments[0],T=1,A=arguments.length,B=!1;for(typeof C=="boolean"&&(B=C,C=arguments[1]||{},T=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});T<A;++T)if(p=arguments[T],p!=null)for(y in p)g=d(C,y),v=d(p,y),C!==v&&(B&&v&&(s(v)||(x=o(v)))?(x?(x=!1,k=g&&o(g)?g:[]):k=g&&s(g)?g:{},c(C,{name:y,newValue:m(B,k,v)})):typeof v<"u"&&c(C,{name:y,newValue:v}));return C},Ic}var EA=wA();const Zc=Mf(EA);function Af(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function CA(){const t=[],l={run:r,use:a};return l;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(m,...p){const y=t[++s];let g=-1;if(m){c(m);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,y?TA(y,d)(...p):c(null,...p)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),l}}function TA(t,l){let r;return a;function a(...c){const d=t.length>c.length;let m;d&&c.push(o);try{m=t.apply(this,c)}catch(p){const y=p;if(d&&r)throw y;return o(y)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,o):m instanceof Error?o(m):s(m))}function o(c,...d){r||(r=!0,l(c,...d))}function s(c){o(null,c)}}const zn={basename:AA,dirname:zA,extname:RA,join:OA,sep:"/"};function AA(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');Sa(t);let r=0,a=-1,o=t.length,s;if(l===void 0||l.length===0||l.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":t.slice(r,a)}if(l===t)return"";let c=-1,d=l.length-1;for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(t.codePointAt(o)===l.codePointAt(d--)?d<0&&(a=o):(d=-1,a=c));return r===a?a=c:a<0&&(a=t.length),t.slice(r,a)}function zA(t){if(Sa(t),t.length===0)return".";let l=-1,r=t.length,a;for(;--r;)if(t.codePointAt(r)===47){if(a){l=r;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function RA(t){Sa(t);let l=t.length,r=-1,a=0,o=-1,s=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){a=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?o<0?o=l:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===a+1?"":t.slice(o,r)}function OA(...t){let l=-1,r;for(;++l<t.length;)Sa(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":MA(r)}function MA(t){Sa(t);const l=t.codePointAt(0)===47;let r=_A(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function _A(t,l){let r="",a=0,o=-1,s=0,c=-1,d,m;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(m=r.lastIndexOf("/"),m!==r.length-1){m<0?(r="",a=0):(r=r.slice(0,m),a=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",a=0,o=c,s=0;continue}}l&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+t.slice(o+1,c):r=t.slice(o+1,c),a=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function Sa(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const DA={cwd:NA};function NA(){return"/"}function zf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function jA(t){if(typeof t=="string")t=new URL(t);else if(!zf(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return LA(t)}function LA(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const a=l.codePointAt(r+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const Kc=["history","path","basename","stem","extname","dirname"];class Av{constructor(l){let r;l?zf(l)?r={path:l}:typeof l=="string"||UA(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":DA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Kc.length;){const s=Kc[a];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)Kc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?zn.basename(this.path):void 0}set basename(l){Pc(l,"basename"),Jc(l,"basename"),this.path=zn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?zn.dirname(this.path):void 0}set dirname(l){zy(this.basename,"dirname"),this.path=zn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?zn.extname(this.path):void 0}set extname(l){if(Jc(l,"extname"),zy(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){zf(l)&&(l=jA(l)),Pc(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?zn.basename(this.path,this.extname):void 0}set stem(l){Pc(l,"stem"),Jc(l,"stem"),this.path=zn.join(this.dirname||"",l+(this.extname||""))}fail(l,r,a){const o=this.message(l,r,a);throw o.fatal=!0,o}info(l,r,a){const o=this.message(l,r,a);return o.fatal=void 0,o}message(l,r,a){const o=new St(l,r,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Jc(t,l){if(t&&t.includes(zn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+zn.sep+"`")}function Pc(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function zy(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function UA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const BA=(function(t){const a=this.constructor.prototype,o=a[t],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),HA={}.hasOwnProperty;class ch extends BA{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=CA()}copy(){const l=new ch;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];l.use(...a)}return l.data(Zc(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(ef("data",this.frozen),this.namespace[l]=r,this):HA.call(this.namespace,l)&&this.namespace[l]||void 0:l?(ef("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=r.call(l,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=Iu(l),a=this.parser||this.Parser;return $c("parse",a),a(String(r),r)}process(l,r){const a=this;return this.freeze(),$c("process",this.parser||this.Parser),Wc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const d=Iu(l),m=a.parse(d);a.run(m,d,function(y,g,v){if(y||!g||!v)return p(y);const x=g,k=a.stringify(x,v);FA(k)?v.value=k:v.result=k,p(y,v)});function p(y,g){y||!g?c(y):s?s(g):r(void 0,g)}}}processSync(l){let r=!1,a;return this.freeze(),$c("processSync",this.parser||this.Parser),Wc("processSync",this.compiler||this.Compiler),this.process(l,o),Oy("processSync","process",r),a;function o(s,c){r=!0,Ty(s),a=c}}run(l,r,a){Ry(l),this.freeze();const o=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?s(void 0,a):new Promise(s);function s(c,d){const m=Iu(r);o.run(l,m,p);function p(y,g,v){const x=g||l;y?d(y):c?c(x):a(void 0,x,v)}}}runSync(l,r){let a=!1,o;return this.run(l,r,s),Oy("runSync","run",a),o;function s(c,d){Ty(c),o=d,a=!0}}stringify(l,r){this.freeze();const a=Iu(r),o=this.compiler||this.Compiler;return Wc("stringify",o),Ry(l),o(l,a)}use(l,...r){const a=this.attachers,o=this.namespace;if(ef("use",this.frozen),l!=null)if(typeof l=="function")m(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function s(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...g]=p;m(y,g)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=Zc(!0,o.settings,p.settings))}function d(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const g=p[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...y]);else if(y.length>0){let[x,...k]=y;const C=a[v][1];Af(C)&&Af(x)&&(x=Zc(!0,C,x)),a[v]=[p,x,...k]}}}}const qA=new ch().freeze();function $c(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Wc(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ef(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ry(t){if(!Af(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Oy(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function Iu(t){return QA(t)?t:new Av(t)}function QA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function FA(t){return typeof t=="string"||GA(t)}function GA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const VA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",My=[],_y={allowDangerousHtml:!0},YA=/^(https?|ircs?|mailto|xmpp)$/i,XA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function IA(t){const l=ZA(t),r=KA(t);return JA(l.runSync(l.parse(r),r),t)}function ZA(t){const l=t.rehypePlugins||My,r=t.remarkPlugins||My,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,..._y}:_y;return qA().use(zT).use(r).use(kA,a).use(l)}function KA(t){const l=t.children||"",r=new Av;return typeof l=="string"&&(r.value=l),r}function JA(t,l){const r=l.allowedElements,a=l.allowElement,o=l.components,s=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,m=l.urlTransform||PA;for(const y of XA)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+VA+y.id,void 0);return sh(t,p),f2(t,{Fragment:R.Fragment,components:o,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.jsxs,passKeys:!0,passNode:!0});function p(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let x;for(x in Vc)if(Object.hasOwn(Vc,x)&&Object.hasOwn(y.properties,x)){const k=y.properties[x],C=Vc[x];(C===null||C.includes(y.tagName))&&(y.properties[x]=m(String(k||""),x,y))}}if(y.type==="element"){let x=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!x&&a&&typeof g=="number"&&(x=!a(y,g,v)),x&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function PA(t){const l=t.indexOf(":"),r=t.indexOf("?"),a=t.indexOf("#"),o=t.indexOf("/");return l===-1||o!==-1&&l>o||r!==-1&&l>r||a!==-1&&l>a||YA.test(t.slice(0,l))?t:""}function $A(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zv(t,l,r){const o=po((r||{}).ignore||[]),s=WA(l);let c=-1;for(;++c<s.length;)Tv(t,"text",d);function d(p,y){let g=-1,v;for(;++g<y.length;){const x=y[g],k=v?v.children:void 0;if(o(x,k?k.indexOf(x):void 0,v))return;v=x}if(v)return m(p,y)}function m(p,y){const g=y[y.length-1],v=s[c][0],x=s[c][1];let k=0;const T=g.children.indexOf(p);let A=!1,B=[];v.lastIndex=0;let _=v.exec(p.value);for(;_;){const ee=_.index,W={index:_.index,input:_.input,stack:[...y,p]};let Q=x(..._,W);if(typeof Q=="string"&&(Q=Q.length>0?{type:"text",value:Q}:void 0),Q===!1?v.lastIndex=ee+1:(k!==ee&&B.push({type:"text",value:p.value.slice(k,ee)}),Array.isArray(Q)?B.push(...Q):Q&&B.push(Q),k=ee+_[0].length,A=!0),!v.global)break;_=v.exec(p.value)}return A?(k<p.value.length&&B.push({type:"text",value:p.value.slice(k)}),g.children.splice(T,1,...B)):B=[p],T+B.length}}function WA(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<r.length;){const o=r[a];l.push([ez(o[0]),tz(o[1])])}return l}function ez(t){return typeof t=="string"?new RegExp($A(t),"g"):t}function tz(t){return typeof t=="function"?t:function(){return t}}function nz(t){zv(t,[/\r?\n|\r/g,lz])}function lz(){return{type:"break"}}function iz(){return function(t){nz(t)}}function Dy(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,o=r.indexOf(l);for(;o!==-1;)a++,o=r.indexOf(l,o+l.length);return a}const tf="phrasing",nf=["autolink","link","image","label"];function rz(){return{transforms:[hz],enter:{literalAutolink:uz,literalAutolinkEmail:lf,literalAutolinkHttp:lf,literalAutolinkWww:lf},exit:{literalAutolink:fz,literalAutolinkEmail:cz,literalAutolinkHttp:oz,literalAutolinkWww:sz}}}function az(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:tf,notInConstruct:nf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:tf,notInConstruct:nf},{character:":",before:"[ps]",after:"\\/",inConstruct:tf,notInConstruct:nf}]}}function uz(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function lf(t){this.config.enter.autolinkProtocol.call(this,t)}function oz(t){this.config.exit.autolinkProtocol.call(this,t)}function sz(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function cz(t){this.config.exit.autolinkEmail.call(this,t)}function fz(t){this.exit(t)}function hz(t){zv(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),mz]],{ignore:["link","linkReference"]})}function dz(t,l,r,a,o){let s="";if(!Rv(o)||(/^w/i.test(l)&&(r=l+r,l="",s="http://"),!pz(r)))return!1;const c=gz(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:s+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function mz(t,l,r,a){return!Rv(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function pz(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function gz(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],a=r.indexOf(")");const o=Dy(t,"(");let s=Dy(t,")");for(;a!==-1&&o>s;)t+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[t,r]}function Rv(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Wl(r)||fo(r))&&(!l||r!==47)}Ov.peek=Cz;function yz(){this.buffer()}function bz(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function vz(){this.buffer()}function xz(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function Sz(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=bn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function kz(t){this.exit(t)}function wz(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=bn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function Ez(t){this.exit(t)}function Cz(){return"["}function Ov(t,l,r,a){const o=r.createTracker(a);let s=o.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return s+=o.move(r.safe(r.associationId(t),{after:"]",before:s})),d(),c(),s+=o.move("]"),s}function Tz(){return{enter:{gfmFootnoteCallString:yz,gfmFootnoteCall:bz,gfmFootnoteDefinitionLabelString:vz,gfmFootnoteDefinition:xz},exit:{gfmFootnoteCallString:Sz,gfmFootnoteCall:kz,gfmFootnoteDefinitionLabelString:wz,gfmFootnoteDefinition:Ez}}}function Az(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:Ov},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,o,s,c){const d=s.createTracker(c);let m=d.move("[^");const p=s.enter("footnoteDefinition"),y=s.enter("label");return m+=d.move(s.safe(s.associationId(a),{before:m,after:"]"})),y(),m+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),m+=d.move((l?`
26
- `:" ")+s.indentLines(s.containerFlow(a,d.current()),l?Mv:zz))),p(),m}}function zz(t,l,r){return l===0?t:Mv(t,l,r)}function Mv(t,l,r){return(r?"":" ")+t}const Rz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_v.peek=Nz;function Oz(){return{canContainEols:["delete"],enter:{strikethrough:_z},exit:{strikethrough:Dz}}}function Mz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rz}],handlers:{delete:_v}}}function _z(t){this.enter({type:"delete",children:[]},t)}function Dz(t){this.exit(t)}function _v(t,l,r,a){const o=r.createTracker(a),s=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(t,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function Nz(){return"~"}function jz(t){return t.length}function Lz(t,l){const r=l||{},a=(r.align||[]).concat(),o=r.stringLength||jz,s=[],c=[],d=[],m=[];let p=0,y=-1;for(;++y<t.length;){const C=[],T=[];let A=-1;for(t[y].length>p&&(p=t[y].length);++A<t[y].length;){const B=Uz(t[y][A]);if(r.alignDelimiters!==!1){const _=o(B);T[A]=_,(m[A]===void 0||_>m[A])&&(m[A]=_)}C.push(B)}c[y]=C,d[y]=T}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)s[g]=Ny(a[g]);else{const C=Ny(a);for(;++g<p;)s[g]=C}g=-1;const v=[],x=[];for(;++g<p;){const C=s[g];let T="",A="";C===99?(T=":",A=":"):C===108?T=":":C===114&&(A=":");let B=r.alignDelimiters===!1?1:Math.max(1,m[g]-T.length-A.length);const _=T+"-".repeat(B)+A;r.alignDelimiters!==!1&&(B=T.length+B+A.length,B>m[g]&&(m[g]=B),x[g]=B),v[g]=_}c.splice(1,0,v),d.splice(1,0,x),y=-1;const k=[];for(;++y<c.length;){const C=c[y],T=d[y];g=-1;const A=[];for(;++g<p;){const B=C[g]||"";let _="",ee="";if(r.alignDelimiters!==!1){const W=m[g]-(T[g]||0),Q=s[g];Q===114?_=" ".repeat(W):Q===99?W%2?(_=" ".repeat(W/2+.5),ee=" ".repeat(W/2-.5)):(_=" ".repeat(W/2),ee=_):ee=" ".repeat(W)}r.delimiterStart!==!1&&!g&&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&B==="")&&(r.delimiterStart!==!1||g)&&A.push(" "),r.alignDelimiters!==!1&&A.push(_),A.push(B),r.alignDelimiters!==!1&&A.push(ee),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||g!==p-1)&&A.push("|")}k.push(r.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return k.join(`
25
+ `},o),s}function kA(t,l){return t&&"run"in t?async function(r,a){const o=Cy(r,{file:a,...l});await t.run(o,a)}:function(r,a){return Cy(r,{file:a,...t||l})}}function Ty(t){if(t)throw t}var Ic,Ay;function wA(){if(Ay)return Ic;Ay=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):l.call(m)==="[object Array]"},s=function(m){if(!m||l.call(m)!=="[object Object]")return!1;var y=t.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var v;for(v in m);return typeof v>"u"||t.call(m,v)},c=function(m,y){r&&y.name==="__proto__"?r(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},d=function(m,y){if(y==="__proto__")if(t.call(m,y)){if(a)return a(m,y).value}else return;return m[y]};return Ic=function p(){var m,y,g,v,x,k,C=arguments[0],T=1,A=arguments.length,B=!1;for(typeof C=="boolean"&&(B=C,C=arguments[1]||{},T=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});T<A;++T)if(m=arguments[T],m!=null)for(y in m)g=d(C,y),v=d(m,y),C!==v&&(B&&v&&(s(v)||(x=o(v)))?(x?(x=!1,k=g&&o(g)?g:[]):k=g&&s(g)?g:{},c(C,{name:y,newValue:p(B,k,v)})):typeof v<"u"&&c(C,{name:y,newValue:v}));return C},Ic}var EA=wA();const Zc=Mf(EA);function Af(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function CA(){const t=[],l={run:r,use:a};return l;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(p,...m){const y=t[++s];let g=-1;if(p){c(p);return}for(;++g<o.length;)(m[g]===null||m[g]===void 0)&&(m[g]=o[g]);o=m,y?TA(y,d)(...m):c(null,...m)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),l}}function TA(t,l){let r;return a;function a(...c){const d=t.length>c.length;let p;d&&c.push(o);try{p=t.apply(this,c)}catch(m){const y=m;if(d&&r)throw y;return o(y)}d||(p&&p.then&&typeof p.then=="function"?p.then(s,o):p instanceof Error?o(p):s(p))}function o(c,...d){r||(r=!0,l(c,...d))}function s(c){o(null,c)}}const zn={basename:AA,dirname:zA,extname:RA,join:OA,sep:"/"};function AA(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');Sa(t);let r=0,a=-1,o=t.length,s;if(l===void 0||l.length===0||l.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":t.slice(r,a)}if(l===t)return"";let c=-1,d=l.length-1;for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(t.codePointAt(o)===l.codePointAt(d--)?d<0&&(a=o):(d=-1,a=c));return r===a?a=c:a<0&&(a=t.length),t.slice(r,a)}function zA(t){if(Sa(t),t.length===0)return".";let l=-1,r=t.length,a;for(;--r;)if(t.codePointAt(r)===47){if(a){l=r;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function RA(t){Sa(t);let l=t.length,r=-1,a=0,o=-1,s=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){a=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?o<0?o=l:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===a+1?"":t.slice(o,r)}function OA(...t){let l=-1,r;for(;++l<t.length;)Sa(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":MA(r)}function MA(t){Sa(t);const l=t.codePointAt(0)===47;let r=_A(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function _A(t,l){let r="",a=0,o=-1,s=0,c=-1,d,p;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",a=0):(r=r.slice(0,p),a=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",a=0,o=c,s=0;continue}}l&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+t.slice(o+1,c):r=t.slice(o+1,c),a=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function Sa(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const DA={cwd:NA};function NA(){return"/"}function zf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function jA(t){if(typeof t=="string")t=new URL(t);else if(!zf(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return LA(t)}function LA(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const a=l.codePointAt(r+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const Kc=["history","path","basename","stem","extname","dirname"];class Av{constructor(l){let r;l?zf(l)?r={path:l}:typeof l=="string"||UA(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":DA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Kc.length;){const s=Kc[a];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)Kc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?zn.basename(this.path):void 0}set basename(l){Pc(l,"basename"),Jc(l,"basename"),this.path=zn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?zn.dirname(this.path):void 0}set dirname(l){zy(this.basename,"dirname"),this.path=zn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?zn.extname(this.path):void 0}set extname(l){if(Jc(l,"extname"),zy(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){zf(l)&&(l=jA(l)),Pc(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?zn.basename(this.path,this.extname):void 0}set stem(l){Pc(l,"stem"),Jc(l,"stem"),this.path=zn.join(this.dirname||"",l+(this.extname||""))}fail(l,r,a){const o=this.message(l,r,a);throw o.fatal=!0,o}info(l,r,a){const o=this.message(l,r,a);return o.fatal=void 0,o}message(l,r,a){const o=new St(l,r,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Jc(t,l){if(t&&t.includes(zn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+zn.sep+"`")}function Pc(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function zy(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function UA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const BA=(function(t){const a=this.constructor.prototype,o=a[t],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),HA={}.hasOwnProperty;class ch extends BA{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=CA()}copy(){const l=new ch;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];l.use(...a)}return l.data(Zc(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(ef("data",this.frozen),this.namespace[l]=r,this):HA.call(this.namespace,l)&&this.namespace[l]||void 0:l?(ef("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=r.call(l,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=Iu(l),a=this.parser||this.Parser;return $c("parse",a),a(String(r),r)}process(l,r){const a=this;return this.freeze(),$c("process",this.parser||this.Parser),Wc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const d=Iu(l),p=a.parse(d);a.run(p,d,function(y,g,v){if(y||!g||!v)return m(y);const x=g,k=a.stringify(x,v);FA(k)?v.value=k:v.result=k,m(y,v)});function m(y,g){y||!g?c(y):s?s(g):r(void 0,g)}}}processSync(l){let r=!1,a;return this.freeze(),$c("processSync",this.parser||this.Parser),Wc("processSync",this.compiler||this.Compiler),this.process(l,o),Oy("processSync","process",r),a;function o(s,c){r=!0,Ty(s),a=c}}run(l,r,a){Ry(l),this.freeze();const o=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?s(void 0,a):new Promise(s);function s(c,d){const p=Iu(r);o.run(l,p,m);function m(y,g,v){const x=g||l;y?d(y):c?c(x):a(void 0,x,v)}}}runSync(l,r){let a=!1,o;return this.run(l,r,s),Oy("runSync","run",a),o;function s(c,d){Ty(c),o=d,a=!0}}stringify(l,r){this.freeze();const a=Iu(r),o=this.compiler||this.Compiler;return Wc("stringify",o),Ry(l),o(l,a)}use(l,...r){const a=this.attachers,o=this.namespace;if(ef("use",this.frozen),l!=null)if(typeof l=="function")p(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function s(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;p(y,g)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(m.plugins),m.settings&&(o.settings=Zc(!0,o.settings,m.settings))}function d(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===m){v=g;break}if(v===-1)a.push([m,...y]);else if(y.length>0){let[x,...k]=y;const C=a[v][1];Af(C)&&Af(x)&&(x=Zc(!0,C,x)),a[v]=[m,x,...k]}}}}const qA=new ch().freeze();function $c(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Wc(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ef(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ry(t){if(!Af(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Oy(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function Iu(t){return QA(t)?t:new Av(t)}function QA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function FA(t){return typeof t=="string"||GA(t)}function GA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const VA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",My=[],_y={allowDangerousHtml:!0},YA=/^(https?|ircs?|mailto|xmpp)$/i,XA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function IA(t){const l=ZA(t),r=KA(t);return JA(l.runSync(l.parse(r),r),t)}function ZA(t){const l=t.rehypePlugins||My,r=t.remarkPlugins||My,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,..._y}:_y;return qA().use(zT).use(r).use(kA,a).use(l)}function KA(t){const l=t.children||"",r=new Av;return typeof l=="string"&&(r.value=l),r}function JA(t,l){const r=l.allowedElements,a=l.allowElement,o=l.components,s=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,p=l.urlTransform||PA;for(const y of XA)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+VA+y.id,void 0);return sh(t,m),f2(t,{Fragment:R.Fragment,components:o,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.jsxs,passKeys:!0,passNode:!0});function m(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let x;for(x in Vc)if(Object.hasOwn(Vc,x)&&Object.hasOwn(y.properties,x)){const k=y.properties[x],C=Vc[x];(C===null||C.includes(y.tagName))&&(y.properties[x]=p(String(k||""),x,y))}}if(y.type==="element"){let x=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!x&&a&&typeof g=="number"&&(x=!a(y,g,v)),x&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function PA(t){const l=t.indexOf(":"),r=t.indexOf("?"),a=t.indexOf("#"),o=t.indexOf("/");return l===-1||o!==-1&&l>o||r!==-1&&l>r||a!==-1&&l>a||YA.test(t.slice(0,l))?t:""}function $A(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zv(t,l,r){const o=mo((r||{}).ignore||[]),s=WA(l);let c=-1;for(;++c<s.length;)Tv(t,"text",d);function d(m,y){let g=-1,v;for(;++g<y.length;){const x=y[g],k=v?v.children:void 0;if(o(x,k?k.indexOf(x):void 0,v))return;v=x}if(v)return p(m,y)}function p(m,y){const g=y[y.length-1],v=s[c][0],x=s[c][1];let k=0;const T=g.children.indexOf(m);let A=!1,B=[];v.lastIndex=0;let _=v.exec(m.value);for(;_;){const ee=_.index,W={index:_.index,input:_.input,stack:[...y,m]};let Q=x(..._,W);if(typeof Q=="string"&&(Q=Q.length>0?{type:"text",value:Q}:void 0),Q===!1?v.lastIndex=ee+1:(k!==ee&&B.push({type:"text",value:m.value.slice(k,ee)}),Array.isArray(Q)?B.push(...Q):Q&&B.push(Q),k=ee+_[0].length,A=!0),!v.global)break;_=v.exec(m.value)}return A?(k<m.value.length&&B.push({type:"text",value:m.value.slice(k)}),g.children.splice(T,1,...B)):B=[m],T+B.length}}function WA(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<r.length;){const o=r[a];l.push([ez(o[0]),tz(o[1])])}return l}function ez(t){return typeof t=="string"?new RegExp($A(t),"g"):t}function tz(t){return typeof t=="function"?t:function(){return t}}function nz(t){zv(t,[/\r?\n|\r/g,lz])}function lz(){return{type:"break"}}function iz(){return function(t){nz(t)}}function Dy(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,o=r.indexOf(l);for(;o!==-1;)a++,o=r.indexOf(l,o+l.length);return a}const tf="phrasing",nf=["autolink","link","image","label"];function rz(){return{transforms:[hz],enter:{literalAutolink:uz,literalAutolinkEmail:lf,literalAutolinkHttp:lf,literalAutolinkWww:lf},exit:{literalAutolink:fz,literalAutolinkEmail:cz,literalAutolinkHttp:oz,literalAutolinkWww:sz}}}function az(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:tf,notInConstruct:nf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:tf,notInConstruct:nf},{character:":",before:"[ps]",after:"\\/",inConstruct:tf,notInConstruct:nf}]}}function uz(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function lf(t){this.config.enter.autolinkProtocol.call(this,t)}function oz(t){this.config.exit.autolinkProtocol.call(this,t)}function sz(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function cz(t){this.config.exit.autolinkEmail.call(this,t)}function fz(t){this.exit(t)}function hz(t){zv(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),pz]],{ignore:["link","linkReference"]})}function dz(t,l,r,a,o){let s="";if(!Rv(o)||(/^w/i.test(l)&&(r=l+r,l="",s="http://"),!mz(r)))return!1;const c=gz(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:s+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function pz(t,l,r,a){return!Rv(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function mz(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function gz(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],a=r.indexOf(")");const o=Dy(t,"(");let s=Dy(t,")");for(;a!==-1&&o>s;)t+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[t,r]}function Rv(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||Wl(r)||fo(r))&&(!l||r!==47)}Ov.peek=Cz;function yz(){this.buffer()}function bz(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function vz(){this.buffer()}function xz(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function Sz(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=bn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function kz(t){this.exit(t)}function wz(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=bn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function Ez(t){this.exit(t)}function Cz(){return"["}function Ov(t,l,r,a){const o=r.createTracker(a);let s=o.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return s+=o.move(r.safe(r.associationId(t),{after:"]",before:s})),d(),c(),s+=o.move("]"),s}function Tz(){return{enter:{gfmFootnoteCallString:yz,gfmFootnoteCall:bz,gfmFootnoteDefinitionLabelString:vz,gfmFootnoteDefinition:xz},exit:{gfmFootnoteCallString:Sz,gfmFootnoteCall:kz,gfmFootnoteDefinitionLabelString:wz,gfmFootnoteDefinition:Ez}}}function Az(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:Ov},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,o,s,c){const d=s.createTracker(c);let p=d.move("[^");const m=s.enter("footnoteDefinition"),y=s.enter("label");return p+=d.move(s.safe(s.associationId(a),{before:p,after:"]"})),y(),p+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),p+=d.move((l?`
26
+ `:" ")+s.indentLines(s.containerFlow(a,d.current()),l?Mv:zz))),m(),p}}function zz(t,l,r){return l===0?t:Mv(t,l,r)}function Mv(t,l,r){return(r?"":" ")+t}const Rz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_v.peek=Nz;function Oz(){return{canContainEols:["delete"],enter:{strikethrough:_z},exit:{strikethrough:Dz}}}function Mz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rz}],handlers:{delete:_v}}}function _z(t){this.enter({type:"delete",children:[]},t)}function Dz(t){this.exit(t)}function _v(t,l,r,a){const o=r.createTracker(a),s=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(t,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function Nz(){return"~"}function jz(t){return t.length}function Lz(t,l){const r=l||{},a=(r.align||[]).concat(),o=r.stringLength||jz,s=[],c=[],d=[],p=[];let m=0,y=-1;for(;++y<t.length;){const C=[],T=[];let A=-1;for(t[y].length>m&&(m=t[y].length);++A<t[y].length;){const B=Uz(t[y][A]);if(r.alignDelimiters!==!1){const _=o(B);T[A]=_,(p[A]===void 0||_>p[A])&&(p[A]=_)}C.push(B)}c[y]=C,d[y]=T}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<m;)s[g]=Ny(a[g]);else{const C=Ny(a);for(;++g<m;)s[g]=C}g=-1;const v=[],x=[];for(;++g<m;){const C=s[g];let T="",A="";C===99?(T=":",A=":"):C===108?T=":":C===114&&(A=":");let B=r.alignDelimiters===!1?1:Math.max(1,p[g]-T.length-A.length);const _=T+"-".repeat(B)+A;r.alignDelimiters!==!1&&(B=T.length+B+A.length,B>p[g]&&(p[g]=B),x[g]=B),v[g]=_}c.splice(1,0,v),d.splice(1,0,x),y=-1;const k=[];for(;++y<c.length;){const C=c[y],T=d[y];g=-1;const A=[];for(;++g<m;){const B=C[g]||"";let _="",ee="";if(r.alignDelimiters!==!1){const W=p[g]-(T[g]||0),Q=s[g];Q===114?_=" ".repeat(W):Q===99?W%2?(_=" ".repeat(W/2+.5),ee=" ".repeat(W/2-.5)):(_=" ".repeat(W/2),ee=_):ee=" ".repeat(W)}r.delimiterStart!==!1&&!g&&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&B==="")&&(r.delimiterStart!==!1||g)&&A.push(" "),r.alignDelimiters!==!1&&A.push(_),A.push(B),r.alignDelimiters!==!1&&A.push(ee),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&A.push("|")}k.push(r.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return k.join(`
27
27
  `)}function Uz(t){return t==null?"":String(t)}function Ny(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function Bz(t,l,r,a){const o=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(t,s.current()),Hz);return o(),c}function Hz(t,l,r){return">"+(r?"":" ")+t}function qz(t,l){return jy(t,l.inConstruct,!0)&&!jy(t,l.notInConstruct,!1)}function jy(t,l,r){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return r;let a=-1;for(;++a<l.length;)if(t.includes(l[a]))return!0;return!1}function Ly(t,l,r,a){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
28
28
  `&&qz(r.stack,r.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
29
- `}function Qz(t,l){const r=String(t);let a=r.indexOf(l),o=a,s=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>c&&(c=s):s=1,o=a+l.length,a=r.indexOf(l,o);return c}function Fz(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Gz(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function Vz(t,l,r,a){const o=Gz(r),s=t.value||"",c=o==="`"?"GraveAccent":"Tilde";if(Fz(t,r)){const g=r.enter("codeIndented"),v=r.indentLines(s,Yz);return g(),v}const d=r.createTracker(a),m=o.repeat(Math.max(Qz(s,o)+1,3)),p=r.enter("codeFenced");let y=d.move(m);if(t.lang){const g=r.enter(`codeFencedLang${c}`);y+=d.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${c}`);y+=d.move(" "),y+=d.move(r.safe(t.meta,{before:y,after:`
29
+ `}function Qz(t,l){const r=String(t);let a=r.indexOf(l),o=a,s=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>c&&(c=s):s=1,o=a+l.length,a=r.indexOf(l,o);return c}function Fz(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Gz(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function Vz(t,l,r,a){const o=Gz(r),s=t.value||"",c=o==="`"?"GraveAccent":"Tilde";if(Fz(t,r)){const g=r.enter("codeIndented"),v=r.indentLines(s,Yz);return g(),v}const d=r.createTracker(a),p=o.repeat(Math.max(Qz(s,o)+1,3)),m=r.enter("codeFenced");let y=d.move(p);if(t.lang){const g=r.enter(`codeFencedLang${c}`);y+=d.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${c}`);y+=d.move(" "),y+=d.move(r.safe(t.meta,{before:y,after:`
30
30
  `,encode:["`"],...d.current()})),g()}return y+=d.move(`
31
31
  `),s&&(y+=d.move(s+`
32
- `)),y+=d.move(m),p(),y}function Yz(t,l,r){return(r?"":" ")+t}function fh(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function Xz(t,l,r,a){const o=fh(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const m=r.createTracker(a);let p=m.move("[");return p+=m.move(r.safe(r.associationId(t),{before:p,after:"]",...m.current()})),p+=m.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=r.enter("destinationRaw"),p+=m.move(r.safe(t.url,{before:p,after:t.title?" ":`
33
- `,...m.current()}))),d(),t.title&&(d=r.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(r.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),c(),p}function Iz(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function ma(t){return"&#x"+t.toString(16).toUpperCase()+";"}function io(t,l,r){const a=Ki(t),o=Ki(l);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Dv.peek=Zz;function Dv(t,l,r,a){const o=Iz(r),s=r.enter("emphasis"),c=r.createTracker(a),d=c.move(o);let m=c.move(r.containerPhrasing(t,{after:o,before:d,...c.current()}));const p=m.charCodeAt(0),y=io(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=ma(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=io(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+ma(g));const x=c.move(o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+x}function Zz(t,l,r){return r.options.emphasis||"*"}function Kz(t,l){let r=!1;return sh(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,Cf}),!!((!t.depth||t.depth<3)&&nh(t)&&(l.options.setext||r))}function Jz(t,l,r,a){const o=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(a);if(Kz(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(t,{...s.current(),before:`
32
+ `)),y+=d.move(p),m(),y}function Yz(t,l,r){return(r?"":" ")+t}function fh(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function Xz(t,l,r,a){const o=fh(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const p=r.createTracker(a);let m=p.move("[");return m+=p.move(r.safe(r.associationId(t),{before:m,after:"]",...p.current()})),m+=p.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(t.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=r.enter("destinationRaw"),m+=p.move(r.safe(t.url,{before:m,after:t.title?" ":`
33
+ `,...p.current()}))),d(),t.title&&(d=r.enter(`title${s}`),m+=p.move(" "+o),m+=p.move(r.safe(t.title,{before:m,after:o,...p.current()})),m+=p.move(o),d()),c(),m}function Iz(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function pa(t){return"&#x"+t.toString(16).toUpperCase()+";"}function io(t,l,r){const a=Ki(t),o=Ki(l);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Dv.peek=Zz;function Dv(t,l,r,a){const o=Iz(r),s=r.enter("emphasis"),c=r.createTracker(a),d=c.move(o);let p=c.move(r.containerPhrasing(t,{after:o,before:d,...c.current()}));const m=p.charCodeAt(0),y=io(a.before.charCodeAt(a.before.length-1),m,o);y.inside&&(p=pa(m)+p.slice(1));const g=p.charCodeAt(p.length-1),v=io(a.after.charCodeAt(0),g,o);v.inside&&(p=p.slice(0,-1)+pa(g));const x=c.move(o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+p+x}function Zz(t,l,r){return r.options.emphasis||"*"}function Kz(t,l){let r=!1;return sh(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,Cf}),!!((!t.depth||t.depth<3)&&nh(t)&&(l.options.setext||r))}function Jz(t,l,r,a){const o=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(a);if(Kz(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(t,{...s.current(),before:`
34
34
  `,after:`
35
35
  `});return g(),y(),v+`
36
36
  `+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
37
- `))+1))}const c="#".repeat(o),d=r.enter("headingAtx"),m=r.enter("phrasing");s.move(c+" ");let p=r.containerPhrasing(t,{before:"# ",after:`
38
- `,...s.current()});return/^[\t ]/.test(p)&&(p=ma(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,r.options.closeAtx&&(p+=" "+c),m(),d(),p}Nv.peek=Pz;function Nv(t){return t.value||""}function Pz(){return"<"}jv.peek=$z;function jv(t,l,r,a){const o=fh(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const m=r.createTracker(a);let p=m.move("![");return p+=m.move(r.safe(t.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=r.enter("destinationRaw"),p+=m.move(r.safe(t.url,{before:p,after:t.title?" ":")",...m.current()}))),d(),t.title&&(d=r.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(r.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),p+=m.move(")"),c(),p}function $z(){return"!"}Lv.peek=Wz;function Lv(t,l,r,a){const o=t.referenceType,s=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let m=d.move("![");const p=r.safe(t.alt,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:m,after:"]",...d.current()});return c(),r.stack=y,s(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function Wz(){return"!"}Uv.peek=eR;function Uv(t,l,r){let a=t.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const c=r.unsafe[s],d=r.compilePattern(c);let m;if(c.atBreak)for(;m=d.exec(a);){let p=m.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(m.index+1)}}return o+a+o}function eR(){return"`"}function Bv(t,l){const r=nh(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Hv.peek=tR;function Hv(t,l,r,a){const o=fh(r),s=o==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,m;if(Bv(t,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(t,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=y,g}d=r.enter("link"),m=r.enter("label");let p=c.move("[");return p+=c.move(r.containerPhrasing(t,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=r.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(r.safe(t.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=r.enter("destinationRaw"),p+=c.move(r.safe(t.url,{before:p,after:t.title?" ":")",...c.current()}))),m(),t.title&&(m=r.enter(`title${s}`),p+=c.move(" "+o),p+=c.move(r.safe(t.title,{before:p,after:o,...c.current()})),p+=c.move(o),m()),p+=c.move(")"),d(),p}function tR(t,l,r){return Bv(t,r)?"<":"["}qv.peek=nR;function qv(t,l,r,a){const o=t.referenceType,s=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let m=d.move("[");const p=r.containerPhrasing(t,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:m,after:"]",...d.current()});return c(),r.stack=y,s(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function nR(){return"["}function hh(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function lR(t){const l=hh(t),r=t.options.bulletOther;if(!r)return l==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+r+"`) to be different");return r}function iR(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function Qv(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function rR(t,l,r,a){const o=r.enter("list"),s=r.bulletCurrent;let c=t.ordered?iR(r):hh(r);const d=t.ordered?c==="."?")":".":lR(r);let m=l&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(m=!0),Qv(r)===c&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=d),r.bulletCurrent=c;const p=r.containerFlow(t,a);return r.bulletLastUsed=c,r.bulletCurrent=s,o(),p}function aR(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function uR(t,l,r,a){const o=aR(r);let s=r.bulletCurrent||hh(r);l&&l.type==="list"&&l.ordered&&(s=(typeof l.start=="number"&&l.start>-1?l.start:1)+(r.options.incrementListMarker===!1?0:l.children.indexOf(t))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(a);d.move(s+" ".repeat(c-s.length)),d.shift(c);const m=r.enter("listItem"),p=r.indentLines(r.containerFlow(t,d.current()),y);return m(),p;function y(g,v,x){return v?(x?"":" ".repeat(c))+g:(x?s:s+" ".repeat(c-s.length))+g}}function oR(t,l,r,a){const o=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(t,a);return s(),o(),c}const sR=po(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function cR(t,l,r,a){return(t.children.some(function(c){return sR(c)})?r.containerPhrasing:r.containerFlow).call(r,t,a)}function fR(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}Fv.peek=hR;function Fv(t,l,r,a){const o=fR(r),s=r.enter("strong"),c=r.createTracker(a),d=c.move(o+o);let m=c.move(r.containerPhrasing(t,{after:o,before:d,...c.current()}));const p=m.charCodeAt(0),y=io(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=ma(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=io(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+ma(g));const x=c.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+x}function hR(t,l,r){return r.options.strong||"*"}function dR(t,l,r,a){return r.safe(t.value,a)}function mR(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function pR(t,l,r){const a=(Qv(r)+(r.options.ruleSpaces?" ":"")).repeat(mR(r));return r.options.ruleSpaces?a.slice(0,-1):a}const Gv={blockquote:Bz,break:Ly,code:Vz,definition:Xz,emphasis:Dv,hardBreak:Ly,heading:Jz,html:Nv,image:jv,imageReference:Lv,inlineCode:Uv,link:Hv,linkReference:qv,list:rR,listItem:uR,paragraph:oR,root:cR,strong:Fv,text:dR,thematicBreak:pR};function gR(){return{enter:{table:yR,tableData:Uy,tableHeader:Uy,tableRow:vR},exit:{codeText:xR,table:bR,tableData:rf,tableHeader:rf,tableRow:rf}}}function yR(t){const l=t._align;this.enter({type:"table",align:l.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function bR(t){this.exit(t),this.data.inTable=void 0}function vR(t){this.enter({type:"tableRow",children:[]},t)}function rf(t){this.exit(t)}function Uy(t){this.enter({type:"tableCell",children:[]},t)}function xR(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,SR));const r=this.stack[this.stack.length-1];r.type,r.value=l,this.exit(t)}function SR(t,l){return l==="|"?l:t}function kR(t){const l=t||{},r=l.tableCellPadding,a=l.tablePipeAlign,o=l.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
39
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:m,tableRow:d}};function c(x,k,C,T){return p(y(x,C,T),x.align)}function d(x,k,C,T){const A=g(x,C,T),B=p([A]);return B.slice(0,B.indexOf(`
40
- `))}function m(x,k,C,T){const A=C.enter("tableCell"),B=C.enter("phrasing"),_=C.containerPhrasing(x,{...T,before:s,after:s});return B(),A(),_}function p(x,k){return Lz(x,{align:k,alignDelimiters:a,padding:r,stringLength:o})}function y(x,k,C){const T=x.children;let A=-1;const B=[],_=k.enter("table");for(;++A<T.length;)B[A]=g(T[A],k,C);return _(),B}function g(x,k,C){const T=x.children;let A=-1;const B=[],_=k.enter("tableRow");for(;++A<T.length;)B[A]=m(T[A],x,k,C);return _(),B}function v(x,k,C){let T=Gv.inlineCode(x,k,C);return C.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function wR(){return{exit:{taskListCheckValueChecked:By,taskListCheckValueUnchecked:By,paragraph:CR}}}function ER(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:TR}}}function By(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function CR(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=l.children;let s=-1,c;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function TR(t,l,r,a){const o=t.children[0],s=typeof t.checked=="boolean"&&o&&o.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(a);s&&d.move(c);let m=Gv.listItem(t,l,r,{...a,...d.current()});return s&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(y){return y+c}}function AR(){return[rz(),Tz(),Oz(),gR(),wR()]}function zR(t){return{extensions:[az(),Az(t),Mz(),kR(t),ER()]}}const RR={tokenize:jR,partial:!0},Vv={tokenize:LR,partial:!0},Yv={tokenize:UR,partial:!0},Xv={tokenize:BR,partial:!0},OR={tokenize:HR,partial:!0},Iv={name:"wwwAutolink",tokenize:DR,previous:Kv},Zv={name:"protocolAutolink",tokenize:NR,previous:Jv},$n={name:"emailAutolink",tokenize:_R,previous:Pv},Rn={};function MR(){return{text:Rn}}let Kl=48;for(;Kl<123;)Rn[Kl]=$n,Kl++,Kl===58?Kl=65:Kl===91&&(Kl=97);Rn[43]=$n;Rn[45]=$n;Rn[46]=$n;Rn[95]=$n;Rn[72]=[$n,Zv];Rn[104]=[$n,Zv];Rn[87]=[$n,Iv];Rn[119]=[$n,Iv];function _R(t,l,r){const a=this;let o,s;return c;function c(g){return!Rf(g)||!Pv.call(a,a.previous)||dh(a.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return Rf(g)?(t.consume(g),d):g===64?(t.consume(g),m):r(g)}function m(g){return g===46?t.check(OR,y,p)(g):g===45||g===95||xt(g)?(s=!0,t.consume(g),m):y(g)}function p(g){return t.consume(g),o=!0,m}function y(g){return s&&o&&Tt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):r(g)}}function DR(t,l,r){const a=this;return o;function o(c){return c!==87&&c!==119||!Kv.call(a,a.previous)||dh(a.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(RR,t.attempt(Vv,t.attempt(Yv,s),r),r)(c))}function s(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function NR(t,l,r){const a=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&Jv.call(a,a.previous)&&!dh(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(Tt(g)&&o.length<5)return o+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(g),m}return r(g)}function m(g){return g===47?(t.consume(g),s?p:(s=!0,m)):r(g)}function p(g){return g===null||to(g)||Ze(g)||Wl(g)||fo(g)?r(g):t.attempt(Vv,t.attempt(Yv,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function jR(t,l,r){let a=0;return o;function o(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),o):c===46&&a===3?(t.consume(c),s):r(c)}function s(c){return c===null?r(c):l(c)}}function LR(t,l,r){let a,o,s;return c;function c(p){return p===46||p===95?t.check(Xv,m,d)(p):p===null||Ze(p)||Wl(p)||p!==45&&fo(p)?m(p):(s=!0,t.consume(p),c)}function d(p){return p===95?a=!0:(o=a,a=void 0),t.consume(p),c}function m(p){return o||a||!s?r(p):l(p)}}function UR(t,l){let r=0,a=0;return o;function o(c){return c===40?(r++,t.consume(c),o):c===41&&a<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(Xv,l,s)(c):c===null||Ze(c)||Wl(c)?l(c):(t.consume(c),o)}function s(c){return c===41&&a++,t.consume(c),o}}function BR(t,l,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),s):d===93?(t.consume(d),o):d===60||d===null||Ze(d)||Wl(d)?l(d):r(d)}function o(d){return d===null||d===40||d===91||Ze(d)||Wl(d)?l(d):a(d)}function s(d){return Tt(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),a):Tt(d)?(t.consume(d),c):r(d)}}function HR(t,l,r){return a;function a(s){return t.consume(s),o}function o(s){return xt(s)?r(s):l(s)}}function Kv(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ze(t)}function Jv(t){return!Tt(t)}function Pv(t){return!(t===47||Rf(t))}function Rf(t){return t===43||t===45||t===46||t===95||xt(t)}function dh(t){let l=t.length,r=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const qR={tokenize:ZR,partial:!0};function QR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:YR,continuation:{tokenize:XR},exit:IR}},text:{91:{name:"gfmFootnoteCall",tokenize:VR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:FR,resolveTo:GR}}}}function FR(t,l,r){const a=this;let o=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;o--;){const m=a.events[o][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!c||!c._balanced)return r(m);const p=bn(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!s.includes(p.slice(1))?r(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),l(m))}}function GR(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},d=[t[r+1],t[r+2],["enter",a,l],t[r+3],t[r+4],["enter",o,l],["exit",o,l],["enter",s,l],["enter",c,l],["exit",c,l],["exit",s,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(r,t.length-r+1,...d),t}function VR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(g){if(s>999||g===93&&!c||g===null||g===91||Ze(g))return r(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(bn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(g)}return Ze(g)||(c=!0),s++,t.consume(g),g===92?y:p}function y(g){return g===91||g===92||g===93?(t.consume(g),s++,p):p(g)}}function YR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,d;return m;function m(k){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(k){return k===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(k)}function y(k){if(c>999||k===93&&!d||k===null||k===91||Ze(k))return r(k);if(k===93){t.exit("chunkString");const C=t.exit("gfmFootnoteDefinitionLabelString");return s=bn(a.sliceSerialize(C)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Ze(k)||(d=!0),c++,t.consume(k),k===92?g:y}function g(k){return k===91||k===92||k===93?(t.consume(k),c++,y):y(k)}function v(k){return k===58?(t.enter("definitionMarker"),t.consume(k),t.exit("definitionMarker"),o.includes(s)||o.push(s),Ne(t,x,"gfmFootnoteDefinitionWhitespace")):r(k)}function x(k){return l(k)}}function XR(t,l,r){return t.check(xa,l,t.attempt(qR,l,r))}function IR(t){t.exit("gfmFootnoteDefinition")}function ZR(t,l,r){const a=this;return Ne(t,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(s):r(s)}}function KR(t){let r=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(c,d){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},g={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},v=[["enter",y,d],["enter",c[p][1],d],["exit",c[p][1],d],["enter",g,d]],x=d.parser.constructs.insideSpan.null;x&&Pt(v,v.length,0,ho(x,c.slice(p+1,m),d)),Pt(v,v.length,0,[["exit",g,d],["enter",c[m][1],d],["exit",c[m][1],d],["exit",y,d]]),Pt(c,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function s(c,d,m){const p=this.previous,y=this.events;let g=0;return v;function v(k){return p===126&&y[y.length-1][1].type!=="characterEscape"?m(k):(c.enter("strikethroughSequenceTemporary"),x(k))}function x(k){const C=Ki(p);if(k===126)return g>1?m(k):(c.consume(k),g++,x);if(g<2&&!r)return m(k);const T=c.exit("strikethroughSequenceTemporary"),A=Ki(k);return T._open=!A||A===2&&!!C,T._close=!C||C===2&&!!A,d(k)}}}class JR{constructor(){this.map=[]}add(l,r,a){PR(this,l,r,a)}consume(l){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];a.push(l.slice()),l.length=0;let o=a.pop();for(;o;){for(const s of o)l.push(s);o=a.pop()}this.map.length=0}}function PR(t,l,r,a){let o=0;if(!(r===0&&a.length===0)){for(;o<t.map.length;){if(t.map[o][0]===l){t.map[o][1]+=r,t.map[o][2].push(...a);return}o+=1}t.map.push([l,r,a])}}function $R(t,l){let r=!1;const a=[];for(;l<t.length;){const o=t[l];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return a}function WR(){return{flow:{null:{name:"table",tokenize:eO,resolveAll:tO}}}}function eO(t,l,r){const a=this;let o=0,s=0,c;return d;function d(q){let ie=a.events.length-1;for(;ie>-1;){const ue=a.events[ie][1].type;if(ue==="lineEnding"||ue==="linePrefix")ie--;else break}const te=ie>-1?a.events[ie][1].type:null,ye=te==="tableHead"||te==="tableRow"?Q:m;return ye===Q&&a.parser.lazy[a.now().line]?r(q):ye(q)}function m(q){return t.enter("tableHead"),t.enter("tableRow"),p(q)}function p(q){return q===124||(c=!0,s+=1),y(q)}function y(q){return q===null?r(q):pe(q)?s>1?(s=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(q),t.exit("lineEnding"),x):r(q):Oe(q)?Ne(t,y,"whitespace")(q):(s+=1,c&&(c=!1,o+=1),q===124?(t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(q)))}function g(q){return q===null||q===124||Ze(q)?(t.exit("data"),y(q)):(t.consume(q),q===92?v:g)}function v(q){return q===92||q===124?(t.consume(q),g):g(q)}function x(q){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(q):(t.enter("tableDelimiterRow"),c=!1,Oe(q)?Ne(t,k,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):k(q))}function k(q){return q===45||q===58?T(q):q===124?(c=!0,t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),C):W(q)}function C(q){return Oe(q)?Ne(t,T,"whitespace")(q):T(q)}function T(q){return q===58?(s+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(q),t.exit("tableDelimiterMarker"),A):q===45?(s+=1,A(q)):q===null||pe(q)?ee(q):W(q)}function A(q){return q===45?(t.enter("tableDelimiterFiller"),B(q)):W(q)}function B(q){return q===45?(t.consume(q),B):q===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(q),t.exit("tableDelimiterMarker"),_):(t.exit("tableDelimiterFiller"),_(q))}function _(q){return Oe(q)?Ne(t,ee,"whitespace")(q):ee(q)}function ee(q){return q===124?k(q):q===null||pe(q)?!c||o!==s?W(q):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(q)):W(q)}function W(q){return r(q)}function Q(q){return t.enter("tableRow"),J(q)}function J(q){return q===124?(t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),J):q===null||pe(q)?(t.exit("tableRow"),l(q)):Oe(q)?Ne(t,J,"whitespace")(q):(t.enter("data"),Y(q))}function Y(q){return q===null||q===124||Ze(q)?(t.exit("data"),J(q)):(t.consume(q),q===92?ae:Y)}function ae(q){return q===92||q===124?(t.consume(q),Y):Y(q)}}function tO(t,l){let r=-1,a=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],d=!1,m=0,p,y,g;const v=new JR;for(;++r<t.length;){const x=t[r],k=x[1];x[0]==="enter"?k.type==="tableHead"?(d=!1,m!==0&&(Hy(v,l,m,p,y),y=void 0,m=0),p={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",p,l]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(a=!0,g=void 0,s=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",y,l]])),o=k.type==="tableDelimiterRow"?2:y?3:1):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=Zu(v,l,s,o,void 0,g),s=[0,0,0,0]),c[2]=r)):k.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(c[0]=c[1],g=Zu(v,l,s,o,void 0,g)),s=c,c=[s[1],r,0,0])):k.type==="tableHead"?(d=!0,m=r):k.type==="tableRow"||k.type==="tableDelimiterRow"?(m=r,s[1]!==0?(c[0]=c[1],g=Zu(v,l,s,o,r,g)):c[1]!==0&&(g=Zu(v,l,c,o,r,g)),o=0):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(c[3]=r)}for(m!==0&&Hy(v,l,m,p,y),v.consume(l.events),r=-1;++r<l.events.length;){const x=l.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=$R(l.events,r))}return t}function Zu(t,l,r,a,o,s){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(s.end=Object.assign({},Zi(l.events,r[0])),t.add(r[0],0,[["exit",s,l]]));const m=Zi(l.events,r[1]);if(s={type:c,start:Object.assign({},m),end:Object.assign({},m)},t.add(r[1],0,[["enter",s,l]]),r[2]!==0){const p=Zi(l.events,r[2]),y=Zi(l.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,l]]),a!==2){const v=l.events[r[2]],x=l.events[r[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const k=r[2]+1,C=r[3]-r[2]-1;t.add(k,C,[])}}t.add(r[3]+1,0,[["exit",g,l]])}return o!==void 0&&(s.end=Object.assign({},Zi(l.events,o)),t.add(o,0,[["exit",s,l]]),s=void 0),s}function Hy(t,l,r,a,o){const s=[],c=Zi(l.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,l])),a.end=Object.assign({},c),s.push(["exit",a,l]),t.add(r+1,0,s)}function Zi(t,l){const r=t[l],a=r[0]==="enter"?"start":"end";return r[1][a]}const nO={name:"tasklistCheck",tokenize:iO};function lO(){return{text:{91:nO}}}function iO(t,l,r){const a=this;return o;function o(m){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),s)}function s(m){return Ze(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),c):r(m)}function c(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(m)}function d(m){return pe(m)?l(m):Oe(m)?t.check({tokenize:rO},l,r)(m):r(m)}}function rO(t,l,r){return Ne(t,a,"whitespace");function a(o){return o===null?r(o):l(o)}}function aO(t){return av([MR(),QR(),KR(t),WR(),lO()])}const uO={};function oO(t){const l=this,r=t||uO,a=l.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(aO(r)),s.push(AR()),c.push(zR(r))}function qy({children:t}){return R.jsx("div",{className:"md",children:R.jsx(IA,{remarkPlugins:[oO,iz],children:t})})}function sO({sessionId:t}){const{entries:l,loading:r,error:a}=_w(t),o=N.useRef(null),s=N.useRef(!0),c=()=>{const d=o.current;d&&(s.current=d.scrollHeight-d.scrollTop-d.clientHeight<120)};return N.useLayoutEffect(()=>{const d=o.current;d&&s.current&&(d.scrollTop=d.scrollHeight)},[l]),N.useEffect(()=>{s.current=!0},[t]),t?R.jsx("div",{ref:o,onScroll:c,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:r&&l.length===0?R.jsx(co,{label:"Loading transcript…"}):a&&l.length===0?R.jsx(Jn,{children:a}):l.length===0?R.jsx(Jn,{children:"No messages yet."}):R.jsx("div",{className:"flex min-w-0 flex-col gap-2.5",children:l.map(d=>R.jsx(cO,{e:d},`${d.rowid}-${d.id}`))})}):R.jsx(Jn,{children:"No active session in this workspace."})}function cO({e:t}){return t.role==="user"?R.jsx("div",{className:"flex justify-end",children:R.jsxs(Qy,{className:fn("max-w-[85%] bg-accent-soft text-text",t.queued&&"opacity-60"),children:[t.queued?R.jsx(fO,{children:"queued"}):null,R.jsx(qy,{children:t.text})]})}):t.role==="tool"?R.jsx("div",{className:"overflow-hidden rounded-xl border border-border-soft bg-surface/60 px-3 py-2",children:R.jsx("pre",{className:"whitespace-pre-wrap font-mono text-[12px] leading-relaxed text-muted [overflow-wrap:anywhere]",children:t.text})}):t.role==="system"?R.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:t.text}):R.jsx("div",{className:"flex justify-start",children:R.jsx(Qy,{className:fn("max-w-[92%] bg-surface",t.role==="thinking"&&"italic text-muted"),children:R.jsx(qy,{children:t.text})})})}function Qy({children:t,className:l}){return R.jsx("div",{className:fn("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",l),children:t})}function fO({children:t}){return R.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:t})}function hO(){const{workspaceId:t}=$S(),[l,r]=N.useState(!1),[a,o]=N.useState(null),[s,c]=N.useState(!1),d=Wy(),{data:m,isLoading:p}=Ab(),{data:y}=Ow(t);N.useEffect(()=>o(null),[t]);const g=m?.workspaces.find(A=>A.id===t),v=m?.actuator;if(!g)return R.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[R.jsx(bf,{title:"Session",menu:!0}),p?R.jsx(co,{}):R.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const x=y?.sessions??[],k=(a&&x.some(A=>A.id===a)?a:null)??g.active_session_id??x[0]?.id??null,C=[g.repo_name,g.branch,Vb(g.model)].filter(Boolean).join(" · "),T=async()=>{if(!s){c(!0);try{const A=await ti.newChat(g.id);A.ok&&(await d.invalidateQueries({queryKey:["sessions",g.id]}),A.sessionId&&o(A.sessionId))}finally{c(!1)}}};return R.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[R.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[R.jsx(bf,{title:ha(g),subtitle:C,menu:!0,right:R.jsxs("div",{className:"flex items-center gap-1",children:[R.jsx("button",{type:"button",onClick:T,disabled:s,"aria-label":"New chat, same files",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40",children:R.jsx(pw,{size:20})}),R.jsx("button",{type:"button",onClick:()=>r(A=>!A),"aria-label":"Toggle diff panel","aria-pressed":l,className:fn("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",l&&"bg-surface-2 text-text"),children:R.jsx(sw,{size:19})})]})}),x.length>1?R.jsx(dO,{sessions:x,activeId:k,onSelect:o}):null,R.jsx(sO,{sessionId:k}),R.jsx(ME,{sessionId:k,workspaceId:g.id,actuator:v})]}),l?R.jsx(mO,{workspaceId:g.id,onClose:()=>r(!1)}):null]})}function dO({sessions:t,activeId:l,onSelect:r}){return R.jsx("nav",{className:"flex shrink-0 gap-1 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:t.map(a=>R.jsxs("button",{type:"button",onClick:()=>r(a.id),className:fn("pill flex shrink-0 items-center gap-1.5",a.id===l&&"pill-active"),children:[a.status==="working"?R.jsx("span",{className:"dot dot-working size-1.5!"}):null,R.jsx("span",{className:"max-w-36 truncate",children:a.title||"Untitled"}),a.unread_count?R.jsx(Yb,{children:a.unread_count}):null]},a.id))})}function mO({workspaceId:t,onClose:l}){return R.jsxs("aside",{className:"fixed inset-0 z-40 flex flex-col bg-bg lg:static lg:z-auto lg:w-[380px] lg:shrink-0 lg:border-l lg:border-border-soft xl:w-[460px]",children:[R.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[R.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Diff"}),R.jsx("button",{type:"button",onClick:l,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:R.jsx(If,{size:20})})]}),R.jsx(NE,{workspaceId:t})]})}function pO(){const t=At(c=>c.setToken),[l,r]=N.useState(""),[a,o]=N.useState(!1),s=c=>{c.preventDefault();const d=Ew(l);d?t(d):o(!0)};return R.jsxs("div",{className:"pt-safe pb-safe flex h-full flex-col items-center justify-center gap-5 px-8 text-center",children:[R.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),R.jsxs("div",{children:[R.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),R.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),R.jsxs("p",{className:"max-w-xs text-sm leading-relaxed text-muted",children:["Open the URL the relay printed on startup — it carries your access token (",R.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",R.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]}),R.jsxs("form",{onSubmit:s,className:"flex w-full max-w-xs flex-col gap-2",children:[R.jsx("input",{type:"text",inputMode:"text",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:l,onChange:c=>{r(c.target.value),o(!1)},placeholder:"Paste token or URL","aria-label":"Access token or URL",className:"rounded-xl border border-border bg-surface-2 px-3 py-2.5 text-center font-mono text-sm text-text placeholder:font-sans placeholder:text-faint"}),R.jsx("button",{type:"submit",className:"pill pill-active justify-center py-2.5",children:"Connect"}),a?R.jsx("p",{className:"text-xs",style:{color:"var(--color-del)"},children:"Couldn’t find a token in that — paste the token or the full URL."}):null]}),R.jsxs("p",{className:"max-w-xs text-xs leading-relaxed text-faint",children:["Lost it? Run ",R.jsx("span",{className:"font-mono",children:"yarn service status"})," on your Mac to reprint the URL and QR."]})]})}const pa=new Uint8Array(512),Of=new Uint8Array(256);let ea=1;for(let t=0;t<255;t++)pa[t]=ea,Of[ea]=t,ea<<=1,ea&256&&(ea^=285);for(let t=255;t<512;t++)pa[t]=pa[t-255];function $v(t,l){return t===0||l===0?0:pa[Of[t]+Of[l]]}function gO(t){let l=[1];for(let r=0;r<t;r++){const a=new Array(l.length+1).fill(0);for(let o=0;o<l.length;o++)a[o]^=l[o],a[o+1]^=$v(l[o],pa[r]);l=a}return l}function yO(t,l){const r=gO(l),a=new Array(l).fill(0);for(const o of t){const s=o^a[0];if(a.shift(),a.push(0),s!==0)for(let c=0;c<l;c++)a[c]^=$v(r[c+1],s)}return a}const mh={1:{align:[],ec:10,groups:[[1,16]]},2:{align:[6,18],ec:16,groups:[[1,28]]},3:{align:[6,22],ec:26,groups:[[1,44]]},4:{align:[6,26],ec:18,groups:[[2,32]]},5:{align:[6,30],ec:24,groups:[[2,43]]},6:{align:[6,34],ec:16,groups:[[4,27]]},7:{align:[6,22,38],ec:18,groups:[[4,31]]},8:{align:[6,24,42],ec:22,groups:[[2,38],[2,39]]},9:{align:[6,26,46],ec:22,groups:[[3,36],[2,37]]},10:{align:[6,28,50],ec:26,groups:[[4,43],[1,44]]}};function Fy(t){return mh[t].groups.reduce((l,[r,a])=>l+r*a,0)}function Gy(t){return t<=9?8:16}function ta(t,l,r){for(let a=r-1;a>=0;a--)t.push(l>>a&1)}function bO(t){const l=Array.from(new TextEncoder().encode(t));let r=0;for(let k=1;k<=10;k++)if(4+Gy(k)+8*l.length<=Fy(k)*8){r=k;break}if(r===0)throw new Error(`data too long for a v1–10 QR (${l.length} bytes)`);const a=Fy(r)*8,o=[];ta(o,4,4),ta(o,l.length,Gy(r));for(const k of l)ta(o,k,8);for(let k=0,C=Math.min(4,a-o.length);k<C;k++)o.push(0);for(;o.length%8!==0;)o.push(0);const s=[236,17];for(let k=0;o.length<a;k++)ta(o,s[k%2],8);const c=[];for(let k=0;k<o.length;k+=8){let C=0;for(let T=0;T<8;T++)C=C<<1|o[k+T];c.push(C)}const{ec:d,groups:m}=mh[r],p=[];let y=0;for(const[k,C]of m)for(let T=0;T<k;T++){const A=c.slice(y,y+C);y+=C,p.push({data:A,ec:yO(A,d)})}const g=[],v=Math.max(...p.map(k=>k.data.length));for(let k=0;k<v;k++)for(const C of p)k<C.data.length&&g.push(C.data[k]);for(let k=0;k<d;k++)for(const C of p)g.push(C.ec[k]);const x=[];for(const k of g)ta(x,k,8);return{version:r,bits:x}}function vO(t,l){const r=t*4+17,a=Array.from({length:r},()=>new Array(r).fill(!1)),o=Array.from({length:r},()=>new Array(r).fill(!1)),s=(g,v)=>{for(let x=-1;x<=7;x++)for(let k=-1;k<=7;k++){const C=g+x,T=v+k;if(C<0||C>=r||T<0||T>=r)continue;const A=x>=0&&x<=6&&(k===0||k===6)||k>=0&&k<=6&&(x===0||x===6),B=x>=2&&x<=4&&k>=2&&k<=4;a[C][T]=A||B,o[C][T]=!0}};s(0,0),s(0,r-7),s(r-7,0);for(let g=8;g<r-8;g++){const v=g%2===0;o[6][g]||(a[6][g]=v,o[6][g]=!0),o[g][6]||(a[g][6]=v,o[g][6]=!0)}const c=mh[t].align;for(let g=0;g<c.length;g++)for(let v=0;v<c.length;v++){if(g===0&&v===0||g===0&&v===c.length-1||g===c.length-1&&v===0)continue;const k=c[g],C=c[v];for(let T=-2;T<=2;T++)for(let A=-2;A<=2;A++)a[k+T][C+A]=Math.max(Math.abs(T),Math.abs(A))!==1,o[k+T][C+A]=!0}for(let g=0;g<=8;g++)g!==6&&(o[8][g]=!0,o[g][8]=!0);for(let g=0;g<8;g++)o[8][r-1-g]=!0,o[r-1-g][8]=!0;if(o[r-8][8]=!0,t>=7)for(let g=0;g<18;g++){const v=r-11+g%3,x=Math.floor(g/3);o[x][v]=!0,o[v][x]=!0}let d=0,m=!0;for(let g=r-1;g>0;g-=2){g===6&&g--;for(let v=0;v<r;v++){const x=m?r-1-v:v;for(let k=0;k<2;k++){const C=g-k;o[x][C]||(a[x][C]=d<l.length?l[d]===1:!1,d++)}}m=!m}t>=7&&kO(a,t,r);let p=null,y=Number.POSITIVE_INFINITY;for(let g=0;g<8;g++){const v=a.map(k=>k.slice());for(let k=0;k<r;k++)for(let C=0;C<r;C++)!o[k][C]&&xO(g,k,C)&&(v[k][C]=!v[k][C]);SO(v,g,r);const x=wO(v);x<y&&(y=x,p=v)}return p}function xO(t,l,r){switch(t){case 0:return(l+r)%2===0;case 1:return l%2===0;case 2:return r%3===0;case 3:return(l+r)%3===0;case 4:return(Math.floor(l/2)+Math.floor(r/3))%2===0;case 5:return l*r%2+l*r%3===0;case 6:return(l*r%2+l*r%3)%2===0;default:return((l+r)%2+l*r%3)%2===0}}function SO(t,l,r){const a=0|l;let o=a;for(let d=0;d<10;d++)o=o<<1^(o>>9&1?1335:0);const s=((a<<10|o&1023)^21522)&32767,c=d=>(s>>d&1)===1;for(let d=0;d<=5;d++)t[d][8]=c(d);t[7][8]=c(6),t[8][8]=c(7),t[8][7]=c(8);for(let d=9;d<15;d++)t[8][14-d]=c(d);for(let d=0;d<8;d++)t[8][r-1-d]=c(d);for(let d=8;d<15;d++)t[r-15+d][8]=c(d);t[r-8][8]=!0}function kO(t,l,r){let a=l;for(let s=0;s<12;s++)a=a<<1^(a>>11&1?7973:0);const o=l<<12|a&4095;for(let s=0;s<18;s++){const c=(o>>s&1)===1,d=r-11+s%3,m=Math.floor(s/3);t[m][d]=c,t[d][m]=c}}function wO(t){const l=t.length;let r=0;const a=m=>{let p=m(0),y=1;for(let g=1;g<l;g++)m(g)===p?y++:(y>=5&&(r+=y-2),p=m(g),y=1);y>=5&&(r+=y-2)};for(let m=0;m<l;m++)a(p=>t[m][p]);for(let m=0;m<l;m++)a(p=>t[p][m]);for(let m=0;m<l-1;m++)for(let p=0;p<l-1;p++){const y=t[m][p];y===t[m][p+1]&&y===t[m+1][p]&&y===t[m+1][p+1]&&(r+=3)}const o=[!0,!1,!0,!0,!0,!1,!0,!1,!1,!1,!1],s=[!1,!1,!1,!1,!0,!1,!0,!0,!0,!1,!0],c=(m,p,y)=>{for(let g=0;g<11;g++)if(m(p+g)!==y[g])return!1;return!0};for(let m=0;m<l;m++)for(let p=0;p<=l-11;p++)(c(y=>t[m][y],p,o)||c(y=>t[m][y],p,s))&&(r+=40);for(let m=0;m<l;m++)for(let p=0;p<=l-11;p++)(c(y=>t[y][m],p,o)||c(y=>t[y][m],p,s))&&(r+=40);let d=0;for(let m=0;m<l;m++)for(let p=0;p<l;p++)t[m][p]&&d++;return r+=Math.floor(Math.abs(d/(l*l)*100-50)/5)*10,r}function EO(t){const{version:l,bits:r}=bO(t);return vO(l,r)}function CO({text:t,size:l=220,className:r}){const a=EO(t),o=a.length,s=4,c=o+s*2;let d="";for(let m=0;m<o;m++)for(let p=0;p<o;p++)a[m][p]&&(d+=`M${p+s} ${m+s}h1v1h-1z`);return R.jsxs("svg",{width:l,height:l,viewBox:`0 0 ${c} ${c}`,shapeRendering:"crispEdges",className:r,role:"img","aria-label":"QR code",children:[R.jsx("title",{children:"QR code"}),R.jsx("rect",{width:c,height:c,fill:"#fff"}),R.jsx("path",{d,fill:"#000"})]})}function TO({version:t,onClose:l}){const r=At(m=>m.token),a=At(m=>m.setToken),[o,s]=N.useState(!1),c=r?`${location.origin}/#token=${r}`:location.origin,d=async()=>{try{await navigator.clipboard.writeText(c),s(!0),setTimeout(()=>s(!1),1500)}catch{}};return R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:l,"aria-hidden":!0}),R.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Connect a device",className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-w-sm flex-col items-center gap-4 rounded-t-3xl border border-border-soft bg-surface p-5 shadow-xl md:inset-0 md:m-auto md:h-fit md:rounded-3xl",children:[R.jsxs("div",{className:"flex w-full items-center justify-between",children:[R.jsx("h2",{className:"text-base font-semibold",children:"Connect a device"}),R.jsx("button",{type:"button",onClick:l,"aria-label":"Close",className:"flex size-8 items-center justify-center rounded-full text-muted active:bg-surface-2",children:R.jsx(If,{size:18})})]}),R.jsx("p",{className:"text-center text-sm text-muted",children:"Scan on another phone, or re-add this to your home screen. The link carries your access token."}),R.jsx("div",{className:"rounded-2xl bg-white p-3",children:R.jsx(CO,{text:c,size:216})}),R.jsxs("button",{type:"button",onClick:d,className:"flex w-full items-center justify-center gap-2 rounded-xl border border-border bg-surface-2 px-3 py-2.5 text-sm active:bg-surface",children:[o?R.jsx(lw,{size:16}):R.jsx(uw,{size:16}),o?"Copied":"Copy link"]}),R.jsxs("div",{className:"flex w-full items-center justify-between text-xs text-faint",children:[R.jsx("span",{className:"font-mono",children:t?`relay v${t}`:""}),R.jsx("button",{type:"button",onClick:()=>a(null),className:"text-muted underline-offset-2 hover:underline",children:"Disconnect"})]})]})]})}function AO(t,l){return[...t].sort((r,a)=>{const o=+!!a.pinned_at-+!!r.pinned_at;return o||(l==="name"?ha(r).localeCompare(ha(a)):l==="created"?a.created_at.localeCompare(r.created_at):a.updated_at.localeCompare(r.updated_at))})}function zO(t,l){if(l==="none")return[{key:"all",label:"",items:t}];const r=new Map;for(const a of t){const o=l==="status"?zE(a):a.repo_name??"",s=r.get(o);s?s.push(a):r.set(o,[a])}return l==="status"?[...Kg,...[...r.keys()].filter(o=>!Kg.includes(o))].filter(o=>r.has(o)).map(o=>({key:`status:${o}`,label:RE(o),status:o,items:r.get(o)??[]})):[...r.keys()].sort((a,o)=>a.localeCompare(o)).map(a=>({key:`repo:${a}`,label:a||"No repo",items:r.get(a)??[]}))}function RO({selectedId:t}){const l=Qf(),r=At(_=>_.setSidebarOpen),a=At(_=>_.view),o=At(_=>_.toggleGroup),[s,c]=N.useState(!1),[d,m]=N.useState(!1),{data:p,isLoading:y,isError:g,error:v}=Ab(),x=p?.workspaces??[],k=[...new Set(x.map(_=>_.repo_name).filter(_=>!!_))].sort();a.repo&&!k.includes(a.repo)&&k.push(a.repo);const C=a.repo?x.filter(_=>_.repo_name===a.repo):x,T=zO(AO(C,a.sortBy),a.groupBy),A=_=>{l(`/w/${_}`),r(!1)},B=x.length?a.repo?`${C.length} of ${x.length} · ${a.repo}`:`${x.length} active`:void 0;return R.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[R.jsxs("div",{className:"relative",children:[R.jsx(bf,{title:"Workspaces",subtitle:B,right:R.jsxs(R.Fragment,{children:[R.jsxs("button",{type:"button",onClick:()=>c(_=>!_),"aria-label":"View options",className:"relative flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:[R.jsx(vw,{size:18}),a.repo?R.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent"}):null]}),R.jsx("button",{type:"button",onClick:()=>m(!0),"aria-label":"Connect a device",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:R.jsx(yw,{size:18})}),R.jsx("button",{type:"button",onClick:()=>r(!1),"aria-label":"Close workspaces",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:R.jsx(If,{size:20})})]})}),s?R.jsx(MO,{repos:k,view:a,onClose:()=>c(!1)}):null]}),R.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:y&&!p?R.jsx(co,{label:"Loading workspaces…"}):g?R.jsxs(Jn,{children:[v?.message,R.jsx("br",{}),R.jsx("br",{}),"Check the relay is running and the token is correct."]}):x.length===0?R.jsx(Jn,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):C.length===0?R.jsxs(Jn,{children:["No workspaces in ",a.repo,"."]}):T.map(_=>{const ee=!!_.label&&a.collapsed.includes(_.key);return R.jsxs("section",{children:[_.label?R.jsxs("button",{type:"button",onClick:()=>o(_.key),className:"flex w-full items-center gap-2 px-1 py-2 text-sm font-semibold",children:[R.jsx(OO,{status:_.status}),R.jsx("span",{className:"truncate",children:_.label}),ee?R.jsx("span",{className:"font-normal text-muted text-xs",children:_.items.length}):null,R.jsx(rw,{size:14,className:fn("ml-auto shrink-0 text-faint transition-transform",ee&&"-rotate-90")})]}):null,ee?null:R.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:_.items.map(W=>R.jsx("li",{className:"fade-in",children:R.jsx("button",{type:"button",className:fn("card w-full",W.id===t&&"border-accent/50 bg-surface-2"),onClick:()=>A(W.id),children:R.jsx(DO,{w:W})})},W.id))})]},_.key)})}),d?R.jsx(TO,{version:p?.version,onClose:()=>m(!1)}):null]})}function OO({status:t}){if(!t)return null;const r={done:"var(--color-done)","in-review":"var(--color-idle)","in-progress":"var(--color-working)"}[t];return r?R.jsx("span",{className:"dot size-2",style:{background:r}}):R.jsx("span",{className:"dot size-2 border border-faint bg-transparent"})}function MO({repos:t,view:l,onClose:r}){const a=At(o=>o.setView);return R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"fixed inset-0 z-20",onClick:r,"aria-hidden":!0}),R.jsxs("div",{className:"fade-in absolute right-2 top-full z-30 mt-1 flex w-64 flex-col gap-2.5 rounded-2xl border border-border bg-surface p-3 shadow-xl",children:[R.jsx(af,{id:"view-group",label:"Group by",children:R.jsx(uf,{id:"view-group",value:l.groupBy,onChange:o=>a({groupBy:o}),options:[["status","Status"],["repo","Repo"],["none","None"]]})}),R.jsx(af,{id:"view-repo",label:"Repo",children:R.jsx(uf,{id:"view-repo",value:l.repo??"all",onChange:o=>a({repo:o==="all"?null:o}),options:[["all","All repos"],...t.map(o=>[o,o])]})}),R.jsx(af,{id:"view-sort",label:"Sort by",children:R.jsx(uf,{id:"view-sort",value:l.sortBy,onChange:o=>a({sortBy:o}),options:[["updated","Updated"],["created","Created"],["name","Name"]]})})]})]})}function af({id:t,label:l,children:r}){return R.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm text-muted",children:[R.jsx("label",{htmlFor:t,children:l}),r]})}function uf({id:t,value:l,options:r,onChange:a}){return R.jsx("select",{id:t,value:l,onChange:o=>a(o.target.value),className:"max-w-36 truncate rounded-lg border border-border bg-surface-2 px-2 py-1.5 text-sm text-text [color-scheme:dark]",children:r.map(([o,s])=>R.jsx("option",{value:o,children:s},o))})}function _O({w:t}){const[l,r]=N.useState(!1),a=t.hasRepoIcon&&!!t.repo_name&&!l;return R.jsx("div",{className:"grid size-8 place-items-center overflow-hidden rounded-lg bg-surface-2 text-xs font-semibold text-muted",children:a?R.jsx("img",{src:ti.repoIconUrl(t.repo_name),alt:"",loading:"lazy",className:"size-full object-contain",onError:()=>r(!0)}):TE(t)})}function DO({w:t}){const l=Gb(t),r=Vb(t.model),a=t.context_used_percent;return R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:"relative shrink-0 self-start",children:[R.jsx(_O,{w:t}),R.jsx(_E,{status:l,className:"absolute -right-0.5 -bottom-0.5 ring-2 ring-surface"})]}),R.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[R.jsxs("div",{className:"flex items-center gap-2",children:[R.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:ha(t)}),t.pinned_at?R.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,t.unread?R.jsx(Yb,{children:t.unread}):null,R.jsx("span",{className:"shrink-0 text-xs capitalize text-muted",children:AE(t)})]}),R.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[t.repo_name?R.jsx("span",{className:"shrink-0 font-mono text-faint",children:t.repo_name}):null,t.branch?R.jsx(Jg,{className:"min-w-0 flex-1 truncate",children:t.branch}):null]}),R.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[r?R.jsx(Jg,{children:r}):null,typeof a=="number"&&a>0?R.jsxs("span",{className:"shrink-0 text-faint",children:[Math.round(a),"% ctx"]}):null,R.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:OE(t.updated_at)})]})]})]})}function NO(){return At(l=>l.token)?R.jsxs(pk,{children:[R.jsxs(na,{element:R.jsx(jO,{}),children:[R.jsx(na,{index:!0,element:R.jsx(LO,{})}),R.jsx(na,{path:"/w/:workspaceId",element:R.jsx(hO,{})})]}),R.jsx(na,{path:"*",element:R.jsx(hk,{to:"/",replace:!0})})]}):R.jsx(pO,{})}function jO(){const t=ZS("/w/:workspaceId"),l=At(a=>a.sidebarOpen),r=At(a=>a.setSidebarOpen);return R.jsxs("div",{className:"flex h-full overflow-hidden",children:[l?R.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>r(!1),"aria-hidden":!0}):null,R.jsx("aside",{className:fn("fixed inset-y-0 left-0 z-50 flex w-[85%] max-w-80 flex-col border-r border-border-soft bg-bg transition-transform duration-200 ease-out","md:static md:z-auto md:w-72 md:max-w-none md:shrink-0 md:translate-x-0 md:transition-none lg:w-80",l?"translate-x-0":"-translate-x-full"),children:R.jsx(RO,{selectedId:t?.params.workspaceId})}),R.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:R.jsx(dk,{})})]})}function LO(){const t=At(l=>l.setSidebarOpen);return R.jsxs("div",{className:"grid h-full place-items-center",children:[R.jsx("button",{type:"button",onClick:()=>t(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),R.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}vx({immediate:!0});navigator.storage?.persist&&navigator.storage.persist().catch(()=>{});const UO=new Yx({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),Wv=document.getElementById("root");if(!Wv)throw new Error("#root missing");fS.createRoot(Wv).render(R.jsx(N.StrictMode,{children:R.jsx(Ix,{client:UO,children:R.jsx(Hk,{children:R.jsx(NO,{})})})}));
37
+ `))+1))}const c="#".repeat(o),d=r.enter("headingAtx"),p=r.enter("phrasing");s.move(c+" ");let m=r.containerPhrasing(t,{before:"# ",after:`
38
+ `,...s.current()});return/^[\t ]/.test(m)&&(m=pa(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,r.options.closeAtx&&(m+=" "+c),p(),d(),m}Nv.peek=Pz;function Nv(t){return t.value||""}function Pz(){return"<"}jv.peek=$z;function jv(t,l,r,a){const o=fh(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const p=r.createTracker(a);let m=p.move("![");return m+=p.move(r.safe(t.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(t.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=r.enter("destinationRaw"),m+=p.move(r.safe(t.url,{before:m,after:t.title?" ":")",...p.current()}))),d(),t.title&&(d=r.enter(`title${s}`),m+=p.move(" "+o),m+=p.move(r.safe(t.title,{before:m,after:o,...p.current()})),m+=p.move(o),d()),m+=p.move(")"),c(),m}function $z(){return"!"}Lv.peek=Wz;function Lv(t,l,r,a){const o=t.referenceType,s=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let p=d.move("![");const m=r.safe(t.alt,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:p,after:"]",...d.current()});return c(),r.stack=y,s(),o==="full"||!m||m!==g?p+=d.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function Wz(){return"!"}Uv.peek=eR;function Uv(t,l,r){let a=t.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const c=r.unsafe[s],d=r.compilePattern(c);let p;if(c.atBreak)for(;p=d.exec(a);){let m=p.index;a.charCodeAt(m)===10&&a.charCodeAt(m-1)===13&&m--,a=a.slice(0,m)+" "+a.slice(p.index+1)}}return o+a+o}function eR(){return"`"}function Bv(t,l){const r=nh(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Hv.peek=tR;function Hv(t,l,r,a){const o=fh(r),s=o==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,p;if(Bv(t,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(t,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=y,g}d=r.enter("link"),p=r.enter("label");let m=c.move("[");return m+=c.move(r.containerPhrasing(t,{before:m,after:"](",...c.current()})),m+=c.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(r.safe(t.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(p=r.enter("destinationRaw"),m+=c.move(r.safe(t.url,{before:m,after:t.title?" ":")",...c.current()}))),p(),t.title&&(p=r.enter(`title${s}`),m+=c.move(" "+o),m+=c.move(r.safe(t.title,{before:m,after:o,...c.current()})),m+=c.move(o),p()),m+=c.move(")"),d(),m}function tR(t,l,r){return Bv(t,r)?"<":"["}qv.peek=nR;function qv(t,l,r,a){const o=t.referenceType,s=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let p=d.move("[");const m=r.containerPhrasing(t,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:p,after:"]",...d.current()});return c(),r.stack=y,s(),o==="full"||!m||m!==g?p+=d.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function nR(){return"["}function hh(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function lR(t){const l=hh(t),r=t.options.bulletOther;if(!r)return l==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+r+"`) to be different");return r}function iR(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function Qv(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function rR(t,l,r,a){const o=r.enter("list"),s=r.bulletCurrent;let c=t.ordered?iR(r):hh(r);const d=t.ordered?c==="."?")":".":lR(r);let p=l&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),Qv(r)===c&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=d),r.bulletCurrent=c;const m=r.containerFlow(t,a);return r.bulletLastUsed=c,r.bulletCurrent=s,o(),m}function aR(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function uR(t,l,r,a){const o=aR(r);let s=r.bulletCurrent||hh(r);l&&l.type==="list"&&l.ordered&&(s=(typeof l.start=="number"&&l.start>-1?l.start:1)+(r.options.incrementListMarker===!1?0:l.children.indexOf(t))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(a);d.move(s+" ".repeat(c-s.length)),d.shift(c);const p=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,d.current()),y);return p(),m;function y(g,v,x){return v?(x?"":" ".repeat(c))+g:(x?s:s+" ".repeat(c-s.length))+g}}function oR(t,l,r,a){const o=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(t,a);return s(),o(),c}const sR=mo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function cR(t,l,r,a){return(t.children.some(function(c){return sR(c)})?r.containerPhrasing:r.containerFlow).call(r,t,a)}function fR(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}Fv.peek=hR;function Fv(t,l,r,a){const o=fR(r),s=r.enter("strong"),c=r.createTracker(a),d=c.move(o+o);let p=c.move(r.containerPhrasing(t,{after:o,before:d,...c.current()}));const m=p.charCodeAt(0),y=io(a.before.charCodeAt(a.before.length-1),m,o);y.inside&&(p=pa(m)+p.slice(1));const g=p.charCodeAt(p.length-1),v=io(a.after.charCodeAt(0),g,o);v.inside&&(p=p.slice(0,-1)+pa(g));const x=c.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+p+x}function hR(t,l,r){return r.options.strong||"*"}function dR(t,l,r,a){return r.safe(t.value,a)}function pR(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function mR(t,l,r){const a=(Qv(r)+(r.options.ruleSpaces?" ":"")).repeat(pR(r));return r.options.ruleSpaces?a.slice(0,-1):a}const Gv={blockquote:Bz,break:Ly,code:Vz,definition:Xz,emphasis:Dv,hardBreak:Ly,heading:Jz,html:Nv,image:jv,imageReference:Lv,inlineCode:Uv,link:Hv,linkReference:qv,list:rR,listItem:uR,paragraph:oR,root:cR,strong:Fv,text:dR,thematicBreak:mR};function gR(){return{enter:{table:yR,tableData:Uy,tableHeader:Uy,tableRow:vR},exit:{codeText:xR,table:bR,tableData:rf,tableHeader:rf,tableRow:rf}}}function yR(t){const l=t._align;this.enter({type:"table",align:l.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function bR(t){this.exit(t),this.data.inTable=void 0}function vR(t){this.enter({type:"tableRow",children:[]},t)}function rf(t){this.exit(t)}function Uy(t){this.enter({type:"tableCell",children:[]},t)}function xR(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,SR));const r=this.stack[this.stack.length-1];r.type,r.value=l,this.exit(t)}function SR(t,l){return l==="|"?l:t}function kR(t){const l=t||{},r=l.tableCellPadding,a=l.tablePipeAlign,o=l.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
39
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:p,tableRow:d}};function c(x,k,C,T){return m(y(x,C,T),x.align)}function d(x,k,C,T){const A=g(x,C,T),B=m([A]);return B.slice(0,B.indexOf(`
40
+ `))}function p(x,k,C,T){const A=C.enter("tableCell"),B=C.enter("phrasing"),_=C.containerPhrasing(x,{...T,before:s,after:s});return B(),A(),_}function m(x,k){return Lz(x,{align:k,alignDelimiters:a,padding:r,stringLength:o})}function y(x,k,C){const T=x.children;let A=-1;const B=[],_=k.enter("table");for(;++A<T.length;)B[A]=g(T[A],k,C);return _(),B}function g(x,k,C){const T=x.children;let A=-1;const B=[],_=k.enter("tableRow");for(;++A<T.length;)B[A]=p(T[A],x,k,C);return _(),B}function v(x,k,C){let T=Gv.inlineCode(x,k,C);return C.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function wR(){return{exit:{taskListCheckValueChecked:By,taskListCheckValueUnchecked:By,paragraph:CR}}}function ER(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:TR}}}function By(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function CR(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=l.children;let s=-1,c;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function TR(t,l,r,a){const o=t.children[0],s=typeof t.checked=="boolean"&&o&&o.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(a);s&&d.move(c);let p=Gv.listItem(t,l,r,{...a,...d.current()});return s&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+c}}function AR(){return[rz(),Tz(),Oz(),gR(),wR()]}function zR(t){return{extensions:[az(),Az(t),Mz(),kR(t),ER()]}}const RR={tokenize:jR,partial:!0},Vv={tokenize:LR,partial:!0},Yv={tokenize:UR,partial:!0},Xv={tokenize:BR,partial:!0},OR={tokenize:HR,partial:!0},Iv={name:"wwwAutolink",tokenize:DR,previous:Kv},Zv={name:"protocolAutolink",tokenize:NR,previous:Jv},$n={name:"emailAutolink",tokenize:_R,previous:Pv},Rn={};function MR(){return{text:Rn}}let Kl=48;for(;Kl<123;)Rn[Kl]=$n,Kl++,Kl===58?Kl=65:Kl===91&&(Kl=97);Rn[43]=$n;Rn[45]=$n;Rn[46]=$n;Rn[95]=$n;Rn[72]=[$n,Zv];Rn[104]=[$n,Zv];Rn[87]=[$n,Iv];Rn[119]=[$n,Iv];function _R(t,l,r){const a=this;let o,s;return c;function c(g){return!Rf(g)||!Pv.call(a,a.previous)||dh(a.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return Rf(g)?(t.consume(g),d):g===64?(t.consume(g),p):r(g)}function p(g){return g===46?t.check(OR,y,m)(g):g===45||g===95||xt(g)?(s=!0,t.consume(g),p):y(g)}function m(g){return t.consume(g),o=!0,p}function y(g){return s&&o&&Tt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):r(g)}}function DR(t,l,r){const a=this;return o;function o(c){return c!==87&&c!==119||!Kv.call(a,a.previous)||dh(a.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(RR,t.attempt(Vv,t.attempt(Yv,s),r),r)(c))}function s(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function NR(t,l,r){const a=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&Jv.call(a,a.previous)&&!dh(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(Tt(g)&&o.length<5)return o+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(g),p}return r(g)}function p(g){return g===47?(t.consume(g),s?m:(s=!0,p)):r(g)}function m(g){return g===null||to(g)||Ze(g)||Wl(g)||fo(g)?r(g):t.attempt(Vv,t.attempt(Yv,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function jR(t,l,r){let a=0;return o;function o(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),o):c===46&&a===3?(t.consume(c),s):r(c)}function s(c){return c===null?r(c):l(c)}}function LR(t,l,r){let a,o,s;return c;function c(m){return m===46||m===95?t.check(Xv,p,d)(m):m===null||Ze(m)||Wl(m)||m!==45&&fo(m)?p(m):(s=!0,t.consume(m),c)}function d(m){return m===95?a=!0:(o=a,a=void 0),t.consume(m),c}function p(m){return o||a||!s?r(m):l(m)}}function UR(t,l){let r=0,a=0;return o;function o(c){return c===40?(r++,t.consume(c),o):c===41&&a<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(Xv,l,s)(c):c===null||Ze(c)||Wl(c)?l(c):(t.consume(c),o)}function s(c){return c===41&&a++,t.consume(c),o}}function BR(t,l,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),s):d===93?(t.consume(d),o):d===60||d===null||Ze(d)||Wl(d)?l(d):r(d)}function o(d){return d===null||d===40||d===91||Ze(d)||Wl(d)?l(d):a(d)}function s(d){return Tt(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),a):Tt(d)?(t.consume(d),c):r(d)}}function HR(t,l,r){return a;function a(s){return t.consume(s),o}function o(s){return xt(s)?r(s):l(s)}}function Kv(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ze(t)}function Jv(t){return!Tt(t)}function Pv(t){return!(t===47||Rf(t))}function Rf(t){return t===43||t===45||t===46||t===95||xt(t)}function dh(t){let l=t.length,r=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const qR={tokenize:ZR,partial:!0};function QR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:YR,continuation:{tokenize:XR},exit:IR}},text:{91:{name:"gfmFootnoteCall",tokenize:VR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:FR,resolveTo:GR}}}}function FR(t,l,r){const a=this;let o=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;o--;){const p=a.events[o][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!c||!c._balanced)return r(p);const m=bn(a.sliceSerialize({start:c.end,end:a.now()}));return m.codePointAt(0)!==94||!s.includes(m.slice(1))?r(p):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),l(p))}}function GR(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},d=[t[r+1],t[r+2],["enter",a,l],t[r+3],t[r+4],["enter",o,l],["exit",o,l],["enter",s,l],["enter",c,l],["exit",c,l],["exit",s,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(r,t.length-r+1,...d),t}function VR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(g){if(s>999||g===93&&!c||g===null||g===91||Ze(g))return r(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(bn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(g)}return Ze(g)||(c=!0),s++,t.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(t.consume(g),s++,m):m(g)}}function YR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,d;return p;function p(k){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(k){return k===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(k)}function y(k){if(c>999||k===93&&!d||k===null||k===91||Ze(k))return r(k);if(k===93){t.exit("chunkString");const C=t.exit("gfmFootnoteDefinitionLabelString");return s=bn(a.sliceSerialize(C)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(k),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Ze(k)||(d=!0),c++,t.consume(k),k===92?g:y}function g(k){return k===91||k===92||k===93?(t.consume(k),c++,y):y(k)}function v(k){return k===58?(t.enter("definitionMarker"),t.consume(k),t.exit("definitionMarker"),o.includes(s)||o.push(s),Ne(t,x,"gfmFootnoteDefinitionWhitespace")):r(k)}function x(k){return l(k)}}function XR(t,l,r){return t.check(xa,l,t.attempt(qR,l,r))}function IR(t){t.exit("gfmFootnoteDefinition")}function ZR(t,l,r){const a=this;return Ne(t,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(s):r(s)}}function KR(t){let r=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(c,d){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let m=p;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[p][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[p][1].end)},g={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[p][1].start)},v=[["enter",y,d],["enter",c[m][1],d],["exit",c[m][1],d],["enter",g,d]],x=d.parser.constructs.insideSpan.null;x&&Pt(v,v.length,0,ho(x,c.slice(m+1,p),d)),Pt(v,v.length,0,[["exit",g,d],["enter",c[p][1],d],["exit",c[p][1],d],["exit",y,d]]),Pt(c,m-1,p-m+3,v),p=m+v.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function s(c,d,p){const m=this.previous,y=this.events;let g=0;return v;function v(k){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(k):(c.enter("strikethroughSequenceTemporary"),x(k))}function x(k){const C=Ki(m);if(k===126)return g>1?p(k):(c.consume(k),g++,x);if(g<2&&!r)return p(k);const T=c.exit("strikethroughSequenceTemporary"),A=Ki(k);return T._open=!A||A===2&&!!C,T._close=!C||C===2&&!!A,d(k)}}}class JR{constructor(){this.map=[]}add(l,r,a){PR(this,l,r,a)}consume(l){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];a.push(l.slice()),l.length=0;let o=a.pop();for(;o;){for(const s of o)l.push(s);o=a.pop()}this.map.length=0}}function PR(t,l,r,a){let o=0;if(!(r===0&&a.length===0)){for(;o<t.map.length;){if(t.map[o][0]===l){t.map[o][1]+=r,t.map[o][2].push(...a);return}o+=1}t.map.push([l,r,a])}}function $R(t,l){let r=!1;const a=[];for(;l<t.length;){const o=t[l];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return a}function WR(){return{flow:{null:{name:"table",tokenize:eO,resolveAll:tO}}}}function eO(t,l,r){const a=this;let o=0,s=0,c;return d;function d(q){let ie=a.events.length-1;for(;ie>-1;){const ue=a.events[ie][1].type;if(ue==="lineEnding"||ue==="linePrefix")ie--;else break}const te=ie>-1?a.events[ie][1].type:null,ye=te==="tableHead"||te==="tableRow"?Q:p;return ye===Q&&a.parser.lazy[a.now().line]?r(q):ye(q)}function p(q){return t.enter("tableHead"),t.enter("tableRow"),m(q)}function m(q){return q===124||(c=!0,s+=1),y(q)}function y(q){return q===null?r(q):me(q)?s>1?(s=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(q),t.exit("lineEnding"),x):r(q):Oe(q)?Ne(t,y,"whitespace")(q):(s+=1,c&&(c=!1,o+=1),q===124?(t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(q)))}function g(q){return q===null||q===124||Ze(q)?(t.exit("data"),y(q)):(t.consume(q),q===92?v:g)}function v(q){return q===92||q===124?(t.consume(q),g):g(q)}function x(q){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(q):(t.enter("tableDelimiterRow"),c=!1,Oe(q)?Ne(t,k,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):k(q))}function k(q){return q===45||q===58?T(q):q===124?(c=!0,t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),C):W(q)}function C(q){return Oe(q)?Ne(t,T,"whitespace")(q):T(q)}function T(q){return q===58?(s+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(q),t.exit("tableDelimiterMarker"),A):q===45?(s+=1,A(q)):q===null||me(q)?ee(q):W(q)}function A(q){return q===45?(t.enter("tableDelimiterFiller"),B(q)):W(q)}function B(q){return q===45?(t.consume(q),B):q===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(q),t.exit("tableDelimiterMarker"),_):(t.exit("tableDelimiterFiller"),_(q))}function _(q){return Oe(q)?Ne(t,ee,"whitespace")(q):ee(q)}function ee(q){return q===124?k(q):q===null||me(q)?!c||o!==s?W(q):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(q)):W(q)}function W(q){return r(q)}function Q(q){return t.enter("tableRow"),J(q)}function J(q){return q===124?(t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),J):q===null||me(q)?(t.exit("tableRow"),l(q)):Oe(q)?Ne(t,J,"whitespace")(q):(t.enter("data"),Y(q))}function Y(q){return q===null||q===124||Ze(q)?(t.exit("data"),J(q)):(t.consume(q),q===92?ae:Y)}function ae(q){return q===92||q===124?(t.consume(q),Y):Y(q)}}function tO(t,l){let r=-1,a=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],d=!1,p=0,m,y,g;const v=new JR;for(;++r<t.length;){const x=t[r],k=x[1];x[0]==="enter"?k.type==="tableHead"?(d=!1,p!==0&&(Hy(v,l,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",m,l]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(a=!0,g=void 0,s=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",y,l]])),o=k.type==="tableDelimiterRow"?2:y?3:1):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=Zu(v,l,s,o,void 0,g),s=[0,0,0,0]),c[2]=r)):k.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(c[0]=c[1],g=Zu(v,l,s,o,void 0,g)),s=c,c=[s[1],r,0,0])):k.type==="tableHead"?(d=!0,p=r):k.type==="tableRow"||k.type==="tableDelimiterRow"?(p=r,s[1]!==0?(c[0]=c[1],g=Zu(v,l,s,o,r,g)):c[1]!==0&&(g=Zu(v,l,c,o,r,g)),o=0):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(c[3]=r)}for(p!==0&&Hy(v,l,p,m,y),v.consume(l.events),r=-1;++r<l.events.length;){const x=l.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=$R(l.events,r))}return t}function Zu(t,l,r,a,o,s){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(s.end=Object.assign({},Zi(l.events,r[0])),t.add(r[0],0,[["exit",s,l]]));const p=Zi(l.events,r[1]);if(s={type:c,start:Object.assign({},p),end:Object.assign({},p)},t.add(r[1],0,[["enter",s,l]]),r[2]!==0){const m=Zi(l.events,r[2]),y=Zi(l.events,r[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,l]]),a!==2){const v=l.events[r[2]],x=l.events[r[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const k=r[2]+1,C=r[3]-r[2]-1;t.add(k,C,[])}}t.add(r[3]+1,0,[["exit",g,l]])}return o!==void 0&&(s.end=Object.assign({},Zi(l.events,o)),t.add(o,0,[["exit",s,l]]),s=void 0),s}function Hy(t,l,r,a,o){const s=[],c=Zi(l.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,l])),a.end=Object.assign({},c),s.push(["exit",a,l]),t.add(r+1,0,s)}function Zi(t,l){const r=t[l],a=r[0]==="enter"?"start":"end";return r[1][a]}const nO={name:"tasklistCheck",tokenize:iO};function lO(){return{text:{91:nO}}}function iO(t,l,r){const a=this;return o;function o(p){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(p):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),s)}function s(p){return Ze(p)?(t.enter("taskListCheckValueUnchecked"),t.consume(p),t.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(t.enter("taskListCheckValueChecked"),t.consume(p),t.exit("taskListCheckValueChecked"),c):r(p)}function c(p){return p===93?(t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(p)}function d(p){return me(p)?l(p):Oe(p)?t.check({tokenize:rO},l,r)(p):r(p)}}function rO(t,l,r){return Ne(t,a,"whitespace");function a(o){return o===null?r(o):l(o)}}function aO(t){return av([MR(),QR(),KR(t),WR(),lO()])}const uO={};function oO(t){const l=this,r=t||uO,a=l.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(aO(r)),s.push(AR()),c.push(zR(r))}function qy({children:t}){return R.jsx("div",{className:"md",children:R.jsx(IA,{remarkPlugins:[oO,iz],children:t})})}function sO({sessionId:t}){const{entries:l,loading:r,error:a}=_w(t),o=N.useRef(null),s=N.useRef(!0),c=()=>{const d=o.current;d&&(s.current=d.scrollHeight-d.scrollTop-d.clientHeight<120)};return N.useLayoutEffect(()=>{const d=o.current;d&&s.current&&(d.scrollTop=d.scrollHeight)},[l]),N.useEffect(()=>{s.current=!0},[t]),t?R.jsx("div",{ref:o,onScroll:c,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:r&&l.length===0?R.jsx(co,{label:"Loading transcript…"}):a&&l.length===0?R.jsx(Jn,{children:a}):l.length===0?R.jsx(Jn,{children:"No messages yet."}):R.jsx("div",{className:"flex min-w-0 flex-col gap-2.5",children:l.map(d=>R.jsx(cO,{e:d},`${d.rowid}-${d.id}`))})}):R.jsx(Jn,{children:"No active session in this workspace."})}function cO({e:t}){return t.role==="user"?R.jsx("div",{className:"flex justify-end",children:R.jsxs(Qy,{className:fn("max-w-[85%] bg-accent-soft text-text",t.queued&&"opacity-60"),children:[t.queued?R.jsx(fO,{children:"queued"}):null,R.jsx(qy,{children:t.text})]})}):t.role==="tool"?R.jsx("div",{className:"overflow-hidden rounded-xl border border-border-soft bg-surface/60 px-3 py-2",children:R.jsx("pre",{className:"whitespace-pre-wrap font-mono text-[12px] leading-relaxed text-muted [overflow-wrap:anywhere]",children:t.text})}):t.role==="system"?R.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:t.text}):R.jsx("div",{className:"flex justify-start",children:R.jsx(Qy,{className:fn("max-w-[92%] bg-surface",t.role==="thinking"&&"italic text-muted"),children:R.jsx(qy,{children:t.text})})})}function Qy({children:t,className:l}){return R.jsx("div",{className:fn("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",l),children:t})}function fO({children:t}){return R.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:t})}function hO(){const{workspaceId:t}=$S(),[l,r]=N.useState(!1),[a,o]=N.useState(null),[s,c]=N.useState(!1),d=Wy(),{data:p,isLoading:m}=Ab(),{data:y}=Ow(t);N.useEffect(()=>o(null),[t]);const g=p?.workspaces.find(A=>A.id===t),v=p?.actuator;if(!g)return R.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[R.jsx(bf,{title:"Session",menu:!0}),m?R.jsx(co,{}):R.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const x=y?.sessions??[],k=(a&&x.some(A=>A.id===a)?a:null)??g.active_session_id??x[0]?.id??null,C=[g.repo_name,g.branch,Vb(g.model)].filter(Boolean).join(" · "),T=async()=>{if(!s){c(!0);try{const A=await ti.newChat(g.id);A.ok&&(await d.invalidateQueries({queryKey:["sessions",g.id]}),A.sessionId&&o(A.sessionId))}finally{c(!1)}}};return R.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[R.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[R.jsx(bf,{title:ha(g),subtitle:C,menu:!0,right:R.jsxs("div",{className:"flex items-center gap-1",children:[R.jsx("button",{type:"button",onClick:T,disabled:s,"aria-label":"New chat, same files",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40",children:R.jsx(mw,{size:20})}),R.jsx("button",{type:"button",onClick:()=>r(A=>!A),"aria-label":"Toggle diff panel","aria-pressed":l,className:fn("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",l&&"bg-surface-2 text-text"),children:R.jsx(sw,{size:19})})]})}),x.length>1?R.jsx(dO,{sessions:x,activeId:k,onSelect:o}):null,R.jsx(sO,{sessionId:k}),R.jsx(ME,{sessionId:k,workspaceId:g.id,actuator:v})]}),l?R.jsx(pO,{workspaceId:g.id,onClose:()=>r(!1)}):null]})}function dO({sessions:t,activeId:l,onSelect:r}){return R.jsx("nav",{className:"flex shrink-0 gap-1 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:t.map(a=>R.jsxs("button",{type:"button",onClick:()=>r(a.id),className:fn("pill flex shrink-0 items-center gap-1.5",a.id===l&&"pill-active"),children:[a.status==="working"?R.jsx("span",{className:"dot dot-working size-1.5!"}):null,R.jsx("span",{className:"max-w-36 truncate",children:a.title||"Untitled"}),a.unread_count?R.jsx(Yb,{children:a.unread_count}):null]},a.id))})}function pO({workspaceId:t,onClose:l}){return R.jsxs("aside",{className:"fixed inset-0 z-40 flex flex-col bg-bg lg:static lg:z-auto lg:w-[380px] lg:shrink-0 lg:border-l lg:border-border-soft xl:w-[460px]",children:[R.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[R.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Diff"}),R.jsx("button",{type:"button",onClick:l,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:R.jsx(If,{size:20})})]}),R.jsx(NE,{workspaceId:t})]})}function mO(){const t=At(c=>c.setToken),[l,r]=N.useState(""),[a,o]=N.useState(!1),s=c=>{c.preventDefault();const d=Ew(l);d?t(d):o(!0)};return R.jsxs("div",{className:"pt-safe pb-safe flex h-full flex-col items-center justify-center gap-5 px-8 text-center",children:[R.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),R.jsxs("div",{children:[R.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),R.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),R.jsxs("p",{className:"max-w-xs text-sm leading-relaxed text-muted",children:["Open the URL the relay printed on startup — it carries your access token (",R.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",R.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]}),R.jsxs("form",{onSubmit:s,className:"flex w-full max-w-xs flex-col gap-2",children:[R.jsx("input",{type:"text",inputMode:"text",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:l,onChange:c=>{r(c.target.value),o(!1)},placeholder:"Paste token or URL","aria-label":"Access token or URL",className:"rounded-xl border border-border bg-surface-2 px-3 py-2.5 text-center font-mono text-sm text-text placeholder:font-sans placeholder:text-faint"}),R.jsx("button",{type:"submit",className:"pill pill-active justify-center py-2.5",children:"Connect"}),a?R.jsx("p",{className:"text-xs",style:{color:"var(--color-del)"},children:"Couldn’t find a token in that — paste the token or the full URL."}):null]}),R.jsxs("p",{className:"max-w-xs text-xs leading-relaxed text-faint",children:["Lost it? Run ",R.jsx("span",{className:"font-mono",children:"yarn service status"})," on your Mac to reprint the URL and QR."]})]})}const ma=new Uint8Array(512),Of=new Uint8Array(256);let ea=1;for(let t=0;t<255;t++)ma[t]=ea,Of[ea]=t,ea<<=1,ea&256&&(ea^=285);for(let t=255;t<512;t++)ma[t]=ma[t-255];function $v(t,l){return t===0||l===0?0:ma[Of[t]+Of[l]]}function gO(t){let l=[1];for(let r=0;r<t;r++){const a=new Array(l.length+1).fill(0);for(let o=0;o<l.length;o++)a[o]^=l[o],a[o+1]^=$v(l[o],ma[r]);l=a}return l}function yO(t,l){const r=gO(l),a=new Array(l).fill(0);for(const o of t){const s=o^a[0];if(a.shift(),a.push(0),s!==0)for(let c=0;c<l;c++)a[c]^=$v(r[c+1],s)}return a}const ph={1:{align:[],ec:10,groups:[[1,16]]},2:{align:[6,18],ec:16,groups:[[1,28]]},3:{align:[6,22],ec:26,groups:[[1,44]]},4:{align:[6,26],ec:18,groups:[[2,32]]},5:{align:[6,30],ec:24,groups:[[2,43]]},6:{align:[6,34],ec:16,groups:[[4,27]]},7:{align:[6,22,38],ec:18,groups:[[4,31]]},8:{align:[6,24,42],ec:22,groups:[[2,38],[2,39]]},9:{align:[6,26,46],ec:22,groups:[[3,36],[2,37]]},10:{align:[6,28,50],ec:26,groups:[[4,43],[1,44]]}};function Fy(t){return ph[t].groups.reduce((l,[r,a])=>l+r*a,0)}function Gy(t){return t<=9?8:16}function ta(t,l,r){for(let a=r-1;a>=0;a--)t.push(l>>a&1)}function bO(t){const l=Array.from(new TextEncoder().encode(t));let r=0;for(let k=1;k<=10;k++)if(4+Gy(k)+8*l.length<=Fy(k)*8){r=k;break}if(r===0)throw new Error(`data too long for a v1–10 QR (${l.length} bytes)`);const a=Fy(r)*8,o=[];ta(o,4,4),ta(o,l.length,Gy(r));for(const k of l)ta(o,k,8);for(let k=0,C=Math.min(4,a-o.length);k<C;k++)o.push(0);for(;o.length%8!==0;)o.push(0);const s=[236,17];for(let k=0;o.length<a;k++)ta(o,s[k%2],8);const c=[];for(let k=0;k<o.length;k+=8){let C=0;for(let T=0;T<8;T++)C=C<<1|o[k+T];c.push(C)}const{ec:d,groups:p}=ph[r],m=[];let y=0;for(const[k,C]of p)for(let T=0;T<k;T++){const A=c.slice(y,y+C);y+=C,m.push({data:A,ec:yO(A,d)})}const g=[],v=Math.max(...m.map(k=>k.data.length));for(let k=0;k<v;k++)for(const C of m)k<C.data.length&&g.push(C.data[k]);for(let k=0;k<d;k++)for(const C of m)g.push(C.ec[k]);const x=[];for(const k of g)ta(x,k,8);return{version:r,bits:x}}function vO(t,l){const r=t*4+17,a=Array.from({length:r},()=>new Array(r).fill(!1)),o=Array.from({length:r},()=>new Array(r).fill(!1)),s=(g,v)=>{for(let x=-1;x<=7;x++)for(let k=-1;k<=7;k++){const C=g+x,T=v+k;if(C<0||C>=r||T<0||T>=r)continue;const A=x>=0&&x<=6&&(k===0||k===6)||k>=0&&k<=6&&(x===0||x===6),B=x>=2&&x<=4&&k>=2&&k<=4;a[C][T]=A||B,o[C][T]=!0}};s(0,0),s(0,r-7),s(r-7,0);for(let g=8;g<r-8;g++){const v=g%2===0;o[6][g]||(a[6][g]=v,o[6][g]=!0),o[g][6]||(a[g][6]=v,o[g][6]=!0)}const c=ph[t].align;for(let g=0;g<c.length;g++)for(let v=0;v<c.length;v++){if(g===0&&v===0||g===0&&v===c.length-1||g===c.length-1&&v===0)continue;const k=c[g],C=c[v];for(let T=-2;T<=2;T++)for(let A=-2;A<=2;A++)a[k+T][C+A]=Math.max(Math.abs(T),Math.abs(A))!==1,o[k+T][C+A]=!0}for(let g=0;g<=8;g++)g!==6&&(o[8][g]=!0,o[g][8]=!0);for(let g=0;g<8;g++)o[8][r-1-g]=!0,o[r-1-g][8]=!0;if(o[r-8][8]=!0,t>=7)for(let g=0;g<18;g++){const v=r-11+g%3,x=Math.floor(g/3);o[x][v]=!0,o[v][x]=!0}let d=0,p=!0;for(let g=r-1;g>0;g-=2){g===6&&g--;for(let v=0;v<r;v++){const x=p?r-1-v:v;for(let k=0;k<2;k++){const C=g-k;o[x][C]||(a[x][C]=d<l.length?l[d]===1:!1,d++)}}p=!p}t>=7&&kO(a,t,r);let m=null,y=Number.POSITIVE_INFINITY;for(let g=0;g<8;g++){const v=a.map(k=>k.slice());for(let k=0;k<r;k++)for(let C=0;C<r;C++)!o[k][C]&&xO(g,k,C)&&(v[k][C]=!v[k][C]);SO(v,g,r);const x=wO(v);x<y&&(y=x,m=v)}return m}function xO(t,l,r){switch(t){case 0:return(l+r)%2===0;case 1:return l%2===0;case 2:return r%3===0;case 3:return(l+r)%3===0;case 4:return(Math.floor(l/2)+Math.floor(r/3))%2===0;case 5:return l*r%2+l*r%3===0;case 6:return(l*r%2+l*r%3)%2===0;default:return((l+r)%2+l*r%3)%2===0}}function SO(t,l,r){const a=0|l;let o=a;for(let d=0;d<10;d++)o=o<<1^(o>>9&1?1335:0);const s=((a<<10|o&1023)^21522)&32767,c=d=>(s>>d&1)===1;for(let d=0;d<=5;d++)t[d][8]=c(d);t[7][8]=c(6),t[8][8]=c(7),t[8][7]=c(8);for(let d=9;d<15;d++)t[8][14-d]=c(d);for(let d=0;d<8;d++)t[8][r-1-d]=c(d);for(let d=8;d<15;d++)t[r-15+d][8]=c(d);t[r-8][8]=!0}function kO(t,l,r){let a=l;for(let s=0;s<12;s++)a=a<<1^(a>>11&1?7973:0);const o=l<<12|a&4095;for(let s=0;s<18;s++){const c=(o>>s&1)===1,d=r-11+s%3,p=Math.floor(s/3);t[p][d]=c,t[d][p]=c}}function wO(t){const l=t.length;let r=0;const a=p=>{let m=p(0),y=1;for(let g=1;g<l;g++)p(g)===m?y++:(y>=5&&(r+=y-2),m=p(g),y=1);y>=5&&(r+=y-2)};for(let p=0;p<l;p++)a(m=>t[p][m]);for(let p=0;p<l;p++)a(m=>t[m][p]);for(let p=0;p<l-1;p++)for(let m=0;m<l-1;m++){const y=t[p][m];y===t[p][m+1]&&y===t[p+1][m]&&y===t[p+1][m+1]&&(r+=3)}const o=[!0,!1,!0,!0,!0,!1,!0,!1,!1,!1,!1],s=[!1,!1,!1,!1,!0,!1,!0,!0,!0,!1,!0],c=(p,m,y)=>{for(let g=0;g<11;g++)if(p(m+g)!==y[g])return!1;return!0};for(let p=0;p<l;p++)for(let m=0;m<=l-11;m++)(c(y=>t[p][y],m,o)||c(y=>t[p][y],m,s))&&(r+=40);for(let p=0;p<l;p++)for(let m=0;m<=l-11;m++)(c(y=>t[y][p],m,o)||c(y=>t[y][p],m,s))&&(r+=40);let d=0;for(let p=0;p<l;p++)for(let m=0;m<l;m++)t[p][m]&&d++;return r+=Math.floor(Math.abs(d/(l*l)*100-50)/5)*10,r}function EO(t){const{version:l,bits:r}=bO(t);return vO(l,r)}function CO({text:t,size:l=220,className:r}){const a=EO(t),o=a.length,s=4,c=o+s*2;let d="";for(let p=0;p<o;p++)for(let m=0;m<o;m++)a[p][m]&&(d+=`M${m+s} ${p+s}h1v1h-1z`);return R.jsxs("svg",{width:l,height:l,viewBox:`0 0 ${c} ${c}`,shapeRendering:"crispEdges",className:r,role:"img","aria-label":"QR code",children:[R.jsx("title",{children:"QR code"}),R.jsx("rect",{width:c,height:c,fill:"#fff"}),R.jsx("path",{d,fill:"#000"})]})}function TO({version:t,onClose:l}){const r=At(p=>p.token),a=At(p=>p.setToken),[o,s]=N.useState(!1),c=r?`${location.origin}/#token=${r}`:location.origin,d=async()=>{try{await navigator.clipboard.writeText(c),s(!0),setTimeout(()=>s(!1),1500)}catch{}};return R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:l,"aria-hidden":!0}),R.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Connect a device",className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-w-sm flex-col items-center gap-4 rounded-t-3xl border border-border-soft bg-surface p-5 shadow-xl md:inset-0 md:m-auto md:h-fit md:rounded-3xl",children:[R.jsxs("div",{className:"flex w-full items-center justify-between",children:[R.jsx("h2",{className:"text-base font-semibold",children:"Connect a device"}),R.jsx("button",{type:"button",onClick:l,"aria-label":"Close",className:"flex size-8 items-center justify-center rounded-full text-muted active:bg-surface-2",children:R.jsx(If,{size:18})})]}),R.jsx("p",{className:"text-center text-sm text-muted",children:"Scan on another phone, or re-add this to your home screen. The link carries your access token."}),R.jsx("div",{className:"rounded-2xl bg-white p-3",children:R.jsx(CO,{text:c,size:216})}),R.jsxs("button",{type:"button",onClick:d,className:"flex w-full items-center justify-center gap-2 rounded-xl border border-border bg-surface-2 px-3 py-2.5 text-sm active:bg-surface",children:[o?R.jsx(lw,{size:16}):R.jsx(uw,{size:16}),o?"Copied":"Copy link"]}),R.jsxs("div",{className:"flex w-full items-center justify-between text-xs text-faint",children:[R.jsx("span",{className:"font-mono",children:t?`relay v${t}`:""}),R.jsx("button",{type:"button",onClick:()=>a(null),className:"text-muted underline-offset-2 hover:underline",children:"Disconnect"})]})]})]})}function AO(t,l){return[...t].sort((r,a)=>{const o=+!!a.pinned_at-+!!r.pinned_at;return o||(l==="name"?ha(r).localeCompare(ha(a)):l==="created"?a.created_at.localeCompare(r.created_at):a.updated_at.localeCompare(r.updated_at))})}function zO(t,l){if(l==="none")return[{key:"all",label:"",items:t}];const r=new Map;for(const a of t){const o=l==="status"?zE(a):a.repo_name??"",s=r.get(o);s?s.push(a):r.set(o,[a])}return l==="status"?[...Kg,...[...r.keys()].filter(o=>!Kg.includes(o))].filter(o=>r.has(o)).map(o=>({key:`status:${o}`,label:RE(o),status:o,items:r.get(o)??[]})):[...r.keys()].sort((a,o)=>a.localeCompare(o)).map(a=>({key:`repo:${a}`,label:a||"No repo",items:r.get(a)??[]}))}function RO({selectedId:t}){const l=Qf(),r=At(_=>_.setSidebarOpen),a=At(_=>_.view),o=At(_=>_.toggleGroup),[s,c]=N.useState(!1),[d,p]=N.useState(!1),{data:m,isLoading:y,isError:g,error:v}=Ab(),x=m?.workspaces??[],k=[...new Set(x.map(_=>_.repo_name).filter(_=>!!_))].sort();a.repo&&!k.includes(a.repo)&&k.push(a.repo);const C=a.repo?x.filter(_=>_.repo_name===a.repo):x,T=zO(AO(C,a.sortBy),a.groupBy),A=_=>{l(`/w/${_}`),r(!1)},B=x.length?a.repo?`${C.length} of ${x.length} · ${a.repo}`:`${x.length} active`:void 0;return R.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[R.jsxs("div",{className:"relative",children:[R.jsx(bf,{title:"Workspaces",subtitle:B,right:R.jsxs(R.Fragment,{children:[R.jsxs("button",{type:"button",onClick:()=>c(_=>!_),"aria-label":"View options",className:"relative flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:[R.jsx(vw,{size:18}),a.repo?R.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent"}):null]}),R.jsx("button",{type:"button",onClick:()=>p(!0),"aria-label":"Connect a device",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:R.jsx(yw,{size:18})}),R.jsx("button",{type:"button",onClick:()=>r(!1),"aria-label":"Close workspaces",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:R.jsx(If,{size:20})})]})}),s?R.jsx(MO,{repos:k,view:a,onClose:()=>c(!1)}):null]}),R.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:y&&!m?R.jsx(co,{label:"Loading workspaces…"}):g?R.jsxs(Jn,{children:[v?.message,R.jsx("br",{}),R.jsx("br",{}),"Check the relay is running and the token is correct."]}):x.length===0?R.jsx(Jn,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):C.length===0?R.jsxs(Jn,{children:["No workspaces in ",a.repo,"."]}):T.map(_=>{const ee=!!_.label&&a.collapsed.includes(_.key);return R.jsxs("section",{children:[_.label?R.jsxs("button",{type:"button",onClick:()=>o(_.key),className:"flex w-full items-center gap-2 px-1 py-2 text-sm font-semibold",children:[R.jsx(OO,{status:_.status}),R.jsx("span",{className:"truncate",children:_.label}),ee?R.jsx("span",{className:"font-normal text-muted text-xs",children:_.items.length}):null,R.jsx(rw,{size:14,className:fn("ml-auto shrink-0 text-faint transition-transform",ee&&"-rotate-90")})]}):null,ee?null:R.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:_.items.map(W=>R.jsx("li",{className:"fade-in",children:R.jsx("button",{type:"button",className:fn("card w-full",W.id===t&&"border-accent/50 bg-surface-2"),onClick:()=>A(W.id),children:R.jsx(DO,{w:W})})},W.id))})]},_.key)})}),d?R.jsx(TO,{version:m?.version,onClose:()=>p(!1)}):null]})}function OO({status:t}){if(!t)return null;const r={done:"var(--color-done)","in-review":"var(--color-idle)","in-progress":"var(--color-working)"}[t];return r?R.jsx("span",{className:"dot size-2",style:{background:r}}):R.jsx("span",{className:"dot size-2 border border-faint bg-transparent"})}function MO({repos:t,view:l,onClose:r}){const a=At(o=>o.setView);return R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"fixed inset-0 z-20",onClick:r,"aria-hidden":!0}),R.jsxs("div",{className:"fade-in absolute right-2 top-full z-30 mt-1 flex w-64 flex-col gap-2.5 rounded-2xl border border-border bg-surface p-3 shadow-xl",children:[R.jsx(af,{id:"view-group",label:"Group by",children:R.jsx(uf,{id:"view-group",value:l.groupBy,onChange:o=>a({groupBy:o}),options:[["status","Status"],["repo","Repo"],["none","None"]]})}),R.jsx(af,{id:"view-repo",label:"Repo",children:R.jsx(uf,{id:"view-repo",value:l.repo??"all",onChange:o=>a({repo:o==="all"?null:o}),options:[["all","All repos"],...t.map(o=>[o,o])]})}),R.jsx(af,{id:"view-sort",label:"Sort by",children:R.jsx(uf,{id:"view-sort",value:l.sortBy,onChange:o=>a({sortBy:o}),options:[["updated","Updated"],["created","Created"],["name","Name"]]})})]})]})}function af({id:t,label:l,children:r}){return R.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm text-muted",children:[R.jsx("label",{htmlFor:t,children:l}),r]})}function uf({id:t,value:l,options:r,onChange:a}){return R.jsx("select",{id:t,value:l,onChange:o=>a(o.target.value),className:"max-w-36 truncate rounded-lg border border-border bg-surface-2 px-2 py-1.5 text-sm text-text [color-scheme:dark]",children:r.map(([o,s])=>R.jsx("option",{value:o,children:s},o))})}function _O({w:t}){const[l,r]=N.useState(!1),a=t.hasRepoIcon&&!!t.repo_name&&!l;return R.jsx("div",{className:"grid size-8 place-items-center overflow-hidden rounded-lg bg-surface-2 text-xs font-semibold text-muted",children:a?R.jsx("img",{src:ti.repoIconUrl(t.repo_name),alt:"",loading:"lazy",className:"size-full object-contain",onError:()=>r(!0)}):TE(t)})}function DO({w:t}){const l=Gb(t),r=Vb(t.model),a=t.context_used_percent;return R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:"relative shrink-0 self-start",children:[R.jsx(_O,{w:t}),R.jsx(_E,{status:l,className:"absolute -right-0.5 -bottom-0.5 ring-2 ring-surface"})]}),R.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[R.jsxs("div",{className:"flex items-center gap-2",children:[R.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:ha(t)}),t.pinned_at?R.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,t.unread?R.jsx(Yb,{children:t.unread}):null,R.jsx("span",{className:"shrink-0 text-xs capitalize text-muted",children:AE(t)})]}),R.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[t.repo_name?R.jsx("span",{className:"shrink-0 font-mono text-faint",children:t.repo_name}):null,t.branch?R.jsx(Jg,{className:"min-w-0 flex-1 truncate",children:t.branch}):null]}),R.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[r?R.jsx(Jg,{children:r}):null,typeof a=="number"&&a>0?R.jsxs("span",{className:"shrink-0 text-faint",children:[Math.round(a),"% ctx"]}):null,R.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:OE(t.updated_at)})]})]})]})}function NO(){return At(l=>l.token)?R.jsxs(mk,{children:[R.jsxs(na,{element:R.jsx(jO,{}),children:[R.jsx(na,{index:!0,element:R.jsx(LO,{})}),R.jsx(na,{path:"/w/:workspaceId",element:R.jsx(hO,{})})]}),R.jsx(na,{path:"*",element:R.jsx(hk,{to:"/",replace:!0})})]}):R.jsx(mO,{})}function jO(){const t=ZS("/w/:workspaceId"),l=At(a=>a.sidebarOpen),r=At(a=>a.setSidebarOpen);return R.jsxs("div",{className:"flex h-full overflow-hidden",children:[l?R.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>r(!1),"aria-hidden":!0}):null,R.jsx("aside",{className:fn("fixed inset-y-0 left-0 z-50 flex w-[85%] max-w-80 flex-col border-r border-border-soft bg-bg transition-transform duration-200 ease-out","md:static md:z-auto md:w-72 md:max-w-none md:shrink-0 md:translate-x-0 md:transition-none lg:w-80",l?"translate-x-0":"-translate-x-full"),children:R.jsx(RO,{selectedId:t?.params.workspaceId})}),R.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:R.jsx(dk,{})})]})}function LO(){const t=At(l=>l.setSidebarOpen);return R.jsxs("div",{className:"grid h-full place-items-center",children:[R.jsx("button",{type:"button",onClick:()=>t(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),R.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}vx({immediate:!0});navigator.storage?.persist&&navigator.storage.persist().catch(()=>{});const UO=new Yx({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),Wv=document.getElementById("root");if(!Wv)throw new Error("#root missing");fS.createRoot(Wv).render(R.jsx(N.StrictMode,{children:R.jsx(Ix,{client:UO,children:R.jsx(Hk,{children:R.jsx(NO,{})})})}));