@messagevisor/catalog 0.3.0 → 0.5.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,73 +0,0 @@
1
- (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function Qg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var xc={exports:{}},qi={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Rp;function Ov(){if(Rp)return qi;Rp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(u,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:u,key:d,ref:o!==void 0?o:null,props:c}}return qi.Fragment=a,qi.jsx=r,qi.jsxs=r,qi}var _p;function Mv(){return _p||(_p=1,xc.exports=Ov()),xc.exports}var h=Mv(),bc={exports:{}},ye={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Op;function Dv(){if(Op)return ye;Op=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,U={};function k(T,V,E){this.props=T,this.context=V,this.refs=U,this.updater=E||A}k.prototype.isReactComponent={},k.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,V,"setState")},k.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function X(){}X.prototype=k.prototype;function O(T,V,E){this.props=T,this.context=V,this.refs=U,this.updater=E||A}var I=O.prototype=new X;I.constructor=O,R(I,k.prototype),I.isPureReactComponent=!0;var te=Array.isArray;function q(){}var F={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function ce(T,V,E){var ee=E.ref;return{$$typeof:n,type:T,key:V,ref:ee!==void 0?ee:null,props:E}}function ge(T,V){return ce(T.type,V,T.props)}function ne(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function W(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(E){return V[E]})}var Se=/\/+/g;function ae(T,V){return typeof T=="object"&&T!==null&&T.key!=null?W(""+T.key):V.toString(36)}function $(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(q,q):(T.status="pending",T.then(function(V){T.status==="pending"&&(T.status="fulfilled",T.value=V)},function(V){T.status==="pending"&&(T.status="rejected",T.reason=V)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function M(T,V,E,ee,de){var ue=typeof T;(ue==="undefined"||ue==="boolean")&&(T=null);var Ne=!1;if(T===null)Ne=!0;else switch(ue){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(T.$$typeof){case n:case a:Ne=!0;break;case x:return Ne=T._init,M(Ne(T._payload),V,E,ee,de)}}if(Ne)return de=de(T),Ne=ee===""?"."+ae(T,0):ee,te(de)?(E="",Ne!=null&&(E=Ne.replace(Se,"$&/")+"/"),M(de,V,E,"",function(Ft){return Ft})):de!=null&&(ne(de)&&(de=ge(de,E+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(Se,"$&/")+"/")+Ne)),V.push(de)),1;Ne=0;var Ze=ee===""?".":ee+":";if(te(T))for(var Le=0;Le<T.length;Le++)ee=T[Le],ue=Ze+ae(ee,Le),Ne+=M(ee,V,E,ue,de);else if(Le=S(T),typeof Le=="function")for(T=Le.call(T),Le=0;!(ee=T.next()).done;)ee=ee.value,ue=Ze+ae(ee,Le++),Ne+=M(ee,V,E,ue,de);else if(ue==="object"){if(typeof T.then=="function")return M($(T),V,E,ee,de);throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function Z(T,V,E){if(T==null)return T;var ee=[],de=0;return M(T,ee,"","",function(ue){return V.call(E,ue,de++)}),ee}function ie(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(E){(T._status===0||T._status===-1)&&(T._status=1,T._result=E)},function(E){(T._status===0||T._status===-1)&&(T._status=2,T._result=E)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var pe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},j={map:Z,forEach:function(T,V,E){Z(T,function(){V.apply(this,arguments)},E)},count:function(T){var V=0;return Z(T,function(){V++}),V},toArray:function(T){return Z(T,function(V){return V})||[]},only:function(T){if(!ne(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ye.Activity=b,ye.Children=j,ye.Component=k,ye.Fragment=r,ye.Profiler=o,ye.PureComponent=O,ye.StrictMode=u,ye.Suspense=g,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ye.__COMPILER_RUNTIME={__proto__:null,c:function(T){return F.H.useMemoCache(T)}},ye.cache=function(T){return function(){return T.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(T,V,E){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ee=R({},T.props),de=T.key;if(V!=null)for(ue in V.key!==void 0&&(de=""+V.key),V)!oe.call(V,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&V.ref===void 0||(ee[ue]=V[ue]);var ue=arguments.length-2;if(ue===1)ee.children=E;else if(1<ue){for(var Ne=Array(ue),Ze=0;Ze<ue;Ze++)Ne[Ze]=arguments[Ze+2];ee.children=Ne}return ce(T.type,de,ee)},ye.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},ye.createElement=function(T,V,E){var ee,de={},ue=null;if(V!=null)for(ee in V.key!==void 0&&(ue=""+V.key),V)oe.call(V,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(de[ee]=V[ee]);var Ne=arguments.length-2;if(Ne===1)de.children=E;else if(1<Ne){for(var Ze=Array(Ne),Le=0;Le<Ne;Le++)Ze[Le]=arguments[Le+2];de.children=Ze}if(T&&T.defaultProps)for(ee in Ne=T.defaultProps,Ne)de[ee]===void 0&&(de[ee]=Ne[ee]);return ce(T,ue,de)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(T){return{$$typeof:m,render:T}},ye.isValidElement=ne,ye.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:ie}},ye.memo=function(T,V){return{$$typeof:p,type:T,compare:V===void 0?null:V}},ye.startTransition=function(T){var V=F.T,E={};F.T=E;try{var ee=T(),de=F.S;de!==null&&de(E,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(q,pe)}catch(ue){pe(ue)}finally{V!==null&&E.types!==null&&(V.types=E.types),F.T=V}},ye.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ye.use=function(T){return F.H.use(T)},ye.useActionState=function(T,V,E){return F.H.useActionState(T,V,E)},ye.useCallback=function(T,V){return F.H.useCallback(T,V)},ye.useContext=function(T){return F.H.useContext(T)},ye.useDebugValue=function(){},ye.useDeferredValue=function(T,V){return F.H.useDeferredValue(T,V)},ye.useEffect=function(T,V){return F.H.useEffect(T,V)},ye.useEffectEvent=function(T){return F.H.useEffectEvent(T)},ye.useId=function(){return F.H.useId()},ye.useImperativeHandle=function(T,V,E){return F.H.useImperativeHandle(T,V,E)},ye.useInsertionEffect=function(T,V){return F.H.useInsertionEffect(T,V)},ye.useLayoutEffect=function(T,V){return F.H.useLayoutEffect(T,V)},ye.useMemo=function(T,V){return F.H.useMemo(T,V)},ye.useOptimistic=function(T,V){return F.H.useOptimistic(T,V)},ye.useReducer=function(T,V,E){return F.H.useReducer(T,V,E)},ye.useRef=function(T){return F.H.useRef(T)},ye.useState=function(T){return F.H.useState(T)},ye.useSyncExternalStore=function(T,V,E){return F.H.useSyncExternalStore(T,V,E)},ye.useTransition=function(){return F.H.useTransition()},ye.version="19.2.6",ye}var Mp;function uf(){return Mp||(Mp=1,bc.exports=Dv()),bc.exports}var z=uf(),vc={exports:{}},Yi={},Sc={exports:{}},wc={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Dp;function Lv(){return Dp||(Dp=1,(function(n){function a(M,Z){var ie=M.length;M.push(Z);e:for(;0<ie;){var pe=ie-1>>>1,j=M[pe];if(0<o(j,Z))M[pe]=Z,M[ie]=j,ie=pe;else break e}}function r(M){return M.length===0?null:M[0]}function u(M){if(M.length===0)return null;var Z=M[0],ie=M.pop();if(ie!==Z){M[0]=ie;e:for(var pe=0,j=M.length,T=j>>>1;pe<T;){var V=2*(pe+1)-1,E=M[V],ee=V+1,de=M[ee];if(0>o(E,ie))ee<j&&0>o(de,E)?(M[pe]=de,M[ee]=ie,pe=ee):(M[pe]=E,M[V]=ie,pe=V);else if(ee<j&&0>o(de,ie))M[pe]=de,M[ee]=ie,pe=ee;else break e}}return Z}function o(M,Z){var ie=M.sortIndex-Z.sortIndex;return ie!==0?ie:M.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],p=[],x=1,b=null,w=3,S=!1,A=!1,R=!1,U=!1,k=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function I(M){for(var Z=r(p);Z!==null;){if(Z.callback===null)u(p);else if(Z.startTime<=M)u(p),Z.sortIndex=Z.expirationTime,a(g,Z);else break;Z=r(p)}}function te(M){if(R=!1,I(M),!A)if(r(g)!==null)A=!0,q||(q=!0,W());else{var Z=r(p);Z!==null&&$(te,Z.startTime-M)}}var q=!1,F=-1,oe=5,ce=-1;function ge(){return U?!0:!(n.unstable_now()-ce<oe)}function ne(){if(U=!1,q){var M=n.unstable_now();ce=M;var Z=!0;try{e:{A=!1,R&&(R=!1,X(F),F=-1),S=!0;var ie=w;try{t:{for(I(M),b=r(g);b!==null&&!(b.expirationTime>M&&ge());){var pe=b.callback;if(typeof pe=="function"){b.callback=null,w=b.priorityLevel;var j=pe(b.expirationTime<=M);if(M=n.unstable_now(),typeof j=="function"){b.callback=j,I(M),Z=!0;break t}b===r(g)&&u(g),I(M)}else u(g);b=r(g)}if(b!==null)Z=!0;else{var T=r(p);T!==null&&$(te,T.startTime-M),Z=!1}}break e}finally{b=null,w=ie,S=!1}Z=void 0}}finally{Z?W():q=!1}}}var W;if(typeof O=="function")W=function(){O(ne)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ae=Se.port2;Se.port1.onmessage=ne,W=function(){ae.postMessage(null)}}else W=function(){k(ne,0)};function $(M,Z){F=k(function(){M(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(M){switch(w){case 1:case 2:case 3:var Z=3;break;default:Z=w}var ie=w;w=Z;try{return M()}finally{w=ie}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(M,Z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ie=w;w=M;try{return Z()}finally{w=ie}},n.unstable_scheduleCallback=function(M,Z,ie){var pe=n.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?pe+ie:pe):ie=pe,M){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=ie+j,M={id:x++,callback:Z,priorityLevel:M,startTime:ie,expirationTime:j,sortIndex:-1},ie>pe?(M.sortIndex=ie,a(p,M),r(g)===null&&M===r(p)&&(R?(X(F),F=-1):R=!0,$(te,ie-pe))):(M.sortIndex=j,a(g,M),A||S||(A=!0,q||(q=!0,W()))),M},n.unstable_shouldYield=ge,n.unstable_wrapCallback=function(M){var Z=w;return function(){var ie=w;w=Z;try{return M.apply(this,arguments)}finally{w=ie}}}})(wc)),wc}var Lp;function Bv(){return Lp||(Lp=1,Sc.exports=Lv()),Sc.exports}var Ec={exports:{}},bt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Bp;function Uv(){if(Bp)return bt;Bp=1;var n=uf();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(a(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 c(g,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:g,containerInfo:p,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,bt.createPortal=function(g,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return c(g,p,null,x)},bt.flushSync=function(g){var p=d.T,x=u.p;try{if(d.T=null,u.p=2,g)return g()}finally{d.T=p,u.p=x,u.d.f()}},bt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(g,p))},bt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},bt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var x=p.as,b=m(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?u.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:S}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:w,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},bt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);u.d.M(g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(g)},bt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=m(x,p.crossOrigin);u.d.L(g,x,{crossOrigin:b,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})}},bt.preloadModule=function(g,p){if(typeof g=="string")if(p){var x=m(p.as,p.crossOrigin);u.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(g)},bt.requestFormReset=function(g){u.d.r(g)},bt.unstable_batchedUpdates=function(g,p){return g(p)},bt.useFormState=function(g,p,x){return d.H.useFormState(g,p,x)},bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},bt.version="19.2.6",bt}var Up;function Hv(){if(Up)return Ec.exports;Up=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Ec.exports=Uv(),Ec.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Hp;function qv(){if(Hp)return Yi;Hp=1;var n=Bv(),a=uf(),r=Hv();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" 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 c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(c(e)!==e)throw Error(u(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,i=t;;){var s=l.return;if(s===null)break;var f=s.alternate;if(f===null){if(i=s.return,i!==null){l=i;continue}break}if(s.child===f.child){for(f=s.child;f;){if(f===l)return g(s),e;if(f===i)return g(s),t;f=f.sibling}throw Error(u(188))}if(l.return!==i.return)l=s,i=f;else{for(var y=!1,v=s.child;v;){if(v===l){y=!0,l=s,i=f;break}if(v===i){y=!0,i=s,l=f;break}v=v.sibling}if(!y){for(v=f.child;v;){if(v===l){y=!0,l=f,i=s;break}if(v===i){y=!0,i=f,l=s;break}v=v.sibling}if(!y)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),O=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ge=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case k:return"Profiler";case U:return"StrictMode";case te:return"Suspense";case q:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case O:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case oe:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var $=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},pe=[],j=-1;function T(e){return{current:e}}function V(e){0>j||(e.current=pe[j],pe[j]=null,j--)}function E(e,t){j++,pe[j]=e.current,e.current=t}var ee=T(null),de=T(null),ue=T(null),Ne=T(null);function Ze(e,t){switch(E(ue,t),E(de,e),E(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ep(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ep(t),e=tp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(ee),E(ee,e)}function Le(){V(ee),V(de),V(ue)}function Ft(e){e.memoizedState!==null&&E(Ne,e);var t=ee.current,l=tp(t,e.type);t!==l&&(E(de,e),E(ee,l))}function En(e){de.current===e&&(V(ee),V(de)),Ne.current===e&&(V(Ne),Li._currentValue=ie)}var Za,ur;function jn(e){if(Za===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Za=t&&t[1]||"",ur=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Za+e+ur}var Gl=!1;function Xl(e,t){if(!e||Gl)return"";Gl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(H){var B=H}Reflect.construct(e,[],G)}else{try{G.call()}catch(H){B=H}e.call(G.prototype)}}else{try{throw Error()}catch(H){B=H}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(H){if(H&&B&&typeof H.stack=="string")return[H.stack,B.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),y=f[0],v=f[1];if(y&&v){var N=y.split(`
44
- `),L=v.split(`
45
- `);for(s=i=0;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;for(;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;if(i===N.length||s===L.length)for(i=N.length-1,s=L.length-1;1<=i&&0<=s&&N[i]!==L[s];)s--;for(;1<=i&&0<=s;i--,s--)if(N[i]!==L[s]){if(i!==1||s!==1)do if(i--,s--,0>s||N[i]!==L[s]){var Y=`
46
- `+N[i].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=i&&0<=s);break}}}finally{Gl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?jn(l):""}function sr(e,t){switch(e.tag){case 26:case 27:case 5:return jn(e.type);case 16:return jn("Lazy");case 13:return e.child!==t&&t!==null?jn("Suspense Fallback"):jn("Suspense");case 19:return jn("SuspenseList");case 0:case 15:return Xl(e.type,!1);case 11:return Xl(e.type.render,!1);case 1:return Xl(e.type,!0);case 31:return jn("Activity");default:return""}}function or(e){try{var t="",l=null;do t+=sr(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
47
- Error generating stack: `+i.message+`
48
- `+i.stack}}var Zl=Object.prototype.hasOwnProperty,$l=n.unstable_scheduleCallback,$a=n.unstable_cancelCallback,ns=n.unstable_shouldYield,ls=n.unstable_requestPaint,St=n.unstable_now,as=n.unstable_getCurrentPriorityLevel,K=n.unstable_ImmediatePriority,P=n.unstable_UserBlockingPriority,he=n.unstable_NormalPriority,we=n.unstable_LowPriority,Oe=n.unstable_IdlePriority,Lt=n.log,Nn=n.unstable_setDisableYieldValue,wt=null,ot=null;function Nt(e){if(typeof Lt=="function"&&Nn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(wt,e)}catch{}}var qe=Math.clz32?Math.clz32:bx,Zn=Math.log,cn=Math.LN2;function bx(e){return e>>>=0,e===0?32:31-(Zn(e)/cn|0)|0}var cr=256,fr=262144,dr=4194304;function wl(e){var t=e&42;if(t!==0)return t;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 hr(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var s=0,f=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~f,i!==0?s=wl(i):(y&=v,y!==0?s=wl(y):l||(l=v&~e,l!==0&&(s=wl(l))))):(v=i&~f,v!==0?s=wl(v):y!==0?s=wl(y):l||(l=i&~e,l!==0&&(s=wl(l)))),s===0?0:t!==0&&t!==s&&(t&f)===0&&(f=s&-s,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:s}function Fa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function vx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Df(){var e=dr;return dr<<=1,(dr&62914560)===0&&(dr=4194304),e}function is(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Sx(e,t,l,i,s,f){var y=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var v=e.entanglements,N=e.expirationTimes,L=e.hiddenUpdates;for(l=y&~l;0<l;){var Y=31-qe(l),G=1<<Y;v[Y]=0,N[Y]=-1;var B=L[Y];if(B!==null)for(L[Y]=null,Y=0;Y<B.length;Y++){var H=B[Y];H!==null&&(H.lane&=-536870913)}l&=~G}i!==0&&Lf(e,i,0),f!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=f&~(y&~t))}function Lf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-qe(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Bf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-qe(l),s=1<<i;s&t|e[i]&t&&(e[i]|=t),l&=~s}}function Uf(e,t){var l=t&-t;return l=(l&42)!==0?1:rs(l),(l&(e.suspendedLanes|t))!==0?0:l}function rs(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 us(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Hf(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:jp(e.type))}function qf(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var $n=Math.random().toString(36).slice(2),ht="__reactFiber$"+$n,Tt="__reactProps$"+$n,Fl="__reactContainer$"+$n,ss="__reactEvents$"+$n,wx="__reactListeners$"+$n,Ex="__reactHandles$"+$n,Yf="__reactResources$"+$n,Ia="__reactMarker$"+$n;function os(e){delete e[ht],delete e[Tt],delete e[ss],delete e[wx],delete e[Ex]}function Jl(e){var t=e[ht];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Fl]||l[ht]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=sp(e);e!==null;){if(l=e[ht])return l;e=sp(e)}return t}e=l,l=e.parentNode}return null}function Il(e){if(e=e[ht]||e[Fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Pl(e){var t=e[Yf];return t||(t=e[Yf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Ia]=!0}var Vf=new Set,Kf={};function El(e,t){Wl(e,t),Wl(e+"Capture",t)}function Wl(e,t){for(Kf[e]=t,e=0;e<t.length;e++)Vf.add(t[e])}var jx=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]*$"),Qf={},Gf={};function Nx(e){return Zl.call(Gf,e)?!0:Zl.call(Qf,e)?!1:jx.test(e)?Gf[e]=!0:(Qf[e]=!0,!1)}function mr(e,t,l){if(Nx(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function pr(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Tn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function Jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tx(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,f=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(y){l=""+y,f.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cs(e){if(!e._valueTracker){var t=Xf(e)?"checked":"value";e._valueTracker=Tx(e,t,""+e[t])}}function Zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=Xf(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function gr(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 Cx=/[\n"\\]/g;function It(e){return e.replace(Cx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fs(e,t,l,i,s,f,y,v){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jt(t)):e.value!==""+Jt(t)&&(e.value=""+Jt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?ds(e,y,Jt(t)):l!=null?ds(e,y,Jt(l)):i!=null&&e.removeAttribute("value"),s==null&&f!=null&&(e.defaultChecked=!!f),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Jt(v):e.removeAttribute("name")}function $f(e,t,l,i,s,f,y,v){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){cs(e);return}l=l!=null?""+Jt(l):"",t=t!=null?""+Jt(t):l,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),cs(e)}function ds(e,t,l){t==="number"&&gr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ea(e,t,l,i){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&i&&(e[l].defaultSelected=!0)}else{for(l=""+Jt(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ff(e,t,l){if(t!=null&&(t=""+Jt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Jt(l):""}function Jf(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if($(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=Jt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),cs(e)}function ta(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Ax=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 If(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||Ax.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Pf(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&l[s]!==i&&If(e,s,i)}else for(var f in t)t.hasOwnProperty(f)&&If(e,f,t[f])}function hs(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 zx=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"]]),kx=/^[\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 yr(e){return kx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Cn(){}var ms=null;function ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,la=null;function Wf(e){var t=Il(e);if(t&&(e=t.stateNode)){var l=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(fs(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var s=i[Tt]||null;if(!s)throw Error(u(90));fs(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&Zf(i)}break e;case"textarea":Ff(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ea(e,!!l.multiple,t,!1)}}}var gs=!1;function ed(e,t,l){if(gs)return e(t,l);gs=!0;try{var i=e(t);return i}finally{if(gs=!1,(na!==null||la!==null)&&(au(),na&&(t=na,e=la,la=na=null,Wf(t),e)))for(t=0;t<e.length;t++)Wf(e[t])}}function Wa(e,t){var l=e.stateNode;if(l===null)return null;var i=l[Tt]||null;if(i===null)return null;l=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ys=!1;if(An)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){ys=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{ys=!1}var Fn=null,xs=null,xr=null;function td(){if(xr)return xr;var e,t=xs,l=t.length,i,s="value"in Fn?Fn.value:Fn.textContent,f=s.length;for(e=0;e<l&&t[e]===s[e];e++);var y=l-e;for(i=1;i<=y&&t[l-i]===s[f-i];i++);return xr=s.slice(e,1<i?1-i:void 0)}function br(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vr(){return!0}function nd(){return!1}function Ct(e){function t(l,i,s,f,y){this._reactName=l,this._targetInst=s,this.type=i,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?vr:nd,this.isPropagationStopped=nd,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}var jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sr=Ct(jl),ti=b({},jl,{view:0,detail:0}),Rx=Ct(ti),bs,vs,ni,wr=b({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ws,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!==ni&&(ni&&e.type==="mousemove"?(bs=e.screenX-ni.screenX,vs=e.screenY-ni.screenY):vs=bs=0,ni=e),bs)},movementY:function(e){return"movementY"in e?e.movementY:vs}}),ld=Ct(wr),_x=b({},wr,{dataTransfer:0}),Ox=Ct(_x),Mx=b({},ti,{relatedTarget:0}),Ss=Ct(Mx),Dx=b({},jl,{animationName:0,elapsedTime:0,pseudoElement:0}),Lx=Ct(Dx),Bx=b({},jl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ux=Ct(Bx),Hx=b({},jl,{data:0}),ad=Ct(Hx),qx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yx={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"},Vx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vx[e])?!!t[e]:!1}function ws(){return Kx}var Qx=b({},ti,{key:function(e){if(e.key){var t=qx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ws,charCode:function(e){return e.type==="keypress"?br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gx=Ct(Qx),Xx=b({},wr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),id=Ct(Xx),Zx=b({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ws}),$x=Ct(Zx),Fx=b({},jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jx=Ct(Fx),Ix=b({},wr,{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}),Px=Ct(Ix),Wx=b({},jl,{newState:0,oldState:0}),eb=Ct(Wx),tb=[9,13,27,32],Es=An&&"CompositionEvent"in window,li=null;An&&"documentMode"in document&&(li=document.documentMode);var nb=An&&"TextEvent"in window&&!li,rd=An&&(!Es||li&&8<li&&11>=li),ud=" ",sd=!1;function od(e,t){switch(e){case"keyup":return tb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function lb(e,t){switch(e){case"compositionend":return cd(t);case"keypress":return t.which!==32?null:(sd=!0,ud);case"textInput":return e=t.data,e===ud&&sd?null:e;default:return null}}function ab(e,t){if(aa)return e==="compositionend"||!Es&&od(e,t)?(e=td(),xr=xs=Fn=null,aa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rd&&t.locale!=="ko"?null:t.data;default:return null}}var ib={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 fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ib[e.type]:t==="textarea"}function dd(e,t,l,i){na?la?la.push(i):la=[i]:na=i,t=fu(t,"onChange"),0<t.length&&(l=new Sr("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var ai=null,ii=null;function rb(e){$m(e,0)}function Er(e){var t=Pa(e);if(Zf(t))return e}function hd(e,t){if(e==="change")return t}var md=!1;if(An){var js;if(An){var Ns="oninput"in document;if(!Ns){var pd=document.createElement("div");pd.setAttribute("oninput","return;"),Ns=typeof pd.oninput=="function"}js=Ns}else js=!1;md=js&&(!document.documentMode||9<document.documentMode)}function gd(){ai&&(ai.detachEvent("onpropertychange",yd),ii=ai=null)}function yd(e){if(e.propertyName==="value"&&Er(ii)){var t=[];dd(t,ii,e,ps(e)),ed(rb,t)}}function ub(e,t,l){e==="focusin"?(gd(),ai=t,ii=l,ai.attachEvent("onpropertychange",yd)):e==="focusout"&&gd()}function sb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Er(ii)}function ob(e,t){if(e==="click")return Er(t)}function cb(e,t){if(e==="input"||e==="change")return Er(t)}function fb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:fb;function ri(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var s=l[i];if(!Zl.call(t,s)||!Bt(e[s],t[s]))return!1}return!0}function xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bd(e,t){var l=xd(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=xd(l)}}function vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gr(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=gr(e.document)}return t}function Ts(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var db=An&&"documentMode"in document&&11>=document.documentMode,ia=null,Cs=null,ui=null,As=!1;function wd(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;As||ia==null||ia!==gr(i)||(i=ia,"selectionStart"in i&&Ts(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ui&&ri(ui,i)||(ui=i,i=fu(Cs,"onSelect"),0<i.length&&(t=new Sr("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=ia)))}function Nl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ra={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionrun:Nl("Transition","TransitionRun"),transitionstart:Nl("Transition","TransitionStart"),transitioncancel:Nl("Transition","TransitionCancel"),transitionend:Nl("Transition","TransitionEnd")},zs={},Ed={};An&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function Tl(e){if(zs[e])return zs[e];if(!ra[e])return e;var t=ra[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ed)return zs[e]=t[l];return e}var jd=Tl("animationend"),Nd=Tl("animationiteration"),Td=Tl("animationstart"),hb=Tl("transitionrun"),mb=Tl("transitionstart"),pb=Tl("transitioncancel"),Cd=Tl("transitionend"),Ad=new Map,ks="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(" ");ks.push("scrollEnd");function fn(e,t){Ad.set(e,t),El(t,[e])}var jr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=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(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Pt=[],ua=0,Rs=0;function Nr(){for(var e=ua,t=Rs=ua=0;t<e;){var l=Pt[t];Pt[t++]=null;var i=Pt[t];Pt[t++]=null;var s=Pt[t];Pt[t++]=null;var f=Pt[t];if(Pt[t++]=null,i!==null&&s!==null){var y=i.pending;y===null?s.next=s:(s.next=y.next,y.next=s),i.pending=s}f!==0&&zd(l,s,f)}}function Tr(e,t,l,i){Pt[ua++]=e,Pt[ua++]=t,Pt[ua++]=l,Pt[ua++]=i,Rs|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function _s(e,t,l,i){return Tr(e,t,l,i),Cr(e)}function Cl(e,t){return Tr(e,null,null,t),Cr(e)}function zd(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var s=!1,f=e.return;f!==null;)f.childLanes|=l,i=f.alternate,i!==null&&(i.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(s=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,s&&t!==null&&(s=31-qe(l),e=f.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=l|536870912),f):null}function Cr(e){if(50<zi)throw zi=0,Vo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var sa={};function gb(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,l,i){return new gb(e,t,l,i)}function Os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zn(e,t){var l=e.alternate;return l===null?(l=Ut(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function kd(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ar(e,t,l,i,s,f){var y=0;if(i=e,typeof e=="function")Os(e)&&(y=1);else if(typeof e=="string")y=Sv(e,l,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Ut(31,l,t,s),e.elementType=ce,e.lanes=f,e;case R:return Al(l.children,s,f,t);case U:y=8,s|=24;break;case k:return e=Ut(12,l,t,s|2),e.elementType=k,e.lanes=f,e;case te:return e=Ut(13,l,t,s),e.elementType=te,e.lanes=f,e;case q:return e=Ut(19,l,t,s),e.elementType=q,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:y=10;break e;case X:y=9;break e;case I:y=11;break e;case F:y=14;break e;case oe:y=16,i=null;break e}y=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Ut(y,l,t,s),t.elementType=e,t.type=i,t.lanes=f,t}function Al(e,t,l,i){return e=Ut(7,e,i,t),e.lanes=l,e}function Ms(e,t,l){return e=Ut(6,e,null,t),e.lanes=l,e}function Rd(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function Ds(e,t,l){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _d=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var l=_d.get(e);return l!==void 0?l:(t={value:e,source:t,stack:or(t)},_d.set(e,t),t)}return{value:e,source:t,stack:or(t)}}var oa=[],ca=0,zr=null,si=0,en=[],tn=0,Jn=null,gn=1,yn="";function kn(e,t){oa[ca++]=si,oa[ca++]=zr,zr=e,si=t}function Od(e,t,l){en[tn++]=gn,en[tn++]=yn,en[tn++]=Jn,Jn=e;var i=gn;e=yn;var s=32-qe(i)-1;i&=~(1<<s),l+=1;var f=32-qe(t)+s;if(30<f){var y=s-s%5;f=(i&(1<<y)-1).toString(32),i>>=y,s-=y,gn=1<<32-qe(t)+s|l<<s|i,yn=f+e}else gn=1<<f|l<<s|i,yn=e}function Ls(e){e.return!==null&&(kn(e,1),Od(e,1,0))}function Bs(e){for(;e===zr;)zr=oa[--ca],oa[ca]=null,si=oa[--ca],oa[ca]=null;for(;e===Jn;)Jn=en[--tn],en[tn]=null,yn=en[--tn],en[tn]=null,gn=en[--tn],en[tn]=null}function Md(e,t){en[tn++]=gn,en[tn++]=yn,en[tn++]=Jn,gn=t.id,yn=t.overflow,Jn=e}var mt=null,Qe=null,Ae=!1,In=null,nn=!1,Us=Error(u(519));function Pn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oi(Wt(t,e)),Us}function Dd(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[ht]=e,t[Tt]=i,l){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(l=0;l<Ri.length;l++)je(Ri[l],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),$f(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Jf(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||Pm(t.textContent,l)?(i.popover!=null&&(je("beforetoggle",t),je("toggle",t)),i.onScroll!=null&&je("scroll",t),i.onScrollEnd!=null&&je("scrollend",t),i.onClick!=null&&(t.onclick=Cn),t=!0):t=!1,t||Pn(e,!0)}function Ld(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:mt=mt.return}}function fa(e){if(e!==mt)return!1;if(!Ae)return Ld(e),Ae=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||lc(e.type,e.memoizedProps)),l=!l),l&&Qe&&Pn(e),Ld(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Qe=up(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Qe=up(e)}else t===27?(t=Qe,dl(e.type)?(e=sc,sc=null,Qe=e):Qe=t):Qe=mt?an(e.stateNode.nextSibling):null;return!0}function zl(){Qe=mt=null,Ae=!1}function Hs(){var e=In;return e!==null&&(Rt===null?Rt=e:Rt.push.apply(Rt,e),In=null),e}function oi(e){In===null?In=[e]:In.push(e)}var qs=T(null),kl=null,Rn=null;function Wn(e,t,l){E(qs,t._currentValue),t._currentValue=l}function _n(e){e._currentValue=qs.current,V(qs)}function Ys(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function Vs(e,t,l,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var f=s.dependencies;if(f!==null){var y=s.child;f=f.firstContext;e:for(;f!==null;){var v=f;f=s;for(var N=0;N<t.length;N++)if(v.context===t[N]){f.lanes|=l,v=f.alternate,v!==null&&(v.lanes|=l),Ys(f.return,l,e),i||(y=null);break e}f=v.next}}else if(s.tag===18){if(y=s.return,y===null)throw Error(u(341));y.lanes|=l,f=y.alternate,f!==null&&(f.lanes|=l),Ys(y,l,e),y=null}else y=s.child;if(y!==null)y.return=s;else for(y=s;y!==null;){if(y===e){y=null;break}if(s=y.sibling,s!==null){s.return=y.return,y=s;break}y=y.return}s=y}}function da(e,t,l,i){e=null;for(var s=t,f=!1;s!==null;){if(!f){if((s.flags&524288)!==0)f=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var y=s.alternate;if(y===null)throw Error(u(387));if(y=y.memoizedProps,y!==null){var v=s.type;Bt(s.pendingProps.value,y.value)||(e!==null?e.push(v):e=[v])}}else if(s===Ne.current){if(y=s.alternate,y===null)throw Error(u(387));y.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Li):e=[Li])}s=s.return}e!==null&&Vs(t,e,l,i),t.flags|=262144}function kr(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Rl(e){kl=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Bd(kl,e)}function Rr(e,t){return kl===null&&Rl(e),Bd(e,t)}function Bd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Rn===null){if(e===null)throw Error(u(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return l}var yb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},xb=n.unstable_scheduleCallback,bb=n.unstable_NormalPriority,lt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ks(){return{controller:new yb,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&xb(bb,function(){e.controller.abort()})}var fi=null,Qs=0,ha=0,ma=null;function vb(e,t){if(fi===null){var l=fi=[];Qs=0,ha=$o(),ma={status:"pending",value:void 0,then:function(i){l.push(i)}}}return Qs++,t.then(Ud,Ud),t}function Ud(){if(--Qs===0&&fi!==null){ma!==null&&(ma.status="fulfilled");var e=fi;fi=null,ha=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sb(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),i}var Hd=M.S;M.S=function(e,t){wm=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vb(e,t),Hd!==null&&Hd(e,t)};var _l=T(null);function Gs(){var e=_l.current;return e!==null?e:Ye.pooledCache}function _r(e,t){t===null?E(_l,_l.current):E(_l,t.pool)}function qd(){var e=Gs();return e===null?null:{parent:lt._currentValue,pool:e}}var pa=Error(u(460)),Xs=Error(u(474)),Or=Error(u(542)),Mr={then:function(){}};function Yd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Cn,Cn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qd(e),e;default:if(typeof t.status=="string")t.then(Cn,Cn);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qd(e),e}throw Ml=t,pa}}function Ol(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ml=l,pa):l}}var Ml=null;function Kd(){if(Ml===null)throw Error(u(459));var e=Ml;return Ml=null,e}function Qd(e){if(e===pa||e===Or)throw Error(u(483))}var ga=null,di=0;function Dr(e){var t=di;return di+=1,ga===null&&(ga=[]),Vd(ga,e,t)}function hi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Lr(e,t){throw t.$$typeof===w?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gd(e){function t(_,C){if(e){var D=_.deletions;D===null?(_.deletions=[C],_.flags|=16):D.push(C)}}function l(_,C){if(!e)return null;for(;C!==null;)t(_,C),C=C.sibling;return null}function i(_){for(var C=new Map;_!==null;)_.key!==null?C.set(_.key,_):C.set(_.index,_),_=_.sibling;return C}function s(_,C){return _=zn(_,C),_.index=0,_.sibling=null,_}function f(_,C,D){return _.index=D,e?(D=_.alternate,D!==null?(D=D.index,D<C?(_.flags|=67108866,C):D):(_.flags|=67108866,C)):(_.flags|=1048576,C)}function y(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function v(_,C,D,Q){return C===null||C.tag!==6?(C=Ms(D,_.mode,Q),C.return=_,C):(C=s(C,D),C.return=_,C)}function N(_,C,D,Q){var se=D.type;return se===R?Y(_,C,D.props.children,Q,D.key):C!==null&&(C.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===oe&&Ol(se)===C.type)?(C=s(C,D.props),hi(C,D),C.return=_,C):(C=Ar(D.type,D.key,D.props,null,_.mode,Q),hi(C,D),C.return=_,C)}function L(_,C,D,Q){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=Ds(D,_.mode,Q),C.return=_,C):(C=s(C,D.children||[]),C.return=_,C)}function Y(_,C,D,Q,se){return C===null||C.tag!==7?(C=Al(D,_.mode,Q,se),C.return=_,C):(C=s(C,D),C.return=_,C)}function G(_,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Ms(""+C,_.mode,D),C.return=_,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case S:return D=Ar(C.type,C.key,C.props,null,_.mode,D),hi(D,C),D.return=_,D;case A:return C=Ds(C,_.mode,D),C.return=_,C;case oe:return C=Ol(C),G(_,C,D)}if($(C)||W(C))return C=Al(C,_.mode,D,null),C.return=_,C;if(typeof C.then=="function")return G(_,Dr(C),D);if(C.$$typeof===O)return G(_,Rr(_,C),D);Lr(_,C)}return null}function B(_,C,D,Q){var se=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return se!==null?null:v(_,C,""+D,Q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===se?N(_,C,D,Q):null;case A:return D.key===se?L(_,C,D,Q):null;case oe:return D=Ol(D),B(_,C,D,Q)}if($(D)||W(D))return se!==null?null:Y(_,C,D,Q,null);if(typeof D.then=="function")return B(_,C,Dr(D),Q);if(D.$$typeof===O)return B(_,C,Rr(_,D),Q);Lr(_,D)}return null}function H(_,C,D,Q,se){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return _=_.get(D)||null,v(C,_,""+Q,se);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return _=_.get(Q.key===null?D:Q.key)||null,N(C,_,Q,se);case A:return _=_.get(Q.key===null?D:Q.key)||null,L(C,_,Q,se);case oe:return Q=Ol(Q),H(_,C,D,Q,se)}if($(Q)||W(Q))return _=_.get(D)||null,Y(C,_,Q,se,null);if(typeof Q.then=="function")return H(_,C,D,Dr(Q),se);if(Q.$$typeof===O)return H(_,C,D,Rr(C,Q),se);Lr(C,Q)}return null}function le(_,C,D,Q){for(var se=null,ze=null,re=C,be=C=0,Ce=null;re!==null&&be<D.length;be++){re.index>be?(Ce=re,re=null):Ce=re.sibling;var ke=B(_,re,D[be],Q);if(ke===null){re===null&&(re=Ce);break}e&&re&&ke.alternate===null&&t(_,re),C=f(ke,C,be),ze===null?se=ke:ze.sibling=ke,ze=ke,re=Ce}if(be===D.length)return l(_,re),Ae&&kn(_,be),se;if(re===null){for(;be<D.length;be++)re=G(_,D[be],Q),re!==null&&(C=f(re,C,be),ze===null?se=re:ze.sibling=re,ze=re);return Ae&&kn(_,be),se}for(re=i(re);be<D.length;be++)Ce=H(re,_,be,D[be],Q),Ce!==null&&(e&&Ce.alternate!==null&&re.delete(Ce.key===null?be:Ce.key),C=f(Ce,C,be),ze===null?se=Ce:ze.sibling=Ce,ze=Ce);return e&&re.forEach(function(yl){return t(_,yl)}),Ae&&kn(_,be),se}function fe(_,C,D,Q){if(D==null)throw Error(u(151));for(var se=null,ze=null,re=C,be=C=0,Ce=null,ke=D.next();re!==null&&!ke.done;be++,ke=D.next()){re.index>be?(Ce=re,re=null):Ce=re.sibling;var yl=B(_,re,ke.value,Q);if(yl===null){re===null&&(re=Ce);break}e&&re&&yl.alternate===null&&t(_,re),C=f(yl,C,be),ze===null?se=yl:ze.sibling=yl,ze=yl,re=Ce}if(ke.done)return l(_,re),Ae&&kn(_,be),se;if(re===null){for(;!ke.done;be++,ke=D.next())ke=G(_,ke.value,Q),ke!==null&&(C=f(ke,C,be),ze===null?se=ke:ze.sibling=ke,ze=ke);return Ae&&kn(_,be),se}for(re=i(re);!ke.done;be++,ke=D.next())ke=H(re,_,be,ke.value,Q),ke!==null&&(e&&ke.alternate!==null&&re.delete(ke.key===null?be:ke.key),C=f(ke,C,be),ze===null?se=ke:ze.sibling=ke,ze=ke);return e&&re.forEach(function(_v){return t(_,_v)}),Ae&&kn(_,be),se}function He(_,C,D,Q){if(typeof D=="object"&&D!==null&&D.type===R&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var se=D.key;C!==null;){if(C.key===se){if(se=D.type,se===R){if(C.tag===7){l(_,C.sibling),Q=s(C,D.props.children),Q.return=_,_=Q;break e}}else if(C.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===oe&&Ol(se)===C.type){l(_,C.sibling),Q=s(C,D.props),hi(Q,D),Q.return=_,_=Q;break e}l(_,C);break}else t(_,C);C=C.sibling}D.type===R?(Q=Al(D.props.children,_.mode,Q,D.key),Q.return=_,_=Q):(Q=Ar(D.type,D.key,D.props,null,_.mode,Q),hi(Q,D),Q.return=_,_=Q)}return y(_);case A:e:{for(se=D.key;C!==null;){if(C.key===se)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){l(_,C.sibling),Q=s(C,D.children||[]),Q.return=_,_=Q;break e}else{l(_,C);break}else t(_,C);C=C.sibling}Q=Ds(D,_.mode,Q),Q.return=_,_=Q}return y(_);case oe:return D=Ol(D),He(_,C,D,Q)}if($(D))return le(_,C,D,Q);if(W(D)){if(se=W(D),typeof se!="function")throw Error(u(150));return D=se.call(D),fe(_,C,D,Q)}if(typeof D.then=="function")return He(_,C,Dr(D),Q);if(D.$$typeof===O)return He(_,C,Rr(_,D),Q);Lr(_,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(l(_,C.sibling),Q=s(C,D),Q.return=_,_=Q):(l(_,C),Q=Ms(D,_.mode,Q),Q.return=_,_=Q),y(_)):l(_,C)}return function(_,C,D,Q){try{di=0;var se=He(_,C,D,Q);return ga=null,se}catch(re){if(re===pa||re===Or)throw re;var ze=Ut(29,re,null,_.mode);return ze.lanes=Q,ze.return=_,ze}finally{}}}var Dl=Gd(!0),Xd=Gd(!1),el=!1;function Zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $s(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function tl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function nl(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Re&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=Cr(e),zd(e,null,l),t}return Tr(e,i,t,l),Cr(e)}function mi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Bf(e,l)}}function Fs(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var s=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var y={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?s=f=y:f=f.next=y,l=l.next}while(l!==null);f===null?s=f=t:f=f.next=t}else s=f=t;l={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Js=!1;function pi(){if(Js){var e=ma;if(e!==null)throw e}}function gi(e,t,l,i){Js=!1;var s=e.updateQueue;el=!1;var f=s.firstBaseUpdate,y=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var N=v,L=N.next;N.next=null,y===null?f=L:y.next=L,y=N;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,v=Y.lastBaseUpdate,v!==y&&(v===null?Y.firstBaseUpdate=L:v.next=L,Y.lastBaseUpdate=N))}if(f!==null){var G=s.baseState;y=0,Y=L=N=null,v=f;do{var B=v.lane&-536870913,H=B!==v.lane;if(H?(Te&B)===B:(i&B)===B){B!==0&&B===ha&&(Js=!0),Y!==null&&(Y=Y.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var le=e,fe=v;B=t;var He=l;switch(fe.tag){case 1:if(le=fe.payload,typeof le=="function"){G=le.call(He,G,B);break e}G=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=fe.payload,B=typeof le=="function"?le.call(He,G,B):le,B==null)break e;G=b({},G,B);break e;case 2:el=!0}}B=v.callback,B!==null&&(e.flags|=64,H&&(e.flags|=8192),H=s.callbacks,H===null?s.callbacks=[B]:H.push(B))}else H={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},Y===null?(L=Y=H,N=G):Y=Y.next=H,y|=B;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;H=v,v=H.next,H.next=null,s.lastBaseUpdate=H,s.shared.pending=null}}while(!0);Y===null&&(N=G),s.baseState=N,s.firstBaseUpdate=L,s.lastBaseUpdate=Y,f===null&&(s.shared.lanes=0),ul|=y,e.lanes=y,e.memoizedState=G}}function Zd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function $d(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Zd(l[e],t)}var ya=T(null),Br=T(0);function Fd(e,t){e=Yn,E(Br,e),E(ya,t),Yn=e|t.baseLanes}function Is(){E(Br,Yn),E(ya,ya.current)}function Ps(){Yn=Br.current,V(ya),V(Br)}var Ht=T(null),ln=null;function ll(e){var t=e.alternate;E(tt,tt.current&1),E(Ht,e),ln===null&&(t===null||ya.current!==null||t.memoizedState!==null)&&(ln=e)}function Ws(e){E(tt,tt.current),E(Ht,e),ln===null&&(ln=e)}function Jd(e){e.tag===22?(E(tt,tt.current),E(Ht,e),ln===null&&(ln=e)):al()}function al(){E(tt,tt.current),E(Ht,Ht.current)}function qt(e){V(Ht),ln===e&&(ln=null),V(tt)}var tt=T(0);function Ur(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||rc(l)||uc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var On=0,xe=null,Be=null,at=null,Hr=!1,xa=!1,Ll=!1,qr=0,yi=0,ba=null,wb=0;function Pe(){throw Error(u(321))}function eo(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Bt(e[l],t[l]))return!1;return!0}function to(e,t,l,i,s,f){return On=f,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Oh:yo,Ll=!1,f=l(i,s),Ll=!1,xa&&(f=Pd(t,l,i,s)),Id(e),f}function Id(e){M.H=vi;var t=Be!==null&&Be.next!==null;if(On=0,at=Be=xe=null,Hr=!1,yi=0,ba=null,t)throw Error(u(300));e===null||it||(e=e.dependencies,e!==null&&kr(e)&&(it=!0))}function Pd(e,t,l,i){xe=e;var s=0;do{if(xa&&(ba=null),yi=0,xa=!1,25<=s)throw Error(u(301));if(s+=1,at=Be=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}M.H=Mh,f=t(l,i)}while(xa);return f}function Eb(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?xi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(xe.flags|=1024),t}function no(){var e=qr!==0;return qr=0,e}function lo(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ao(e){if(Hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hr=!1}On=0,at=Be=xe=null,xa=!1,yi=qr=0,ba=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?xe.memoizedState=at=e:at=at.next=e,at}function nt(){if(Be===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=at===null?xe.memoizedState:at.next;if(t!==null)at=t,Be=e;else{if(e===null)throw xe.alternate===null?Error(u(467)):Error(u(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},at===null?xe.memoizedState=at=e:at=at.next=e}return at}function Yr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xi(e){var t=yi;return yi+=1,ba===null&&(ba=[]),e=Vd(ba,e,t),t=xe,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Oh:yo),e}function Vr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xi(e);if(e.$$typeof===O)return pt(e)}throw Error(u(438,String(e)))}function io(e){var t=null,l=xe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=xe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Yr(),xe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=ge;return t.index++,l}function Mn(e,t){return typeof t=="function"?t(e):t}function Kr(e){var t=nt();return ro(t,Be,e)}function ro(e,t,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var s=e.baseQueue,f=i.pending;if(f!==null){if(s!==null){var y=s.next;s.next=f.next,f.next=y}t.baseQueue=s=f,i.pending=null}if(f=e.baseState,s===null)e.memoizedState=f;else{t=s.next;var v=y=null,N=null,L=t,Y=!1;do{var G=L.lane&-536870913;if(G!==L.lane?(Te&G)===G:(On&G)===G){var B=L.revertLane;if(B===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),G===ha&&(Y=!0);else if((On&B)===B){L=L.next,B===ha&&(Y=!0);continue}else G={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(v=N=G,y=f):N=N.next=G,xe.lanes|=B,ul|=B;G=L.action,Ll&&l(f,G),f=L.hasEagerState?L.eagerState:l(f,G)}else B={lane:G,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(v=N=B,y=f):N=N.next=B,xe.lanes|=G,ul|=G;L=L.next}while(L!==null&&L!==t);if(N===null?y=f:N.next=v,!Bt(f,e.memoizedState)&&(it=!0,Y&&(l=ma,l!==null)))throw l;e.memoizedState=f,e.baseState=y,e.baseQueue=N,i.lastRenderedState=f}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function uo(e){var t=nt(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,s=l.pending,f=t.memoizedState;if(s!==null){l.pending=null;var y=s=s.next;do f=e(f,y.action),y=y.next;while(y!==s);Bt(f,t.memoizedState)||(it=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,i]}function Wd(e,t,l){var i=xe,s=nt(),f=Ae;if(f){if(l===void 0)throw Error(u(407));l=l()}else l=t();var y=!Bt((Be||s).memoizedState,l);if(y&&(s.memoizedState=l,it=!0),s=s.queue,co(nh.bind(null,i,s,e),[e]),s.getSnapshot!==t||y||at!==null&&at.memoizedState.tag&1){if(i.flags|=2048,va(9,{destroy:void 0},th.bind(null,i,s,l,t),null),Ye===null)throw Error(u(349));f||(On&127)!==0||eh(i,t,l)}return l}function eh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=Yr(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function th(e,t,l,i){t.value=l,t.getSnapshot=i,lh(t)&&ah(e)}function nh(e,t,l){return l(function(){lh(t)&&ah(e)})}function lh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Bt(e,l)}catch{return!0}}function ah(e){var t=Cl(e,2);t!==null&&_t(t,e,2)}function so(e){var t=Et();if(typeof e=="function"){var l=e;if(e=l(),Ll){Nt(!0);try{l()}finally{Nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function ih(e,t,l,i){return e.baseState=l,ro(e,Be,typeof i=="function"?i:Mn)}function jb(e,t,l,i,s){if(Xr(e))throw Error(u(485));if(e=t.action,e!==null){var f={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){f.listeners.push(y)}};M.T!==null?l(!0):f.isTransition=!1,i(f),l=t.pending,l===null?(f.next=t.pending=f,rh(t,f)):(f.next=l.next,t.pending=l.next=f)}}function rh(e,t){var l=t.action,i=t.payload,s=e.state;if(t.isTransition){var f=M.T,y={};M.T=y;try{var v=l(s,i),N=M.S;N!==null&&N(y,v),uh(e,t,v)}catch(L){oo(e,t,L)}finally{f!==null&&y.types!==null&&(f.types=y.types),M.T=f}}else try{f=l(s,i),uh(e,t,f)}catch(L){oo(e,t,L)}}function uh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){sh(e,t,i)},function(i){return oo(e,t,i)}):sh(e,t,l)}function sh(e,t,l){t.status="fulfilled",t.value=l,oh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,rh(e,l)))}function oo(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,oh(t),t=t.next;while(t!==i)}e.action=null}function oh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ch(e,t){return t}function fh(e,t){if(Ae){var l=Ye.formState;if(l!==null){e:{var i=xe;if(Ae){if(Qe){t:{for(var s=Qe,f=nn;s.nodeType!==8;){if(!f){s=null;break t}if(s=an(s.nextSibling),s===null){s=null;break t}}f=s.data,s=f==="F!"||f==="F"?s:null}if(s){Qe=an(s.nextSibling),i=s.data==="F!";break e}}Pn(i)}i=!1}i&&(t=l[0])}}return l=Et(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ch,lastRenderedState:t},l.queue=i,l=kh.bind(null,xe,i),i.dispatch=l,i=so(!1),f=go.bind(null,xe,!1,i.queue),i=Et(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,l=jb.bind(null,xe,s,f,l),s.dispatch=l,i.memoizedState=e,[t,l,!1]}function dh(e){var t=nt();return hh(t,Be,e)}function hh(e,t,l){if(t=ro(e,t,ch)[0],e=Kr(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=xi(t)}catch(y){throw y===pa?Or:y}else i=t;t=nt();var s=t.queue,f=s.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,va(9,{destroy:void 0},Nb.bind(null,s,l),null)),[i,f,e]}function Nb(e,t){e.action=t}function mh(e){var t=nt(),l=Be;if(l!==null)return hh(t,l,e);nt(),t=t.memoizedState,l=nt();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function va(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Yr(),xe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function ph(){return nt().memoizedState}function Qr(e,t,l,i){var s=Et();xe.flags|=e,s.memoizedState=va(1|t,{destroy:void 0},l,i===void 0?null:i)}function Gr(e,t,l,i){var s=nt();i=i===void 0?null:i;var f=s.memoizedState.inst;Be!==null&&i!==null&&eo(i,Be.memoizedState.deps)?s.memoizedState=va(t,f,l,i):(xe.flags|=e,s.memoizedState=va(1|t,f,l,i))}function gh(e,t){Qr(8390656,8,e,t)}function co(e,t){Gr(2048,8,e,t)}function Tb(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Yr(),xe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function yh(e){var t=nt().memoizedState;return Tb({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function xh(e,t){return Gr(4,2,e,t)}function bh(e,t){return Gr(4,4,e,t)}function vh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sh(e,t,l){l=l!=null?l.concat([e]):null,Gr(4,4,vh.bind(null,t,e),l)}function fo(){}function wh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&eo(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Eh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&eo(t,i[1]))return i[0];if(i=e(),Ll){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i}function ho(e,t,l){return l===void 0||(On&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=jm(),xe.lanes|=e,ul|=e,l)}function jh(e,t,l,i){return Bt(l,t)?l:ya.current!==null?(e=ho(e,l,i),Bt(e,t)||(it=!0),e):(On&42)===0||(On&1073741824)!==0&&(Te&261930)===0?(it=!0,e.memoizedState=l):(e=jm(),xe.lanes|=e,ul|=e,t)}function Nh(e,t,l,i,s){var f=Z.p;Z.p=f!==0&&8>f?f:8;var y=M.T,v={};M.T=v,go(e,!1,t,l);try{var N=s(),L=M.S;if(L!==null&&L(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Y=Sb(N,i);bi(e,t,Y,Kt(e))}else bi(e,t,i,Kt(e))}catch(G){bi(e,t,{then:function(){},status:"rejected",reason:G},Kt())}finally{Z.p=f,y!==null&&v.types!==null&&(y.types=v.types),M.T=y}}function Cb(){}function mo(e,t,l,i){if(e.tag!==5)throw Error(u(476));var s=Th(e).queue;Nh(e,s,t,ie,l===null?Cb:function(){return Ch(e),l(i)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ch(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),bi(e,t.next.queue,{},Kt())}function po(){return pt(Li)}function Ah(){return nt().memoizedState}function zh(){return nt().memoizedState}function Ab(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Kt();e=tl(l);var i=nl(t,e,l);i!==null&&(_t(i,t,l),mi(i,t,l)),t={cache:Ks()},e.payload=t;return}t=t.return}}function zb(e,t,l){var i=Kt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xr(e)?Rh(t,l):(l=_s(e,t,l,i),l!==null&&(_t(l,e,i),_h(l,t,i)))}function kh(e,t,l){var i=Kt();bi(e,t,l,i)}function bi(e,t,l,i){var s={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xr(e))Rh(t,s);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var y=t.lastRenderedState,v=f(y,l);if(s.hasEagerState=!0,s.eagerState=v,Bt(v,y))return Tr(e,t,s,0),Ye===null&&Nr(),!1}catch{}finally{}if(l=_s(e,t,s,i),l!==null)return _t(l,e,i),_h(l,t,i),!0}return!1}function go(e,t,l,i){if(i={lane:2,revertLane:$o(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Xr(e)){if(t)throw Error(u(479))}else t=_s(e,l,i,2),t!==null&&_t(t,e,2)}function Xr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Rh(e,t){xa=Hr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function _h(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Bf(e,l)}}var vi={readContext:pt,use:Vr,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useLayoutEffect:Pe,useInsertionEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useSyncExternalStore:Pe,useId:Pe,useHostTransitionStatus:Pe,useFormState:Pe,useActionState:Pe,useOptimistic:Pe,useMemoCache:Pe,useCacheRefresh:Pe};vi.useEffectEvent=Pe;var Oh={readContext:pt,use:Vr,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:gh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Qr(4194308,4,vh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Qr(4194308,4,e,t)},useInsertionEffect:function(e,t){Qr(4,2,e,t)},useMemo:function(e,t){var l=Et();t=t===void 0?null:t;var i=e();if(Ll){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=Et();if(l!==void 0){var s=l(t);if(Ll){Nt(!0);try{l(t)}finally{Nt(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=zb.bind(null,xe,e),[i.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=so(e);var t=e.queue,l=kh.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:fo,useDeferredValue:function(e,t){var l=Et();return ho(l,e,t)},useTransition:function(){var e=so(!1);return e=Nh.bind(null,xe,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=xe,s=Et();if(Ae){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Ye===null)throw Error(u(349));(Te&127)!==0||eh(i,t,l)}s.memoizedState=l;var f={value:l,getSnapshot:t};return s.queue=f,gh(nh.bind(null,i,f,e),[e]),i.flags|=2048,va(9,{destroy:void 0},th.bind(null,i,f,l,t),null),l},useId:function(){var e=Et(),t=Ye.identifierPrefix;if(Ae){var l=yn,i=gn;l=(i&~(1<<32-qe(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=qr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=wb++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:po,useFormState:fh,useActionState:fh,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=go.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:io,useCacheRefresh:function(){return Et().memoizedState=Ab.bind(null,xe)},useEffectEvent:function(e){var t=Et(),l={impl:e};return t.memoizedState=l,function(){if((Re&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},yo={readContext:pt,use:Vr,useCallback:wh,useContext:pt,useEffect:co,useImperativeHandle:Sh,useInsertionEffect:xh,useLayoutEffect:bh,useMemo:Eh,useReducer:Kr,useRef:ph,useState:function(){return Kr(Mn)},useDebugValue:fo,useDeferredValue:function(e,t){var l=nt();return jh(l,Be.memoizedState,e,t)},useTransition:function(){var e=Kr(Mn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:Wd,useId:Ah,useHostTransitionStatus:po,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var l=nt();return ih(l,Be,e,t)},useMemoCache:io,useCacheRefresh:zh};yo.useEffectEvent=yh;var Mh={readContext:pt,use:Vr,useCallback:wh,useContext:pt,useEffect:co,useImperativeHandle:Sh,useInsertionEffect:xh,useLayoutEffect:bh,useMemo:Eh,useReducer:uo,useRef:ph,useState:function(){return uo(Mn)},useDebugValue:fo,useDeferredValue:function(e,t){var l=nt();return Be===null?ho(l,e,t):jh(l,Be.memoizedState,e,t)},useTransition:function(){var e=uo(Mn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:Wd,useId:Ah,useHostTransitionStatus:po,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var l=nt();return Be!==null?ih(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:io,useCacheRefresh:zh};Mh.useEffectEvent=yh;function xo(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var bo={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Kt(),s=tl(i);s.payload=t,l!=null&&(s.callback=l),t=nl(e,s,i),t!==null&&(_t(t,e,i),mi(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Kt(),s=tl(i);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=nl(e,s,i),t!==null&&(_t(t,e,i),mi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Kt(),i=tl(l);i.tag=2,t!=null&&(i.callback=t),t=nl(e,i,l),t!==null&&(_t(t,e,l),mi(t,e,l))}};function Dh(e,t,l,i,s,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,y):t.prototype&&t.prototype.isPureReactComponent?!ri(l,i)||!ri(s,f):!0}function Lh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function Bl(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function Bh(e){jr(e)}function Uh(e){console.error(e)}function Hh(e){jr(e)}function Zr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function qh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function vo(e,t,l){return l=tl(l),l.tag=3,l.payload={element:null},l.callback=function(){Zr(e,t)},l}function Yh(e){return e=tl(e),e.tag=3,e}function Vh(e,t,l,i){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var f=i.value;e.payload=function(){return s(f)},e.callback=function(){qh(t,l,i)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){qh(t,l,i),typeof s!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function kb(e,t,l,i,s){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&da(t,l,s,!0),l=Ht.current,l!==null){switch(l.tag){case 31:case 13:return ln===null?iu():l.alternate===null&&We===0&&(We=3),l.flags&=-257,l.flags|=65536,l.lanes=s,i===Mr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),Go(e,i,s)),!1;case 22:return l.flags|=65536,i===Mr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),Go(e,i,s)),!1}throw Error(u(435,l.tag))}return Go(e,i,s),iu(),!1}if(Ae)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Us&&(e=Error(u(422),{cause:i}),oi(Wt(e,l)))):(i!==Us&&(t=Error(u(423),{cause:i}),oi(Wt(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=Wt(i,l),s=vo(e.stateNode,i,s),Fs(e,s),We!==4&&(We=2)),!1;var f=Error(u(520),{cause:i});if(f=Wt(f,l),Ai===null?Ai=[f]:Ai.push(f),We!==4&&(We=2),t===null)return!0;i=Wt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=vo(l.stateNode,i,e),Fs(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(sl===null||!sl.has(f))))return l.flags|=65536,s&=-s,l.lanes|=s,s=Yh(s),Vh(s,e,l,i),Fs(l,s),!1}l=l.return}while(l!==null);return!1}var So=Error(u(461)),it=!1;function gt(e,t,l,i){t.child=e===null?Xd(t,null,l,i):Dl(t,e.child,l,i)}function Kh(e,t,l,i,s){l=l.render;var f=t.ref;if("ref"in i){var y={};for(var v in i)v!=="ref"&&(y[v]=i[v])}else y=i;return Rl(t),i=to(e,t,l,y,f,s),v=no(),e!==null&&!it?(lo(e,t,s),Dn(e,t,s)):(Ae&&v&&Ls(t),t.flags|=1,gt(e,t,i,s),t.child)}function Qh(e,t,l,i,s){if(e===null){var f=l.type;return typeof f=="function"&&!Os(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Gh(e,t,f,i,s)):(e=Ar(l.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!zo(e,s)){var y=f.memoizedProps;if(l=l.compare,l=l!==null?l:ri,l(y,i)&&e.ref===t.ref)return Dn(e,t,s)}return t.flags|=1,e=zn(f,i),e.ref=t.ref,e.return=t,t.child=e}function Gh(e,t,l,i,s){if(e!==null){var f=e.memoizedProps;if(ri(f,i)&&e.ref===t.ref)if(it=!1,t.pendingProps=i=f,zo(e,s))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Dn(e,t,s)}return wo(e,t,l,i,s)}function Xh(e,t,l,i){var s=i.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~f}else i=0,t.child=null;return Zh(e,t,f,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_r(t,f!==null?f.cachePool:null),f!==null?Fd(t,f):Is(),Jd(t);else return i=t.lanes=536870912,Zh(e,t,f!==null?f.baseLanes|l:l,l,i)}else f!==null?(_r(t,f.cachePool),Fd(t,f),al(),t.memoizedState=null):(e!==null&&_r(t,null),Is(),al());return gt(e,t,s,l),t.child}function Si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zh(e,t,l,i,s){var f=Gs();return f=f===null?null:{parent:lt._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&_r(t,null),Is(),Jd(t),e!==null&&da(e,t,i,!0),t.childLanes=s,null}function $r(e,t){return t=Jr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function $h(e,t,l){return Dl(t,e.child,null,l),e=$r(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function Rb(e,t,l){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(i.mode==="hidden")return e=$r(t,i),t.lanes=536870912,Si(null,e);if(Ws(t),(e=Qe)?(e=rp(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},l=Rd(e),l.return=t,t.child=l,mt=t,Qe=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return $r(t,i)}var f=e.memoizedState;if(f!==null){var y=f.dehydrated;if(Ws(t),s)if(t.flags&256)t.flags&=-257,t=$h(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(it||da(e,t,l,!1),s=(l&e.childLanes)!==0,it||s){if(i=Ye,i!==null&&(y=Uf(i,l),y!==0&&y!==f.retryLane))throw f.retryLane=y,Cl(e,y),_t(i,e,y),So;iu(),t=$h(e,t,l)}else e=f.treeContext,Qe=an(y.nextSibling),mt=t,Ae=!0,In=null,nn=!1,e!==null&&Md(t,e),t=$r(t,i),t.flags|=4096;return t}return e=zn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fr(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function wo(e,t,l,i,s){return Rl(t),l=to(e,t,l,i,void 0,s),i=no(),e!==null&&!it?(lo(e,t,s),Dn(e,t,s)):(Ae&&i&&Ls(t),t.flags|=1,gt(e,t,l,s),t.child)}function Fh(e,t,l,i,s,f){return Rl(t),t.updateQueue=null,l=Pd(t,i,l,s),Id(e),i=no(),e!==null&&!it?(lo(e,t,f),Dn(e,t,f)):(Ae&&i&&Ls(t),t.flags|=1,gt(e,t,l,f),t.child)}function Jh(e,t,l,i,s){if(Rl(t),t.stateNode===null){var f=sa,y=l.contextType;typeof y=="object"&&y!==null&&(f=pt(y)),f=new l(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=bo,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},Zs(t),y=l.contextType,f.context=typeof y=="object"&&y!==null?pt(y):sa,f.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(xo(t,l,y,i),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(y=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),y!==f.state&&bo.enqueueReplaceState(f,f.state,null),gi(t,i,f,s),pi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var v=t.memoizedProps,N=Bl(l,v);f.props=N;var L=f.context,Y=l.contextType;y=sa,typeof Y=="object"&&Y!==null&&(y=pt(Y));var G=l.getDerivedStateFromProps;Y=typeof G=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,Y||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||L!==y)&&Lh(t,f,i,y),el=!1;var B=t.memoizedState;f.state=B,gi(t,i,f,s),pi(),L=t.memoizedState,v||B!==L||el?(typeof G=="function"&&(xo(t,l,G,i),L=t.memoizedState),(N=el||Dh(t,l,N,i,B,L,y))?(Y||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=L),f.props=i,f.state=L,f.context=y,i=N):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,$s(e,t),y=t.memoizedProps,Y=Bl(l,y),f.props=Y,G=t.pendingProps,B=f.context,L=l.contextType,N=sa,typeof L=="object"&&L!==null&&(N=pt(L)),v=l.getDerivedStateFromProps,(L=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==G||B!==N)&&Lh(t,f,i,N),el=!1,B=t.memoizedState,f.state=B,gi(t,i,f,s),pi();var H=t.memoizedState;y!==G||B!==H||el||e!==null&&e.dependencies!==null&&kr(e.dependencies)?(typeof v=="function"&&(xo(t,l,v,i),H=t.memoizedState),(Y=el||Dh(t,l,Y,i,B,H,N)||e!==null&&e.dependencies!==null&&kr(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,H,N),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,H,N)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=H),f.props=i,f.state=H,f.context=N,i=Y):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,Fr(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Dl(t,e.child,null,s),t.child=Dl(t,null,l,s)):gt(e,t,l,s),t.memoizedState=f.state,e=t.child):e=Dn(e,t,s),e}function Ih(e,t,l,i){return zl(),t.flags|=256,gt(e,t,l,i),t.child}var Eo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jo(e){return{baseLanes:e,cachePool:qd()}}function No(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function Ph(e,t,l){var i=t.pendingProps,s=!1,f=(t.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),y&&(s=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(s?ll(t):al(),(e=Qe)?(e=rp(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},l=Rd(e),l.return=t,t.child=l,mt=t,Qe=null)):e=null,e===null)throw Pn(t);return uc(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,s?(al(),s=t.mode,v=Jr({mode:"hidden",children:v},s),i=Al(i,s,l,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=jo(l),i.childLanes=No(e,y,l),t.memoizedState=Eo,Si(null,i)):(ll(t),To(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(f)t.flags&256?(ll(t),t.flags&=-257,t=Co(e,t,l)):t.memoizedState!==null?(al(),t.child=e.child,t.flags|=128,t=null):(al(),v=i.fallback,s=t.mode,i=Jr({mode:"visible",children:i.children},s),v=Al(v,s,l,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Dl(t,e.child,null,l),i=t.child,i.memoizedState=jo(l),i.childLanes=No(e,y,l),t.memoizedState=Eo,t=Si(null,i));else if(ll(t),uc(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var L=y.dgst;y=L,i=Error(u(419)),i.stack="",i.digest=y,oi({value:i,source:null,stack:null}),t=Co(e,t,l)}else if(it||da(e,t,l,!1),y=(l&e.childLanes)!==0,it||y){if(y=Ye,y!==null&&(i=Uf(y,l),i!==0&&i!==N.retryLane))throw N.retryLane=i,Cl(e,i),_t(y,e,i),So;rc(v)||iu(),t=Co(e,t,l)}else rc(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Qe=an(v.nextSibling),mt=t,Ae=!0,In=null,nn=!1,e!==null&&Md(t,e),t=To(t,i.children),t.flags|=4096);return t}return s?(al(),v=i.fallback,s=t.mode,N=e.child,L=N.sibling,i=zn(N,{mode:"hidden",children:i.children}),i.subtreeFlags=N.subtreeFlags&65011712,L!==null?v=zn(L,v):(v=Al(v,s,l,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,Si(null,i),i=t.child,v=e.child.memoizedState,v===null?v=jo(l):(s=v.cachePool,s!==null?(N=lt._currentValue,s=s.parent!==N?{parent:N,pool:N}:s):s=qd(),v={baseLanes:v.baseLanes|l,cachePool:s}),i.memoizedState=v,i.childLanes=No(e,y,l),t.memoizedState=Eo,Si(e.child,i)):(ll(t),l=e.child,e=l.sibling,l=zn(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=l,t.memoizedState=null,l)}function To(e,t){return t=Jr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Jr(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function Co(e,t,l){return Dl(t,e.child,null,l),e=To(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wh(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ys(e.return,t,l)}function Ao(e,t,l,i,s,f){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:s,treeForkCount:f}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=l,y.tailMode=s,y.treeForkCount=f)}function em(e,t,l){var i=t.pendingProps,s=i.revealOrder,f=i.tail;i=i.children;var y=tt.current,v=(y&2)!==0;if(v?(y=y&1|2,t.flags|=128):y&=1,E(tt,y),gt(e,t,i,l),i=Ae?si:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wh(e,l,t);else if(e.tag===19)Wh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&Ur(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),Ao(t,!1,s,l,f,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ur(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}Ao(t,!0,l,null,f,i);break;case"together":Ao(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Dn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ul|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(da(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=zn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=zn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function zo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&kr(e)))}function _b(e,t,l){switch(t.tag){case 3:Ze(t,t.stateNode.containerInfo),Wn(t,lt,e.memoizedState.cache),zl();break;case 27:case 5:Ft(t);break;case 4:Ze(t,t.stateNode.containerInfo);break;case 10:Wn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ws(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(ll(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Ph(e,t,l):(ll(t),e=Dn(e,t,l),e!==null?e.sibling:null);ll(t);break;case 19:var s=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(da(e,t,l,!1),i=(l&t.childLanes)!==0),s){if(i)return em(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),E(tt,tt.current),i)break;return null;case 22:return t.lanes=0,Xh(e,t,l,t.pendingProps);case 24:Wn(t,lt,e.memoizedState.cache)}return Dn(e,t,l)}function tm(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!zo(e,l)&&(t.flags&128)===0)return it=!1,_b(e,t,l);it=(e.flags&131072)!==0}else it=!1,Ae&&(t.flags&1048576)!==0&&Od(t,si,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ol(t.elementType),t.type=e,typeof e=="function")Os(e)?(i=Bl(e,i),t.tag=1,t=Jh(null,t,e,i,l)):(t.tag=0,t=wo(null,t,e,i,l));else{if(e!=null){var s=e.$$typeof;if(s===I){t.tag=11,t=Kh(null,t,e,i,l);break e}else if(s===F){t.tag=14,t=Qh(null,t,e,i,l);break e}}throw t=ae(e)||e,Error(u(306,t,""))}}return t;case 0:return wo(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,s=Bl(i,t.pendingProps),Jh(e,t,i,s,l);case 3:e:{if(Ze(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var f=t.memoizedState;s=f.element,$s(e,t),gi(t,i,null,l);var y=t.memoizedState;if(i=y.cache,Wn(t,lt,i),i!==f.cache&&Vs(t,[lt],l,!0),pi(),i=y.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Ih(e,t,i,l);break e}else if(i!==s){s=Wt(Error(u(424)),t),oi(s),t=Ih(e,t,i,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=an(e.firstChild),mt=t,Ae=!0,In=null,nn=!0,l=Xd(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(zl(),i===s){t=Dn(e,t,l);break e}gt(e,t,i,l)}t=t.child}return t;case 26:return Fr(e,t),e===null?(l=dp(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ae||(l=t.type,e=t.pendingProps,i=du(ue.current).createElement(l),i[ht]=t,i[Tt]=e,yt(i,l,e),ft(i),t.stateNode=i):t.memoizedState=dp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ft(t),e===null&&Ae&&(i=t.stateNode=op(t.type,t.pendingProps,ue.current),mt=t,nn=!0,s=Qe,dl(t.type)?(sc=s,Qe=an(i.firstChild)):Qe=s),gt(e,t,t.pendingProps.children,l),Fr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((s=i=Qe)&&(i=sv(i,t.type,t.pendingProps,nn),i!==null?(t.stateNode=i,mt=t,Qe=an(i.firstChild),nn=!1,s=!0):s=!1),s||Pn(t)),Ft(t),s=t.type,f=t.pendingProps,y=e!==null?e.memoizedProps:null,i=f.children,lc(s,f)?i=null:y!==null&&lc(s,y)&&(t.flags|=32),t.memoizedState!==null&&(s=to(e,t,Eb,null,null,l),Li._currentValue=s),Fr(e,t),gt(e,t,i,l),t.child;case 6:return e===null&&Ae&&((e=l=Qe)&&(l=ov(l,t.pendingProps,nn),l!==null?(t.stateNode=l,mt=t,Qe=null,e=!0):e=!1),e||Pn(t)),null;case 13:return Ph(e,t,l);case 4:return Ze(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Dl(t,null,i,l):gt(e,t,i,l),t.child;case 11:return Kh(e,t,t.type,t.pendingProps,l);case 7:return gt(e,t,t.pendingProps,l),t.child;case 8:return gt(e,t,t.pendingProps.children,l),t.child;case 12:return gt(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Wn(t,t.type,i.value),gt(e,t,i.children,l),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,Rl(t),s=pt(s),i=i(s),t.flags|=1,gt(e,t,i,l),t.child;case 14:return Qh(e,t,t.type,t.pendingProps,l);case 15:return Gh(e,t,t.type,t.pendingProps,l);case 19:return em(e,t,l);case 31:return Rb(e,t,l);case 22:return Xh(e,t,l,t.pendingProps);case 24:return Rl(t),i=pt(lt),e===null?(s=Gs(),s===null&&(s=Ye,f=Ks(),s.pooledCache=f,f.refCount++,f!==null&&(s.pooledCacheLanes|=l),s=f),t.memoizedState={parent:i,cache:s},Zs(t),Wn(t,lt,s)):((e.lanes&l)!==0&&($s(e,t),gi(t,null,null,l),pi()),s=e.memoizedState,f=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Wn(t,lt,i)):(i=f.cache,Wn(t,lt,i),i!==s.cache&&Vs(t,[lt],l,!0))),gt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Ln(e){e.flags|=4}function ko(e,t,l,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Am())e.flags|=8192;else throw Ml=Mr,Xs}else e.flags&=-16777217}function nm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!yp(t))if(Am())e.flags|=8192;else throw Ml=Mr,Xs}function Ir(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Df():536870912,e.lanes|=t,ja|=t)}function wi(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function Ob(e,t,l){var i=t.pendingProps;switch(Bs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),_n(lt),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(fa(t)?Ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hs())),Ge(t),null;case 26:var s=t.type,f=t.memoizedState;return e===null?(Ln(t),f!==null?(Ge(t),nm(t,f)):(Ge(t),ko(t,s,null,i,l))):f?f!==e.memoizedState?(Ln(t),Ge(t),nm(t,f)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Ln(t),Ge(t),ko(t,s,e,i,l)),null;case 27:if(En(t),l=ue.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ge(t),null}e=ee.current,fa(t)?Dd(t):(e=op(s,i,l),t.stateNode=e,Ln(t))}return Ge(t),null;case 5:if(En(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ge(t),null}if(f=ee.current,fa(t))Dd(t);else{var y=du(ue.current);switch(f){case 1:f=y.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:f=y.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":f=y.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":f=y.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":f=y.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?f.multiple=!0:i.size&&(f.size=i.size);break;default:f=typeof i.is=="string"?y.createElement(s,{is:i.is}):y.createElement(s)}}f[ht]=t,f[Tt]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)f.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=f;e:switch(yt(f,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ln(t)}}return Ge(t),ko(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,fa(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,s=mt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[ht]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||Pn(t,!0)}else e=du(e).createTextNode(i),e[ht]=t,t.stateNode=e}return Ge(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=fa(t),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ht]=t}else zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else l=Hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ge(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=fa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ht]=t}else zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),s=!1}else s=Hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==s&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ir(t,t.updateQueue),Ge(t),null);case 4:return Le(),e===null&&Po(t.stateNode.containerInfo),Ge(t),null;case 10:return _n(t.type),Ge(t),null;case 19:if(V(tt),i=t.memoizedState,i===null)return Ge(t),null;if(s=(t.flags&128)!==0,f=i.rendering,f===null)if(s)wi(i,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ur(e),f!==null){for(t.flags|=128,wi(i,!1),e=f.updateQueue,t.updateQueue=e,Ir(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)kd(l,e),l=l.sibling;return E(tt,tt.current&1|2),Ae&&kn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&St()>nu&&(t.flags|=128,s=!0,wi(i,!1),t.lanes=4194304)}else{if(!s)if(e=Ur(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ir(t,e),wi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!Ae)return Ge(t),null}else 2*St()-i.renderingStartTime>nu&&l!==536870912&&(t.flags|=128,s=!0,wi(i,!1),t.lanes=4194304);i.isBackwards?(f.sibling=t.child,t.child=f):(e=i.last,e!==null?e.sibling=f:t.child=f,i.last=f)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=St(),e.sibling=null,l=tt.current,E(tt,s?l&1|2:l&1),Ae&&kn(t,i.treeForkCount),e):(Ge(t),null);case 22:case 23:return qt(t),Ps(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),l=t.updateQueue,l!==null&&Ir(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&V(_l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),_n(lt),Ge(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Mb(e,t){switch(Bs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(lt),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return En(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(tt),null;case 4:return Le(),null;case 10:return _n(t.type),null;case 22:case 23:return qt(t),Ps(),e!==null&&V(_l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(lt),null;case 25:return null;default:return null}}function lm(e,t){switch(Bs(t),t.tag){case 3:_n(lt),Le();break;case 26:case 27:case 5:En(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:V(tt);break;case 10:_n(t.type);break;case 22:case 23:qt(t),Ps(),e!==null&&V(_l);break;case 24:_n(lt)}}function Ei(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){i=void 0;var f=l.create,y=l.inst;i=f(),y.destroy=i}l=l.next}while(l!==s)}}catch(v){De(t,t.return,v)}}function il(e,t,l){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&e)===e){var y=i.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,s=t;var N=l,L=v;try{L()}catch(Y){De(s,N,Y)}}}i=i.next}while(i!==f)}}catch(Y){De(t,t.return,Y)}}function am(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{$d(t,l)}catch(i){De(e,e.return,i)}}}function im(e,t,l){l.props=Bl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){De(e,t,i)}}function ji(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(s){De(e,t,s)}}function xn(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(s){De(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){De(e,t,s)}else l.current=null}function rm(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(s){De(e,e.return,s)}}function Ro(e,t,l){try{var i=e.stateNode;nv(i,e.type,l,t),i[Tt]=t}catch(s){De(e,e.return,s)}}function um(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&dl(e.type)||e.tag===4}function _o(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||um(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&&dl(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 Oo(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Cn));else if(i!==4&&(i===27&&dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Oo(e,t,l),e=e.sibling;e!==null;)Oo(e,t,l),e=e.sibling}function Pr(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Pr(e,t,l),e=e.sibling;e!==null;)Pr(e,t,l),e=e.sibling}function sm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);yt(t,i,l),t[ht]=e,t[Tt]=l}catch(f){De(e,e.return,f)}}var Bn=!1,rt=!1,Mo=!1,om=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Db(e,t){if(e=e.containerInfo,tc=bu,e=Sd(e),Ts(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var s=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var y=0,v=-1,N=-1,L=0,Y=0,G=e,B=null;t:for(;;){for(var H;G!==l||s!==0&&G.nodeType!==3||(v=y+s),G!==f||i!==0&&G.nodeType!==3||(N=y+i),G.nodeType===3&&(y+=G.nodeValue.length),(H=G.firstChild)!==null;)B=G,G=H;for(;;){if(G===e)break t;if(B===l&&++L===s&&(v=y),B===f&&++Y===i&&(N=y),(H=G.nextSibling)!==null)break;G=B,B=G.parentNode}G=H}l=v===-1||N===-1?null:{start:v,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(nc={focusedElem:e,selectionRange:l},bu=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,s=f.memoizedProps,f=f.memoizedState,i=l.stateNode;try{var le=Bl(l.type,s);e=i.getSnapshotBeforeUpdate(le,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(fe){De(l,l.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ic(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ic(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function cm(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Hn(e,l),i&4&&Ei(5,l);break;case 1:if(Hn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(y){De(l,l.return,y)}else{var s=Bl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){De(l,l.return,y)}}i&64&&am(l),i&512&&ji(l,l.return);break;case 3:if(Hn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{$d(e,t)}catch(y){De(l,l.return,y)}}break;case 27:t===null&&i&4&&sm(l);case 26:case 5:Hn(e,l),t===null&&i&4&&rm(l),i&512&&ji(l,l.return);break;case 12:Hn(e,l);break;case 31:Hn(e,l),i&4&&hm(e,l);break;case 13:Hn(e,l),i&4&&mm(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Qb.bind(null,l),cv(e,l))));break;case 22:if(i=l.memoizedState!==null||Bn,!i){t=t!==null&&t.memoizedState!==null||rt,s=Bn;var f=rt;Bn=i,(rt=t)&&!f?qn(e,l,(l.subtreeFlags&8772)!==0):Hn(e,l),Bn=s,rt=f}break;case 30:break;default:Hn(e,l)}}function fm(e){var t=e.alternate;t!==null&&(e.alternate=null,fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&os(t)),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,At=!1;function Un(e,t,l){for(l=l.child;l!==null;)dm(e,t,l),l=l.sibling}function dm(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(wt,l)}catch{}switch(l.tag){case 26:rt||xn(l,t),Un(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:rt||xn(l,t);var i=$e,s=At;dl(l.type)&&($e=l.stateNode,At=!1),Un(e,t,l),Oi(l.stateNode),$e=i,At=s;break;case 5:rt||xn(l,t);case 6:if(i=$e,s=At,$e=null,Un(e,t,l),$e=i,At=s,$e!==null)if(At)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(l.stateNode)}catch(f){De(l,t,f)}else try{$e.removeChild(l.stateNode)}catch(f){De(l,t,f)}break;case 18:$e!==null&&(At?(e=$e,ap(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),_a(e)):ap($e,l.stateNode));break;case 4:i=$e,s=At,$e=l.stateNode.containerInfo,At=!0,Un(e,t,l),$e=i,At=s;break;case 0:case 11:case 14:case 15:il(2,l,t),rt||il(4,l,t),Un(e,t,l);break;case 1:rt||(xn(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&im(l,t,i)),Un(e,t,l);break;case 21:Un(e,t,l);break;case 22:rt=(i=rt)||l.memoizedState!==null,Un(e,t,l),rt=i;break;default:Un(e,t,l)}}function hm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_a(e)}catch(l){De(t,t.return,l)}}}function mm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_a(e)}catch(l){De(t,t.return,l)}}function Lb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new om),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new om),t;default:throw Error(u(435,e.tag))}}function Wr(e,t){var l=Lb(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var s=Gb.bind(null,e,i);i.then(s,s)}})}function zt(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i],f=e,y=t,v=y;e:for(;v!==null;){switch(v.tag){case 27:if(dl(v.type)){$e=v.stateNode,At=!1;break e}break;case 5:$e=v.stateNode,At=!1;break e;case 3:case 4:$e=v.stateNode.containerInfo,At=!0;break e}v=v.return}if($e===null)throw Error(u(160));dm(f,y,s),$e=null,At=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pm(t,e),t=t.sibling}var dn=null;function pm(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),kt(e),i&4&&(il(3,e,e.return),Ei(3,e),il(5,e,e.return));break;case 1:zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),i&64&&Bn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var s=dn;if(zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),i&4){var f=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":f=s.getElementsByTagName("title")[0],(!f||f[Ia]||f[ht]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=s.createElement(i),s.head.insertBefore(f,s.querySelector("head > title"))),yt(f,i,l),f[ht]=e,ft(f),i=f;break e;case"link":var y=pp("link","href",s).get(i+(l.href||""));if(y){for(var v=0;v<y.length;v++)if(f=y[v],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){y.splice(v,1);break t}}f=s.createElement(i),yt(f,i,l),s.head.appendChild(f);break;case"meta":if(y=pp("meta","content",s).get(i+(l.content||""))){for(v=0;v<y.length;v++)if(f=y[v],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){y.splice(v,1);break t}}f=s.createElement(i),yt(f,i,l),s.head.appendChild(f);break;default:throw Error(u(468,i))}f[ht]=e,ft(f),i=f}e.stateNode=i}else gp(s,e.type,e.stateNode);else e.stateNode=mp(s,i,e.memoizedProps);else f!==i?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,i===null?gp(s,e.type,e.stateNode):mp(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Ro(e,e.memoizedProps,l.memoizedProps)}break;case 27:zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),l!==null&&i&4&&Ro(e,e.memoizedProps,l.memoizedProps);break;case 5:if(zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),e.flags&32){s=e.stateNode;try{ta(s,"")}catch(le){De(e,e.return,le)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,Ro(e,s,l!==null?l.memoizedProps:s)),i&1024&&(Mo=!0);break;case 6:if(zt(t,e),kt(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(le){De(e,e.return,le)}}break;case 3:if(pu=null,s=dn,dn=hu(t.containerInfo),zt(t,e),dn=s,kt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{_a(t.containerInfo)}catch(le){De(e,e.return,le)}Mo&&(Mo=!1,gm(e));break;case 4:i=dn,dn=hu(e.stateNode.containerInfo),zt(t,e),kt(e),dn=i;break;case 12:zt(t,e),kt(e);break;case 31:zt(t,e),kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Wr(e,i)));break;case 13:zt(t,e),kt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(tu=St()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Wr(e,i)));break;case 22:s=e.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,L=Bn,Y=rt;if(Bn=L||s,rt=Y||N,zt(t,e),rt=Y,Bn=L,kt(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||N||Bn||rt||Ul(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){N=l=t;try{if(f=N.stateNode,s)y=f.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=N.stateNode;var G=N.memoizedProps.style,B=G!=null&&G.hasOwnProperty("display")?G.display:null;v.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(le){De(N,N.return,le)}}}else if(t.tag===6){if(l===null){N=t;try{N.stateNode.nodeValue=s?"":N.memoizedProps}catch(le){De(N,N.return,le)}}}else if(t.tag===18){if(l===null){N=t;try{var H=N.stateNode;s?ip(H,!0):ip(N.stateNode,!1)}catch(le){De(N,N.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Wr(e,l))));break;case 19:zt(t,e),kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Wr(e,i)));break;case 30:break;case 21:break;default:zt(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(um(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var s=l.stateNode,f=_o(e);Pr(e,f,s);break;case 5:var y=l.stateNode;l.flags&32&&(ta(y,""),l.flags&=-33);var v=_o(e);Pr(e,v,y);break;case 3:case 4:var N=l.stateNode.containerInfo,L=_o(e);Oo(e,L,N);break;default:throw Error(u(161))}}catch(Y){De(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cm(e,t.alternate,t),t=t.sibling}function Ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:il(4,t,t.return),Ul(t);break;case 1:xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&im(t,t.return,l),Ul(t);break;case 27:Oi(t.stateNode);case 26:case 5:xn(t,t.return),Ul(t);break;case 22:t.memoizedState===null&&Ul(t);break;case 30:Ul(t);break;default:Ul(t)}e=e.sibling}}function qn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,f=t,y=f.flags;switch(f.tag){case 0:case 11:case 15:qn(s,f,l),Ei(4,f);break;case 1:if(qn(s,f,l),i=f,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(L){De(i,i.return,L)}if(i=f,s=i.updateQueue,s!==null){var v=i.stateNode;try{var N=s.shared.hiddenCallbacks;if(N!==null)for(s.shared.hiddenCallbacks=null,s=0;s<N.length;s++)Zd(N[s],v)}catch(L){De(i,i.return,L)}}l&&y&64&&am(f),ji(f,f.return);break;case 27:sm(f);case 26:case 5:qn(s,f,l),l&&i===null&&y&4&&rm(f),ji(f,f.return);break;case 12:qn(s,f,l);break;case 31:qn(s,f,l),l&&y&4&&hm(s,f);break;case 13:qn(s,f,l),l&&y&4&&mm(s,f);break;case 22:f.memoizedState===null&&qn(s,f,l),ji(f,f.return);break;case 30:break;default:qn(s,f,l)}t=t.sibling}}function Do(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ci(l))}function Lo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function hn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ym(e,t,l,i),t=t.sibling}function ym(e,t,l,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:hn(e,t,l,i),s&2048&&Ei(9,t);break;case 1:hn(e,t,l,i);break;case 3:hn(e,t,l,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(s&2048){hn(e,t,l,i),e=t.stateNode;try{var f=t.memoizedProps,y=f.id,v=f.onPostCommit;typeof v=="function"&&v(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){De(t,t.return,N)}}else hn(e,t,l,i);break;case 31:hn(e,t,l,i);break;case 13:hn(e,t,l,i);break;case 23:break;case 22:f=t.stateNode,y=t.alternate,t.memoizedState!==null?f._visibility&2?hn(e,t,l,i):Ni(e,t):f._visibility&2?hn(e,t,l,i):(f._visibility|=2,Sa(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Do(y,t);break;case 24:hn(e,t,l,i),s&2048&&Lo(t.alternate,t);break;default:hn(e,t,l,i)}}function Sa(e,t,l,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,y=t,v=l,N=i,L=y.flags;switch(y.tag){case 0:case 11:case 15:Sa(f,y,v,N,s),Ei(8,y);break;case 23:break;case 22:var Y=y.stateNode;y.memoizedState!==null?Y._visibility&2?Sa(f,y,v,N,s):Ni(f,y):(Y._visibility|=2,Sa(f,y,v,N,s)),s&&L&2048&&Do(y.alternate,y);break;case 24:Sa(f,y,v,N,s),s&&L&2048&&Lo(y.alternate,y);break;default:Sa(f,y,v,N,s)}t=t.sibling}}function Ni(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,s=i.flags;switch(i.tag){case 22:Ni(l,i),s&2048&&Do(i.alternate,i);break;case 24:Ni(l,i),s&2048&&Lo(i.alternate,i);break;default:Ni(l,i)}t=t.sibling}}var Ti=8192;function wa(e,t,l){if(e.subtreeFlags&Ti)for(e=e.child;e!==null;)xm(e,t,l),e=e.sibling}function xm(e,t,l){switch(e.tag){case 26:wa(e,t,l),e.flags&Ti&&e.memoizedState!==null&&wv(l,dn,e.memoizedState,e.memoizedProps);break;case 5:wa(e,t,l);break;case 3:case 4:var i=dn;dn=hu(e.stateNode.containerInfo),wa(e,t,l),dn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ti,Ti=16777216,wa(e,t,l),Ti=i):wa(e,t,l));break;default:wa(e,t,l)}}function bm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ci(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];dt=i,Sm(i,e)}bm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vm(e),e=e.sibling}function vm(e){switch(e.tag){case 0:case 11:case 15:Ci(e),e.flags&2048&&il(9,e,e.return);break;case 3:Ci(e);break;case 12:Ci(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,eu(e)):Ci(e);break;default:Ci(e)}}function eu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];dt=i,Sm(i,e)}bm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:il(8,t,t.return),eu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,eu(t));break;default:eu(t)}e=e.sibling}}function Sm(e,t){for(;dt!==null;){var l=dt;switch(l.tag){case 0:case 11:case 15:il(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ci(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,dt=i;else e:for(l=e;dt!==null;){i=dt;var s=i.sibling,f=i.return;if(fm(i),i===l){dt=null;break e}if(s!==null){s.return=f,dt=s;break e}dt=f}}}var Bb={getCacheForType:function(e){var t=pt(lt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return pt(lt).controller.signal}},Ub=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ye=null,Ee=null,Te=0,Me=0,Yt=null,rl=!1,Ea=!1,Bo=!1,Yn=0,We=0,ul=0,Hl=0,Uo=0,Vt=0,ja=0,Ai=null,Rt=null,Ho=!1,tu=0,wm=0,nu=1/0,lu=null,sl=null,ct=0,ol=null,Na=null,Vn=0,qo=0,Yo=null,Em=null,zi=0,Vo=null;function Kt(){return(Re&2)!==0&&Te!==0?Te&-Te:M.T!==null?$o():Hf()}function jm(){if(Vt===0)if((Te&536870912)===0||Ae){var e=fr;fr<<=1,(fr&3932160)===0&&(fr=262144),Vt=e}else Vt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Vt}function _t(e,t,l){(e===Ye&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Ta(e,0),cl(e,Te,Vt,!1)),Ja(e,l),((Re&2)===0||e!==Ye)&&(e===Ye&&((Re&2)===0&&(Hl|=l),We===4&&cl(e,Te,Vt,!1)),bn(e))}function Nm(e,t,l){if((Re&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Fa(e,t),s=i?Yb(e,t):Qo(e,t,!0),f=i;do{if(s===0){Ea&&!i&&cl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!Hb(l)){s=Qo(e,t,!1),f=!1;continue}if(s===2){if(f=t,e.errorRecoveryDisabledLanes&f)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var v=e;s=Ai;var N=v.current.memoizedState.isDehydrated;if(N&&(Ta(v,y).flags|=256),y=Qo(v,y,!1),y!==2){if(Bo&&!N){v.errorRecoveryDisabledLanes|=f,Hl|=f,s=4;break e}f=Rt,Rt=s,f!==null&&(Rt===null?Rt=f:Rt.push.apply(Rt,f))}s=y}if(f=!1,s!==2)continue}}if(s===1){Ta(e,0),cl(e,t,0,!0);break}e:{switch(i=e,f=s,f){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:cl(i,t,Vt,!rl);break e;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=tu+300-St(),10<s)){if(cl(i,t,Vt,!rl),hr(i,0,!0)!==0)break e;Vn=t,i.timeoutHandle=np(Tm.bind(null,i,l,Rt,lu,Ho,t,Vt,Hl,ja,rl,f,"Throttled",-0,0),s);break e}Tm(i,l,Rt,lu,Ho,t,Vt,Hl,ja,rl,f,null,-0,0)}}break}while(!0);bn(e)}function Tm(e,t,l,i,s,f,y,v,N,L,Y,G,B,H){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},xm(t,f,G);var le=(f&62914560)===f?tu-St():(f&4194048)===f?wm-St():0;if(le=Ev(G,le),le!==null){Vn=f,e.cancelPendingCommit=le(Mm.bind(null,e,t,f,l,i,s,y,v,N,Y,G,null,B,H)),cl(e,f,y,!L);return}}Mm(e,t,f,l,i,s,y,v,N)}function Hb(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var s=l[i],f=s.getSnapshot;s=s.value;try{if(!Bt(f(),s))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function cl(e,t,l,i){t&=~Uo,t&=~Hl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var f=31-qe(s),y=1<<f;i[f]=-1,s&=~y}l!==0&&Lf(e,l,t)}function au(){return(Re&6)===0?(ki(0),!1):!0}function Ko(){if(Ee!==null){if(Me===0)var e=Ee.return;else e=Ee,Rn=kl=null,ao(e),ga=null,di=0,e=Ee;for(;e!==null;)lm(e.alternate,e),e=e.return;Ee=null}}function Ta(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,iv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Vn=0,Ko(),Ye=e,Ee=l=zn(e.current,null),Te=t,Me=0,Yt=null,rl=!1,Ea=Fa(e,t),Bo=!1,ja=Vt=Uo=Hl=ul=We=0,Rt=Ai=null,Ho=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-qe(i),f=1<<s;t|=e[s],i&=~f}return Yn=t,Nr(),l}function Cm(e,t){xe=null,M.H=vi,t===pa||t===Or?(t=Kd(),Me=3):t===Xs?(t=Kd(),Me=4):Me=t===So?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,Ee===null&&(We=1,Zr(e,Wt(t,e.current)))}function Am(){var e=Ht.current;return e===null?!0:(Te&4194048)===Te?ln===null:(Te&62914560)===Te||(Te&536870912)!==0?e===ln:!1}function zm(){var e=M.H;return M.H=vi,e===null?vi:e}function km(){var e=M.A;return M.A=Bb,e}function iu(){We=4,rl||(Te&4194048)!==Te&&Ht.current!==null||(Ea=!0),(ul&134217727)===0&&(Hl&134217727)===0||Ye===null||cl(Ye,Te,Vt,!1)}function Qo(e,t,l){var i=Re;Re|=2;var s=zm(),f=km();(Ye!==e||Te!==t)&&(lu=null,Ta(e,t)),t=!1;var y=We;e:do try{if(Me!==0&&Ee!==null){var v=Ee,N=Yt;switch(Me){case 8:Ko(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var L=Me;if(Me=0,Yt=null,Ca(e,v,N,L),l&&Ea){y=0;break e}break;default:L=Me,Me=0,Yt=null,Ca(e,v,N,L)}}qb(),y=We;break}catch(Y){Cm(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Rn=kl=null,Re=i,M.H=s,M.A=f,Ee===null&&(Ye=null,Te=0,Nr()),y}function qb(){for(;Ee!==null;)Rm(Ee)}function Yb(e,t){var l=Re;Re|=2;var i=zm(),s=km();Ye!==e||Te!==t?(lu=null,nu=St()+500,Ta(e,t)):Ea=Fa(e,t);e:do try{if(Me!==0&&Ee!==null){t=Ee;var f=Yt;t:switch(Me){case 1:Me=0,Yt=null,Ca(e,t,f,1);break;case 2:case 9:if(Yd(f)){Me=0,Yt=null,_m(t);break}t=function(){Me!==2&&Me!==9||Ye!==e||(Me=7),bn(e)},f.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Yd(f)?(Me=0,Yt=null,_m(t)):(Me=0,Yt=null,Ca(e,t,f,7));break;case 5:var y=null;switch(Ee.tag){case 26:y=Ee.memoizedState;case 5:case 27:var v=Ee;if(y?yp(y):v.stateNode.complete){Me=0,Yt=null;var N=v.sibling;if(N!==null)Ee=N;else{var L=v.return;L!==null?(Ee=L,ru(L)):Ee=null}break t}}Me=0,Yt=null,Ca(e,t,f,5);break;case 6:Me=0,Yt=null,Ca(e,t,f,6);break;case 8:Ko(),We=6;break e;default:throw Error(u(462))}}Vb();break}catch(Y){Cm(e,Y)}while(!0);return Rn=kl=null,M.H=i,M.A=s,Re=l,Ee!==null?0:(Ye=null,Te=0,Nr(),We)}function Vb(){for(;Ee!==null&&!ns();)Rm(Ee)}function Rm(e){var t=tm(e.alternate,e,Yn);e.memoizedProps=e.pendingProps,t===null?ru(e):Ee=t}function _m(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Fh(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Fh(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:ao(t);default:lm(l,t),t=Ee=kd(t,Yn),t=tm(l,t,Yn)}e.memoizedProps=e.pendingProps,t===null?ru(e):Ee=t}function Ca(e,t,l,i){Rn=kl=null,ao(t),ga=null,di=0;var s=t.return;try{if(kb(e,s,t,l,Te)){We=1,Zr(e,Wt(l,e.current)),Ee=null;return}}catch(f){if(s!==null)throw Ee=s,f;We=1,Zr(e,Wt(l,e.current)),Ee=null;return}t.flags&32768?(Ae||i===1?e=!0:Ea||(Te&536870912)!==0?e=!1:(rl=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),Om(t,e)):ru(t)}function ru(e){var t=e;do{if((t.flags&32768)!==0){Om(t,rl);return}e=t.return;var l=Ob(t.alternate,t,Yn);if(l!==null){Ee=l;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);We===0&&(We=5)}function Om(e,t){do{var l=Mb(e.alternate,e);if(l!==null){l.flags&=32767,Ee=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=l}while(e!==null);We=6,Ee=null}function Mm(e,t,l,i,s,f,y,v,N){e.cancelPendingCommit=null;do uu();while(ct!==0);if((Re&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(f=t.lanes|t.childLanes,f|=Rs,Sx(e,l,f,y,v,N),e===Ye&&(Ee=Ye=null,Te=0),Na=t,ol=e,Vn=l,qo=f,Yo=s,Em=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xb(he,function(){return Hm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=M.T,M.T=null,s=Z.p,Z.p=2,y=Re,Re|=4;try{Db(e,t,l)}finally{Re=y,Z.p=s,M.T=i}}ct=1,Dm(),Lm(),Bm()}}function Dm(){if(ct===1){ct=0;var e=ol,t=Na,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var i=Z.p;Z.p=2;var s=Re;Re|=4;try{pm(t,e);var f=nc,y=Sd(e.containerInfo),v=f.focusedElem,N=f.selectionRange;if(y!==v&&v&&v.ownerDocument&&vd(v.ownerDocument.documentElement,v)){if(N!==null&&Ts(v)){var L=N.start,Y=N.end;if(Y===void 0&&(Y=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(Y,v.value.length);else{var G=v.ownerDocument||document,B=G&&G.defaultView||window;if(B.getSelection){var H=B.getSelection(),le=v.textContent.length,fe=Math.min(N.start,le),He=N.end===void 0?fe:Math.min(N.end,le);!H.extend&&fe>He&&(y=He,He=fe,fe=y);var _=bd(v,fe),C=bd(v,He);if(_&&C&&(H.rangeCount!==1||H.anchorNode!==_.node||H.anchorOffset!==_.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var D=G.createRange();D.setStart(_.node,_.offset),H.removeAllRanges(),fe>He?(H.addRange(D),H.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),H.addRange(D))}}}}for(G=[],H=v;H=H.parentNode;)H.nodeType===1&&G.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<G.length;v++){var Q=G[v];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}bu=!!tc,nc=tc=null}finally{Re=s,Z.p=i,M.T=l}}e.current=t,ct=2}}function Lm(){if(ct===2){ct=0;var e=ol,t=Na,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var i=Z.p;Z.p=2;var s=Re;Re|=4;try{cm(e,t.alternate,t)}finally{Re=s,Z.p=i,M.T=l}}ct=3}}function Bm(){if(ct===4||ct===3){ct=0,ls();var e=ol,t=Na,l=Vn,i=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,Na=ol=null,Um(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(sl=null),us(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(wt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=M.T,s=Z.p,Z.p=2,M.T=null;try{for(var f=e.onRecoverableError,y=0;y<i.length;y++){var v=i[y];f(v.value,{componentStack:v.stack})}}finally{M.T=t,Z.p=s}}(Vn&3)!==0&&uu(),bn(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===Vo?zi++:(zi=0,Vo=e):zi=0,ki(0)}}function Um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function uu(){return Dm(),Lm(),Bm(),Hm()}function Hm(){if(ct!==5)return!1;var e=ol,t=qo;qo=0;var l=us(Vn),i=M.T,s=Z.p;try{Z.p=32>l?32:l,M.T=null,l=Yo,Yo=null;var f=ol,y=Vn;if(ct=0,Na=ol=null,Vn=0,(Re&6)!==0)throw Error(u(331));var v=Re;if(Re|=4,vm(f.current),ym(f,f.current,y,l),Re=v,ki(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(wt,f)}catch{}return!0}finally{Z.p=s,M.T=i,Um(e,t)}}function qm(e,t,l){t=Wt(l,t),t=vo(e.stateNode,t,2),e=nl(e,t,2),e!==null&&(Ja(e,2),bn(e))}function De(e,t,l){if(e.tag===3)qm(e,e,l);else for(;t!==null;){if(t.tag===3){qm(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(sl===null||!sl.has(i))){e=Wt(l,e),l=Yh(2),i=nl(t,l,2),i!==null&&(Vh(l,i,t,e),Ja(i,2),bn(i));break}}t=t.return}}function Go(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new Ub;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(l)||(Bo=!0,s.add(l),e=Kb.bind(null,e,t,l),t.then(e,e))}function Kb(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ye===e&&(Te&l)===l&&(We===4||We===3&&(Te&62914560)===Te&&300>St()-tu?(Re&2)===0&&Ta(e,0):Uo|=l,ja===Te&&(ja=0)),bn(e)}function Ym(e,t){t===0&&(t=Df()),e=Cl(e,t),e!==null&&(Ja(e,t),bn(e))}function Qb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ym(e,l)}function Gb(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),Ym(e,l)}function Xb(e,t){return $l(e,t)}var su=null,Aa=null,Xo=!1,ou=!1,Zo=!1,fl=0;function bn(e){e!==Aa&&e.next===null&&(Aa===null?su=Aa=e:Aa=Aa.next=e),ou=!0,Xo||(Xo=!0,$b())}function ki(e,t){if(!Zo&&ou){Zo=!0;do for(var l=!1,i=su;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var f=0;else{var y=i.suspendedLanes,v=i.pingedLanes;f=(1<<31-qe(42|e)+1)-1,f&=s&~(y&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Gm(i,f))}else f=Te,f=hr(i,i===Ye?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||Fa(i,f)||(l=!0,Gm(i,f));i=i.next}while(l);Zo=!1}}function Zb(){Vm()}function Vm(){ou=Xo=!1;var e=0;fl!==0&&av()&&(e=fl);for(var t=St(),l=null,i=su;i!==null;){var s=i.next,f=Km(i,t);f===0?(i.next=null,l===null?su=s:l.next=s,s===null&&(Aa=l)):(l=i,(e!==0||(f&3)!==0)&&(ou=!0)),i=s}ct!==0&&ct!==5||ki(e),fl!==0&&(fl=0)}function Km(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var y=31-qe(f),v=1<<y,N=s[y];N===-1?((v&l)===0||(v&i)!==0)&&(s[y]=vx(v,t)):N<=t&&(e.expiredLanes|=v),f&=~v}if(t=Ye,l=Te,l=hr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&$a(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Fa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&$a(i),us(l)){case 2:case 8:l=P;break;case 32:l=he;break;case 268435456:l=Oe;break;default:l=he}return i=Qm.bind(null,e),l=$l(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&$a(i),e.callbackPriority=2,e.callbackNode=null,2}function Qm(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(uu()&&e.callbackNode!==l)return null;var i=Te;return i=hr(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Nm(e,i,t),Km(e,St()),e.callbackNode!=null&&e.callbackNode===l?Qm.bind(null,e):null)}function Gm(e,t){if(uu())return null;Nm(e,t,!0)}function $b(){rv(function(){(Re&6)!==0?$l(K,Zb):Vm()})}function $o(){if(fl===0){var e=ha;e===0&&(e=cr,cr<<=1,(cr&261888)===0&&(cr=256)),fl=e}return fl}function Xm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yr(""+e)}function Zm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Fb(e,t,l,i,s){if(t==="submit"&&l&&l.stateNode===s){var f=Xm((s[Tt]||null).action),y=i.submitter;y&&(t=(t=y[Tt]||null)?Xm(t.formAction):y.getAttribute("formAction"),t!==null&&(f=t,y=null));var v=new Sr("action","action",null,i,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(fl!==0){var N=y?Zm(s,y):new FormData(s);mo(l,{pending:!0,data:N,method:s.method,action:f},null,N)}}else typeof f=="function"&&(v.preventDefault(),N=y?Zm(s,y):new FormData(s),mo(l,{pending:!0,data:N,method:s.method,action:f},f,N))},currentTarget:s}]})}}for(var Fo=0;Fo<ks.length;Fo++){var Jo=ks[Fo],Jb=Jo.toLowerCase(),Ib=Jo[0].toUpperCase()+Jo.slice(1);fn(Jb,"on"+Ib)}fn(jd,"onAnimationEnd"),fn(Nd,"onAnimationIteration"),fn(Td,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(hb,"onTransitionRun"),fn(mb,"onTransitionStart"),fn(pb,"onTransitionCancel"),fn(Cd,"onTransitionEnd"),Wl("onMouseEnter",["mouseout","mouseover"]),Wl("onMouseLeave",["mouseout","mouseover"]),Wl("onPointerEnter",["pointerout","pointerover"]),Wl("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="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(" "),Pb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ri));function $m(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],s=i.event;i=i.listeners;e:{var f=void 0;if(t)for(var y=i.length-1;0<=y;y--){var v=i[y],N=v.instance,L=v.currentTarget;if(v=v.listener,N!==f&&s.isPropagationStopped())break e;f=v,s.currentTarget=L;try{f(s)}catch(Y){jr(Y)}s.currentTarget=null,f=N}else for(y=0;y<i.length;y++){if(v=i[y],N=v.instance,L=v.currentTarget,v=v.listener,N!==f&&s.isPropagationStopped())break e;f=v,s.currentTarget=L;try{f(s)}catch(Y){jr(Y)}s.currentTarget=null,f=N}}}}function je(e,t){var l=t[ss];l===void 0&&(l=t[ss]=new Set);var i=e+"__bubble";l.has(i)||(Fm(t,e,2,!1),l.add(i))}function Io(e,t,l){var i=0;t&&(i|=4),Fm(l,e,i,t)}var cu="_reactListening"+Math.random().toString(36).slice(2);function Po(e){if(!e[cu]){e[cu]=!0,Vf.forEach(function(l){l!=="selectionchange"&&(Pb.has(l)||Io(l,!1,e),Io(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cu]||(t[cu]=!0,Io("selectionchange",!1,t))}}function Fm(e,t,l,i){switch(jp(t)){case 2:var s=Tv;break;case 8:s=Cv;break;default:s=hc}l=s.bind(null,t,l,e),s=void 0,!ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function Wo(e,t,l,i,s){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var v=i.stateNode.containerInfo;if(v===s)break;if(y===4)for(y=i.return;y!==null;){var N=y.tag;if((N===3||N===4)&&y.stateNode.containerInfo===s)return;y=y.return}for(;v!==null;){if(y=Jl(v),y===null)return;if(N=y.tag,N===5||N===6||N===26||N===27){i=f=y;continue e}v=v.parentNode}}i=i.return}ed(function(){var L=f,Y=ps(l),G=[];e:{var B=Ad.get(e);if(B!==void 0){var H=Sr,le=e;switch(e){case"keypress":if(br(l)===0)break e;case"keydown":case"keyup":H=Gx;break;case"focusin":le="focus",H=Ss;break;case"focusout":le="blur",H=Ss;break;case"beforeblur":case"afterblur":H=Ss;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Ox;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=$x;break;case jd:case Nd:case Td:H=Lx;break;case Cd:H=Jx;break;case"scroll":case"scrollend":H=Rx;break;case"wheel":H=Px;break;case"copy":case"cut":case"paste":H=Ux;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=id;break;case"toggle":case"beforetoggle":H=eb}var fe=(t&4)!==0,He=!fe&&(e==="scroll"||e==="scrollend"),_=fe?B!==null?B+"Capture":null:B;fe=[];for(var C=L,D;C!==null;){var Q=C;if(D=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||D===null||_===null||(Q=Wa(C,_),Q!=null&&fe.push(_i(C,Q,D))),He)break;C=C.return}0<fe.length&&(B=new H(B,le,null,l,Y),G.push({event:B,listeners:fe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",B&&l!==ms&&(le=l.relatedTarget||l.fromElement)&&(Jl(le)||le[Fl]))break e;if((H||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,H?(le=l.relatedTarget||l.toElement,H=L,le=le?Jl(le):null,le!==null&&(He=c(le),fe=le.tag,le!==He||fe!==5&&fe!==27&&fe!==6)&&(le=null)):(H=null,le=L),H!==le)){if(fe=ld,Q="onMouseLeave",_="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(fe=id,Q="onPointerLeave",_="onPointerEnter",C="pointer"),He=H==null?B:Pa(H),D=le==null?B:Pa(le),B=new fe(Q,C+"leave",H,l,Y),B.target=He,B.relatedTarget=D,Q=null,Jl(Y)===L&&(fe=new fe(_,C+"enter",le,l,Y),fe.target=D,fe.relatedTarget=He,Q=fe),He=Q,H&&le)t:{for(fe=Wb,_=H,C=le,D=0,Q=_;Q;Q=fe(Q))D++;Q=0;for(var se=C;se;se=fe(se))Q++;for(;0<D-Q;)_=fe(_),D--;for(;0<Q-D;)C=fe(C),Q--;for(;D--;){if(_===C||C!==null&&_===C.alternate){fe=_;break t}_=fe(_),C=fe(C)}fe=null}else fe=null;H!==null&&Jm(G,B,H,fe,!1),le!==null&&He!==null&&Jm(G,He,le,fe,!0)}}e:{if(B=L?Pa(L):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var ze=hd;else if(fd(B))if(md)ze=cb;else{ze=sb;var re=ub}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?L&&hs(L.elementType)&&(ze=hd):ze=ob;if(ze&&(ze=ze(e,L))){dd(G,ze,l,Y);break e}re&&re(e,B,L),e==="focusout"&&L&&B.type==="number"&&L.memoizedProps.value!=null&&ds(B,"number",B.value)}switch(re=L?Pa(L):window,e){case"focusin":(fd(re)||re.contentEditable==="true")&&(ia=re,Cs=L,ui=null);break;case"focusout":ui=Cs=ia=null;break;case"mousedown":As=!0;break;case"contextmenu":case"mouseup":case"dragend":As=!1,wd(G,l,Y);break;case"selectionchange":if(db)break;case"keydown":case"keyup":wd(G,l,Y)}var be;if(Es)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else aa?od(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(rd&&l.locale!=="ko"&&(aa||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&aa&&(be=td()):(Fn=Y,xs="value"in Fn?Fn.value:Fn.textContent,aa=!0)),re=fu(L,Ce),0<re.length&&(Ce=new ad(Ce,e,null,l,Y),G.push({event:Ce,listeners:re}),be?Ce.data=be:(be=cd(l),be!==null&&(Ce.data=be)))),(be=nb?lb(e,l):ab(e,l))&&(Ce=fu(L,"onBeforeInput"),0<Ce.length&&(re=new ad("onBeforeInput","beforeinput",null,l,Y),G.push({event:re,listeners:Ce}),re.data=be)),Fb(G,e,L,l,Y)}$m(G,t)})}function _i(e,t,l){return{instance:e,listener:t,currentTarget:l}}function fu(e,t){for(var l=t+"Capture",i=[];e!==null;){var s=e,f=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||f===null||(s=Wa(e,l),s!=null&&i.unshift(_i(e,s,f)),s=Wa(e,t),s!=null&&i.push(_i(e,s,f))),e.tag===3)return i;e=e.return}return[]}function Wb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jm(e,t,l,i,s){for(var f=t._reactName,y=[];l!==null&&l!==i;){var v=l,N=v.alternate,L=v.stateNode;if(v=v.tag,N!==null&&N===i)break;v!==5&&v!==26&&v!==27||L===null||(N=L,s?(L=Wa(l,f),L!=null&&y.unshift(_i(l,L,N))):s||(L=Wa(l,f),L!=null&&y.push(_i(l,L,N)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var ev=/\r\n?/g,tv=/\u0000|\uFFFD/g;function Im(e){return(typeof e=="string"?e:""+e).replace(ev,`
49
- `).replace(tv,"")}function Pm(e,t){return t=Im(t),Im(e)===t}function Ue(e,t,l,i,s,f){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ta(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ta(e,""+i);break;case"className":pr(e,"class",i);break;case"tabIndex":pr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":pr(e,l,i);break;case"style":Pf(e,i,f);break;case"data":if(t!=="object"){pr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=yr(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(l==="formAction"?(t!=="input"&&Ue(e,t,"name",s.name,s,null),Ue(e,t,"formEncType",s.formEncType,s,null),Ue(e,t,"formMethod",s.formMethod,s,null),Ue(e,t,"formTarget",s.formTarget,s,null)):(Ue(e,t,"encType",s.encType,s,null),Ue(e,t,"method",s.method,s,null),Ue(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=yr(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=Cn);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=yr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":je("beforetoggle",e),je("toggle",e),mr(e,"popover",i);break;case"xlinkActuate":Tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Tn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Tn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Tn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Tn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":mr(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=zx.get(l)||l,mr(e,l,i))}}function ec(e,t,l,i,s,f){switch(l){case"style":Pf(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof i=="string"?ta(e,i):(typeof i=="number"||typeof i=="bigint")&&ta(e,""+i);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),f=e[Tt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,s),typeof i=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,s);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):mr(e,l,i)}}}function yt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var i=!1,s=!1,f;for(f in l)if(l.hasOwnProperty(f)){var y=l[f];if(y!=null)switch(f){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,f,y,l,null)}}s&&Ue(e,t,"srcSet",l.srcSet,l,null),i&&Ue(e,t,"src",l.src,l,null);return;case"input":je("invalid",e);var v=f=y=s=null,N=null,L=null;for(i in l)if(l.hasOwnProperty(i)){var Y=l[i];if(Y!=null)switch(i){case"name":s=Y;break;case"type":y=Y;break;case"checked":N=Y;break;case"defaultChecked":L=Y;break;case"value":f=Y;break;case"defaultValue":v=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,t));break;default:Ue(e,t,i,Y,l,null)}}$f(e,f,v,N,L,y,s,!1);return;case"select":je("invalid",e),i=y=f=null;for(s in l)if(l.hasOwnProperty(s)&&(v=l[s],v!=null))switch(s){case"value":f=v;break;case"defaultValue":y=v;break;case"multiple":i=v;default:Ue(e,t,s,v,l,null)}t=f,l=y,e.multiple=!!i,t!=null?ea(e,!!i,t,!1):l!=null&&ea(e,!!i,l,!0);return;case"textarea":je("invalid",e),f=s=i=null;for(y in l)if(l.hasOwnProperty(y)&&(v=l[y],v!=null))switch(y){case"value":i=v;break;case"defaultValue":s=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ue(e,t,y,v,l,null)}Jf(e,i,s,f);return;case"option":for(N in l)if(l.hasOwnProperty(N)&&(i=l[N],i!=null))switch(N){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ue(e,t,N,i,l,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(i=0;i<Ri.length;i++)je(Ri[i],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(L in l)if(l.hasOwnProperty(L)&&(i=l[L],i!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,L,i,l,null)}return;default:if(hs(t)){for(Y in l)l.hasOwnProperty(Y)&&(i=l[Y],i!==void 0&&ec(e,t,Y,i,l,void 0));return}}for(v in l)l.hasOwnProperty(v)&&(i=l[v],i!=null&&Ue(e,t,v,i,l,null))}function nv(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,f=null,y=null,v=null,N=null,L=null,Y=null;for(H in l){var G=l[H];if(l.hasOwnProperty(H)&&G!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":N=G;default:i.hasOwnProperty(H)||Ue(e,t,H,null,i,G)}}for(var B in i){var H=i[B];if(G=l[B],i.hasOwnProperty(B)&&(H!=null||G!=null))switch(B){case"type":f=H;break;case"name":s=H;break;case"checked":L=H;break;case"defaultChecked":Y=H;break;case"value":y=H;break;case"defaultValue":v=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:H!==G&&Ue(e,t,B,H,i,G)}}fs(e,y,v,N,L,Y,f,s);return;case"select":H=y=v=B=null;for(f in l)if(N=l[f],l.hasOwnProperty(f)&&N!=null)switch(f){case"value":break;case"multiple":H=N;default:i.hasOwnProperty(f)||Ue(e,t,f,null,i,N)}for(s in i)if(f=i[s],N=l[s],i.hasOwnProperty(s)&&(f!=null||N!=null))switch(s){case"value":B=f;break;case"defaultValue":v=f;break;case"multiple":y=f;default:f!==N&&Ue(e,t,s,f,i,N)}t=v,l=y,i=H,B!=null?ea(e,!!l,B,!1):!!i!=!!l&&(t!=null?ea(e,!!l,t,!0):ea(e,!!l,l?[]:"",!1));return;case"textarea":H=B=null;for(v in l)if(s=l[v],l.hasOwnProperty(v)&&s!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,i,s)}for(y in i)if(s=i[y],f=l[y],i.hasOwnProperty(y)&&(s!=null||f!=null))switch(y){case"value":B=s;break;case"defaultValue":H=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==f&&Ue(e,t,y,s,i,f)}Ff(e,B,H);return;case"option":for(var le in l)if(B=l[le],l.hasOwnProperty(le)&&B!=null&&!i.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Ue(e,t,le,null,i,B)}for(N in i)if(B=i[N],H=l[N],i.hasOwnProperty(N)&&B!==H&&(B!=null||H!=null))switch(N){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ue(e,t,N,B,i,H)}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 fe in l)B=l[fe],l.hasOwnProperty(fe)&&B!=null&&!i.hasOwnProperty(fe)&&Ue(e,t,fe,null,i,B);for(L in i)if(B=i[L],H=l[L],i.hasOwnProperty(L)&&B!==H&&(B!=null||H!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Ue(e,t,L,B,i,H)}return;default:if(hs(t)){for(var He in l)B=l[He],l.hasOwnProperty(He)&&B!==void 0&&!i.hasOwnProperty(He)&&ec(e,t,He,void 0,i,B);for(Y in i)B=i[Y],H=l[Y],!i.hasOwnProperty(Y)||B===H||B===void 0&&H===void 0||ec(e,t,Y,B,i,H);return}}for(var _ in l)B=l[_],l.hasOwnProperty(_)&&B!=null&&!i.hasOwnProperty(_)&&Ue(e,t,_,null,i,B);for(G in i)B=i[G],H=l[G],!i.hasOwnProperty(G)||B===H||B==null&&H==null||Ue(e,t,G,B,i,H)}function Wm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var s=l[i],f=s.transferSize,y=s.initiatorType,v=s.duration;if(f&&v&&Wm(y)){for(y=0,v=s.responseEnd,i+=1;i<l.length;i++){var N=l[i],L=N.startTime;if(L>v)break;var Y=N.transferSize,G=N.initiatorType;Y&&Wm(G)&&(N=N.responseEnd,y+=Y*(N<v?1:(v-L)/(N-L)))}if(--i,t+=8*(f+y)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var tc=null,nc=null;function du(e){return e.nodeType===9?e:e.ownerDocument}function ep(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 tp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function lc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ac=null;function av(){var e=window.event;return e&&e.type==="popstate"?e===ac?!1:(ac=e,!0):(ac=null,!1)}var np=typeof setTimeout=="function"?setTimeout:void 0,iv=typeof clearTimeout=="function"?clearTimeout:void 0,lp=typeof Promise=="function"?Promise:void 0,rv=typeof queueMicrotask=="function"?queueMicrotask:typeof lp<"u"?function(e){return lp.resolve(null).then(e).catch(uv)}:np;function uv(e){setTimeout(function(){throw e})}function dl(e){return e==="head"}function ap(e,t){var l=t,i=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(s),_a(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Oi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Oi(l);for(var f=l.firstChild;f;){var y=f.nextSibling,v=f.nodeName;f[Ia]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=y}}else l==="body"&&Oi(e.ownerDocument.body);l=s}while(l);_a(t)}function ip(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function ic(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ic(l),os(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function sv(e,t,l,i){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ia])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function ov(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=an(e.nextSibling),e===null))return null;return e}function rp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function rc(e){return e.data==="$?"||e.data==="$~"}function uc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function cv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function an(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var sc=null;function up(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return an(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function sp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function op(e,t,l){switch(t=du(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Oi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);os(e)}var rn=new Map,cp=new Set;function hu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=Z.d;Z.d={f:fv,r:dv,D:hv,C:mv,L:pv,m:gv,X:xv,S:yv,M:bv};function fv(){var e=Kn.f(),t=au();return e||t}function dv(e){var t=Il(e);t!==null&&t.tag===5&&t.type==="form"?Ch(t):Kn.r(e)}var za=typeof document>"u"?null:document;function fp(e,t,l){var i=za;if(i&&typeof t=="string"&&t){var s=It(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),cp.has(s)||(cp.add(s),e={rel:e,crossOrigin:l,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),yt(t,"link",e),ft(t),i.head.appendChild(t)))}}function hv(e){Kn.D(e),fp("dns-prefetch",e,null)}function mv(e,t){Kn.C(e,t),fp("preconnect",e,t)}function pv(e,t,l){Kn.L(e,t,l);var i=za;if(i&&e&&t){var s='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+It(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+It(l.imageSizes)+'"]')):s+='[href="'+It(e)+'"]';var f=s;switch(t){case"style":f=ka(e);break;case"script":f=Ra(e)}rn.has(f)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),rn.set(f,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(Mi(f))||t==="script"&&i.querySelector(Di(f))||(t=i.createElement("link"),yt(t,"link",e),ft(t),i.head.appendChild(t)))}}function gv(e,t){Kn.m(e,t);var l=za;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+It(i)+'"][href="'+It(e)+'"]',f=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ra(e)}if(!rn.has(f)&&(e=b({rel:"modulepreload",href:e},t),rn.set(f,e),l.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Di(f)))return}i=l.createElement("link"),yt(i,"link",e),ft(i),l.head.appendChild(i)}}}function yv(e,t,l){Kn.S(e,t,l);var i=za;if(i&&e){var s=Pl(i).hoistableStyles,f=ka(e);t=t||"default";var y=s.get(f);if(!y){var v={loading:0,preload:null};if(y=i.querySelector(Mi(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=rn.get(f))&&oc(e,l);var N=y=i.createElement("link");ft(N),yt(N,"link",e),N._p=new Promise(function(L,Y){N.onload=L,N.onerror=Y}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,mu(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:v},s.set(f,y)}}}function xv(e,t){Kn.X(e,t);var l=za;if(l&&e){var i=Pl(l).hoistableScripts,s=Ra(e),f=i.get(s);f||(f=l.querySelector(Di(s)),f||(e=b({src:e,async:!0},t),(t=rn.get(s))&&cc(e,t),f=l.createElement("script"),ft(f),yt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(s,f))}}function bv(e,t){Kn.M(e,t);var l=za;if(l&&e){var i=Pl(l).hoistableScripts,s=Ra(e),f=i.get(s);f||(f=l.querySelector(Di(s)),f||(e=b({src:e,async:!0,type:"module"},t),(t=rn.get(s))&&cc(e,t),f=l.createElement("script"),ft(f),yt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(s,f))}}function dp(e,t,l,i){var s=(s=ue.current)?hu(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ka(l.href),l=Pl(s).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ka(l.href);var f=Pl(s).hoistableStyles,y=f.get(e);if(y||(s=s.ownerDocument||s,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,y),(f=s.querySelector(Mi(e)))&&!f._p&&(y.instance=f,y.state.loading=5),rn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},rn.set(e,l),f||vv(s,e,l,y.state))),t&&i===null)throw Error(u(528,""));return y}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ra(l),l=Pl(s).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ka(e){return'href="'+It(e)+'"'}function Mi(e){return'link[rel="stylesheet"]['+e+"]"}function hp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function vv(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),yt(t,"link",l),ft(t),e.head.appendChild(t))}function Ra(e){return'[src="'+It(e)+'"]'}function Di(e){return"script[async]"+e}function mp(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+It(l.href)+'"]');if(i)return t.instance=i,ft(i),i;var s=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ft(i),yt(i,"style",s),mu(i,l.precedence,e),t.instance=i;case"stylesheet":s=ka(l.href);var f=e.querySelector(Mi(s));if(f)return t.state.loading|=4,t.instance=f,ft(f),f;i=hp(l),(s=rn.get(s))&&oc(i,s),f=(e.ownerDocument||e).createElement("link"),ft(f);var y=f;return y._p=new Promise(function(v,N){y.onload=v,y.onerror=N}),yt(f,"link",i),t.state.loading|=4,mu(f,l.precedence,e),t.instance=f;case"script":return f=Ra(l.src),(s=e.querySelector(Di(f)))?(t.instance=s,ft(s),s):(i=l,(s=rn.get(f))&&(i=b({},l),cc(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),ft(s),yt(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,mu(i,l.precedence,e));return t.instance}function mu(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,f=s,y=0;y<i.length;y++){var v=i[y];if(v.dataset.precedence===t)f=v;else if(f!==s)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pu=null;function pp(e,t,l){if(pu===null){var i=new Map,s=pu=new Map;s.set(l,i)}else s=pu,i=s.get(l),i||(i=new Map,s.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var f=l[s];if(!(f[Ia]||f[ht]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var y=f.getAttribute(t)||"";y=e+y;var v=i.get(y);v?v.push(f):i.set(y,[f])}}return i}function gp(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Sv(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function yp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wv(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=ka(i.href),f=t.querySelector(Mi(s));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=gu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,ft(f);return}f=t.ownerDocument||t,i=hp(i),(s=rn.get(s))&&oc(i,s),f=f.createElement("link"),ft(f);var y=f;y._p=new Promise(function(v,N){y.onload=v,y.onerror=N}),yt(f,"link",i),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=gu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var fc=0;function Ev(e,t){return e.stylesheets&&e.count===0&&xu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&xu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&fc===0&&(fc=62500*lv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>fc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function gu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yu=null;function xu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yu=new Map,t.forEach(jv,e),yu=null,gu.call(e))}function jv(e,t){if(!(t.state.loading&4)){var l=yu.get(e);if(l)var i=l.get(null);else{l=new Map,yu.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<s.length;f++){var y=s[f];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(l.set(y.dataset.precedence,y),i=y)}i&&l.set(null,i)}s=t.instance,y=s.getAttribute("data-precedence"),f=l.get(y)||i,f===i&&l.set(null,s),l.set(y,s),this.count++,i=gu.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),f?f.parentNode.insertBefore(s,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Li={$$typeof:O,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Nv(e,t,l,i,s,f,y,v,N){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=is(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=is(0),this.hiddenUpdates=is(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=f,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function xp(e,t,l,i,s,f,y,v,N,L,Y,G){return e=new Nv(e,t,l,y,N,L,Y,G,v),t=1,f===!0&&(t|=24),f=Ut(3,null,null,t),e.current=f,f.stateNode=e,t=Ks(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:l,cache:t},Zs(f),e}function bp(e){return e?(e=sa,e):sa}function vp(e,t,l,i,s,f){s=bp(s),i.context===null?i.context=s:i.pendingContext=s,i=tl(t),i.payload={element:l},f=f===void 0?null:f,f!==null&&(i.callback=f),l=nl(e,i,t),l!==null&&(_t(l,e,t),mi(l,e,t))}function Sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function dc(e,t){Sp(e,t),(e=e.alternate)&&Sp(e,t)}function wp(e){if(e.tag===13||e.tag===31){var t=Cl(e,67108864);t!==null&&_t(t,e,67108864),dc(e,67108864)}}function Ep(e){if(e.tag===13||e.tag===31){var t=Kt();t=rs(t);var l=Cl(e,t);l!==null&&_t(l,e,t),dc(e,t)}}var bu=!0;function Tv(e,t,l,i){var s=M.T;M.T=null;var f=Z.p;try{Z.p=2,hc(e,t,l,i)}finally{Z.p=f,M.T=s}}function Cv(e,t,l,i){var s=M.T;M.T=null;var f=Z.p;try{Z.p=8,hc(e,t,l,i)}finally{Z.p=f,M.T=s}}function hc(e,t,l,i){if(bu){var s=mc(i);if(s===null)Wo(e,t,i,vu,l),Np(e,i);else if(zv(s,e,t,l,i))i.stopPropagation();else if(Np(e,i),t&4&&-1<Av.indexOf(e)){for(;s!==null;){var f=Il(s);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=wl(f.pendingLanes);if(y!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var N=1<<31-qe(y);v.entanglements[1]|=N,y&=~N}bn(f),(Re&6)===0&&(nu=St()+500,ki(0))}}break;case 31:case 13:v=Cl(f,2),v!==null&&_t(v,f,2),au(),dc(f,2)}if(f=mc(i),f===null&&Wo(e,t,i,vu,l),f===s)break;s=f}s!==null&&i.stopPropagation()}else Wo(e,t,i,null,l)}}function mc(e){return e=ps(e),pc(e)}var vu=null;function pc(e){if(vu=null,e=Jl(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vu=e,null}function jp(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(as()){case K:return 2;case P:return 8;case he:case we:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var gc=!1,hl=null,ml=null,pl=null,Bi=new Map,Ui=new Map,gl=[],Av="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 Np(e,t){switch(e){case"focusin":case"focusout":hl=null;break;case"dragenter":case"dragleave":ml=null;break;case"mouseover":case"mouseout":pl=null;break;case"pointerover":case"pointerout":Bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(t.pointerId)}}function Hi(e,t,l,i,s,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:f,targetContainers:[s]},t!==null&&(t=Il(t),t!==null&&wp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function zv(e,t,l,i,s){switch(t){case"focusin":return hl=Hi(hl,e,t,l,i,s),!0;case"dragenter":return ml=Hi(ml,e,t,l,i,s),!0;case"mouseover":return pl=Hi(pl,e,t,l,i,s),!0;case"pointerover":var f=s.pointerId;return Bi.set(f,Hi(Bi.get(f)||null,e,t,l,i,s)),!0;case"gotpointercapture":return f=s.pointerId,Ui.set(f,Hi(Ui.get(f)||null,e,t,l,i,s)),!0}return!1}function Tp(e){var t=Jl(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,qf(e.priority,function(){Ep(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,qf(e.priority,function(){Ep(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=mc(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);ms=i,l.target.dispatchEvent(i),ms=null}else return t=Il(l),t!==null&&wp(t),e.blockedOn=l,!1;t.shift()}return!0}function Cp(e,t,l){Su(e)&&l.delete(t)}function kv(){gc=!1,hl!==null&&Su(hl)&&(hl=null),ml!==null&&Su(ml)&&(ml=null),pl!==null&&Su(pl)&&(pl=null),Bi.forEach(Cp),Ui.forEach(Cp)}function wu(e,t){e.blockedOn===t&&(e.blockedOn=null,gc||(gc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,kv)))}var Eu=null;function Ap(e){Eu!==e&&(Eu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Eu===e&&(Eu=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(pc(i||l)===null)continue;break}var f=Il(l);f!==null&&(e.splice(t,3),t-=3,mo(f,{pending:!0,data:s,method:l.method,action:i},i,s))}}))}function _a(e){function t(N){return wu(N,e)}hl!==null&&wu(hl,e),ml!==null&&wu(ml,e),pl!==null&&wu(pl,e),Bi.forEach(t),Ui.forEach(t);for(var l=0;l<gl.length;l++){var i=gl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<gl.length&&(l=gl[0],l.blockedOn===null);)Tp(l),l.blockedOn===null&&gl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var s=l[i],f=l[i+1],y=s[Tt]||null;if(typeof f=="function")y||Ap(l);else if(y){var v=null;if(f&&f.hasAttribute("formAction")){if(s=f,y=f[Tt]||null)v=y.formAction;else if(pc(s)!==null)continue}else v=y.action;typeof v=="function"?l[i+1]=v:(l.splice(i,3),i-=3),Ap(l)}}}function zp(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(y){return s=y})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function yc(e){this._internalRoot=e}ju.prototype.render=yc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Kt();vp(l,i,e,t,null,null)},ju.prototype.unmount=yc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vp(e.current,2,null,e,null,null),au(),t[Fl]=null}};function ju(e){this._internalRoot=e}ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<gl.length&&t!==0&&t<gl[l].priority;l++);gl.splice(l,0,e),l===0&&Tp(e)}};var kp=a.version;if(kp!=="19.2.6")throw Error(u(527,kp,"19.2.6"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Rv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{wt=Nu.inject(Rv),ot=Nu}catch{}}return Yi.createRoot=function(e,t){if(!o(e))throw Error(u(299));var l=!1,i="",s=Bh,f=Uh,y=Hh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=xp(e,1,!1,null,null,l,i,null,s,f,y,zp),e[Fl]=t.current,Po(e),new yc(t)},Yi.hydrateRoot=function(e,t,l){if(!o(e))throw Error(u(299));var i=!1,s="",f=Bh,y=Uh,v=Hh,N=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(v=l.onRecoverableError),l.formState!==void 0&&(N=l.formState)),t=xp(e,1,!0,t,l??null,i,s,N,f,y,v,zp),t.context=bp(null),l=t.current,i=Kt(),i=rs(i),s=tl(i),s.callback=null,nl(l,s,i),l=i,t.current.lanes=l,Ja(t,l),bn(t),e[Fl]=t.current,Po(e),new ju(t)},Yi.version="19.2.6",Yi}var qp;function Yv(){if(qp)return vc.exports;qp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),vc.exports=qv(),vc.exports}var Gg=Yv();/**
50
- * react-router v7.16.0
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var Yp="popstate";function Vp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Vv(n={}){function a(u,o){var p;let c=(p=o.state)==null?void 0:p.masked,{pathname:d,search:m,hash:g}=c||u.location;return Mu("",{pathname:d,search:m,hash:g},o.state&&o.state.usr||null,o.state&&o.state.key||"default",c?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function r(u,o){return typeof o=="string"?o:Ha(o)}return Xg(a,r,null,n)}function Kv(n={}){function a(o,c){let{pathname:d="/",search:m="",hash:g=""}=Vl(o.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Mu("",{pathname:d,search:m,hash:g},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(o,c){let d=o.document.querySelector("base"),m="";if(d&&d.getAttribute("href")){let g=o.location.href,p=g.indexOf("#");m=p===-1?g:g.slice(0,p)}return m+"#"+(typeof c=="string"?c:Ha(c))}function u(o,c){Xt(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return Xg(a,r,u,n)}function Je(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Xt(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Qv(){return Math.random().toString(36).substring(2,10)}function Kp(n,a){return{usr:n.state,key:n.key,idx:a,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Mu(n,a,r=null,u,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Vl(a):a,state:r,key:a&&a.key||u||Qv(),mask:o}}function Ha({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Vl(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let u=n.indexOf("?");u>=0&&(a.search=n.substring(u),n=n.substring(0,u)),n&&(a.pathname=n)}return a}function Xg(n,a,r,u={}){let{window:o=document.defaultView,v5Compat:c=!1}=u,d=o.history,m="POP",g=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function b(){m="POP";let U=x(),k=U==null?null:U-p;p=U,g&&g({action:m,location:R.location,delta:k})}function w(U,k){m="PUSH";let X=Vp(U)?U:Mu(R.location,U,k);r&&r(X,U),p=x()+1;let O=Kp(X,p),I=R.createHref(X.mask||X);try{d.pushState(O,"",I)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;o.location.assign(I)}c&&g&&g({action:m,location:R.location,delta:1})}function S(U,k){m="REPLACE";let X=Vp(U)?U:Mu(R.location,U,k);r&&r(X,U),p=x();let O=Kp(X,p),I=R.createHref(X.mask||X);d.replaceState(O,"",I),c&&g&&g({action:m,location:R.location,delta:0})}function A(U){return Gv(o,U)}let R={get action(){return m},get location(){return n(o,d)},listen(U){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(Yp,b),g=U,()=>{o.removeEventListener(Yp,b),g=null}},createHref(U){return a(o,U)},createURL:A,encodeLocation(U){let k=A(U);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:w,replace:S,go(U){return d.go(U)}};return R}function Gv(n,a,r=!1){let u="http://localhost";n&&(u=n.location.origin!=="null"?n.location.origin:n.location.href),Je(u,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:Ha(a);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=u+o),new URL(o,u)}function Zg(n,a,r="/"){return Xv(n,a,r,!1)}function Xv(n,a,r,u,o){let c=typeof a=="string"?Vl(a):a,d=Gn(c.pathname||"/",r);if(d==null)return null;let m=Zv(n),g=null,p=i0(d);for(let x=0;g==null&&x<m.length;++x)g=l0(m[x],p,u);return g}function Zv(n){let a=$g(n);return $v(a),a}function $g(n,a=[],r=[],u="",o=!1){let c=(d,m,g=o,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(u)&&g)return;Je(x.relativePath.startsWith(u),`Absolute route path "${x.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(u.length)}let b=pn([u,x.relativePath]),w=r.concat(x);d.children&&d.children.length>0&&(Je(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),$g(d.children,a,w,b,g)),!(d.path==null&&!d.index)&&a.push({path:b,score:t0(b,d.index),routesMeta:w})};return n.forEach((d,m)=>{var g;if(d.path===""||!((g=d.path)!=null&&g.includes("?")))c(d,m);else for(let p of Fg(d.path))c(d,m,!0,p)}),a}function Fg(n){let a=n.split("/");if(a.length===0)return[];let[r,...u]=a,o=r.endsWith("?"),c=r.replace(/\?$/,"");if(u.length===0)return o?[c,""]:[c];let d=Fg(u.join("/")),m=[];return m.push(...d.map(g=>g===""?c:[c,g].join("/"))),o&&m.push(...d),m.map(g=>n.startsWith("/")&&g===""?"/":g)}function $v(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:n0(a.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var Fv=/^:[\w-]+$/,Jv=3,Iv=2,Pv=1,Wv=10,e0=-2,Qp=n=>n==="*";function t0(n,a){let r=n.split("/"),u=r.length;return r.some(Qp)&&(u+=e0),a&&(u+=Iv),r.filter(o=>!Qp(o)).reduce((o,c)=>o+(Fv.test(c)?Jv:c===""?Pv:Wv),u)}function n0(n,a){return n.length===a.length&&n.slice(0,-1).every((u,o)=>u===a[o])?n[n.length-1]-a[a.length-1]:0}function l0(n,a,r=!1){let{routesMeta:u}=n,o={},c="/",d=[];for(let m=0;m<u.length;++m){let g=u[m],p=m===u.length-1,x=c==="/"?a:a.slice(c.length)||"/",b=Du({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},x),w=g.route;if(!b&&p&&r&&!u[u.length-1].route.index&&(b=Du({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},x)),!b)return null;Object.assign(o,b.params),d.push({params:o,pathname:pn([c,b.pathname]),pathnameBase:o0(pn([c,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(c=pn([c,b.pathnameBase]))}return d}function Du(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,u]=a0(n.path,n.caseSensitive,n.end),o=a.match(r);if(!o)return null;let c=o[0],d=c.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:u.reduce((p,{paramName:x,isOptional:b},w)=>{if(x==="*"){let A=m[w]||"";d=c.slice(0,c.length-A.length).replace(/(.)\/+$/,"$1")}const S=m[w];return b&&!S?p[x]=void 0:p[x]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:d,pattern:n}}function a0(n,a=!1,r=!0){Xt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let u=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,g,p,x)=>{if(u.push({paramName:m,isOptional:g!=null}),g){let b=x.charAt(p+d.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(u.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),u]}function i0(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Xt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Gn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,u=n.charAt(r);return u&&u!=="/"?null:n.slice(r)||"/"}var r0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function u0(n,a="/"){let{pathname:r,search:u="",hash:o=""}=typeof n=="string"?Vl(n):n,c;return r?(r=Jg(r),r.startsWith("/")?c=Gp(r.substring(1),"/"):c=Gp(r,a)):c=a,{pathname:c,search:c0(u),hash:f0(o)}}function Gp(n,a){let r=Lu(a).split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function jc(n,a,r,u){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(u)}]. 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 s0(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function sf(n){let a=s0(n);return a.map((r,u)=>u===a.length-1?r.pathname:r.pathnameBase)}function Yu(n,a,r,u=!1){let o;typeof n=="string"?o=Vl(n):(o={...n},Je(!o.pathname||!o.pathname.includes("?"),jc("?","pathname","search",o)),Je(!o.pathname||!o.pathname.includes("#"),jc("#","pathname","hash",o)),Je(!o.search||!o.search.includes("#"),jc("#","search","hash",o)));let c=n===""||o.pathname==="",d=c?"/":o.pathname,m;if(d==null)m=r;else{let b=a.length-1;if(!u&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),b-=1;o.pathname=w.join("/")}m=b>=0?a[b]:"/"}let g=u0(o,m),p=d&&d!=="/"&&d.endsWith("/"),x=(c||d===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||x)&&(g.pathname+="/"),g}var Jg=n=>n.replace(/\/\/+/g,"/"),pn=n=>Jg(n.join("/")),Lu=n=>n.replace(/\/+$/,""),o0=n=>Lu(n).replace(/^\/*/,"/"),c0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,f0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,d0=class{constructor(n,a,r,u=!1){this.status=n,this.statusText=a||"",this.internal=u,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function h0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function m0(n){let a=n.map(r=>r.route.path).filter(Boolean);return pn(a)||"/"}var Ig=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Pg(n,a){let r=n;if(typeof r!="string"||!r0.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,o=!1;if(Ig)try{let c=new URL(window.location.href),d=r.startsWith("//")?new URL(c.protocol+r):new URL(r),m=Gn(d.pathname,a);d.origin===c.origin&&m!=null?r=m+d.search+d.hash:o=!0}catch{Xt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Wg=["POST","PUT","PATCH","DELETE"];new Set(Wg);var p0=["GET",...Wg];new Set(p0);var Va=z.createContext(null);Va.displayName="DataRouter";var Vu=z.createContext(null);Vu.displayName="DataRouterState";var ey=z.createContext(!1);function g0(){return z.useContext(ey)}var ty=z.createContext({isTransitioning:!1});ty.displayName="ViewTransition";var y0=z.createContext(new Map);y0.displayName="Fetchers";var x0=z.createContext(null);x0.displayName="Await";var Zt=z.createContext(null);Zt.displayName="Navigation";var nr=z.createContext(null);nr.displayName="Location";var on=z.createContext({outlet:null,matches:[],isDataRoute:!1});on.displayName="Route";var of=z.createContext(null);of.displayName="RouteError";var ny="REACT_ROUTER_ERROR",b0="REDIRECT",v0="ROUTE_ERROR_RESPONSE";function S0(n){if(n.startsWith(`${ny}:${b0}:{`))try{let a=JSON.parse(n.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function w0(n){if(n.startsWith(`${ny}:${v0}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new d0(a.status,a.statusText,a.data)}catch{}}function E0(n,{relative:a}={}){Je(Ka(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=z.useContext(Zt),{hash:o,pathname:c,search:d}=lr(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:pn([r,c])),u.createHref({pathname:m,search:d,hash:o})}function Ka(){return z.useContext(nr)!=null}function $t(){return Je(Ka(),"useLocation() may be used only in the context of a <Router> component."),z.useContext(nr).location}var ly="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ay(n){z.useContext(Zt).static||z.useLayoutEffect(n)}function Ku(){let{isDataRoute:n}=z.useContext(on);return n?U0():j0()}function j0(){Je(Ka(),"useNavigate() may be used only in the context of a <Router> component.");let n=z.useContext(Va),{basename:a,navigator:r}=z.useContext(Zt),{matches:u}=z.useContext(on),{pathname:o}=$t(),c=JSON.stringify(sf(u)),d=z.useRef(!1);return ay(()=>{d.current=!0}),z.useCallback((g,p={})=>{if(Xt(d.current,ly),!d.current)return;if(typeof g=="number"){r.go(g);return}let x=Yu(g,JSON.parse(c),o,p.relative==="path");n==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:pn([a,x.pathname])),(p.replace?r.replace:r.push)(x,p.state,p)},[a,r,c,o,n])}var iy=z.createContext(null);function N0(){return z.useContext(iy)}function T0(n){let a=z.useContext(on).outlet;return z.useMemo(()=>a&&z.createElement(iy.Provider,{value:n},a),[a,n])}function Qu(){let{matches:n}=z.useContext(on),a=n[n.length-1];return(a==null?void 0:a.params)??{}}function lr(n,{relative:a}={}){let{matches:r}=z.useContext(on),{pathname:u}=$t(),o=JSON.stringify(sf(r));return z.useMemo(()=>Yu(n,JSON.parse(o),u,a==="path"),[n,o,u,a])}function C0(n,a){return ry(n,a)}function ry(n,a,r){var U;Je(Ka(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=z.useContext(Zt),{matches:o}=z.useContext(on),c=o[o.length-1],d=c?c.params:{},m=c?c.pathname:"/",g=c?c.pathnameBase:"/",p=c&&c.route;{let k=p&&p.path||"";sy(m,!p||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${k}">) 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.
59
-
60
- Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let x=$t(),b;if(a){let k=typeof a=="string"?Vl(a):a;Je(g==="/"||((U=k.pathname)==null?void 0:U.startsWith(g)),`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 "${g}" but pathname "${k.pathname}" was given in the \`location\` prop.`),b=k}else b=x;let w=b.pathname||"/",S=w;if(g!=="/"){let k=g.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(k.length).join("/")}let A=r&&r.state.matches.length?r.state.matches.map(k=>Object.assign(k,{route:r.manifest[k.route.id]||k.route})):Zg(n,{pathname:S});Xt(p||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Xt(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 R=_0(A&&A.map(k=>Object.assign({},k,{params:Object.assign({},d,k.params),pathname:pn([g,u.encodeLocation?u.encodeLocation(k.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?g:pn([g,u.encodeLocation?u.encodeLocation(k.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),o,r);return a&&R?z.createElement(nr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...b},navigationType:"POP"}},R):R}function A0(){let n=B0(),a=h0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,u="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:u},c={padding:"2px 4px",backgroundColor:u},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=z.createElement(z.Fragment,null,z.createElement("p",null,"💿 Hey developer 👋"),z.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",z.createElement("code",{style:c},"ErrorBoundary")," or"," ",z.createElement("code",{style:c},"errorElement")," prop on your route.")),z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},a),r?z.createElement("pre",{style:o},r):null,d)}var z0=z.createElement(A0,null),uy=class extends z.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=w0(n.digest);r&&(n=r)}let a=n!==void 0?z.createElement(on.Provider,{value:this.props.routeContext},z.createElement(of.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?z.createElement(k0,{error:n},a):a}};uy.contextType=ey;var Nc=new WeakMap;function k0({children:n,error:a}){let{basename:r}=z.useContext(Zt);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let u=S0(a.digest);if(u){let o=Nc.get(a);if(o)throw o;let c=Pg(u.location,r);if(Ig&&!Nc.get(a))if(c.isExternal||u.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:u.replace}));throw Nc.set(a,d),d}return z.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function R0({routeContext:n,match:a,children:r}){let u=z.useContext(Va);return u&&u.static&&u.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=a.route.id),z.createElement(on.Provider,{value:n},r)}function _0(n,a=[],r){let u=r==null?void 0:r.state;if(n==null){if(!u)return null;if(u.errors)n=u.matches;else if(a.length===0&&!u.initialized&&u.matches.length>0)n=u.matches;else return null}let o=n,c=u==null?void 0:u.errors;if(c!=null){let x=o.findIndex(b=>b.route.id&&(c==null?void 0:c[b.route.id])!==void 0);Je(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let d=!1,m=-1;if(r&&u){d=u.renderFallback;for(let x=0;x<o.length;x++){let b=o[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(m=x),b.route.id){let{loaderData:w,errors:S}=u,A=b.route.loader&&!w.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||A){r.isStatic&&(d=!0),m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}}let g=r==null?void 0:r.onError,p=u&&g?(x,b)=>{var w,S;g(x,{location:u.location,params:((S=(w=u.matches)==null?void 0:w[0])==null?void 0:S.params)??{},pattern:m0(u.matches),errorInfo:b})}:void 0;return o.reduceRight((x,b,w)=>{let S,A=!1,R=null,U=null;u&&(S=c&&b.route.id?c[b.route.id]:void 0,R=b.route.errorElement||z0,d&&(m<0&&w===0?(sy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,U=null):m===w&&(A=!0,U=b.route.hydrateFallbackElement||null)));let k=a.concat(o.slice(0,w+1)),X=()=>{let O;return S?O=R:A?O=U:b.route.Component?O=z.createElement(b.route.Component,null):b.route.element?O=b.route.element:O=x,z.createElement(R0,{match:b,routeContext:{outlet:x,matches:k,isDataRoute:u!=null},children:O})};return u&&(b.route.ErrorBoundary||b.route.errorElement||w===0)?z.createElement(uy,{location:u.location,revalidation:u.revalidation,component:R,error:S,children:X(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:p}):X()},null)}function cf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function O0(n){let a=z.useContext(Va);return Je(a,cf(n)),a}function M0(n){let a=z.useContext(Vu);return Je(a,cf(n)),a}function D0(n){let a=z.useContext(on);return Je(a,cf(n)),a}function ff(n){let a=D0(n),r=a.matches[a.matches.length-1];return Je(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function L0(){return ff("useRouteId")}function B0(){var u;let n=z.useContext(of),a=M0("useRouteError"),r=ff("useRouteError");return n!==void 0?n:(u=a.errors)==null?void 0:u[r]}function U0(){let{router:n}=O0("useNavigate"),a=ff("useNavigate"),r=z.useRef(!1);return ay(()=>{r.current=!0}),z.useCallback(async(o,c={})=>{Xt(r.current,ly),r.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:a,...c}))},[n,a])}var Xp={};function sy(n,a,r){!a&&!Xp[n]&&(Xp[n]=!0,Xt(!1,r))}z.memo(H0);function H0({routes:n,manifest:a,future:r,state:u,isStatic:o,onError:c}){return ry(n,void 0,{manifest:a,state:u,isStatic:o,onError:c})}function bl({to:n,replace:a,state:r,relative:u}){Je(Ka(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=z.useContext(Zt);Xt(!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:c}=z.useContext(on),{pathname:d}=$t(),m=Ku(),g=Yu(n,sf(c),d,u==="path"),p=JSON.stringify(g);return z.useEffect(()=>{m(JSON.parse(p),{replace:a,state:r,relative:u})},[m,p,u,a,r]),null}function q0(n){return T0(n.context)}function Fe(n){Je(!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 oy({basename:n="/",children:a=null,location:r,navigationType:u="POP",navigator:o,static:c=!1,useTransitions:d}){Je(!Ka(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),g=z.useMemo(()=>({basename:m,navigator:o,static:c,useTransitions:d,future:{}}),[m,o,c,d]);typeof r=="string"&&(r=Vl(r));let{pathname:p="/",search:x="",hash:b="",state:w=null,key:S="default",mask:A}=r,R=z.useMemo(()=>{let U=Gn(p,m);return U==null?null:{location:{pathname:U,search:x,hash:b,state:w,key:S,mask:A},navigationType:u}},[m,p,x,b,w,S,u,A]);return Xt(R!=null,`<Router basename="${m}"> is not able to match the URL "${p}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:z.createElement(Zt.Provider,{value:g},z.createElement(nr.Provider,{children:a,value:R}))}function Y0({children:n,location:a}){return C0(Kc(n),a)}function Kc(n,a=[]){let r=[];return z.Children.forEach(n,(u,o)=>{if(!z.isValidElement(u))return;let c=[...a,o];if(u.type===z.Fragment){r.push.apply(r,Kc(u.props.children,c));return}Je(u.type===Fe,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Je(!u.props.index||!u.props.children,"An index route cannot have child routes.");let d={id:u.props.id||c.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(d.children=Kc(u.props.children,c)),r.push(d)}),r}var Ru="get",_u="application/x-www-form-urlencoded";function Gu(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function V0(n){return Gu(n)&&n.tagName.toLowerCase()==="button"}function K0(n){return Gu(n)&&n.tagName.toLowerCase()==="form"}function Q0(n){return Gu(n)&&n.tagName.toLowerCase()==="input"}function G0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function X0(n,a){return n.button===0&&(!a||a==="_self")&&!G0(n)}function Qc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((a,r)=>{let u=n[r];return a.concat(Array.isArray(u)?u.map(o=>[r,o]):[[r,u]])},[]))}function Z0(n,a){let r=Qc(n);return a&&a.forEach((u,o)=>{r.has(o)||a.getAll(o).forEach(c=>{r.append(o,c)})}),r}var Tu=null;function $0(){if(Tu===null)try{new FormData(document.createElement("form"),0),Tu=!1}catch{Tu=!0}return Tu}var F0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tc(n){return n!=null&&!F0.has(n)?(Xt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):n}function J0(n,a){let r,u,o,c,d;if(K0(n)){let m=n.getAttribute("action");u=m?Gn(m,a):null,r=n.getAttribute("method")||Ru,o=Tc(n.getAttribute("enctype"))||_u,c=new FormData(n)}else if(V0(n)||Q0(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||m.getAttribute("action");if(u=g?Gn(g,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Ru,o=Tc(n.getAttribute("formenctype"))||Tc(m.getAttribute("enctype"))||_u,c=new FormData(m,n),!$0()){let{name:p,type:x,value:b}=n;if(x==="image"){let w=p?`${p}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else p&&c.append(p,b)}}else{if(Gu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ru,u=null,o=_u,d=n}return c&&o==="text/plain"&&(d=c,c=void 0),{action:u,method:r.toLowerCase(),encType:o,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function df(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function cy(n,a,r,u){let o=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${u}`:o.pathname=`${o.pathname}.${u}`:o.pathname==="/"?o.pathname=`_root.${u}`:a&&Gn(o.pathname,a)==="/"?o.pathname=`${Lu(a)}/_root.${u}`:o.pathname=`${Lu(o.pathname)}.${u}`,o}async function I0(n,a){if(n.id in a)return a[n.id];try{let r=await import(n.module);return a[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function P0(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function W0(n,a,r){let u=await Promise.all(n.map(async o=>{let c=a.routes[o.route.id];if(c){let d=await I0(c,r);return d.links?d.links():[]}return[]}));return l1(u.flat(1).filter(P0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Zp(n,a,r,u,o,c){let d=(g,p)=>r[p]?g.route.id!==r[p].route.id:!0,m=(g,p)=>{var x;return r[p].pathname!==g.pathname||((x=r[p].route.path)==null?void 0:x.endsWith("*"))&&r[p].params["*"]!==g.params["*"]};return c==="assets"?a.filter((g,p)=>d(g,p)||m(g,p)):c==="data"?a.filter((g,p)=>{var b;let x=u.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(d(g,p)||m(g,p))return!0;if(g.route.shouldRevalidate){let w=g.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function e1(n,a,{includeHydrateFallback:r}={}){return t1(n.map(u=>{let o=a.routes[u.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function t1(n){return[...new Set(n)]}function n1(n){let a={},r=Object.keys(n).sort();for(let u of r)a[u]=n[u];return a}function l1(n,a){let r=new Set;return new Set(a),n.reduce((u,o)=>{let c=JSON.stringify(n1(o));return r.has(c)||(r.add(c),u.push({key:c,link:o})),u},[])}function hf(){let n=z.useContext(Va);return df(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function a1(){let n=z.useContext(Vu);return df(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var mf=z.createContext(void 0);mf.displayName="FrameworkContext";function pf(){let n=z.useContext(mf);return df(n,"You must render this element inside a <HydratedRouter> element"),n}function i1(n,a){let r=z.useContext(mf),[u,o]=z.useState(!1),[c,d]=z.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:p,onMouseLeave:x,onTouchStart:b}=a,w=z.useRef(null);z.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let R=k=>{k.forEach(X=>{d(X.isIntersecting)})},U=new IntersectionObserver(R,{threshold:.5});return w.current&&U.observe(w.current),()=>{U.disconnect()}}},[n]),z.useEffect(()=>{if(u){let R=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(R)}}},[u]);let S=()=>{o(!0)},A=()=>{o(!1),d(!1)};return r?n!=="intent"?[c,w,{}]:[c,w,{onFocus:Vi(m,S),onBlur:Vi(g,A),onMouseEnter:Vi(p,S),onMouseLeave:Vi(x,A),onTouchStart:Vi(b,S)}]:[!1,w,{}]}function Vi(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function r1({page:n,...a}){let r=g0(),{router:u}=hf(),o=z.useMemo(()=>Zg(u.routes,n,u.basename),[u.routes,n,u.basename]);return o?r?z.createElement(s1,{page:n,matches:o,...a}):z.createElement(o1,{page:n,matches:o,...a}):null}function u1(n){let{manifest:a,routeModules:r}=pf(),[u,o]=z.useState([]);return z.useEffect(()=>{let c=!1;return W0(n,a,r).then(d=>{c||o(d)}),()=>{c=!0}},[n,a,r]),u}function s1({page:n,matches:a,...r}){let u=$t(),{future:o}=pf(),{basename:c}=hf(),d=z.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let m=cy(n,c,o.v8_trailingSlashAwareDataRequests,"rsc"),g=!1,p=[];for(let x of a)typeof x.route.shouldRevalidate=="function"?g=!0:p.push(x.route.id);return g&&p.length>0&&m.searchParams.set("_routes",p.join(",")),[m.pathname+m.search]},[c,o.v8_trailingSlashAwareDataRequests,n,u,a]);return z.createElement(z.Fragment,null,d.map(m=>z.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...r})))}function o1({page:n,matches:a,...r}){let u=$t(),{future:o,manifest:c,routeModules:d}=pf(),{basename:m}=hf(),{loaderData:g,matches:p}=a1(),x=z.useMemo(()=>Zp(n,a,p,c,u,"data"),[n,a,p,c,u]),b=z.useMemo(()=>Zp(n,a,p,c,u,"assets"),[n,a,p,c,u]),w=z.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let R=new Set,U=!1;if(a.forEach(X=>{var I;let O=c.routes[X.route.id];!O||!O.hasLoader||(!x.some(te=>te.route.id===X.route.id)&&X.route.id in g&&((I=d[X.route.id])!=null&&I.shouldRevalidate)||O.hasClientLoader?U=!0:R.add(X.route.id))}),R.size===0)return[];let k=cy(n,m,o.v8_trailingSlashAwareDataRequests,"data");return U&&R.size>0&&k.searchParams.set("_routes",a.filter(X=>R.has(X.route.id)).map(X=>X.route.id).join(",")),[k.pathname+k.search]},[m,o.v8_trailingSlashAwareDataRequests,g,u,c,x,a,n,d]),S=z.useMemo(()=>e1(b,c),[b,c]),A=u1(b);return z.createElement(z.Fragment,null,w.map(R=>z.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...r})),S.map(R=>z.createElement("link",{key:R,rel:"modulepreload",href:R,...r})),A.map(({key:R,link:U})=>z.createElement("link",{key:R,nonce:r.nonce,...U,crossOrigin:U.crossOrigin??r.crossOrigin})))}function c1(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var f1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{f1&&(window.__reactRouterVersion="7.16.0")}catch{}function d1({basename:n,children:a,useTransitions:r,window:u}){let o=z.useRef();o.current==null&&(o.current=Vv({window:u,v5Compat:!0}));let c=o.current,[d,m]=z.useState({action:c.action,location:c.location}),g=z.useCallback(p=>{r===!1?m(p):z.startTransition(()=>m(p))},[r]);return z.useLayoutEffect(()=>c.listen(g),[c,g]),z.createElement(oy,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,useTransitions:r})}function h1({basename:n,children:a,useTransitions:r,window:u}){let o=z.useRef();o.current==null&&(o.current=Kv({window:u,v5Compat:!0}));let c=o.current,[d,m]=z.useState({action:c.action,location:c.location}),g=z.useCallback(p=>{r===!1?m(p):z.startTransition(()=>m(p))},[r]);return z.useLayoutEffect(()=>c.listen(g),[c,g]),z.createElement(oy,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,useTransitions:r})}var fy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xe=z.forwardRef(function({onClick:a,discover:r="render",prefetch:u="none",relative:o,reloadDocument:c,replace:d,mask:m,state:g,target:p,to:x,preventScrollReset:b,viewTransition:w,defaultShouldRevalidate:S,...A},R){let{basename:U,navigator:k,useTransitions:X}=z.useContext(Zt),O=typeof x=="string"&&fy.test(x),I=Pg(x,U);x=I.to;let te=E0(x,{relative:o}),q=$t(),F=null;if(m){let $=Yu(m,[],q.mask?q.mask.pathname:"/",!0);U!=="/"&&($.pathname=$.pathname==="/"?U:pn([U,$.pathname])),F=k.createHref($)}let[oe,ce,ge]=i1(u,A),ne=g1(x,{replace:d,mask:m,state:g,target:p,preventScrollReset:b,relative:o,viewTransition:w,defaultShouldRevalidate:S,useTransitions:X});function W($){a&&a($),$.defaultPrevented||ne($)}let Se=!(I.isExternal||c),ae=z.createElement("a",{...A,...ge,href:(Se?F:void 0)||I.absoluteURL||te,onClick:Se?W:a,ref:c1(R,ce),target:p,"data-discover":!O&&r==="render"?"true":void 0});return oe&&!O?z.createElement(z.Fragment,null,ae,z.createElement(r1,{page:te})):ae});Xe.displayName="Link";var Ji=z.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:u="",end:o=!1,style:c,to:d,viewTransition:m,children:g,...p},x){let b=lr(d,{relative:p.relative}),w=$t(),S=z.useContext(Vu),{navigator:A,basename:R}=z.useContext(Zt),U=S!=null&&S1(b)&&m===!0,k=A.encodeLocation?A.encodeLocation(b).pathname:b.pathname,X=w.pathname,O=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(X=X.toLowerCase(),O=O?O.toLowerCase():null,k=k.toLowerCase()),O&&R&&(O=Gn(O,R)||O);const I=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let te=X===k||!o&&X.startsWith(k)&&X.charAt(I)==="/",q=O!=null&&(O===k||!o&&O.startsWith(k)&&O.charAt(k.length)==="/"),F={isActive:te,isPending:q,isTransitioning:U},oe=te?a:void 0,ce;typeof u=="function"?ce=u(F):ce=[u,te?"active":null,q?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let ge=typeof c=="function"?c(F):c;return z.createElement(Xe,{...p,"aria-current":oe,className:ce,ref:x,style:ge,to:d,viewTransition:m},typeof g=="function"?g(F):g)});Ji.displayName="NavLink";var m1=z.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:u,replace:o,state:c,method:d=Ru,action:m,onSubmit:g,relative:p,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:w,...S},A)=>{let{useTransitions:R}=z.useContext(Zt),U=b1(),k=v1(m,{relative:p}),X=d.toLowerCase()==="get"?"get":"post",O=typeof m=="string"&&fy.test(m),I=te=>{if(g&&g(te),te.defaultPrevented)return;te.preventDefault();let q=te.nativeEvent.submitter,F=(q==null?void 0:q.getAttribute("formmethod"))||d,oe=()=>U(q||te.currentTarget,{fetcherKey:a,method:F,navigate:r,replace:o,state:c,relative:p,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:w});R&&r!==!1?z.startTransition(()=>oe()):oe()};return z.createElement("form",{ref:A,method:X,action:k,onSubmit:u?g:I,...S,"data-discover":!O&&n==="render"?"true":void 0})});m1.displayName="Form";function p1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dy(n){let a=z.useContext(Va);return Je(a,p1(n)),a}function g1(n,{target:a,replace:r,mask:u,state:o,preventScrollReset:c,relative:d,viewTransition:m,defaultShouldRevalidate:g,useTransitions:p}={}){let x=Ku(),b=$t(),w=lr(n,{relative:d});return z.useCallback(S=>{if(X0(S,a)){S.preventDefault();let A=r!==void 0?r:Ha(b)===Ha(w),R=()=>x(n,{replace:A,mask:u,state:o,preventScrollReset:c,relative:d,viewTransition:m,defaultShouldRevalidate:g});p?z.startTransition(()=>R()):R()}},[b,x,w,r,u,o,a,n,c,d,m,g,p])}function Xn(n){Xt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let a=z.useRef(Qc(n)),r=z.useRef(!1),u=$t(),o=z.useMemo(()=>Z0(u.search,r.current?null:a.current),[u.search]),c=Ku(),d=z.useCallback((m,g)=>{const p=Qc(typeof m=="function"?m(new URLSearchParams(o)):m);r.current=!0,c("?"+p,g)},[c,o]);return[o,d]}var y1=0,x1=()=>`__${String(++y1)}__`;function b1(){let{router:n}=dy("useSubmit"),{basename:a}=z.useContext(Zt),r=L0(),u=n.fetch,o=n.navigate;return z.useCallback(async(c,d={})=>{let{action:m,method:g,encType:p,formData:x,body:b}=J0(c,a);if(d.navigate===!1){let w=d.fetcherKey||x1();await u(w,r,d.action||m,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||g,formEncType:d.encType||p,flushSync:d.flushSync})}else await o(d.action||m,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||g,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[u,o,a,r])}function v1(n,{relative:a}={}){let{basename:r}=z.useContext(Zt),u=z.useContext(on);Je(u,"useFormAction must be used inside a RouteContext");let[o]=u.matches.slice(-1),c={...lr(n||".",{relative:a})},d=$t();if(n==null){c.search=d.search;let m=new URLSearchParams(c.search),g=m.getAll("index");if(g.some(x=>x==="")){m.delete("index"),g.filter(b=>b).forEach(b=>m.append("index",b));let x=m.toString();c.search=x?`?${x}`:""}}return(!n||n===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:pn([r,c.pathname])),Ha(c)}function S1(n,{relative:a}={}){let r=z.useContext(ty);Je(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=dy("useViewTransitionState"),o=lr(n,{relative:a});if(!r.isTransitioning)return!1;let c=Gn(r.currentLocation.pathname,u)||r.currentLocation.pathname,d=Gn(r.nextLocation.pathname,u)||r.nextLocation.pathname;return Du(o.pathname,d)!=null||Du(o.pathname,c)!=null}const hy=["messages","locales","attributes","segments","targets"],Ii={locales:"locale",messages:"message",attributes:"attribute",segments:"segment",targets:"target"},my={locale:"locales",message:"messages",attribute:"attributes",segment:"segments",target:"targets"},Qn={locale:{singular:"Locale",plural:"Locales"},message:{singular:"Message",plural:"Messages"},attribute:{singular:"Attribute",plural:"Attributes"},segment:{singular:"Segment",plural:"Segments"},target:{singular:"Target",plural:"Targets"}};function jt(n){return encodeURIComponent(n)}function Pi(n){return n?`/sets/${jt(n)}`:""}function et(n,a,r){return`${Pi(r)}/${my[n]}/${jt(a)}`}function Xu(n){return n?`/data/sets/${jt(n)}`:"/data/root"}let py="browser";function Qa(n){const a=n.replace(/^\//,"");return py==="browser"?`/${a}`:a}function w1(n){py=n||"browser"}async function Yl(n){const a=await fetch(n);if(!a.ok)throw new Error(`Unable to load ${n}`);return a.json()}function gy(){return Yl(Qa("data/manifest.json")).catch(()=>Yl("/data/manifest.json"))}function gf(n){return Yl(Qa(`${Xu(n)}/index.json`))}function E1(n,a,r){return Yl(Qa(`${Xu(r)}/entities/${n}/${jt(a)}.json`))}function j1(n,a){return Yl(Qa(`${n}/page-${a}.json`))}function N1(n,a){return Yl(Qa(`${Xu(a)}/duplicates/locales/${jt(n)}.json`))}const Cc=new Map;function T1(n){return Array.from(new TextEncoder().encode(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}function C1(n,a){const r=`${a??"__root__"}:${n}`,u=Cc.get(r);return u?Promise.resolve(u):Yl(Qa(`${Xu(a)}/translations/${T1(n)}.json`)).then(o=>(Cc.set(r,o),o)).catch(()=>{const o={};return Cc.set(r,o),o})}const yy=z.createContext(null);function A1(n){const[a,r]=z.useState(n.initialManifest||null),[u,o]=z.useState(null);return z.useEffect(()=>{n.initialManifest||gy().then(r).catch(c=>o(c.message))},[n.initialManifest]),u?h.jsx("div",{className:"p-8 text-danger",children:u}):a?h.jsx(yy.Provider,{value:{manifest:a},children:n.children}):h.jsx("div",{className:"p-8 text-muted",children:"Loading catalog..."})}function Kl(){const n=z.useContext(yy);if(!n)throw new Error("useCatalog must be used inside CatalogProvider.");return n}const z1="/favicon.png",k1="/logo-text.png",$p={page:"min-h-screen bg-background text-text",pageShell:"m-8 mx-auto max-w-5xl"};function R1({isActive:n}){return["flex items-center justify-between rounded-lg px-3 py-2 text-sm font-bold",n?"bg-header-active text-header-text":"text-muted hover:bg-elevated hover:text-text"].join(" ")}function _1(n){const[a,r]=z.useState(null),u=Pi(n.setKey),o="History";return z.useEffect(()=>{r(null),gf(n.setKey).then(r).catch(()=>r(null))},[n.setKey]),h.jsxs("aside",{className:"rounded-lg bg-surface p-4 shadow-md ring-1 ring-black/5 md:w-56",children:[h.jsx("div",{className:"mb-3 text-xs font-black uppercase tracking-wide text-muted",children:h.jsx("span",{className:"block px-3 text-muted",children:n.setKey?"Set":"Project"})}),h.jsxs("nav",{className:"space-y-1",children:[hy.map(c=>{const d=Ii[c];return h.jsxs(Ji,{to:`${u}/${c}`,className:R1,children:[h.jsx("span",{children:Qn[d].plural}),h.jsx("span",{className:"rounded-full bg-pill px-2 py-0.5 text-xs font-black text-header",children:(a==null?void 0:a.counts[d])??"-"})]},c)}),h.jsx(Ji,{to:`${u}/history`,className:({isActive:c})=>["mt-4 block rounded-lg px-3 py-2 text-sm font-bold",c?"bg-header-active text-header-text":"text-muted hover:bg-elevated hover:text-text"].join(" "),children:o})]})]})}function Fp(n){return hy.indexOf(n)!==-1}function O1(n,a,r){const u=Ii[a];return(n.entities[u]||[]).some(c=>c.key===r)}async function M1(n,a){const r=jt(a),u=n.match(/^\/sets\/[^/]+\/([^/]+)$/);if(u&&Fp(u[1]))return`/sets/${r}/${u[1]}`;if(n.match(/^\/sets\/[^/]+\/history$/))return`/sets/${r}/history`;const o=n.match(/^\/sets\/[^/]+\/([^/]+)\/([^/]+)(\/.*)?$/);if(o&&Fp(o[1])){const c=o[1],d=decodeURIComponent(o[2]),m=o[3]||"";try{const g=await gf(a);return O1(g,c,d)?`/sets/${r}/${c}/${jt(d)}${m}`:`/sets/${r}/${c}`}catch{return`/sets/${r}/${c}`}}return`/sets/${r}/messages`}function D1(n){const{manifest:a}=Kl(),r=$t(),u=Ku(),o=z.useId(),c=z.useRef(null),d=n.currentSetKey||a.setKeys[0]||"";if(!a.sets||a.setKeys.length===0)return null;function m(){const g=c.current;g&&(g.focus(),typeof g.showPicker=="function"&&g.showPicker())}return h.jsxs("label",{htmlFor:o,className:"relative inline-flex cursor-pointer items-center gap-2 rounded-lg bg-header-active px-3 py-1.5 text-sm font-semibold text-header-text",onClick:g=>{g.target instanceof HTMLSelectElement||m()},children:[h.jsx("span",{className:"text-xs font-black uppercase tracking-wide text-pill",children:"Set"}),h.jsx("select",{id:o,ref:c,value:d,onChange:async g=>{const p=g.target.value;u(await M1(r.pathname,p))},className:"max-w-44 appearance-none bg-transparent pr-7 font-black text-header-text outline-none","aria-label":"Switch catalog set",children:a.setKeys.map(g=>h.jsx("option",{value:g,children:g},g))}),h.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",fill:"none",className:"pointer-events-none absolute right-3 h-4 w-4 text-pill",children:h.jsx("path",{d:"M6 8l4 4 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})}function L1(n){return n.provider==="github"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 16 16",fill:"currentColor",children:h.jsx("path",{d:"M8 0C3.58 0 0 3.69 0 8.24c0 3.64 2.29 6.72 5.47 7.81.4.08.55-.18.55-.4 0-.2-.01-.86-.01-1.56-2.01.38-2.53-.5-2.69-.96-.09-.24-.48-.96-.82-1.15-.28-.16-.68-.55-.01-.56.63-.01 1.08.6 1.23.85.72 1.25 1.87.9 2.33.69.07-.54.28-.9.51-1.11-1.78-.21-3.64-.92-3.64-4.07 0-.9.31-1.64.82-2.22-.08-.21-.36-1.05.08-2.19 0 0 .67-.22 2.2.85A7.43 7.43 0 0 1 8 3.94c.68 0 1.36.09 2 .28 1.52-1.07 2.19-.85 2.19-.85.44 1.14.16 1.98.08 2.19.51.58.82 1.32.82 2.22 0 3.16-1.87 3.86-3.65 4.07.29.26.54.76.54 1.54 0 1.11-.01 2.01-.01 2.28 0 .22.15.48.55.4A8.13 8.13 0 0 0 16 8.24C16 3.69 12.42 0 8 0Z"})}):n.provider==="gitlab"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"m22.75 9.77-.03-.08-2.17-6.69a.57.57 0 0 0-.55-.39.58.58 0 0 0-.52.35l-1.47 4.48H5.99L4.52 2.96A.58.58 0 0 0 4 2.61a.57.57 0 0 0-.55.39L1.28 9.69l-.03.08a1.54 1.54 0 0 0 .51 1.73l.01.01 10.22 7.43 10.24-7.44.01-.01a1.54 1.54 0 0 0 .51-1.72Z"})}):n.provider==="bitbucket"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M2.19 3.25a.77.77 0 0 0-.76.89l2.7 16.42a1.02 1.02 0 0 0 1 .86H18.9a1.02 1.02 0 0 0 1-.82l2.69-16.46a.77.77 0 0 0-.76-.89H2.19Zm13.36 10.71H9.46l-1.1-5.83h8.25l-1.06 5.83Z"})}):null}function B1(n){return n==="github"||n==="gitlab"||n==="bitbucket"}function U1(n){const a=new Date(n);if(Number.isNaN(a.getTime()))return n;const r=Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()),u=Math.round((r-a.getTime())/6e4),o=u>=0?"+":"-",c=String(Math.floor(Math.abs(u)/60)).padStart(2,"0"),d=String(Math.abs(u)%60).padStart(2,"0");return`${new Date(a.getTime()+u*60*1e3).toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")} ${o}${c}:${d}`}function H1(n){var d;const{manifest:a}=Kl(),u=$t().pathname.match(/^\/sets\/([^/]+)/),o=u?decodeURIComponent(u[1]):void 0,c=!a.sets||!!o;return h.jsxs("div",{className:$p.page,children:[h.jsx("header",{className:"bg-header",children:h.jsxs("nav",{className:"mx-auto flex max-w-5xl items-center justify-between gap-4 px-3 py-3 sm:px-4",children:[h.jsx("div",{className:"flex min-w-0 flex-1 items-center",children:h.jsxs(Ji,{to:"/",className:["flex min-w-0 max-w-full items-center gap-2.5 rounded-lg py-1 pr-2 outline-none","ring-offset-2 ring-offset-header focus-visible:ring-2 focus-visible:ring-header-text"].join(" "),"aria-label":"Messagevisor Catalog home",children:[h.jsx("img",{src:z1,alt:"",width:32,height:32,className:"h-8 w-8 shrink-0 object-contain",decoding:"async"}),h.jsx("img",{src:k1,alt:"",className:"h-auto max-h-4 min-w-0 shrink object-contain object-left pl-2",decoding:"async"})]})}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(D1,{currentSetKey:o}),((d=a.links)==null?void 0:d.repository)&&B1(a.links.provider)&&h.jsx("a",{href:a.links.repository,target:"_blank",rel:"noreferrer",className:"rounded-lg px-3 py-2 text-header-text hover:bg-header-active","aria-label":`Open ${a.links.provider||"repository"}`,children:h.jsx(L1,{provider:a.links.provider})})]})]})}),h.jsx("main",{className:$p.pageShell,children:h.jsxs("div",{className:c?"items-start gap-6 md:flex":"",children:[c&&h.jsx(_1,{setKey:o}),h.jsxs("div",{className:["min-w-0",c?"flex-1":"w-full"].filter(Boolean).join(" "),children:[h.jsx("section",{className:"overflow-hidden rounded-lg bg-surface shadow",children:n.children}),h.jsxs("footer",{className:"mt-4 pt-3 text-center",children:[h.jsxs("p",{className:"pb-2 text-xs leading-5 text-faint",children:["Generated at ",U1(a.generatedAt)]}),h.jsxs("p",{className:"pb-5 text-xs font-medium leading-5 text-muted",children:["Built using"," ",h.jsx("a",{target:"_blank",rel:"noreferrer",href:"https://messagevisor.com",className:"font-semibold hover:underline",children:"Messagevisor"})]})]})]})]})})]})}function q1(){const{manifest:n}=Kl();if(!n.sets)return h.jsx(bl,{to:"/messages",replace:!0});const a=n.setKeys[0];return h.jsx(bl,{to:a?`/sets/${jt(a)}/messages`:"/history",replace:!0})}const Y1={neutral:"border-pill bg-pill text-text",success:"border-success-outline bg-success-surface text-text",warning:"border-warning-outline bg-warning-surface text-text",danger:"border-danger-outline bg-danger-surface text-danger",primary:"border-pill bg-pill text-text"};function sn(n){return h.jsx("span",{className:`inline-flex rounded-full border px-2 py-0.5 text-xs font-medium ${Y1[n.tone||"neutral"]}`,children:n.children})}function qa(n){return h.jsxs("div",{className:"mx-6 rounded border-2 border-warning-outline bg-warning-surface p-4 text-center text-text",children:[h.jsx("p",{className:"font-medium",children:n.title}),n.description&&h.jsx("p",{className:"mt-1 text-sm text-muted",children:n.description})]})}function Zu({className:n="",...a}){return h.jsx("input",{className:`w-full rounded-full border border-border bg-surface px-5 py-2 text-xl text-text outline-none placeholder:text-placeholder focus:border-primary ${n}`,...a})}function xy({className:n="",...a}){return h.jsx("button",{className:`rounded border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background ${n}`,...a})}function vl(n){const a=n.value.split(".");return h.jsx("span",{className:["inline leading-snug [overflow-wrap:anywhere]",n.className||""].join(" "),children:a.map((r,u)=>h.jsxs("span",{children:[r,u<a.length-1?h.jsxs(h.Fragment,{children:[".",h.jsx("wbr",{})]}):null]},`${r}-${u}`))})}const Jp=1e3,Ac=10;function V1(n){const a=[];let r="",u=!1;for(const o of n)o==='"'?(u=!u,r+=o):o===" "&&!u?(r&&a.push(r),r=""):r+=o;return r&&a.push(r),a}function Bu(n){const a=[],r=[];for(const u of V1(n.trim())){const o=u.indexOf(":");if(o>0){const c=u.slice(0,o).toLowerCase();let d=u.slice(o+1);d.startsWith('"')&&d.endsWith('"')&&d.length>2&&(d=d.slice(1,-1)),d&&r.push({key:c,value:d})}else a.push(u.toLowerCase())}return{freeText:a,qualifiers:r}}function K1(n,a,r){var m;const{freeText:u,qualifiers:o}=a;if(u.length>0){const g=n.key.toLowerCase();if(!u.every(p=>g.includes(p)))return!1}const c=o.some(g=>g.key==="has"&&g.value==="overrides"),d=o.filter(g=>g.key==="locale").map(g=>g.value.toLowerCase());for(const g of o)switch(g.key){case"description":{if(!(n.description||"").toLowerCase().includes(g.value.toLowerCase()))return!1;break}case"target":{if(!(n.targets||[]).map(x=>x.toLowerCase()).includes(g.value.toLowerCase()))return!1;break}case"is":{if(g.value==="deprecated"&&!n.deprecated||g.value==="archived"&&!n.archived)return!1;break}case"has":{if(g.value==="overrides"){if(d.length>0){const p=(n.overrideLocales||[]).map(x=>x.toLowerCase());if(!d.every(x=>p.includes(x)))return!1}else if(!((m=n.overrideLocales)!=null&&m.length))return!1}break}case"locale":{if(!c&&!(n.locales||[]).map(x=>x.toLowerCase()).includes(g.value.toLowerCase()))return!1;break}case"translation":{if(g.value.length<3||!r)return!0;const p=r[n.key];if(!p||p.length===0)return!1;if(g.value.length===3)break;const x=g.value.toLowerCase();if(!p.some(b=>b.includes(x)))return!1;break}}return!0}function by(n,a,r){const u=a,o=r;return n==="message"?['translation:"keyword"',...u?[`target:${u}`]:[],...o?[`locale:${o}`]:[],'description:"keyword"',"has:overrides",...o?[`has:overrides locale:${o}`]:["has:overrides"],"is:deprecated","is:archived"]:null}function Q1({type:n,query:a,firstTargetKey:r,firstLocaleKey:u,onHintClick:o}){const c=by(n,r,u);return c?h.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 pt-2 text-xs text-muted",children:[h.jsx("span",{className:"shrink-0",children:"Try:"}),c.map(d=>{const m=a.trim().split(/\s+/).some(g=>g.toLowerCase()===d.toLowerCase());return h.jsx("button",{type:"button",onClick:()=>o(d),className:["cursor-pointer rounded px-1.5 py-0.5 font-mono transition-colors",m?"bg-primary/10 text-primary":"bg-elevated text-muted hover:text-text"].join(" "),children:d},d)})]}):null}function G1(n){return h.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.archived&&h.jsx(sn,{tone:"danger",children:"archived"}),n.deprecated&&h.jsx(sn,{tone:"warning",children:"deprecated"})]})}function X1(n){if(!n.entity.lastModified)return h.jsx("span",{children:"Last modified n/a"});const a=new Date(n.entity.lastModified.timestamp),r=Number.isNaN(a.getTime())?n.entity.lastModified.timestamp:new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(a);return h.jsxs("span",{children:["Last modified by ",h.jsx("span",{className:"font-semibold",children:n.entity.lastModified.author})," on"," ",r]})}function Z1(n,a){return n==="target"?[`${a.messageCount||0} ${a.messageCount===1?"message":"messages"}`]:a.targets||[]}function $1(n){return!n||n==="name"||n==="name:asc"||n==="asc"?"asc":n==="-name"||n==="name:desc"||n==="desc"?"desc":"asc"}function zc(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}function F1(n){var ge,ne,W,Se,ae,$;const[a,r]=Xn(),[u,o]=z.useState(!1),[c,d]=z.useState(!1),[m,g]=z.useState(null),[p,x]=z.useState(null),b=z.useRef(null),w=a.get("q")||"",[S,A]=z.useState(w);z.useEffect(()=>{A(w)},[w]);const R=(W=(ne=(ge=n.allEntities)==null?void 0:ge.target)==null?void 0:ne.find(M=>!M.archived))==null?void 0:W.key,U=($=(ae=(Se=n.allEntities)==null?void 0:Se.locale)==null?void 0:ae.find(M=>!M.archived))==null?void 0:$.key,k=by(n.type,R,U)!==null,X=Bu(w).qualifiers.find(M=>M.key==="translation"),O=X&&X.value.length>=3?X.value.slice(0,3).toLowerCase():null;z.useEffect(()=>{if(b.current&&clearTimeout(b.current),!O){g(null),x(null);return}if(O!==p)return b.current=setTimeout(()=>{b.current=null,C1(O,n.setKey).then(M=>{g(M),x(O)})},300),()=>{b.current&&clearTimeout(b.current)}},[O,p,n.setKey]);const I=$1(a.get("sort")),te=p===O?m:null,q=z.useMemo(()=>{const M=Bu(w),Z=w.trim().length>0;return n.entities.filter(pe=>Z?K1(pe,M,te):!0).slice().sort((pe,j)=>{const T=pe.key.localeCompare(pe.key===j.key?"":j.key);return I==="desc"?T*-1:T})},[w,n.entities,I,te]),F=u?q:q.slice(0,Jp),oe=q.length>Jp&&!u;z.useEffect(()=>{o(!1)},[w,I,n.type,n.setKey]);function ce(M){const Z=w.trim(),ie=Z.split(/\s+/).filter(Boolean),pe=ie.findIndex(T=>T.toLowerCase()===M.toLowerCase()),j=pe!==-1?ie.filter((T,V)=>V!==pe).join(" "):Z?`${Z} ${M}`:M;r(zc(a,"q",j||void 0))}return h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"px-6 pt-1",children:h.jsxs("div",{className:"grid gap-3 md:grid-cols-[minmax(0,1fr)_auto]",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"relative",children:[h.jsx(Zu,{value:S,onChange:M=>{const Z=M.target.value;A(Z),r(zc(a,"q",Z.trim()?Z:void 0))},placeholder:`Search ${Qn[n.type].plural.toLowerCase()}...`,className:k?"pr-10":""}),k&&h.jsx("button",{type:"button",onClick:()=>d(M=>!M),"aria-label":c?"Hide advanced search hints":"Show advanced search hints",className:["absolute right-3 top-1/2 -translate-y-1/2 flex h-5 w-5 items-center justify-center rounded-full border text-xs font-bold transition-colors",c?"border-primary bg-primary/10 text-primary":"border-border bg-surface text-muted hover:border-primary hover:text-primary"].join(" "),children:"?"})]}),h.jsx("div",{className:["grid transition-all duration-200 ease-in-out",c?"grid-rows-[1fr]":"grid-rows-[0fr]"].join(" "),children:h.jsx("div",{className:"overflow-hidden pl-5",children:h.jsx(Q1,{type:n.type,query:w,firstTargetKey:R,firstLocaleKey:U,onHintClick:ce})})})]}),h.jsxs("button",{type:"button",className:"inline-flex h-[46px] w-fit max-w-full cursor-pointer items-center gap-2 self-start rounded-full border border-border bg-surface px-3 py-2 text-left text-sm font-semibold text-muted outline-none focus-visible:ring-2 focus-visible:ring-ring md:justify-self-end",onClick:()=>r(zc(a,"sort",I==="desc"?void 0:"-name")),"aria-label":I==="desc"?"Sorted Z-A by name. Activate to sort A-Z.":"Sorted A-Z by name. Activate to sort Z-A.",children:[h.jsx("span",{children:"Sort"}),h.jsx("span",{className:"whitespace-nowrap font-bold text-text",children:I==="desc"?"Z-A":"A-Z"})]})]})}),q.length===0&&h.jsx(qa,{title:"No results found"}),h.jsx("div",{className:"divide-y divide-border bg-surface",children:F.map(M=>h.jsx(Xe,{to:et(n.type,M.key,n.setKey),className:"block px-6 py-3 hover:bg-elevated",children:h.jsx("div",{className:"flex flex-col justify-between gap-3 md:flex-row md:items-start",children:h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex flex-col justify-between gap-2 md:flex-row md:items-start",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx(vl,{value:M.key,className:"text-sm font-semibold text-primary"}),h.jsx("div",{className:"mt-1 truncate text-sm text-muted",children:M.description||"No description"})]}),h.jsx("div",{className:"shrink-0",children:G1(M)})]}),h.jsxs("div",{className:"mt-2 flex flex-col gap-2 text-xs text-muted md:flex-row md:items-center md:justify-between",children:[h.jsx("div",{className:"flex flex-wrap gap-2",children:Z1(n.type,M).map(Z=>h.jsx(sn,{children:Z},Z))}),h.jsx("span",{className:"shrink-0 md:text-right",children:h.jsx(X1,{entity:M})})]})]})})},M.key))}),h.jsxs("div",{className:"space-y-4 px-6 pb-6",children:[h.jsxs("p",{className:"text-center text-sm text-muted",children:[F.length," of ",q.length," ",Qn[n.type].plural.toLowerCase(),q.length!==n.entities.length?` (${n.entities.length} total)`:""]}),oe&&h.jsx("div",{className:"flex justify-center",children:h.jsxs(xy,{onClick:()=>o(!0),children:["Load all ",q.length," ",Qn[n.type].plural.toLowerCase()]})})]})]})}function yf(n){return h.jsxs("div",{className:"mb-6 flex flex-col justify-between gap-4 border-b border-border px-6 pb-4 pt-8 md:flex-row md:items-start",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("h1",{className:"min-w-0 text-3xl font-black text-text [overflow-wrap:anywhere]",children:n.title}),n.description&&h.jsx("div",{className:"mt-2 min-w-0 text-sm text-muted [overflow-wrap:anywhere]",children:n.description})]}),n.actions?h.jsx("div",{className:"shrink-0",children:n.actions}):null]})}function J1(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function Ip(){const{entityPath:n,setKey:a}=Qu(),[r,u]=z.useState(null),[o,c]=z.useState(null);if(z.useEffect(()=>{u(null),c(null),gf(a).then(u).catch(m=>c(m.message))},[a]),!J1(n))return h.jsx(bl,{to:"locales",replace:!0});const d=Ii[n];return o?h.jsx(qa,{title:"Unable to load catalog index",description:o}):r?h.jsxs("div",{children:[h.jsx(yf,{title:Qn[d].plural}),h.jsx(F1,{type:d,entities:r.entities[d],setKey:a,allEntities:r.entities})]}):h.jsxs("div",{className:"text-muted",children:["Loading ",Qn[d].plural.toLowerCase(),"..."]})}function I1(n){const a=n%100;if(a>=11&&a<=13)return`${n}th`;switch(n%10){case 1:return`${n}st`;case 2:return`${n}nd`;case 3:return`${n}rd`;default:return`${n}th`}}function P1(n){var p;const u=(p=new Intl.DateTimeFormat(void 0,{timeZoneName:"short"}).formatToParts(n).find(x=>x.type==="timeZoneName"))==null?void 0:p.value;if(u&&u.trim())return u;const o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),c=Math.round((o-n.getTime())/6e4),d=c>=0?"+":"-",m=String(Math.floor(Math.abs(c)/60)).padStart(2,"0"),g=String(Math.abs(c)%60).padStart(2,"0");return`UTC${d}${m}:${g}`}function W1(n){var p,x,b,w,S,A;const a=new Date(n);if(Number.isNaN(a.getTime()))return n;const r=new Intl.DateTimeFormat(void 0,{month:"long",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),u=(p=r.find(R=>R.type==="month"))==null?void 0:p.value,o=(x=r.find(R=>R.type==="day"))==null?void 0:x.value,c=(b=r.find(R=>R.type==="year"))==null?void 0:b.value,d=(w=r.find(R=>R.type==="hour"))==null?void 0:w.value,m=(S=r.find(R=>R.type==="minute"))==null?void 0:S.value,g=(A=r.find(R=>R.type==="second"))==null?void 0:A.value;return!u||!o||!c||!d||!m||!g?n:`${u} ${I1(Number(o))}, ${c} at ${d}:${m}:${g} ${P1(a)}`}function eS(n){var c;const[a,r]=z.useState(!1),u=n.entry.entities.length>Ac,o=a?n.entry.entities:n.entry.entities.slice(0,Ac);return h.jsxs("li",{className:"rounded-lg border border-border bg-surface p-4 shadow-sm ring-1 ring-black/5",children:[h.jsxs("div",{className:"text-sm",children:[h.jsx("span",{className:"font-semibold",children:n.entry.author})," ",h.jsx("a",{className:"text-primary hover:underline",href:((c=n.commitUrl)==null?void 0:c.replace("{{hash}}",n.entry.commit))||`#${n.entry.commit}`,target:"_blank",rel:"noreferrer",children:W1(n.entry.timestamp)})]}),h.jsx("ul",{className:"mt-3 list-inside list-disc space-y-1 text-sm text-muted",children:o.map(d=>h.jsxs("li",{className:"[overflow-wrap:anywhere]",children:[d.type!=="test"?Qn[d.type].singular:"Test"," ",d.type!=="test"?h.jsx(Xe,{className:"font-medium text-primary hover:underline",to:et(d.type,d.key,d.set||n.setKey),children:h.jsx(vl,{value:d.key,className:"font-medium"})}):h.jsx(vl,{value:d.key,className:"font-medium"})]},`${d.type}-${d.key}`))}),u&&h.jsx("button",{type:"button",onClick:()=>r(d=>!d),className:"mt-3 text-sm font-semibold text-primary hover:underline",children:a?"See less":`See more (${n.entry.entities.length-Ac} more)`})]},`${n.entry.commit}-${n.entry.timestamp}`)}function vy(n){const[a,r]=z.useState([]),[u,o]=z.useState(0),[c,d]=z.useState(1),[m,g]=z.useState(null);async function p(x){try{const b=await j1(n.path,x);r(w=>[...w,...b.entries]),o(b.page),d(b.totalPages)}catch(b){g(b.message)}}return z.useEffect(()=>{r([]),o(0),d(1),g(null),p(1)},[n.path]),m?h.jsx(qa,{title:"History unavailable",description:m}):a.length===0&&u>0?h.jsx(qa,{title:"No history found"}):h.jsxs("div",{className:"space-y-4",children:[h.jsx("ol",{className:"space-y-4",children:a.map(x=>h.jsx(eS,{entry:x,setKey:n.setKey,commitUrl:n.commitUrl},`${x.commit}-${x.timestamp}`))}),u<c&&h.jsx(xy,{onClick:()=>p(u+1),className:"w-full",children:"Load more"})]})}function Pp(){var u;const{manifest:n}=Kl(),{setKey:a}=Qu(),r=a?`/data/sets/${jt(a)}/history`:"/data/project/history";return h.jsxs("div",{children:[h.jsx(yf,{title:a?`History for ${a}`:"Project History",description:"Recent Git changes for authored definitions."}),h.jsx("div",{className:"px-6 pb-6",children:h.jsx(vy,{path:r,setKey:a,commitUrl:(u=n.links)==null?void 0:u.commit})})]})}function tS(n){return h.jsxs("div",{children:[h.jsx("nav",{className:"border-b border-border",children:n.tabs.map(a=>h.jsx(Ji,{to:a.to,end:a.end,className:({isActive:r})=>["inline-block min-w-28 border-b-2 px-3 pb-4 pt-2 text-center text-sm font-medium",r?"border-primary text-primary":"border-transparent text-muted hover:border-border hover:text-text"].join(" "),children:a.label},a.to))}),h.jsx("div",{className:"px-6 py-6",children:n.children})]})}function ar(n){return h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:typeof n.value=="string"?n.value:JSON.stringify(n.value,null,2)})}const nS={neutral:{label:"bg-elevated text-muted",value:"bg-surface text-text",link:"text-primary hover:underline"},inheritance:{label:"bg-elevated text-muted",value:"bg-surface text-text",link:"text-primary hover:underline"},override:{label:"bg-pill text-text",value:"bg-surface text-text",link:"text-primary hover:underline"}};function Wi(n){const a=nS[n.tone||"neutral"],r=n.to?h.jsx(Xe,{to:n.to,className:`font-medium ${a.link}`,children:n.value}):h.jsx("span",{className:"font-medium text-text",children:n.value});return h.jsxs("span",{className:["inline-flex overflow-hidden rounded-md border border-border shadow-sm",n.compact?"text-[10px] leading-4":"text-xs"].join(" "),children:[h.jsx("span",{className:`${n.compact?"px-1.5 py-px":"px-2 py-1"} ${a.label}`,children:n.label}),h.jsx("span",{className:`${n.compact?"px-1.5 py-px":"px-2 py-1"} ${a.value}`,children:r})]})}function lS(n){return h.jsx("dl",{className:"grid grid-cols-1 gap-x-4 gap-y-8 md:grid-cols-2",children:n.fields.map(a=>h.jsxs("div",{className:a.fullWidth?"md:col-span-2":"",children:[h.jsx("dt",{className:"text-sm font-medium text-muted",children:a.label}),h.jsx("dd",{className:"mt-1 min-w-0 text-sm [overflow-wrap:anywhere]",children:a.value||"n/a"})]},a.label))})}function Gc(n){return typeof n>"u"?"":n===null?"null":Array.isArray(n)?n.map(a=>Gc(a)).join(", "):typeof n=="object"?JSON.stringify(n):String(n)}function aS(n){return n.split(".")[0]}function iS(n){if("attribute"in n.condition){const a=String(n.condition.attribute);return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"primary",children:"attribute"}),h.jsx(Xe,{to:et("attribute",aS(a),n.setKey),className:"font-semibold text-primary hover:underline",children:a}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator}),"value"in n.condition&&h.jsx("span",{className:"text-muted",children:Gc(n.condition.value)})]})})}return"feature"in n.condition?h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"success",children:"feature"}),h.jsx("span",{className:"font-semibold text-text",children:String(n.condition.feature)}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator})]})}):"experiment"in n.condition?h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"warning",children:"experiment"}),h.jsx("span",{className:"font-semibold text-text",children:String(n.condition.experiment)}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator}),h.jsx("span",{className:"text-muted",children:Gc(n.condition.value)})]})}):h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm text-muted shadow-sm",children:"Unsupported condition"})}function Sy(n){const a=n.condition;if(typeof a=="string")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:a==="*"?"Everyone":a});if("and"in a||"or"in a||"not"in a){const r="and"in a?"and":"or"in a?"or":"not",u=a[r];return h.jsxs("div",{className:"rounded-lg border border-border bg-elevated p-4",children:[h.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[h.jsx(sn,{tone:"neutral",children:r.toUpperCase()}),h.jsxs("span",{className:"text-sm text-muted",children:[u.length," branch",u.length===1?"":"es"]})]}),h.jsx("div",{className:"ml-3 space-y-3 border-l border-border pl-4",children:u.map((o,c)=>h.jsx(Sy,{condition:o,setKey:n.setKey},`${r}-${c}`))})]})}return h.jsx(iS,{condition:a,setKey:n.setKey})}function xf(n){if(!n.conditions)return h.jsx("p",{className:"text-sm text-muted",children:"No conditions found."});if(n.conditions==="*")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:"Everyone"});const a=Array.isArray(n.conditions)?n.conditions:[n.conditions];return h.jsx("div",{className:"space-y-3",children:a.map((r,u)=>h.jsx(Sy,{condition:r,setKey:n.setKey},u))})}function rS(n){return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"primary",children:"segment"}),h.jsx(Xe,{to:et("segment",n.segmentKey,n.setKey),className:"font-semibold text-primary hover:underline",children:h.jsx(vl,{value:n.segmentKey,className:"font-semibold"})})]})})}function wy(n){if(typeof n.segment=="string")return h.jsx(rS,{segmentKey:n.segment,setKey:n.setKey});const a="and"in n.segment?"and":"or"in n.segment?"or":"not",r=n.segment[a];return h.jsxs("div",{className:"rounded-lg border border-border bg-elevated p-4",children:[h.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[h.jsx(sn,{tone:"neutral",children:a.toUpperCase()}),h.jsxs("span",{className:"text-sm text-muted",children:[r.length," branch",r.length===1?"":"es"]})]}),h.jsx("div",{className:"ml-3 space-y-3 border-l border-border pl-4",children:r.map((u,o)=>h.jsx(wy,{segment:u,setKey:n.setKey},`${a}-${o}`))})]})}function Ey(n){if(!n.segments)return h.jsx("p",{className:"text-sm text-muted",children:"No segments found."});if(n.segments==="*")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:"Everyone"});const a=Array.isArray(n.segments)?n.segments:[n.segments];return h.jsx("div",{className:"space-y-3",children:a.map((r,u)=>h.jsx(wy,{segment:r,setKey:n.setKey},u))})}function uS(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const sS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cS={};function Wp(n,a){return(cS.jsx?oS:sS).test(n)}const fS=/[ \t\n\f\r]/g;function dS(n){return typeof n=="object"?n.type==="text"?eg(n.value):!1:eg(n)}function eg(n){return n.replace(fS,"")===""}class ir{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}ir.prototype.normal={};ir.prototype.property={};ir.prototype.space=void 0;function jy(n,a){const r={},u={};for(const o of n)Object.assign(r,o.property),Object.assign(u,o.normal);return new ir(r,u,a)}function Xc(n){return n.toLowerCase()}class Dt{constructor(a,r){this.attribute=r,this.property=a}}Dt.prototype.attribute="";Dt.prototype.booleanish=!1;Dt.prototype.boolean=!1;Dt.prototype.commaOrSpaceSeparated=!1;Dt.prototype.commaSeparated=!1;Dt.prototype.defined=!1;Dt.prototype.mustUseProperty=!1;Dt.prototype.number=!1;Dt.prototype.overloadedBoolean=!1;Dt.prototype.property="";Dt.prototype.spaceSeparated=!1;Dt.prototype.space=void 0;let hS=0;const ve=Ql(),ut=Ql(),Zc=Ql(),J=Ql(),Ve=Ql(),La=Ql(),Qt=Ql();function Ql(){return 2**++hS}const $c=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:ut,commaOrSpaceSeparated:Qt,commaSeparated:La,number:J,overloadedBoolean:Zc,spaceSeparated:Ve},Symbol.toStringTag,{value:"Module"})),kc=Object.keys($c);class bf extends Dt{constructor(a,r,u,o){let c=-1;if(super(a,r),tg(this,"space",o),typeof u=="number")for(;++c<kc.length;){const d=kc[c];tg(this,kc[c],(u&$c[d])===$c[d])}}}bf.prototype.defined=!0;function tg(n,a,r){r&&(n[a]=r)}function Ga(n){const a={},r={};for(const[u,o]of Object.entries(n.properties)){const c=new bf(u,n.transform(n.attributes||{},u),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,r[Xc(u)]=u,r[Xc(c.attribute)]=u}return new ir(a,r,n.space)}const Ny=Ga({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Ve,ariaCurrent:null,ariaDescribedBy:Ve,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Ve,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Ve,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ve,ariaLevel:J,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Ve,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Ve,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:ut,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Ty(n,a){return a in n?n[a]:a}function Cy(n,a){return Ty(n,a.toLowerCase())}const mS=Ga({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:La,acceptCharset:Ve,accessKey:Ve,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Ve,autoFocus:ve,autoPlay:ve,blocking:Ve,capture:null,charSet:null,checked:ve,cite:null,className:Ve,cols:J,colSpan:null,content:null,contentEditable:ut,controls:ve,controlsList:Ve,coords:J|La,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Zc,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Ve,height:J,hidden:Zc,high:J,href:null,hrefLang:null,htmlFor:Ve,httpEquiv:Ve,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Ve,itemRef:Ve,itemScope:ve,itemType:Ve,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,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:ve,optimum:J,pattern:null,ping:Ve,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Ve,required:ve,reversed:ve,rows:J,rowSpan:J,sandbox:Ve,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:ut,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ve,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:Cy}),pS=Ga({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",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:Qt,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Ve,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:La,g2:La,glyphName:La,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ve,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qt,rev:Qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qt,requiredFeatures:Qt,requiredFonts:Qt,requiredFormats:Qt,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qt,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ty}),Ay=Ga({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),zy=Ga({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Cy}),ky=Ga({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),gS={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"},yS=/[A-Z]/g,ng=/-[a-z]/g,xS=/^data[-\w.:]+$/i;function bS(n,a){const r=Xc(a);let u=a,o=Dt;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&xS.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(ng,SS);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!ng.test(c)){let d=c.replace(yS,vS);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}o=bf}return new o(u,a)}function vS(n){return"-"+n.toLowerCase()}function SS(n){return n.charAt(1).toUpperCase()}const wS=jy([Ny,mS,Ay,zy,ky],"html"),vf=jy([Ny,pS,Ay,zy,ky],"svg");function ES(n){return n.join(" ").trim()}var Oa={},Rc,lg;function jS(){if(lg)return Rc;lg=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,m=/^\s+|\s+$/g,g=`
61
- `,p="/",x="*",b="",w="comment",S="declaration";function A(U,k){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];k=k||{};var X=1,O=1;function I(ae){var $=ae.match(a);$&&(X+=$.length);var M=ae.lastIndexOf(g);O=~M?ae.length-M:O+ae.length}function te(){var ae={line:X,column:O};return function($){return $.position=new q(ae),ce(),$}}function q(ae){this.start=ae,this.end={line:X,column:O},this.source=k.source}q.prototype.content=U;function F(ae){var $=new Error(k.source+":"+X+":"+O+": "+ae);if($.reason=ae,$.filename=k.source,$.line=X,$.column=O,$.source=U,!k.silent)throw $}function oe(ae){var $=ae.exec(U);if($){var M=$[0];return I(M),U=U.slice(M.length),$}}function ce(){oe(r)}function ge(ae){var $;for(ae=ae||[];$=ne();)$!==!1&&ae.push($);return ae}function ne(){var ae=te();if(!(p!=U.charAt(0)||x!=U.charAt(1))){for(var $=2;b!=U.charAt($)&&(x!=U.charAt($)||p!=U.charAt($+1));)++$;if($+=2,b===U.charAt($-1))return F("End of comment missing");var M=U.slice(2,$-2);return O+=2,I(M),U=U.slice($),O+=2,ae({type:w,comment:M})}}function W(){var ae=te(),$=oe(u);if($){if(ne(),!oe(o))return F("property missing ':'");var M=oe(c),Z=ae({type:S,property:R($[0].replace(n,b)),value:M?R(M[0].replace(n,b)):b});return oe(d),Z}}function Se(){var ae=[];ge(ae);for(var $;$=W();)$!==!1&&(ae.push($),ge(ae));return ae}return ce(),Se()}function R(U){return U?U.replace(m,b):b}return Rc=A,Rc}var ag;function NS(){if(ag)return Oa;ag=1;var n=Oa&&Oa.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=r;const a=n(jS());function r(u,o){let c=null;if(!u||typeof u!="string")return c;const d=(0,a.default)(u),m=typeof o=="function";return d.forEach(g=>{if(g.type!=="declaration")return;const{property:p,value:x}=g;m?o(p,x,g):x&&(c=c||{},c[p]=x)}),c}return Oa}var Ki={},ig;function TS(){if(ig)return Ki;ig=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(p){return!p||r.test(p)||n.test(p)},d=function(p,x){return x.toUpperCase()},m=function(p,x){return"".concat(x,"-")},g=function(p,x){return x===void 0&&(x={}),c(p)?p:(p=p.toLowerCase(),x.reactCompat?p=p.replace(o,m):p=p.replace(u,m),p.replace(a,d))};return Ki.camelCase=g,Ki}var Qi,rg;function CS(){if(rg)return Qi;rg=1;var n=Qi&&Qi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},a=n(NS()),r=TS();function u(o,c){var d={};return!o||typeof o!="string"||(0,a.default)(o,function(m,g){m&&g&&(d[(0,r.camelCase)(m,c)]=g)}),d}return u.default=u,Qi=u,Qi}var AS=CS();const zS=Qg(AS),Ry=_y("end"),Sf=_y("start");function _y(n){return a;function a(r){const u=r&&r.position&&r.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function kS(n){const a=Sf(n),r=Ry(n);if(a&&r)return{start:a,end:r}}function Zi(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ug(n.position):"start"in n||"end"in n?ug(n):"line"in n||"column"in n?Fc(n):""}function Fc(n){return sg(n&&n.line)+":"+sg(n&&n.column)}function ug(n){return Fc(n&&n.start)+"-"+Fc(n&&n.end)}function sg(n){return n&&typeof n=="number"?n:1}class vt extends Error{constructor(a,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let o="",c={},d=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof a=="string"?o=a:!c.cause&&a&&(d=!0,o=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof u=="string"){const g=u.indexOf(":");g===-1?c.ruleId=u:(c.source=u.slice(0,g),c.ruleId=u.slice(g+1))}if(!c.place&&c.ancestors&&c.ancestors){const g=c.ancestors[c.ancestors.length-1];g&&(c.place=g.position)}const m=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=m?m.line:void 0,this.name=Zi(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=d&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}vt.prototype.file="";vt.prototype.name="";vt.prototype.reason="";vt.prototype.message="";vt.prototype.stack="";vt.prototype.column=void 0;vt.prototype.line=void 0;vt.prototype.ancestors=void 0;vt.prototype.cause=void 0;vt.prototype.fatal=void 0;vt.prototype.place=void 0;vt.prototype.ruleId=void 0;vt.prototype.source=void 0;const wf={}.hasOwnProperty,RS=new Map,_S=/[A-Z]/g,OS=new Set(["table","tbody","thead","tfoot","tr"]),MS=new Set(["td","th"]),Oy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function DS(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=KS(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=VS(r,a.jsx,a.jsxs)}const o={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?vf:wS,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=My(o,n,void 0);return c&&typeof c!="string"?c:o.create(n,o.Fragment,{children:c||void 0},void 0)}function My(n,a,r){if(a.type==="element")return LS(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return BS(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return HS(n,a,r);if(a.type==="mdxjsEsm")return US(n,a);if(a.type==="root")return qS(n,a,r);if(a.type==="text")return YS(n,a)}function LS(n,a,r){const u=n.schema;let o=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=vf,n.schema=o),n.ancestors.push(a);const c=Ly(n,a.tagName,!1),d=QS(n,a);let m=jf(n,a);return OS.has(a.tagName)&&(m=m.filter(function(g){return typeof g=="string"?!dS(g):!0})),Dy(n,d,c,a),Ef(d,m),n.ancestors.pop(),n.schema=u,n.create(a,c,d,r)}function BS(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}er(n,a.position)}function US(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);er(n,a.position)}function HS(n,a,r){const u=n.schema;let o=u;a.name==="svg"&&u.space==="html"&&(o=vf,n.schema=o),n.ancestors.push(a);const c=a.name===null?n.Fragment:Ly(n,a.name,!0),d=GS(n,a),m=jf(n,a);return Dy(n,d,c,a),Ef(d,m),n.ancestors.pop(),n.schema=u,n.create(a,c,d,r)}function qS(n,a,r){const u={};return Ef(u,jf(n,a)),n.create(a,n.Fragment,u,r)}function YS(n,a){return a.value}function Dy(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function Ef(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function VS(n,a,r){return u;function u(o,c,d,m){const p=Array.isArray(d.children)?r:a;return m?p(c,d,m):p(c,d)}}function KS(n,a){return r;function r(u,o,c,d){const m=Array.isArray(c.children),g=Sf(u);return a(o,c,d,m,{columnNumber:g?g.column-1:void 0,fileName:n,lineNumber:g?g.line:void 0},void 0)}}function QS(n,a){const r={};let u,o;for(o in a.properties)if(o!=="children"&&wf.call(a.properties,o)){const c=XS(n,o,a.properties[o]);if(c){const[d,m]=c;n.tableCellAlignToStyle&&d==="align"&&typeof m=="string"&&MS.has(a.tagName)?u=m:r[d]=m}}if(u){const c=r.style||(r.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function GS(n,a){const r={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const c=u.data.estree.body[0];c.type;const d=c.expression;d.type;const m=d.properties[0];m.type,Object.assign(r,n.evaluater.evaluateExpression(m.argument))}else er(n,a.position);else{const o=u.name;let c;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const m=u.value.data.estree.body[0];m.type,c=n.evaluater.evaluateExpression(m.expression)}else er(n,a.position);else c=u.value===null?!0:u.value;r[o]=c}return r}function jf(n,a){const r=[];let u=-1;const o=n.passKeys?new Map:RS;for(;++u<a.children.length;){const c=a.children[u];let d;if(n.passKeys){const g=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(g){const p=o.get(g)||0;d=g+"-"+p,o.set(g,p+1)}}const m=My(n,c,d);m!==void 0&&r.push(m)}return r}function XS(n,a,r){const u=bS(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?uS(r):ES(r)),u.property==="style"){let o=typeof r=="object"?r:ZS(n,String(r));return n.stylePropertyNameCase==="css"&&(o=$S(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&u.space?gS[u.property]||u.property:u.attribute,r]}}function ZS(n,a){try{return zS(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,o=new vt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=Oy+"#cannot-parse-style-attribute",o}}function Ly(n,a,r){let u;if(!r)u={type:"Literal",value:a};else if(a.includes(".")){const o=a.split(".");let c=-1,d;for(;++c<o.length;){const m=Wp(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};d=d?{type:"MemberExpression",object:d,property:m,computed:!!(c&&m.type==="Literal"),optional:!1}:m}u=d}else u=Wp(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const o=u.value;return wf.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(u);er(n)}function er(n,a){const r=new vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=Oy+"#cannot-handle-mdx-estrees-without-createevaluater",r}function $S(n){const a={};let r;for(r in n)wf.call(n,r)&&(a[FS(r)]=n[r]);return a}function FS(n){let a=n.replace(_S,JS);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function JS(n){return"-"+n.toLowerCase()}const _c={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"]},IS={};function PS(n,a){const r=IS,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return By(n,u,o)}function By(n,a,r){if(WS(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return og(n.children,a,r)}return Array.isArray(n)?og(n,a,r):""}function og(n,a,r){const u=[];let o=-1;for(;++o<n.length;)u[o]=By(n[o],a,r);return u.join("")}function WS(n){return!!(n&&typeof n=="object")}const cg=document.createElement("i");function Nf(n){const a="&"+n+";";cg.innerHTML=a;const r=cg.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function wn(n,a,r,u){const o=n.length;let c=0,d;if(a<0?a=-a>o?0:o+a:a=a>o?o:a,r=r>0?r:0,u.length<1e4)d=Array.from(u),d.unshift(a,r),n.splice(...d);else for(r&&n.splice(a,r);c<u.length;)d=u.slice(c,c+1e4),d.unshift(a,0),n.splice(...d),c+=1e4,a+=1e4}function un(n,a){return n.length>0?(wn(n,n.length,0,a),n):a}const fg={}.hasOwnProperty;function e2(n){const a={};let r=-1;for(;++r<n.length;)t2(a,n[r]);return a}function t2(n,a){let r;for(r in a){const o=(fg.call(n,r)?n[r]:void 0)||(n[r]={}),c=a[r];let d;if(c)for(d in c){fg.call(o,d)||(o[d]=[]);const m=c[d];n2(o[d],Array.isArray(m)?m:m?[m]:[])}}}function n2(n,a){let r=-1;const u=[];for(;++r<a.length;)(a[r].add==="after"?n:u).push(a[r]);wn(n,0,0,u)}function Uy(n,a){const r=Number.parseInt(n,a);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 Ba(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sn=Sl(/[A-Za-z]/),Gt=Sl(/[\dA-Za-z]/),l2=Sl(/[#-'*+\--9=?A-Z^-~]/);function Jc(n){return n!==null&&(n<32||n===127)}const Ic=Sl(/\d/),a2=Sl(/[\dA-Fa-f]/),i2=Sl(/[!-/:-@[-`{-~]/);function me(n){return n!==null&&n<-2}function Mt(n){return n!==null&&(n<0||n===32)}function _e(n){return n===-2||n===-1||n===32}const r2=Sl(new RegExp("\\p{P}|\\p{S}","u")),u2=Sl(/\s/);function Sl(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function Xa(n){const a=[];let r=-1,u=0,o=0;for(;++r<n.length;){const c=n.charCodeAt(r);let d="";if(c===37&&Gt(n.charCodeAt(r+1))&&Gt(n.charCodeAt(r+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(d=String.fromCharCode(c));else if(c>55295&&c<57344){const m=n.charCodeAt(r+1);c<56320&&m>56319&&m<57344?(d=String.fromCharCode(c,m),o=1):d="�"}else d=String.fromCharCode(c);d&&(a.push(n.slice(u,r),encodeURIComponent(d)),u=r+o+1,d=""),o&&(r+=o,o=0)}return a.join("")+n.slice(u)}function Ke(n,a,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let c=0;return d;function d(g){return _e(g)?(n.enter(r),m(g)):a(g)}function m(g){return _e(g)&&c++<o?(n.consume(g),m):(n.exit(r),a(g))}}const s2={tokenize:o2};function o2(n){const a=n.attempt(this.parser.constructs.contentInitial,u,o);let r;return a;function u(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),Ke(n,a,"linePrefix")}function o(m){return n.enter("paragraph"),c(m)}function c(m){const g=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=g),r=g,d(m)}function d(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return me(m)?(n.consume(m),n.exit("chunkText"),c):(n.consume(m),d)}}const c2={tokenize:f2},dg={tokenize:d2};function f2(n){const a=this,r=[];let u=0,o,c,d;return m;function m(O){if(u<r.length){const I=r[u];return a.containerState=I[1],n.attempt(I[0].continuation,g,p)(O)}return p(O)}function g(O){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,o&&X();const I=a.events.length;let te=I,q;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){q=a.events[te][1].end;break}k(u);let F=I;for(;F<a.events.length;)a.events[F][1].end={...q},F++;return wn(a.events,te+1,0,a.events.slice(I)),a.events.length=F,p(O)}return m(O)}function p(O){if(u===r.length){if(!o)return w(O);if(o.currentConstruct&&o.currentConstruct.concrete)return A(O);a.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(dg,x,b)(O)}function x(O){return o&&X(),k(u),w(O)}function b(O){return a.parser.lazy[a.now().line]=u!==r.length,d=a.now().offset,A(O)}function w(O){return a.containerState={},n.attempt(dg,S,A)(O)}function S(O){return u++,r.push([a.currentConstruct,a.containerState]),w(O)}function A(O){if(O===null){o&&X(),k(0),n.consume(O);return}return o=o||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),R(O)}function R(O){if(O===null){U(n.exit("chunkFlow"),!0),k(0),n.consume(O);return}return me(O)?(n.consume(O),U(n.exit("chunkFlow")),u=0,a.interrupt=void 0,m):(n.consume(O),R)}function U(O,I){const te=a.sliceStream(O);if(I&&te.push(null),O.previous=c,c&&(c.next=O),c=O,o.defineSkip(O.start),o.write(te),a.parser.lazy[O.start.line]){let q=o.events.length;for(;q--;)if(o.events[q][1].start.offset<d&&(!o.events[q][1].end||o.events[q][1].end.offset>d))return;const F=a.events.length;let oe=F,ce,ge;for(;oe--;)if(a.events[oe][0]==="exit"&&a.events[oe][1].type==="chunkFlow"){if(ce){ge=a.events[oe][1].end;break}ce=!0}for(k(u),q=F;q<a.events.length;)a.events[q][1].end={...ge},q++;wn(a.events,oe+1,0,a.events.slice(F)),a.events.length=q}}function k(O){let I=r.length;for(;I-- >O;){const te=r[I];a.containerState=te[1],te[0].exit.call(a,n)}r.length=O}function X(){o.write([null]),c=void 0,o=void 0,a.containerState._closeFlow=void 0}}function d2(n,a,r){return Ke(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function hg(n){if(n===null||Mt(n)||u2(n))return 1;if(r2(n))return 2}function Tf(n,a,r){const u=[];let o=-1;for(;++o<n.length;){const c=n[o].resolveAll;c&&!u.includes(c)&&(a=c(a,r),u.push(c))}return a}const Pc={name:"attention",resolveAll:h2,tokenize:m2};function h2(n,a){let r=-1,u,o,c,d,m,g,p,x;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;g=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const b={...n[u][1].end},w={...n[r][1].start};mg(b,-g),mg(w,g),d={type:g>1?"strongSequence":"emphasisSequence",start:b,end:{...n[u][1].end}},m={type:g>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:w},c={type:g>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},o={type:g>1?"strong":"emphasis",start:{...d.start},end:{...m.end}},n[u][1].end={...d.start},n[r][1].start={...m.end},p=[],n[u][1].end.offset-n[u][1].start.offset&&(p=un(p,[["enter",n[u][1],a],["exit",n[u][1],a]])),p=un(p,[["enter",o,a],["enter",d,a],["exit",d,a],["enter",c,a]]),p=un(p,Tf(a.parser.constructs.insideSpan.null,n.slice(u+1,r),a)),p=un(p,[["exit",c,a],["enter",m,a],["exit",m,a],["exit",o,a]]),n[r][1].end.offset-n[r][1].start.offset?(x=2,p=un(p,[["enter",n[r][1],a],["exit",n[r][1],a]])):x=0,wn(n,u-1,r-u+3,p),r=u+p.length-x-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function m2(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=hg(u);let c;return d;function d(g){return c=g,n.enter("attentionSequence"),m(g)}function m(g){if(g===c)return n.consume(g),m;const p=n.exit("attentionSequence"),x=hg(g),b=!x||x===2&&o||r.includes(g),w=!o||o===2&&x||r.includes(u);return p._open=!!(c===42?b:b&&(o||!w)),p._close=!!(c===42?w:w&&(x||!b)),a(g)}}function mg(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const p2={name:"autolink",tokenize:g2};function g2(n,a,r){let u=0;return o;function o(S){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(S){return Sn(S)?(n.consume(S),d):S===64?r(S):p(S)}function d(S){return S===43||S===45||S===46||Gt(S)?(u=1,m(S)):p(S)}function m(S){return S===58?(n.consume(S),u=0,g):(S===43||S===45||S===46||Gt(S))&&u++<32?(n.consume(S),m):(u=0,p(S))}function g(S){return S===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):S===null||S===32||S===60||Jc(S)?r(S):(n.consume(S),g)}function p(S){return S===64?(n.consume(S),x):l2(S)?(n.consume(S),p):r(S)}function x(S){return Gt(S)?b(S):r(S)}function b(S){return S===46?(n.consume(S),u=0,x):S===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):w(S)}function w(S){if((S===45||Gt(S))&&u++<63){const A=S===45?w:b;return n.consume(S),A}return r(S)}}const $u={partial:!0,tokenize:y2};function y2(n,a,r){return u;function u(c){return _e(c)?Ke(n,o,"linePrefix")(c):o(c)}function o(c){return c===null||me(c)?a(c):r(c)}}const Hy={continuation:{tokenize:b2},exit:v2,name:"blockQuote",tokenize:x2};function x2(n,a,r){const u=this;return o;function o(d){if(d===62){const m=u.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(d),n.exit("blockQuoteMarker"),c}return r(d)}function c(d){return _e(d)?(n.enter("blockQuotePrefixWhitespace"),n.consume(d),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(d))}}function b2(n,a,r){const u=this;return o;function o(d){return _e(d)?Ke(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):c(d)}function c(d){return n.attempt(Hy,a,r)(d)}}function v2(n){n.exit("blockQuote")}const qy={name:"characterEscape",tokenize:S2};function S2(n,a,r){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),o}function o(c){return i2(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(c)}}const Yy={name:"characterReference",tokenize:w2};function w2(n,a,r){const u=this;let o=0,c,d;return m;function m(b){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(b),n.exit("characterReferenceMarker"),g}function g(b){return b===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(b),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),c=31,d=Gt,x(b))}function p(b){return b===88||b===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(b),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,d=a2,x):(n.enter("characterReferenceValue"),c=7,d=Ic,x(b))}function x(b){if(b===59&&o){const w=n.exit("characterReferenceValue");return d===Gt&&!Nf(u.sliceSerialize(w))?r(b):(n.enter("characterReferenceMarker"),n.consume(b),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return d(b)&&o++<c?(n.consume(b),x):r(b)}}const pg={partial:!0,tokenize:j2},gg={concrete:!0,name:"codeFenced",tokenize:E2};function E2(n,a,r){const u=this,o={partial:!0,tokenize:te};let c=0,d=0,m;return g;function g(q){return p(q)}function p(q){const F=u.events[u.events.length-1];return c=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,m=q,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(q)}function x(q){return q===m?(d++,n.consume(q),x):d<3?r(q):(n.exit("codeFencedFenceSequence"),_e(q)?Ke(n,b,"whitespace")(q):b(q))}function b(q){return q===null||me(q)?(n.exit("codeFencedFence"),u.interrupt?a(q):n.check(pg,R,I)(q)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),w(q))}function w(q){return q===null||me(q)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),b(q)):_e(q)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ke(n,S,"whitespace")(q)):q===96&&q===m?r(q):(n.consume(q),w)}function S(q){return q===null||me(q)?b(q):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(q))}function A(q){return q===null||me(q)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),b(q)):q===96&&q===m?r(q):(n.consume(q),A)}function R(q){return n.attempt(o,I,U)(q)}function U(q){return n.enter("lineEnding"),n.consume(q),n.exit("lineEnding"),k}function k(q){return c>0&&_e(q)?Ke(n,X,"linePrefix",c+1)(q):X(q)}function X(q){return q===null||me(q)?n.check(pg,R,I)(q):(n.enter("codeFlowValue"),O(q))}function O(q){return q===null||me(q)?(n.exit("codeFlowValue"),X(q)):(n.consume(q),O)}function I(q){return n.exit("codeFenced"),a(q)}function te(q,F,oe){let ce=0;return ge;function ge($){return q.enter("lineEnding"),q.consume($),q.exit("lineEnding"),ne}function ne($){return q.enter("codeFencedFence"),_e($)?Ke(q,W,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):W($)}function W($){return $===m?(q.enter("codeFencedFenceSequence"),Se($)):oe($)}function Se($){return $===m?(ce++,q.consume($),Se):ce>=d?(q.exit("codeFencedFenceSequence"),_e($)?Ke(q,ae,"whitespace")($):ae($)):oe($)}function ae($){return $===null||me($)?(q.exit("codeFencedFence"),F($)):oe($)}}}function j2(n,a,r){const u=this;return o;function o(d){return d===null?r(d):(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c)}function c(d){return u.parser.lazy[u.now().line]?r(d):a(d)}}const Oc={name:"codeIndented",tokenize:T2},N2={partial:!0,tokenize:C2};function T2(n,a,r){const u=this;return o;function o(p){return n.enter("codeIndented"),Ke(n,c,"linePrefix",5)(p)}function c(p){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?d(p):r(p)}function d(p){return p===null?g(p):me(p)?n.attempt(N2,d,g)(p):(n.enter("codeFlowValue"),m(p))}function m(p){return p===null||me(p)?(n.exit("codeFlowValue"),d(p)):(n.consume(p),m)}function g(p){return n.exit("codeIndented"),a(p)}}function C2(n,a,r){const u=this;return o;function o(d){return u.parser.lazy[u.now().line]?r(d):me(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),o):Ke(n,c,"linePrefix",5)(d)}function c(d){const m=u.events[u.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(d):me(d)?o(d):r(d)}}const A2={name:"codeText",previous:k2,resolve:z2,tokenize:R2};function z2(n){let a=n.length-4,r=3,u,o;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=r;++u<a;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(u=r-1,a++;++u<=a;)o===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(o=u):(u===a||n[u][1].type==="lineEnding")&&(n[o][1].type="codeTextData",u!==o+2&&(n[o][1].end=n[u-1][1].end,n.splice(o+2,u-o-2),a-=u-o-2,u=o+2),o=void 0);return n}function k2(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function R2(n,a,r){let u=0,o,c;return d;function d(b){return n.enter("codeText"),n.enter("codeTextSequence"),m(b)}function m(b){return b===96?(n.consume(b),u++,m):(n.exit("codeTextSequence"),g(b))}function g(b){return b===null?r(b):b===32?(n.enter("space"),n.consume(b),n.exit("space"),g):b===96?(c=n.enter("codeTextSequence"),o=0,x(b)):me(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),g):(n.enter("codeTextData"),p(b))}function p(b){return b===null||b===32||b===96||me(b)?(n.exit("codeTextData"),g(b)):(n.consume(b),p)}function x(b){return b===96?(n.consume(b),o++,x):o===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(b)):(c.type="codeTextData",p(b))}}class _2{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,r,u){const o=r||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&Gi(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Gi(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Gi(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Gi(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Gi(this.left,r.reverse())}}}function Gi(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function Vy(n){const a={};let r=-1,u,o,c,d,m,g,p;const x=new _2(n);for(;++r<x.length;){for(;r in a;)r=a[r];if(u=x.get(r),r&&u[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(g=u[1]._tokenizer.events,c=0,c<g.length&&g[c][1].type==="lineEndingBlank"&&(c+=2),c<g.length&&g[c][1].type==="content"))for(;++c<g.length&&g[c][1].type!=="content";)g[c][1].type==="chunkText"&&(g[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,O2(x,r)),r=a[r],p=!0);else if(u[1]._container){for(c=r,o=void 0;c--;)if(d=x.get(c),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(o&&(x.get(o)[1].type="lineEndingBlank"),d[1].type="lineEnding",o=c);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;o&&(u[1].end={...x.get(o)[1].start},m=x.slice(o,r),m.unshift(u),x.splice(o,r-o+1,m))}}return wn(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!p}function O2(n,a){const r=n.get(a)[1],u=n.get(a)[2];let o=a-1;const c=[];let d=r._tokenizer;d||(d=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const m=d.events,g=[],p={};let x,b,w=-1,S=r,A=0,R=0;const U=[R];for(;S;){for(;n.get(++o)[1]!==S;);c.push(o),S._tokenizer||(x=u.sliceStream(S),S.next||x.push(null),b&&d.defineSkip(S.start),S._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(x),S._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),b=S,S=S.next}for(S=r;++w<m.length;)m[w][0]==="exit"&&m[w-1][0]==="enter"&&m[w][1].type===m[w-1][1].type&&m[w][1].start.line!==m[w][1].end.line&&(R=w+1,U.push(R),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(d.events=[],S?(S._tokenizer=void 0,S.previous=void 0):U.pop(),w=U.length;w--;){const k=m.slice(U[w],U[w+1]),X=c.pop();g.push([X,X+k.length-1]),n.splice(X,2,k)}for(g.reverse(),w=-1;++w<g.length;)p[A+g[w][0]]=A+g[w][1],A+=g[w][1]-g[w][0]-1;return p}const M2={resolve:L2,tokenize:B2},D2={partial:!0,tokenize:U2};function L2(n){return Vy(n),n}function B2(n,a){let r;return u;function u(m){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),o(m)}function o(m){return m===null?c(m):me(m)?n.check(D2,d,c)(m):(n.consume(m),o)}function c(m){return n.exit("chunkContent"),n.exit("content"),a(m)}function d(m){return n.consume(m),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function U2(n,a,r){const u=this;return o;function o(d){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),Ke(n,c,"linePrefix")}function c(d){if(d===null||me(d))return r(d);const m=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(d):n.interrupt(u.parser.constructs.flow,r,a)(d)}}function Ky(n,a,r,u,o,c,d,m,g){const p=g||Number.POSITIVE_INFINITY;let x=0;return b;function b(k){return k===60?(n.enter(u),n.enter(o),n.enter(c),n.consume(k),n.exit(c),w):k===null||k===32||k===41||Jc(k)?r(k):(n.enter(u),n.enter(d),n.enter(m),n.enter("chunkString",{contentType:"string"}),R(k))}function w(k){return k===62?(n.enter(c),n.consume(k),n.exit(c),n.exit(o),n.exit(u),a):(n.enter(m),n.enter("chunkString",{contentType:"string"}),S(k))}function S(k){return k===62?(n.exit("chunkString"),n.exit(m),w(k)):k===null||k===60||me(k)?r(k):(n.consume(k),k===92?A:S)}function A(k){return k===60||k===62||k===92?(n.consume(k),S):S(k)}function R(k){return!x&&(k===null||k===41||Mt(k))?(n.exit("chunkString"),n.exit(m),n.exit(d),n.exit(u),a(k)):x<p&&k===40?(n.consume(k),x++,R):k===41?(n.consume(k),x--,R):k===null||k===32||k===40||Jc(k)?r(k):(n.consume(k),k===92?U:R)}function U(k){return k===40||k===41||k===92?(n.consume(k),R):R(k)}}function Qy(n,a,r,u,o,c){const d=this;let m=0,g;return p;function p(S){return n.enter(u),n.enter(o),n.consume(S),n.exit(o),n.enter(c),x}function x(S){return m>999||S===null||S===91||S===93&&!g||S===94&&!m&&"_hiddenFootnoteSupport"in d.parser.constructs?r(S):S===93?(n.exit(c),n.enter(o),n.consume(S),n.exit(o),n.exit(u),a):me(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||S===91||S===93||me(S)||m++>999?(n.exit("chunkString"),x(S)):(n.consume(S),g||(g=!_e(S)),S===92?w:b)}function w(S){return S===91||S===92||S===93?(n.consume(S),m++,b):b(S)}}function Gy(n,a,r,u,o,c){let d;return m;function m(w){return w===34||w===39||w===40?(n.enter(u),n.enter(o),n.consume(w),n.exit(o),d=w===40?41:w,g):r(w)}function g(w){return w===d?(n.enter(o),n.consume(w),n.exit(o),n.exit(u),a):(n.enter(c),p(w))}function p(w){return w===d?(n.exit(c),g(d)):w===null?r(w):me(w)?(n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),Ke(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===d||w===null||me(w)?(n.exit("chunkString"),p(w)):(n.consume(w),w===92?b:x)}function b(w){return w===d||w===92?(n.consume(w),x):x(w)}}function $i(n,a){let r;return u;function u(o){return me(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),r=!0,u):_e(o)?Ke(n,u,r?"linePrefix":"lineSuffix")(o):a(o)}}const H2={name:"definition",tokenize:Y2},q2={partial:!0,tokenize:V2};function Y2(n,a,r){const u=this;let o;return c;function c(S){return n.enter("definition"),d(S)}function d(S){return Qy.call(u,n,m,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function m(S){return o=Ba(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),S===58?(n.enter("definitionMarker"),n.consume(S),n.exit("definitionMarker"),g):r(S)}function g(S){return Mt(S)?$i(n,p)(S):p(S)}function p(S){return Ky(n,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function x(S){return n.attempt(q2,b,b)(S)}function b(S){return _e(S)?Ke(n,w,"whitespace")(S):w(S)}function w(S){return S===null||me(S)?(n.exit("definition"),u.parser.defined.push(o),a(S)):r(S)}}function V2(n,a,r){return u;function u(m){return Mt(m)?$i(n,o)(m):r(m)}function o(m){return Gy(n,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function c(m){return _e(m)?Ke(n,d,"whitespace")(m):d(m)}function d(m){return m===null||me(m)?a(m):r(m)}}const K2={name:"hardBreakEscape",tokenize:Q2};function Q2(n,a,r){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),o}function o(c){return me(c)?(n.exit("hardBreakEscape"),a(c)):r(c)}}const G2={name:"headingAtx",resolve:X2,tokenize:Z2};function X2(n,a){let r=n.length-2,u=3,o,c;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(o={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},c={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},wn(n,u,r-u+1,[["enter",o,a],["enter",c,a],["exit",c,a],["exit",o,a]])),n}function Z2(n,a,r){let u=0;return o;function o(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),d(x)}function d(x){return x===35&&u++<6?(n.consume(x),d):x===null||Mt(x)?(n.exit("atxHeadingSequence"),m(x)):r(x)}function m(x){return x===35?(n.enter("atxHeadingSequence"),g(x)):x===null||me(x)?(n.exit("atxHeading"),a(x)):_e(x)?Ke(n,m,"whitespace")(x):(n.enter("atxHeadingText"),p(x))}function g(x){return x===35?(n.consume(x),g):(n.exit("atxHeadingSequence"),m(x))}function p(x){return x===null||x===35||Mt(x)?(n.exit("atxHeadingText"),m(x)):(n.consume(x),p)}}const $2=["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"],yg=["pre","script","style","textarea"],F2={concrete:!0,name:"htmlFlow",resolveTo:P2,tokenize:W2},J2={partial:!0,tokenize:tw},I2={partial:!0,tokenize:ew};function P2(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function W2(n,a,r){const u=this;let o,c,d,m,g;return p;function p(E){return x(E)}function x(E){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(E),b}function b(E){return E===33?(n.consume(E),w):E===47?(n.consume(E),c=!0,R):E===63?(n.consume(E),o=3,u.interrupt?a:j):Sn(E)?(n.consume(E),d=String.fromCharCode(E),U):r(E)}function w(E){return E===45?(n.consume(E),o=2,S):E===91?(n.consume(E),o=5,m=0,A):Sn(E)?(n.consume(E),o=4,u.interrupt?a:j):r(E)}function S(E){return E===45?(n.consume(E),u.interrupt?a:j):r(E)}function A(E){const ee="CDATA[";return E===ee.charCodeAt(m++)?(n.consume(E),m===ee.length?u.interrupt?a:W:A):r(E)}function R(E){return Sn(E)?(n.consume(E),d=String.fromCharCode(E),U):r(E)}function U(E){if(E===null||E===47||E===62||Mt(E)){const ee=E===47,de=d.toLowerCase();return!ee&&!c&&yg.includes(de)?(o=1,u.interrupt?a(E):W(E)):$2.includes(d.toLowerCase())?(o=6,ee?(n.consume(E),k):u.interrupt?a(E):W(E)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(E):c?X(E):O(E))}return E===45||Gt(E)?(n.consume(E),d+=String.fromCharCode(E),U):r(E)}function k(E){return E===62?(n.consume(E),u.interrupt?a:W):r(E)}function X(E){return _e(E)?(n.consume(E),X):ge(E)}function O(E){return E===47?(n.consume(E),ge):E===58||E===95||Sn(E)?(n.consume(E),I):_e(E)?(n.consume(E),O):ge(E)}function I(E){return E===45||E===46||E===58||E===95||Gt(E)?(n.consume(E),I):te(E)}function te(E){return E===61?(n.consume(E),q):_e(E)?(n.consume(E),te):O(E)}function q(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(n.consume(E),g=E,F):_e(E)?(n.consume(E),q):oe(E)}function F(E){return E===g?(n.consume(E),g=null,ce):E===null||me(E)?r(E):(n.consume(E),F)}function oe(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Mt(E)?te(E):(n.consume(E),oe)}function ce(E){return E===47||E===62||_e(E)?O(E):r(E)}function ge(E){return E===62?(n.consume(E),ne):r(E)}function ne(E){return E===null||me(E)?W(E):_e(E)?(n.consume(E),ne):r(E)}function W(E){return E===45&&o===2?(n.consume(E),M):E===60&&o===1?(n.consume(E),Z):E===62&&o===4?(n.consume(E),T):E===63&&o===3?(n.consume(E),j):E===93&&o===5?(n.consume(E),pe):me(E)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(J2,V,Se)(E)):E===null||me(E)?(n.exit("htmlFlowData"),Se(E)):(n.consume(E),W)}function Se(E){return n.check(I2,ae,V)(E)}function ae(E){return n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),$}function $(E){return E===null||me(E)?Se(E):(n.enter("htmlFlowData"),W(E))}function M(E){return E===45?(n.consume(E),j):W(E)}function Z(E){return E===47?(n.consume(E),d="",ie):W(E)}function ie(E){if(E===62){const ee=d.toLowerCase();return yg.includes(ee)?(n.consume(E),T):W(E)}return Sn(E)&&d.length<8?(n.consume(E),d+=String.fromCharCode(E),ie):W(E)}function pe(E){return E===93?(n.consume(E),j):W(E)}function j(E){return E===62?(n.consume(E),T):E===45&&o===2?(n.consume(E),j):W(E)}function T(E){return E===null||me(E)?(n.exit("htmlFlowData"),V(E)):(n.consume(E),T)}function V(E){return n.exit("htmlFlow"),a(E)}}function ew(n,a,r){const u=this;return o;function o(d){return me(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c):r(d)}function c(d){return u.parser.lazy[u.now().line]?r(d):a(d)}}function tw(n,a,r){return u;function u(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt($u,a,r)}}const nw={name:"htmlText",tokenize:lw};function lw(n,a,r){const u=this;let o,c,d;return m;function m(j){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(j),g}function g(j){return j===33?(n.consume(j),p):j===47?(n.consume(j),te):j===63?(n.consume(j),O):Sn(j)?(n.consume(j),oe):r(j)}function p(j){return j===45?(n.consume(j),x):j===91?(n.consume(j),c=0,A):Sn(j)?(n.consume(j),X):r(j)}function x(j){return j===45?(n.consume(j),S):r(j)}function b(j){return j===null?r(j):j===45?(n.consume(j),w):me(j)?(d=b,Z(j)):(n.consume(j),b)}function w(j){return j===45?(n.consume(j),S):b(j)}function S(j){return j===62?M(j):j===45?w(j):b(j)}function A(j){const T="CDATA[";return j===T.charCodeAt(c++)?(n.consume(j),c===T.length?R:A):r(j)}function R(j){return j===null?r(j):j===93?(n.consume(j),U):me(j)?(d=R,Z(j)):(n.consume(j),R)}function U(j){return j===93?(n.consume(j),k):R(j)}function k(j){return j===62?M(j):j===93?(n.consume(j),k):R(j)}function X(j){return j===null||j===62?M(j):me(j)?(d=X,Z(j)):(n.consume(j),X)}function O(j){return j===null?r(j):j===63?(n.consume(j),I):me(j)?(d=O,Z(j)):(n.consume(j),O)}function I(j){return j===62?M(j):O(j)}function te(j){return Sn(j)?(n.consume(j),q):r(j)}function q(j){return j===45||Gt(j)?(n.consume(j),q):F(j)}function F(j){return me(j)?(d=F,Z(j)):_e(j)?(n.consume(j),F):M(j)}function oe(j){return j===45||Gt(j)?(n.consume(j),oe):j===47||j===62||Mt(j)?ce(j):r(j)}function ce(j){return j===47?(n.consume(j),M):j===58||j===95||Sn(j)?(n.consume(j),ge):me(j)?(d=ce,Z(j)):_e(j)?(n.consume(j),ce):M(j)}function ge(j){return j===45||j===46||j===58||j===95||Gt(j)?(n.consume(j),ge):ne(j)}function ne(j){return j===61?(n.consume(j),W):me(j)?(d=ne,Z(j)):_e(j)?(n.consume(j),ne):ce(j)}function W(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(n.consume(j),o=j,Se):me(j)?(d=W,Z(j)):_e(j)?(n.consume(j),W):(n.consume(j),ae)}function Se(j){return j===o?(n.consume(j),o=void 0,$):j===null?r(j):me(j)?(d=Se,Z(j)):(n.consume(j),Se)}function ae(j){return j===null||j===34||j===39||j===60||j===61||j===96?r(j):j===47||j===62||Mt(j)?ce(j):(n.consume(j),ae)}function $(j){return j===47||j===62||Mt(j)?ce(j):r(j)}function M(j){return j===62?(n.consume(j),n.exit("htmlTextData"),n.exit("htmlText"),a):r(j)}function Z(j){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(j),n.exit("lineEnding"),ie}function ie(j){return _e(j)?Ke(n,pe,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):pe(j)}function pe(j){return n.enter("htmlTextData"),d(j)}}const Cf={name:"labelEnd",resolveAll:uw,resolveTo:sw,tokenize:ow},aw={tokenize:cw},iw={tokenize:fw},rw={tokenize:dw};function uw(n){let a=-1;const r=[];for(;++a<n.length;){const u=n[a][1];if(r.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",a+=o}}return n.length!==r.length&&wn(n,0,n.length,r),n}function sw(n,a){let r=n.length,u=0,o,c,d,m;for(;r--;)if(o=n[r][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(d){if(n[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=r,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(d=r);const g={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[c][1].start},end:{...n[d][1].end}},x={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[d-2][1].start}};return m=[["enter",g,a],["enter",p,a]],m=un(m,n.slice(c+1,c+u+3)),m=un(m,[["enter",x,a]]),m=un(m,Tf(a.parser.constructs.insideSpan.null,n.slice(c+u+4,d-3),a)),m=un(m,[["exit",x,a],n[d-2],n[d-1],["exit",p,a]]),m=un(m,n.slice(d+1)),m=un(m,[["exit",g,a]]),wn(n,c,n.length,m),n}function ow(n,a,r){const u=this;let o=u.events.length,c,d;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){c=u.events[o][1];break}return m;function m(w){return c?c._inactive?b(w):(d=u.parser.defined.includes(Ba(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(w),n.exit("labelMarker"),n.exit("labelEnd"),g):r(w)}function g(w){return w===40?n.attempt(aw,x,d?x:b)(w):w===91?n.attempt(iw,x,d?p:b)(w):d?x(w):b(w)}function p(w){return n.attempt(rw,x,b)(w)}function x(w){return a(w)}function b(w){return c._balanced=!0,r(w)}}function cw(n,a,r){return u;function u(b){return n.enter("resource"),n.enter("resourceMarker"),n.consume(b),n.exit("resourceMarker"),o}function o(b){return Mt(b)?$i(n,c)(b):c(b)}function c(b){return b===41?x(b):Ky(n,d,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function d(b){return Mt(b)?$i(n,g)(b):x(b)}function m(b){return r(b)}function g(b){return b===34||b===39||b===40?Gy(n,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):x(b)}function p(b){return Mt(b)?$i(n,x)(b):x(b)}function x(b){return b===41?(n.enter("resourceMarker"),n.consume(b),n.exit("resourceMarker"),n.exit("resource"),a):r(b)}}function fw(n,a,r){const u=this;return o;function o(m){return Qy.call(u,n,c,d,"reference","referenceMarker","referenceString")(m)}function c(m){return u.parser.defined.includes(Ba(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(m):r(m)}function d(m){return r(m)}}function dw(n,a,r){return u;function u(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),o}function o(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),a):r(c)}}const hw={name:"labelStartImage",resolveAll:Cf.resolveAll,tokenize:mw};function mw(n,a,r){const u=this;return o;function o(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),c}function c(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),d):r(m)}function d(m){return m===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(m):a(m)}}const pw={name:"labelStartLink",resolveAll:Cf.resolveAll,tokenize:gw};function gw(n,a,r){const u=this;return o;function o(d){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelLink"),c}function c(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(d):a(d)}}const Mc={name:"lineEnding",tokenize:yw};function yw(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Ke(n,a,"linePrefix")}}const Ou={name:"thematicBreak",tokenize:xw};function xw(n,a,r){let u=0,o;return c;function c(p){return n.enter("thematicBreak"),d(p)}function d(p){return o=p,m(p)}function m(p){return p===o?(n.enter("thematicBreakSequence"),g(p)):u>=3&&(p===null||me(p))?(n.exit("thematicBreak"),a(p)):r(p)}function g(p){return p===o?(n.consume(p),u++,g):(n.exit("thematicBreakSequence"),_e(p)?Ke(n,m,"whitespace")(p):m(p))}}const Ot={continuation:{tokenize:ww},exit:jw,name:"list",tokenize:Sw},bw={partial:!0,tokenize:Nw},vw={partial:!0,tokenize:Ew};function Sw(n,a,r){const u=this,o=u.events[u.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,d=0;return m;function m(S){const A=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:Ic(S)){if(u.containerState.type||(u.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(Ou,r,p)(S):p(S);if(!u.interrupt||S===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),g(S)}return r(S)}function g(S){return Ic(S)&&++d<10?(n.consume(S),g):(!u.interrupt||d<2)&&(u.containerState.marker?S===u.containerState.marker:S===41||S===46)?(n.exit("listItemValue"),p(S)):r(S)}function p(S){return n.enter("listItemMarker"),n.consume(S),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,n.check($u,u.interrupt?r:x,n.attempt(bw,w,b))}function x(S){return u.containerState.initialBlankLine=!0,c++,w(S)}function b(S){return _e(S)?(n.enter("listItemPrefixWhitespace"),n.consume(S),n.exit("listItemPrefixWhitespace"),w):r(S)}function w(S){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(S)}}function ww(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check($u,o,c);function o(m){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ke(n,a,"listItemIndent",u.containerState.size+1)(m)}function c(m){return u.containerState.furtherBlankLines||!_e(m)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,d(m)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(vw,a,d)(m))}function d(m){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ke(n,n.attempt(Ot,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function Ew(n,a,r){const u=this;return Ke(n,o,"listItemIndent",u.containerState.size+1);function o(c){const d=u.events[u.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===u.containerState.size?a(c):r(c)}}function jw(n){n.exit(this.containerState.type)}function Nw(n,a,r){const u=this;return Ke(n,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const d=u.events[u.events.length-1];return!_e(c)&&d&&d[1].type==="listItemPrefixWhitespace"?a(c):r(c)}}const xg={name:"setextUnderline",resolveTo:Tw,tokenize:Cw};function Tw(n,a){let r=n.length,u,o,c;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(o=r)}else n[r][1].type==="content"&&n.splice(r,1),!c&&n[r][1].type==="definition"&&(c=r);const d={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[o][1].type="setextHeadingText",c?(n.splice(o,0,["enter",d,a]),n.splice(c+1,0,["exit",n[u][1],a]),n[u][1].end={...n[c][1].end}):n[u][1]=d,n.push(["exit",d,a]),n}function Cw(n,a,r){const u=this;let o;return c;function c(p){let x=u.events.length,b;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){b=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||b)?(n.enter("setextHeadingLine"),o=p,d(p)):r(p)}function d(p){return n.enter("setextHeadingLineSequence"),m(p)}function m(p){return p===o?(n.consume(p),m):(n.exit("setextHeadingLineSequence"),_e(p)?Ke(n,g,"lineSuffix")(p):g(p))}function g(p){return p===null||me(p)?(n.exit("setextHeadingLine"),a(p)):r(p)}}const Aw={tokenize:zw};function zw(n){const a=this,r=n.attempt($u,u,n.attempt(this.parser.constructs.flowInitial,o,Ke(n,n.attempt(this.parser.constructs.flow,o,n.attempt(M2,o)),"linePrefix")));return r;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function o(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const kw={resolveAll:Zy()},Rw=Xy("string"),_w=Xy("text");function Xy(n){return{resolveAll:Zy(n==="text"?Ow:void 0),tokenize:a};function a(r){const u=this,o=this.parser.constructs[n],c=r.attempt(o,d,m);return d;function d(x){return p(x)?c(x):m(x)}function m(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),g}function g(x){return p(x)?(r.exit("data"),c(x)):(r.consume(x),g)}function p(x){if(x===null)return!0;const b=o[x];let w=-1;if(b)for(;++w<b.length;){const S=b[w];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function Zy(n){return a;function a(r,u){let o=-1,c;for(;++o<=r.length;)c===void 0?r[o]&&r[o][1].type==="data"&&(c=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==c+2&&(r[c][1].end=r[o-1][1].end,r.splice(c+2,o-c-2),o=c+2),c=void 0);return n?n(r,u):r}}function Ow(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],o=a.sliceStream(u);let c=o.length,d=-1,m=0,g;for(;c--;){const p=o[c];if(typeof p=="string"){for(d=p.length;p.charCodeAt(d-1)===32;)m++,d--;if(d)break;d=-1}else if(p===-2)g=!0,m++;else if(p!==-1){c++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(m=0),m){const p={type:r===n.length||g||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?d:u.start._bufferIndex+d,_index:u.start._index+c,line:u.end.line,column:u.end.column-m,offset:u.end.offset-m},end:{...u.end}};u.end={...p.start},u.start.offset===u.end.offset?Object.assign(u,p):(n.splice(r,0,["enter",p,a],["exit",p,a]),r+=2)}r++}return n}const Mw={42:Ot,43:Ot,45:Ot,48:Ot,49:Ot,50:Ot,51:Ot,52:Ot,53:Ot,54:Ot,55:Ot,56:Ot,57:Ot,62:Hy},Dw={91:H2},Lw={[-2]:Oc,[-1]:Oc,32:Oc},Bw={35:G2,42:Ou,45:[xg,Ou],60:F2,61:xg,95:Ou,96:gg,126:gg},Uw={38:Yy,92:qy},Hw={[-5]:Mc,[-4]:Mc,[-3]:Mc,33:hw,38:Yy,42:Pc,60:[p2,nw],91:pw,92:[K2,qy],93:Cf,95:Pc,96:A2},qw={null:[Pc,kw]},Yw={null:[42,95]},Vw={null:[]},Kw=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Yw,contentInitial:Dw,disable:Vw,document:Mw,flow:Bw,flowInitial:Lw,insideSpan:qw,string:Uw,text:Hw},Symbol.toStringTag,{value:"Module"}));function Qw(n,a,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},c=[];let d=[],m=[];const g={attempt:F(te),check:F(q),consume:X,enter:O,exit:I,interrupt:F(q,{interrupt:!0})},p={code:null,containerState:{},defineSkip:R,events:[],now:A,parser:n,previous:null,sliceSerialize:w,sliceStream:S,write:b};let x=a.tokenize.call(p,g);return a.resolveAll&&c.push(a),p;function b(ne){return d=un(d,ne),U(),d[d.length-1]!==null?[]:(oe(a,0),p.events=Tf(c,p.events,p),p.events)}function w(ne,W){return Xw(S(ne),W)}function S(ne){return Gw(d,ne)}function A(){const{_bufferIndex:ne,_index:W,line:Se,column:ae,offset:$}=u;return{_bufferIndex:ne,_index:W,line:Se,column:ae,offset:$}}function R(ne){o[ne.line]=ne.column,ge()}function U(){let ne;for(;u._index<d.length;){const W=d[u._index];if(typeof W=="string")for(ne=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ne&&u._bufferIndex<W.length;)k(W.charCodeAt(u._bufferIndex));else k(W)}}function k(ne){x=x(ne)}function X(ne){me(ne)?(u.line++,u.column=1,u.offset+=ne===-3?2:1,ge()):ne!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===d[u._index].length&&(u._bufferIndex=-1,u._index++)),p.previous=ne}function O(ne,W){const Se=W||{};return Se.type=ne,Se.start=A(),p.events.push(["enter",Se,p]),m.push(Se),Se}function I(ne){const W=m.pop();return W.end=A(),p.events.push(["exit",W,p]),W}function te(ne,W){oe(ne,W.from)}function q(ne,W){W.restore()}function F(ne,W){return Se;function Se(ae,$,M){let Z,ie,pe,j;return Array.isArray(ae)?V(ae):"tokenize"in ae?V([ae]):T(ae);function T(ue){return Ne;function Ne(Ze){const Le=Ze!==null&&ue[Ze],Ft=Ze!==null&&ue.null,En=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return V(En)(Ze)}}function V(ue){return Z=ue,ie=0,ue.length===0?M:E(ue[ie])}function E(ue){return Ne;function Ne(Ze){return j=ce(),pe=ue,ue.partial||(p.currentConstruct=ue),ue.name&&p.parser.constructs.disable.null.includes(ue.name)?de():ue.tokenize.call(W?Object.assign(Object.create(p),W):p,g,ee,de)(Ze)}}function ee(ue){return ne(pe,j),$}function de(ue){return j.restore(),++ie<Z.length?E(Z[ie]):M}}}function oe(ne,W){ne.resolveAll&&!c.includes(ne)&&c.push(ne),ne.resolve&&wn(p.events,W,p.events.length-W,ne.resolve(p.events.slice(W),p)),ne.resolveTo&&(p.events=ne.resolveTo(p.events,p))}function ce(){const ne=A(),W=p.previous,Se=p.currentConstruct,ae=p.events.length,$=Array.from(m);return{from:ae,restore:M};function M(){u=ne,p.previous=W,p.currentConstruct=Se,p.events.length=ae,m=$,ge()}}function ge(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function Gw(n,a){const r=a.start._index,u=a.start._bufferIndex,o=a.end._index,c=a.end._bufferIndex;let d;if(r===o)d=[n[r].slice(u,c)];else{if(d=n.slice(r,o),u>-1){const m=d[0];typeof m=="string"?d[0]=m.slice(u):d.shift()}c>0&&d.push(n[o].slice(0,c))}return d}function Xw(n,a){let r=-1;const u=[];let o;for(;++r<n.length;){const c=n[r];let d;if(typeof c=="string")d=c;else switch(c){case-5:{d="\r";break}case-4:{d=`
62
- `;break}case-3:{d=`\r
63
- `;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&o)continue;d=" ";break}default:d=String.fromCharCode(c)}o=c===-2,u.push(d)}return u.join("")}function Zw(n){const u={constructs:e2([Kw,...(n||{}).extensions||[]]),content:o(s2),defined:[],document:o(c2),flow:o(Aw),lazy:{},string:o(Rw),text:o(_w)};return u;function o(c){return d;function d(m){return Qw(u,c,m)}}}function $w(n){for(;!Vy(n););return n}const bg=/[\0\t\n\r]/g;function Fw(){let n=1,a="",r=!0,u;return o;function o(c,d,m){const g=[];let p,x,b,w,S;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(d||void 0).decode(c)),b=0,a="",r&&(c.charCodeAt(0)===65279&&b++,r=void 0);b<c.length;){if(bg.lastIndex=b,p=bg.exec(c),w=p&&p.index!==void 0?p.index:c.length,S=c.charCodeAt(w),!p){a=c.slice(b);break}if(S===10&&b===w&&u)g.push(-3),u=void 0;else switch(u&&(g.push(-5),u=void 0),b<w&&(g.push(c.slice(b,w)),n+=w-b),S){case 0:{g.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,g.push(-2);n++<x;)g.push(-1);break}case 10:{g.push(-4),n=1;break}default:u=!0,n=1}b=w+1}return m&&(u&&g.push(-5),a&&g.push(a),g.push(null)),g}}const Jw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Iw(n){return n.replace(Jw,Pw)}function Pw(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),c=o===120||o===88;return Uy(r.slice(c?2:1),c?16:10)}return Nf(r)||n}const $y={}.hasOwnProperty;function Ww(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),eE(r)($w(Zw(r).document().write(Fw()(n,a,!0))))}function eE(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Zl),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:c(Gl),blockQuote:c(Ft),characterEscape:ce,characterReference:ce,codeFenced:c(En),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(En,d),codeText:c(Za,d),codeTextData:ce,data:ce,codeFlowValue:ce,definition:c(ur),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(jn),hardBreakEscape:c(Xl),hardBreakTrailing:c(Xl),htmlFlow:c(sr,d),htmlFlowData:ce,htmlText:c(sr,d),htmlTextData:ce,image:c(or),label:d,link:c(Zl),listItem:c($a),listItemValue:w,listOrdered:c($l,b),listUnordered:c($l),paragraph:c(ns),reference:E,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(Gl),strong:c(ls),thematicBreak:c(as)},exit:{atxHeading:g(),atxHeadingSequence:te,autolink:g(),autolinkEmail:Le,autolinkProtocol:Ze,blockQuote:g(),characterEscapeValue:ge,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:ue,characterReference:Ne,codeFenced:g(U),codeFencedFence:R,codeFencedFenceInfo:S,codeFencedFenceMeta:A,codeFlowValue:ge,codeIndented:g(k),codeText:g($),codeTextData:ge,data:ge,definition:g(),definitionDestinationString:I,definitionLabelString:X,definitionTitleString:O,emphasis:g(),hardBreakEscape:g(W),hardBreakTrailing:g(W),htmlFlow:g(Se),htmlFlowData:ge,htmlText:g(ae),htmlTextData:ge,image:g(Z),label:pe,labelText:ie,lineEnding:ne,link:g(M),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:ee,resourceDestinationString:j,resourceTitleString:T,resource:V,setextHeading:g(oe),setextHeadingLineSequence:F,setextHeadingText:q,strong:g(),thematicBreak:g()}};Fy(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(K){let P={type:"root",children:[]};const he={stack:[P],tokenStack:[],config:a,enter:m,exit:p,buffer:d,resume:x,data:r},we=[];let Oe=-1;for(;++Oe<K.length;)if(K[Oe][1].type==="listOrdered"||K[Oe][1].type==="listUnordered")if(K[Oe][0]==="enter")we.push(Oe);else{const Lt=we.pop();Oe=o(K,Lt,Oe)}for(Oe=-1;++Oe<K.length;){const Lt=a[K[Oe][0]];$y.call(Lt,K[Oe][1].type)&&Lt[K[Oe][1].type].call(Object.assign({sliceSerialize:K[Oe][2].sliceSerialize},he),K[Oe][1])}if(he.tokenStack.length>0){const Lt=he.tokenStack[he.tokenStack.length-1];(Lt[1]||vg).call(he,void 0,Lt[0])}for(P.position={start:xl(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:xl(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<a.transforms.length;)P=a.transforms[Oe](P)||P;return P}function o(K,P,he){let we=P-1,Oe=-1,Lt=!1,Nn,wt,ot,Nt;for(;++we<=he;){const qe=K[we];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?Oe++:Oe--,Nt=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(Nn&&!Nt&&!Oe&&!ot&&(ot=we),Nt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nt=void 0}if(!Oe&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||Oe===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(Nn){let Zn=we;for(wt=void 0;Zn--;){const cn=K[Zn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;wt&&(K[wt][1].type="lineEndingBlank",Lt=!0),cn[1].type="lineEnding",wt=Zn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}ot&&(!wt||ot<wt)&&(Nn._spread=!0),Nn.end=Object.assign({},wt?K[wt][1].start:qe[1].end),K.splice(wt||we,0,["exit",Nn,qe[2]]),we++,he++}if(qe[1].type==="listItemPrefix"){const Zn={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};Nn=Zn,K.splice(we,0,["enter",Zn,qe[2]]),we++,he++,ot=void 0,Nt=!0}}}return K[P][1]._spread=Lt,he}function c(K,P){return he;function he(we){m.call(this,K(we),we),P&&P.call(this,we)}}function d(){this.stack.push({type:"fragment",children:[]})}function m(K,P,he){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([P,he||void 0]),K.position={start:xl(P.start),end:void 0}}function g(K){return P;function P(he){K&&K.call(this,he),p.call(this,he)}}function p(K,P){const he=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==K.type&&(P?P.call(this,K,we[0]):(we[1]||vg).call(this,K,we[0]));else throw new Error("Cannot close `"+K.type+"` ("+Zi({start:K.start,end:K.end})+"): it’s not open");he.position.end=xl(K.end)}function x(){return PS(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function w(K){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function S(){const K=this.resume(),P=this.stack[this.stack.length-1];P.lang=K}function A(){const K=this.resume(),P=this.stack[this.stack.length-1];P.meta=K}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const K=this.resume(),P=this.stack[this.stack.length-1];P.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const K=this.resume(),P=this.stack[this.stack.length-1];P.value=K.replace(/(\r?\n|\r)$/g,"")}function X(K){const P=this.resume(),he=this.stack[this.stack.length-1];he.label=P,he.identifier=Ba(this.sliceSerialize(K)).toLowerCase()}function O(){const K=this.resume(),P=this.stack[this.stack.length-1];P.title=K}function I(){const K=this.resume(),P=this.stack[this.stack.length-1];P.url=K}function te(K){const P=this.stack[this.stack.length-1];if(!P.depth){const he=this.sliceSerialize(K).length;P.depth=he}}function q(){this.data.setextHeadingSlurpLineEnding=!0}function F(K){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(K){const he=this.stack[this.stack.length-1].children;let we=he[he.length-1];(!we||we.type!=="text")&&(we=St(),we.position={start:xl(K.start),end:void 0},he.push(we)),this.stack.push(we)}function ge(K){const P=this.stack.pop();P.value+=this.sliceSerialize(K),P.position.end=xl(K.end)}function ne(K){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=P.children[P.children.length-1];he.position.end=xl(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(P.type)&&(ce.call(this,K),ge.call(this,K))}function W(){this.data.atHardBreak=!0}function Se(){const K=this.resume(),P=this.stack[this.stack.length-1];P.value=K}function ae(){const K=this.resume(),P=this.stack[this.stack.length-1];P.value=K}function $(){const K=this.resume(),P=this.stack[this.stack.length-1];P.value=K}function M(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=P,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function Z(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=P,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ie(K){const P=this.sliceSerialize(K),he=this.stack[this.stack.length-2];he.label=Iw(P),he.identifier=Ba(P).toLowerCase()}function pe(){const K=this.stack[this.stack.length-1],P=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const we=K.children;he.children=we}else he.alt=P}function j(){const K=this.resume(),P=this.stack[this.stack.length-1];P.url=K}function T(){const K=this.resume(),P=this.stack[this.stack.length-1];P.title=K}function V(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ee(K){const P=this.resume(),he=this.stack[this.stack.length-1];he.label=P,he.identifier=Ba(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function de(K){this.data.characterReferenceType=K.type}function ue(K){const P=this.sliceSerialize(K),he=this.data.characterReferenceType;let we;he?(we=Uy(P,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Nf(P);const Oe=this.stack[this.stack.length-1];Oe.value+=we}function Ne(K){const P=this.stack.pop();P.position.end=xl(K.end)}function Ze(K){ge.call(this,K);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(K)}function Le(K){ge.call(this,K);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(K)}function Ft(){return{type:"blockquote",children:[]}}function En(){return{type:"code",lang:null,meta:null,value:""}}function Za(){return{type:"inlineCode",value:""}}function ur(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function jn(){return{type:"emphasis",children:[]}}function Gl(){return{type:"heading",depth:0,children:[]}}function Xl(){return{type:"break"}}function sr(){return{type:"html",value:""}}function or(){return{type:"image",title:null,url:"",alt:null}}function Zl(){return{type:"link",title:null,url:"",children:[]}}function $l(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function $a(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function ns(){return{type:"paragraph",children:[]}}function ls(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function as(){return{type:"thematicBreak"}}}function xl(n){return{line:n.line,column:n.column,offset:n.offset}}function Fy(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?Fy(n,u):tE(n,u)}}function tE(n,a){let r;for(r in a)if($y.call(a,r))switch(r){case"canContainEols":{const u=a[r];u&&n[r].push(...u);break}case"transforms":{const u=a[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=a[r];u&&Object.assign(n[r],u);break}}}function vg(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Zi({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Zi({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Zi({start:a.start,end:a.end})+") is still open")}function nE(n){const a=this;a.parser=r;function r(u){return Ww(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function lE(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function aE(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
64
- `}]}function iE(n,a){const r=a.value?a.value+`
65
- `:"",u={},o=a.lang?a.lang.split(/\s+/):[];o.length>0&&(u.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return a.meta&&(c.data={meta:a.meta}),n.patch(a,c),c=n.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(a,c),c}function rE(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function uE(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function sE(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),o=Xa(u.toLowerCase()),c=n.footnoteOrder.indexOf(u);let d,m=n.footnoteCounts.get(u);m===void 0?(m=0,n.footnoteOrder.push(u),d=n.footnoteOrder.length):d=c+1,m+=1,n.footnoteCounts.set(u,m);const g={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};n.patch(a,g);const p={type:"element",tagName:"sup",properties:{},children:[g]};return n.patch(a,p),n.applyData(a,p)}function oE(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function cE(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function Jy(n,a){const r=a.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const o=n.all(a),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const d=o[o.length-1];return d&&d.type==="text"?d.value+=u:o.push({type:"text",value:u}),o}function fE(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Jy(n,a);const o={src:Xa(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(o.title=u.title);const c={type:"element",tagName:"img",properties:o,children:[]};return n.patch(a,c),n.applyData(a,c)}function dE(n,a){const r={src:Xa(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,u),n.applyData(a,u)}function hE(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,u),n.applyData(a,u)}function mE(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Jy(n,a);const o={href:Xa(u.url||"")};u.title!==null&&u.title!==void 0&&(o.title=u.title);const c={type:"element",tagName:"a",properties:o,children:n.all(a)};return n.patch(a,c),n.applyData(a,c)}function pE(n,a){const r={href:Xa(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function gE(n,a,r){const u=n.all(a),o=r?yE(r):Iy(a),c={},d=[];if(typeof a.checked=="boolean"){const x=u[0];let b;x&&x.type==="element"&&x.tagName==="p"?b=x:(b={type:"element",tagName:"p",properties:{},children:[]},u.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let m=-1;for(;++m<u.length;){const x=u[m];(o||m!==0||x.type!=="element"||x.tagName!=="p")&&d.push({type:"text",value:`
66
- `}),x.type==="element"&&x.tagName==="p"&&!o?d.push(...x.children):d.push(x)}const g=u[u.length-1];g&&(o||g.type!=="element"||g.tagName!=="p")&&d.push({type:"text",value:`
67
- `});const p={type:"element",tagName:"li",properties:c,children:d};return n.patch(a,p),n.applyData(a,p)}function yE(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let u=-1;for(;!a&&++u<r.length;)a=Iy(r[u])}return a}function Iy(n){const a=n.spread;return a??n.children.length>1}function xE(n,a){const r={},u=n.all(a);let o=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++o<u.length;){const d=u[o];if(d.type==="element"&&d.tagName==="li"&&d.properties&&Array.isArray(d.properties.className)&&d.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(a,c),n.applyData(a,c)}function bE(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function vE(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function SE(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function wE(n,a){const r=n.all(a),u=r.shift(),o=[];if(u){const d={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],d),o.push(d)}if(r.length>0){const d={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},m=Sf(a.children[1]),g=Ry(a.children[a.children.length-1]);m&&g&&(d.position={start:m,end:g}),o.push(d)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(o,!0)};return n.patch(a,c),n.applyData(a,c)}function EE(n,a,r){const u=r?r.children:void 0,c=(u?u.indexOf(a):1)===0?"th":"td",d=r&&r.type==="table"?r.align:void 0,m=d?d.length:a.children.length;let g=-1;const p=[];for(;++g<m;){const b=a.children[g],w={},S=d?d[g]:void 0;S&&(w.align=S);let A={type:"element",tagName:c,properties:w,children:[]};b&&(A.children=n.all(b),n.patch(b,A),A=n.applyData(b,A)),p.push(A)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(a,x),n.applyData(a,x)}function jE(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const Sg=9,wg=32;function NE(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),o=0;const c=[];for(;u;)c.push(Eg(a.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=r.exec(a);return c.push(Eg(a.slice(o),o>0,!1)),c.join("")}function Eg(n,a,r){let u=0,o=n.length;if(a){let c=n.codePointAt(u);for(;c===Sg||c===wg;)u++,c=n.codePointAt(u)}if(r){let c=n.codePointAt(o-1);for(;c===Sg||c===wg;)o--,c=n.codePointAt(o-1)}return o>u?n.slice(u,o):""}function TE(n,a){const r={type:"text",value:NE(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function CE(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const AE={blockquote:lE,break:aE,code:iE,delete:rE,emphasis:uE,footnoteReference:sE,heading:oE,html:cE,imageReference:fE,image:dE,inlineCode:hE,linkReference:mE,link:pE,listItem:gE,list:xE,paragraph:bE,root:vE,strong:SE,table:wE,tableCell:jE,tableRow:EE,text:TE,thematicBreak:CE,toml:Cu,yaml:Cu,definition:Cu,footnoteDefinition:Cu};function Cu(){}const Py=-1,Fu=0,Fi=1,Uu=2,Af=3,zf=4,kf=5,Rf=6,Wy=7,ex=8,zE=typeof self=="object"?self:globalThis,jg=(n,a)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new zE[n](a)},kE=(n,a)=>{const r=(o,c)=>(n.set(c,o),o),u=o=>{if(n.has(o))return n.get(o);const[c,d]=a[o];switch(c){case Fu:case Py:return r(d,o);case Fi:{const m=r([],o);for(const g of d)m.push(u(g));return m}case Uu:{const m=r({},o);for(const[g,p]of d)m[u(g)]=u(p);return m}case Af:return r(new Date(d),o);case zf:{const{source:m,flags:g}=d;return r(new RegExp(m,g),o)}case kf:{const m=r(new Map,o);for(const[g,p]of d)m.set(u(g),u(p));return m}case Rf:{const m=r(new Set,o);for(const g of d)m.add(u(g));return m}case Wy:{const{name:m,message:g}=d;return r(jg(m,g),o)}case ex:return r(BigInt(d),o);case"BigInt":return r(Object(BigInt(d)),o);case"ArrayBuffer":return r(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:m}=new Uint8Array(d);return r(new DataView(m),d)}}return r(jg(c,d),o)};return u},Ng=n=>kE(new Map,n)(0),Ma="",{toString:RE}={},{keys:_E}=Object,Xi=n=>{const a=typeof n;if(a!=="object"||!n)return[Fu,a];const r=RE.call(n).slice(8,-1);switch(r){case"Array":return[Fi,Ma];case"Object":return[Uu,Ma];case"Date":return[Af,Ma];case"RegExp":return[zf,Ma];case"Map":return[kf,Ma];case"Set":return[Rf,Ma];case"DataView":return[Fi,r]}return r.includes("Array")?[Fi,r]:r.includes("Error")?[Wy,r]:[Uu,r]},Au=([n,a])=>n===Fu&&(a==="function"||a==="symbol"),OE=(n,a,r,u)=>{const o=(d,m)=>{const g=u.push(d)-1;return r.set(m,g),g},c=d=>{if(r.has(d))return r.get(d);let[m,g]=Xi(d);switch(m){case Fu:{let x=d;switch(g){case"bigint":m=ex,x=d.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+g);x=null;break;case"undefined":return o([Py],d)}return o([m,x],d)}case Fi:{if(g){let w=d;return g==="DataView"?w=new Uint8Array(d.buffer):g==="ArrayBuffer"&&(w=new Uint8Array(d)),o([g,[...w]],d)}const x=[],b=o([m,x],d);for(const w of d)x.push(c(w));return b}case Uu:{if(g)switch(g){case"BigInt":return o([g,d.toString()],d);case"Boolean":case"Number":case"String":return o([g,d.valueOf()],d)}if(a&&"toJSON"in d)return c(d.toJSON());const x=[],b=o([m,x],d);for(const w of _E(d))(n||!Au(Xi(d[w])))&&x.push([c(w),c(d[w])]);return b}case Af:return o([m,d.toISOString()],d);case zf:{const{source:x,flags:b}=d;return o([m,{source:x,flags:b}],d)}case kf:{const x=[],b=o([m,x],d);for(const[w,S]of d)(n||!(Au(Xi(w))||Au(Xi(S))))&&x.push([c(w),c(S)]);return b}case Rf:{const x=[],b=o([m,x],d);for(const w of d)(n||!Au(Xi(w)))&&x.push(c(w));return b}}const{message:p}=d;return o([m,{name:g,message:p}],d)};return c},Tg=(n,{json:a,lossy:r}={})=>{const u=[];return OE(!(a||r),!!a,new Map,u)(n),u},Hu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?Ng(Tg(n,a)):structuredClone(n):(n,a)=>Ng(Tg(n,a));function ME(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function DE(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function LE(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||ME,u=n.options.footnoteBackLabel||DE,o=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",d=n.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let g=-1;for(;++g<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[g]);if(!p)continue;const x=n.all(p),b=String(p.identifier).toUpperCase(),w=Xa(b.toLowerCase());let S=0;const A=[],R=n.footnoteCounts.get(b);for(;R!==void 0&&++S<=R;){A.length>0&&A.push({type:"text",value:" "});let X=typeof r=="string"?r:r(g,S);typeof X=="string"&&(X={type:"text",value:X}),A.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+w+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(g,S),className:["data-footnote-backref"]},children:Array.isArray(X)?X:[X]})}const U=x[x.length-1];if(U&&U.type==="element"&&U.tagName==="p"){const X=U.children[U.children.length-1];X&&X.type==="text"?X.value+=" ":U.children.push({type:"text",value:" "}),U.children.push(...A)}else x.push(...A);const k={type:"element",tagName:"li",properties:{id:a+"fn-"+w},children:n.wrap(x,!0)};n.patch(p,k),m.push(k)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Hu(d),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
68
- `},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
69
- `}]}}const tx=(function(n){if(n==null)return qE;if(typeof n=="function")return Ju(n);if(typeof n=="object")return Array.isArray(n)?BE(n):UE(n);if(typeof n=="string")return HE(n);throw new Error("Expected function, string, or object as test")});function BE(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=tx(n[r]);return Ju(u);function u(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function UE(n){const a=n;return Ju(r);function r(u){const o=u;let c;for(c in n)if(o[c]!==a[c])return!1;return!0}}function HE(n){return Ju(a);function a(r){return r&&r.type===n}}function Ju(n){return a;function a(r,u,o){return!!(YE(r)&&n.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function qE(){return!0}function YE(n){return n!==null&&typeof n=="object"&&"type"in n}const nx=[],VE=!0,Cg=!1,KE="skip";function QE(n,a,r,u){let o;typeof a=="function"&&typeof r!="function"?(u=r,r=a):o=a;const c=tx(o),d=u?-1:1;m(n,void 0,[])();function m(g,p,x){const b=g&&typeof g=="object"?g:{};if(typeof b.type=="string"){const S=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(g.type+(S?"<"+S+">":""))+")"})}return w;function w(){let S=nx,A,R,U;if((!a||c(g,p,x[x.length-1]||void 0))&&(S=GE(r(g,x)),S[0]===Cg))return S;if("children"in g&&g.children){const k=g;if(k.children&&S[0]!==KE)for(R=(u?k.children.length:-1)+d,U=x.concat(k);R>-1&&R<k.children.length;){const X=k.children[R];if(A=m(X,R,U)(),A[0]===Cg)return A;R=typeof A[1]=="number"?A[1]:R+d}}return S}}}function GE(n){return Array.isArray(n)?n:typeof n=="number"?[VE,n]:n==null?nx:[n]}function lx(n,a,r,u){let o,c,d;typeof a=="function"&&typeof r!="function"?(c=void 0,d=a,o=r):(c=a,d=r,o=u),QE(n,c,m,o);function m(g,p){const x=p[p.length-1],b=x?x.children.indexOf(g):void 0;return d(g,b,x)}}const Wc={}.hasOwnProperty,XE={};function ZE(n,a){const r=a||XE,u=new Map,o=new Map,c=new Map,d={...AE,...r.handlers},m={all:p,applyData:FE,definitionById:u,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:d,one:g,options:r,patch:$E,wrap:IE};return lx(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const b=x.type==="definition"?u:o,w=String(x.identifier).toUpperCase();b.has(w)||b.set(w,x)}}),m;function g(x,b){const w=x.type,S=m.handlers[w];if(Wc.call(m.handlers,w)&&S)return S(m,x,b);if(m.options.passThrough&&m.options.passThrough.includes(w)){if("children"in x){const{children:R,...U}=x,k=Hu(U);return k.children=m.all(x),k}return Hu(x)}return(m.options.unknownHandler||JE)(m,x,b)}function p(x){const b=[];if("children"in x){const w=x.children;let S=-1;for(;++S<w.length;){const A=m.one(w[S],x);if(A){if(S&&w[S-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=Ag(A.value)),!Array.isArray(A)&&A.type==="element")){const R=A.children[0];R&&R.type==="text"&&(R.value=Ag(R.value))}Array.isArray(A)?b.push(...A):b.push(A)}}}return b}}function $E(n,a){n.position&&(a.position=kS(n))}function FE(n,a){let r=a;if(n&&n.data){const u=n.data.hName,o=n.data.hChildren,c=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const d="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:d}}r.type==="element"&&c&&Object.assign(r.properties,Hu(c)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function JE(n,a){const r=a.data||{},u="value"in a&&!(Wc.call(r,"hProperties")||Wc.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function IE(n,a){const r=[];let u=-1;for(a&&r.push({type:"text",value:`
70
- `});++u<n.length;)u&&r.push({type:"text",value:`
71
- `}),r.push(n[u]);return a&&n.length>0&&r.push({type:"text",value:`
72
- `}),r}function Ag(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function zg(n,a){const r=ZE(n,a),u=r.one(n,void 0),o=LE(r),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
73
- `},o),c}function PE(n,a){return n&&"run"in n?async function(r,u){const o=zg(r,{file:u,...a});await n.run(o,u)}:function(r,u){return zg(r,{file:u,...n||a})}}function kg(n){if(n)throw n}var Dc,Rg;function WE(){if(Rg)return Dc;Rg=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},c=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var x=n.call(p,"constructor"),b=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!x&&!b)return!1;var w;for(w in p);return typeof w>"u"||n.call(p,w)},d=function(p,x){r&&x.name==="__proto__"?r(p,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):p[x.name]=x.newValue},m=function(p,x){if(x==="__proto__")if(n.call(p,x)){if(u)return u(p,x).value}else return;return p[x]};return Dc=function g(){var p,x,b,w,S,A,R=arguments[0],U=1,k=arguments.length,X=!1;for(typeof R=="boolean"&&(X=R,R=arguments[1]||{},U=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});U<k;++U)if(p=arguments[U],p!=null)for(x in p)b=m(R,x),w=m(p,x),R!==w&&(X&&w&&(c(w)||(S=o(w)))?(S?(S=!1,A=b&&o(b)?b:[]):A=b&&c(b)?b:{},d(R,{name:x,newValue:g(X,A,w)})):typeof w<"u"&&d(R,{name:x,newValue:w}));return R},Dc}var ej=WE();const Lc=Qg(ej);function ef(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function tj(){const n=[],a={run:r,use:u};return a;function r(...o){let c=-1;const d=o.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);m(null,...o);function m(g,...p){const x=n[++c];let b=-1;if(g){d(g);return}for(;++b<o.length;)(p[b]===null||p[b]===void 0)&&(p[b]=o[b]);o=p,x?nj(x,m)(...p):d(null,...p)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),a}}function nj(n,a){let r;return u;function u(...d){const m=n.length>d.length;let g;m&&d.push(o);try{g=n.apply(this,d)}catch(p){const x=p;if(m&&r)throw x;return o(x)}m||(g&&g.then&&typeof g.then=="function"?g.then(c,o):g instanceof Error?o(g):c(g))}function o(d,...m){r||(r=!0,a(d,...m))}function c(d){o(null,d)}}const vn={basename:lj,dirname:aj,extname:ij,join:rj,sep:"/"};function lj(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');rr(n);let r=0,u=-1,o=n.length,c;if(a===void 0||a.length===0||a.length>n.length){for(;o--;)if(n.codePointAt(o)===47){if(c){r=o+1;break}}else u<0&&(c=!0,u=o+1);return u<0?"":n.slice(r,u)}if(a===n)return"";let d=-1,m=a.length-1;for(;o--;)if(n.codePointAt(o)===47){if(c){r=o+1;break}}else d<0&&(c=!0,d=o+1),m>-1&&(n.codePointAt(o)===a.codePointAt(m--)?m<0&&(u=o):(m=-1,u=d));return r===u?u=d:u<0&&(u=n.length),n.slice(r,u)}function aj(n){if(rr(n),n.length===0)return".";let a=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){a=r;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function ij(n){rr(n);let a=n.length,r=-1,u=0,o=-1,c=0,d;for(;a--;){const m=n.codePointAt(a);if(m===47){if(d){u=a+1;break}continue}r<0&&(d=!0,r=a+1),m===46?o<0?o=a:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||r<0||c===0||c===1&&o===r-1&&o===u+1?"":n.slice(o,r)}function rj(...n){let a=-1,r;for(;++a<n.length;)rr(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":uj(r)}function uj(n){rr(n);const a=n.codePointAt(0)===47;let r=sj(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function sj(n,a){let r="",u=0,o=-1,c=0,d=-1,m,g;for(;++d<=n.length;){if(d<n.length)m=n.codePointAt(d);else{if(m===47)break;m=47}if(m===47){if(!(o===d-1||c===1))if(o!==d-1&&c===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(g=r.lastIndexOf("/"),g!==r.length-1){g<0?(r="",u=0):(r=r.slice(0,g),u=r.length-1-r.lastIndexOf("/")),o=d,c=0;continue}}else if(r.length>0){r="",u=0,o=d,c=0;continue}}a&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(o+1,d):r=n.slice(o+1,d),u=d-o-1;o=d,c=0}else m===46&&c>-1?c++:c=-1}return r}function rr(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const oj={cwd:cj};function cj(){return"/"}function tf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function fj(n){if(typeof n=="string")n=new URL(n);else if(!tf(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return dj(n)}function dj(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const u=a.codePointAt(r+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(a)}const Bc=["history","path","basename","stem","extname","dirname"];class ax{constructor(a){let r;a?tf(a)?r={path:a}:typeof a=="string"||hj(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":oj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Bc.length;){const c=Bc[u];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let o;for(o in r)Bc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?vn.basename(this.path):void 0}set basename(a){Hc(a,"basename"),Uc(a,"basename"),this.path=vn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?vn.dirname(this.path):void 0}set dirname(a){_g(this.basename,"dirname"),this.path=vn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?vn.extname(this.path):void 0}set extname(a){if(Uc(a,"extname"),_g(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=vn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){tf(a)&&(a=fj(a)),Hc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?vn.basename(this.path,this.extname):void 0}set stem(a){Hc(a,"stem"),Uc(a,"stem"),this.path=vn.join(this.dirname||"",a+(this.extname||""))}fail(a,r,u){const o=this.message(a,r,u);throw o.fatal=!0,o}info(a,r,u){const o=this.message(a,r,u);return o.fatal=void 0,o}message(a,r,u){const o=new vt(a,r,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Uc(n,a){if(n&&n.includes(vn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+vn.sep+"`")}function Hc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function _g(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function hj(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const mj=(function(n){const u=this.constructor.prototype,o=u[n],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),pj={}.hasOwnProperty;class _f extends mj{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=tj()}copy(){const a=new _f;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(Lc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(Vc("data",this.frozen),this.namespace[a]=r,this):pj.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Vc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=r.call(a,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=zu(a),u=this.parser||this.Parser;return qc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),qc("process",this.parser||this.Parser),Yc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(c,d){const m=zu(a),g=u.parse(m);u.run(g,m,function(x,b,w){if(x||!b||!w)return p(x);const S=b,A=u.stringify(S,w);xj(A)?w.value=A:w.result=A,p(x,w)});function p(x,b){x||!b?d(x):c?c(b):r(void 0,b)}}}processSync(a){let r=!1,u;return this.freeze(),qc("processSync",this.parser||this.Parser),Yc("processSync",this.compiler||this.Compiler),this.process(a,o),Mg("processSync","process",r),u;function o(c,d){r=!0,kg(c),u=d}}run(a,r,u){Og(a),this.freeze();const o=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?c(void 0,u):new Promise(c);function c(d,m){const g=zu(r);o.run(a,g,p);function p(x,b,w){const S=b||a;x?m(x):d?d(S):u(void 0,S,w)}}}runSync(a,r){let u=!1,o;return this.run(a,r,c),Mg("runSync","run",u),o;function c(d,m){kg(d),o=m,u=!0}}stringify(a,r){this.freeze();const u=zu(r),o=this.compiler||this.Compiler;return Yc("stringify",o),Og(a),o(a,u)}use(a,...r){const u=this.attachers,o=this.namespace;if(Vc("use",this.frozen),a!=null)if(typeof a=="function")g(a,r);else if(typeof a=="object")Array.isArray(a)?m(a):d(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(p){if(typeof p=="function")g(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[x,...b]=p;g(x,b)}else d(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function d(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");m(p.plugins),p.settings&&(o.settings=Lc(!0,o.settings,p.settings))}function m(p){let x=-1;if(p!=null)if(Array.isArray(p))for(;++x<p.length;){const b=p[x];c(b)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function g(p,x){let b=-1,w=-1;for(;++b<u.length;)if(u[b][0]===p){w=b;break}if(w===-1)u.push([p,...x]);else if(x.length>0){let[S,...A]=x;const R=u[w][1];ef(R)&&ef(S)&&(S=Lc(!0,R,S)),u[w]=[p,S,...A]}}}}const gj=new _f().freeze();function qc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Yc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Vc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Og(n){if(!ef(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Mg(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function zu(n){return yj(n)?n:new ax(n)}function yj(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function xj(n){return typeof n=="string"||bj(n)}function bj(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const vj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Dg=[],Lg={allowDangerousHtml:!0},Sj=/^(https?|ircs?|mailto|xmpp)$/i,wj=[{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 Ej(n){const a=jj(n),r=Nj(n);return Tj(a.runSync(a.parse(r),r),n)}function jj(n){const a=n.rehypePlugins||Dg,r=n.remarkPlugins||Dg,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Lg}:Lg;return gj().use(nE).use(r).use(PE,u).use(a)}function Nj(n){const a=n.children||"",r=new ax;return typeof a=="string"&&(r.value=a),r}function Tj(n,a){const r=a.allowedElements,u=a.allowElement,o=a.components,c=a.disallowedElements,d=a.skipHtml,m=a.unwrapDisallowed,g=a.urlTransform||Cj;for(const x of wj)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+vj+x.id,void 0);return lx(n,p),DS(n,{Fragment:h.Fragment,components:o,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function p(x,b,w){if(x.type==="raw"&&w&&typeof b=="number")return d?w.children.splice(b,1):w.children[b]={type:"text",value:x.value},b;if(x.type==="element"){let S;for(S in _c)if(Object.hasOwn(_c,S)&&Object.hasOwn(x.properties,S)){const A=x.properties[S],R=_c[S];(R===null||R.includes(x.tagName))&&(x.properties[S]=g(String(A||""),S,x))}}if(x.type==="element"){let S=r?!r.includes(x.tagName):c?c.includes(x.tagName):!1;if(!S&&u&&typeof b=="number"&&(S=!u(x,b,w)),S&&w&&typeof b=="number")return m&&x.children?w.children.splice(b,1,...x.children):w.children.splice(b,1),b}}}function Cj(n){const a=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),o=n.indexOf("/");return a===-1||o!==-1&&a>o||r!==-1&&a>r||u!==-1&&a>u||Sj.test(n.slice(0,a))?n:""}function ql(n){return!n.value||!n.value.trim()?h.jsx("p",{className:"text-sm text-muted",children:"No description."}):h.jsx("div",{className:["prose prose-sm max-w-none prose-headings:text-text prose-p:text-text prose-strong:text-text prose-a:text-primary","[&_code]:rounded-md [&_code]:border [&_code]:border-faint [&_code]:bg-elevated [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.8125rem] [&_code]:font-medium [&_code]:text-text","[&_pre]:my-3 [&_pre]:rounded-xl [&_pre]:border [&_pre]:border-faint [&_pre]:bg-elevated [&_pre]:p-4 [&_pre]:shadow-sm","[&_pre_code]:m-0 [&_pre_code]:block [&_pre_code]:w-full [&_pre_code]:rounded-none [&_pre_code]:border-0 [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_pre_code]:text-xs [&_pre_code]:font-normal [&_pre_code]:leading-relaxed [&_pre_code]:shadow-none"].join(" "),children:h.jsx(Ej,{children:n.value})})}function Bg(n){return n==="rtl"?"text-right":""}function Ug(n){if(n)return{unicodeBidi:"plaintext"}}function Hg(n){if(typeof window>"u")return;const a=new URL(window.location.href);n?a.hash=n:a.hash="",window.history.replaceState(null,"",a.toString())}function ix(n){const{setKey:a}=st(),r=n.showSource!==!1,u=n.rows?n.rows:Object.entries(n.translations||{}).sort(([p],[x])=>p.localeCompare(x)).map(([p,x])=>({locale:p,value:x,source:"direct"})),[o,c]=z.useState([]),[d,m]=z.useState(null);if(u.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No translations found."});z.useEffect(()=>{if(typeof window>"u"||!n.getRowFragmentId)return;const p=decodeURIComponent(window.location.hash.slice(1));if(!p)return;const x=u.find(w=>{var S;return((S=n.getRowFragmentId)==null?void 0:S.call(n,w))===p});if(!x)return;const b=n.getRowKey?n.getRowKey(x):x.locale;c(w=>w.includes(b)?w:[...w,b]),m(p)},[u,n.getRowFragmentId,n.getRowKey]),z.useEffect(()=>{if(!d||typeof window>"u")return;const p=window.requestAnimationFrame(()=>{const x=document.getElementById(d);x&&x.scrollIntoView({block:"start"})});return()=>{window.cancelAnimationFrame(p)}},[d]);const g=2+(n.comparisonLabel?1:0)+(n.renderMetaCell?1:0)+(r?1:0);return h.jsx("div",{className:"overflow-hidden rounded border border-border",children:h.jsxs("table",{className:"w-full border-collapse bg-surface text-xs",children:[h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Locale"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:n.translationLabel||"Translation"}),n.comparisonLabel&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:n.comparisonLabel}),n.renderMetaCell&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold"}),r&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Source"})]})}),h.jsx("tbody",{children:u.map(p=>{var A,R,U,k,X,O,I,te,q;const x=n.getRowKey?n.getRowKey(p):p.locale,b=(A=n.getRowFragmentId)==null?void 0:A.call(n,p),w=!!n.renderExpandedRow,S=o.includes(x);return h.jsxs(z.Fragment,{children:[h.jsxs("tr",{id:b,className:w?["cursor-pointer transition-colors",S?"bg-elevated":"hover:bg-elevated/60"].join(" "):void 0,onClick:w?()=>c(F=>{var oe;if(F.includes(x)){const ce=F.filter(W=>W!==x),ge=b&&d===b?ce[ce.length-1]||null:F[F.length-1]||null,ne=ge&&((oe=n.getRowFragmentId)==null?void 0:oe.call(n,u.find(W=>(n.getRowKey?n.getRowKey(W):W.locale)===ge)))||null;return m(ne),Hg(ne||void 0),ce}return b&&(m(b),Hg(b)),[...F,x]}):void 0,children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium",children:n.linkLocales?h.jsx(Xe,{to:et("locale",p.locale,a),className:"font-medium text-primary hover:underline",onClick:F=>F.stopPropagation(),children:p.locale}):p.locale}),h.jsx("td",{className:["border-b border-border px-3 py-2",p.source==="inherited"?"text-faint":"",Bg((R=n.localeDirections)==null?void 0:R[p.locale])].join(" "),dir:(U=n.localeDirections)==null?void 0:U[p.locale],style:Ug((k=n.localeDirections)==null?void 0:k[p.locale]),children:p.value||"—"}),n.comparisonLabel&&h.jsx("td",{className:["border-b border-border px-3 py-2 text-muted",Bg((X=n.localeDirections)==null?void 0:X[p.locale])].join(" "),dir:(O=n.localeDirections)==null?void 0:O[p.locale],style:Ug((I=n.localeDirections)==null?void 0:I[p.locale]),children:((te=n.comparisonValues)==null?void 0:te[p.locale])||"—"}),n.renderMetaCell&&h.jsx("td",{className:"border-b border-border px-3 py-2",children:n.renderMetaCell(p)}),r&&h.jsxs("td",{className:"border-b border-border px-3 py-2 text-muted",children:[p.source,p.from?h.jsxs(h.Fragment,{children:[" from ",h.jsx(Xe,{to:et("locale",p.from,a),className:"font-medium text-primary hover:underline",onClick:F=>F.stopPropagation(),children:p.from})]}):""]})]}),w&&S&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:g,className:"border-b border-border px-4 py-4",children:(q=n.renderExpandedRow)==null?void 0:q.call(n,p)})})]},x)})})]})})}function tr(n){return!n.keys||n.keys.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No usage found."}):h.jsx("ul",{className:"list-inside list-disc space-y-1 text-sm",children:n.keys.map(a=>h.jsx("li",{className:"[overflow-wrap:anywhere]",children:h.jsx(Xe,{className:"text-primary hover:underline",to:et(n.type,n.type==="attribute"?a.split(".")[0]:a,n.setKey),children:h.jsx(vl,{value:a,className:"font-medium"})})},a))})}const Aj="dup";function ku(n){let a=3735928559,r=1103547991;for(let u=0;u<n.length;u+=1){const o=n.charCodeAt(u);a=Math.imul(a^o,2654435761),r=Math.imul(r^o,1597334677)}return a=Math.imul(a^a>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507)^Math.imul(a^a>>>13,3266489909),`${Aj}${(a>>>0).toString(36)}${(r>>>0).toString(36)}`}function Of(n,a){if(n)return a==null?void 0:a[n]}function Mf(n){return n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function zj(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ie(n){const a=n.query.trim();if(!a)return h.jsx(h.Fragment,{children:n.text});const r=zj(a),u=new RegExp(r,"gi"),o=[];let c=0,d=0;for(const m of n.text.matchAll(u))m.index!==void 0&&m.index>c&&o.push(n.text.slice(c,m.index)),m.index!==void 0&&(o.push(h.jsx("mark",{className:["rounded-[3px] bg-amber-100 px-0.5 py-px text-inherit","shadow-[inset_0_-2px_0_0_rgba(251,191,36,0.35)] ring-1 ring-amber-400/25 ring-inset","transition-[background-color,box-shadow] duration-150"].join(" "),children:m[0]},`hm-${m.index}-${d++}`)),c=m.index+m[0].length);return c<n.text.length&&o.push(n.text.slice(c)),h.jsx(h.Fragment,{children:o})}function qg(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function st(){return N0()}function Da(n){if(typeof n>"u"||n===null||n==="")return"n/a";if(Array.isArray(n))return n.length>0?n.join(", "):"none";if(typeof n=="object"){const a=Object.keys(n);return a.length>0?a.join(", "):"none"}return String(n)}function kj(n,a){const r=Iu(n.path),u=Da(n.value),o=n.examplePreview??"",c=`${n.path} ${u} ${o} ${n.source} ${n.from??""}`.toLowerCase();for(const d of a.freeText)if(!c.includes(d))return!1;for(const d of a.qualifiers){const m=d.value.toLowerCase();switch(d.key){case"type":if(!r.type.toLowerCase().includes(m))return!1;break;case"style":if(!r.style.toLowerCase().includes(m))return!1;break;case"param":if(!r.param.toLowerCase().includes(m))return!1;break;case"value":if(!u.toLowerCase().includes(m))return!1;break;case"from":if(!(n.from||"").toLowerCase().includes(m))return!1;break;case"source":if(!n.source.toLowerCase().includes(m))return!1;break;default:if(!c.includes(m))return!1}}return!0}function Rj(n,a){const r=a.trim();if(!r)return n;const u=Bu(r);return u.freeText.length===0&&u.qualifiers.length===0?n:n.filter(o=>kj(o,u))}function _j(n){const a=n.trim();if(!a)return"";const r=Bu(a),u=[...r.freeText],o=new Set(["type","style","param","value","from","source"]);for(const c of r.qualifiers)o.has(c.key)&&u.push(c.value.toLowerCase());return u.length===0?a:u.reduce((c,d)=>d.length>c.length?d:c)}function Iu(n){const a=n.split(".").filter(Boolean);return a.length===0?{type:"",style:"",param:""}:a.length===1?{type:a[0],style:"",param:""}:a.length===2?{type:a[0],style:a[1],param:""}:{type:a[0],style:a[1],param:a.slice(2).join(".")}}function Oj(n){const r=[...n].sort((d,m)=>d.path.localeCompare(m.path)).map(d=>({row:d,parts:Iu(d.path)})),u=[];let o=0,c=0;for(;c<r.length;){const d=r[c].parts.type;let m=c;for(;m<r.length&&r[m].parts.type===d;)m++;const g=m-c;let p=c;for(;p<m;){const x=r[p].parts.style;let b=p;for(;b<m&&r[b].parts.style===x;)b++;const w=b-p;for(let S=p;S<b;S++)u.push({row:r[S].row,parts:r[S].parts,showTypeCell:S===c,typeRowSpan:g,showStyleCell:S===p,styleRowSpan:w,typeBand:o});p=b}o+=1,c=m}return u}function Mj(n){const a=new Set;for(const r of n){const u=Iu(r.path).type;u&&a.add(u)}return[...a].sort((r,u)=>r.localeCompare(u))}const Yg=["number","date","time"];function rx(n){return!1}function Dj(n){const a=new Set(Yg),r=n.filter(u=>!a.has(u)).sort((u,o)=>u.localeCompare(o));return[...Yg,...r]}function mn(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}function Lj(){return h.jsx("svg",{className:"h-3.5 w-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:h.jsx("path",{d:"M4 6h16M4 12h16M4 18h16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function Bj(){return h.jsxs("svg",{className:"h-3.5 w-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[h.jsx("rect",{x:"3",y:"3",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"2"}),h.jsx("rect",{x:"3",y:"15",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"2"})]})}const Pu="h-7";function ux(n){return h.jsxs("div",{className:["inline-flex shrink-0 items-stretch rounded-lg border border-border bg-elevated p-px",Pu].join(" "),role:"tablist","aria-label":"Example layout",children:[h.jsx("button",{type:"button",role:"tab","aria-selected":n.activeView==="compact","aria-label":"Compact",title:"Compact",className:["inline-flex h-full min-h-0 items-center justify-center rounded-md px-2 py-0 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",n.activeView==="compact"?"bg-header-active text-header-text shadow-sm":"text-muted hover:text-text"].join(" "),onClick:()=>n.onViewChange("compact"),children:h.jsx(Lj,{})}),h.jsx("button",{type:"button",role:"tab","aria-selected":n.activeView==="expanded","aria-label":"Expanded",title:"Expanded",className:["inline-flex h-full min-h-0 items-center justify-center rounded-md px-2 py-0 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",n.activeView==="expanded"?"bg-header-active text-header-text shadow-sm":"text-muted hover:text-text"].join(" "),onClick:()=>n.onViewChange("expanded"),children:h.jsx(Bj,{})})]})}function Ya(n){if(typeof window>"u")return;const a=new URL(window.location.href);n?a.hash=n:a.hash="",window.history.replaceState(null,"",a.toString())}function Ua(n){if(n.value&&typeof n.value=="object"&&!Array.isArray(n.value)&&Object.keys(n.value).length===1){const[a,r]=Object.entries(n.value)[0];if(r===null||typeof r=="string"||typeof r=="number"||typeof r=="boolean")return h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:`{${JSON.stringify(a)}: ${JSON.stringify(r)}}`})}return h.jsx(ar,{value:n.value})}function Wu(n){return h.jsx("div",{dir:n.direction,className:["min-w-0 max-w-full",n.direction==="rtl"?"text-right":""].filter(Boolean).join(" "),style:n.direction?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(ar,{value:n.value})})}function es(n){return h.jsx("a",{href:`#${n.targetId}`,"aria-label":"Link to this example",className:"inline-flex rounded p-1 text-muted opacity-0 transition-opacity hover:text-primary focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring group-hover:opacity-100",children:h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07L11 4"}),h.jsx("path",{d:"M14 11a5 5 0 0 0-7.07 0L4.1 13.83a5 5 0 1 0 7.07 7.07L13 20"})]})})}function ts(n){z.useEffect(()=>{if(typeof window>"u"||!window.location.hash)return;const a=decodeURIComponent(window.location.hash.slice(1));if(!a)return;const r=window.requestAnimationFrame(()=>{const u=document.getElementById(a);u&&u.scrollIntoView({block:"start"})});return()=>{window.cancelAnimationFrame(r)}},n)}function Vg(){return h.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 12 12",fill:"none",className:"h-3 w-3",children:h.jsx("path",{d:"M3.25 4.5 6 7.25 8.75 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function Uj(n){return n.icon==="cursor"?h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:"h-4 w-4",children:[h.jsx("path",{d:"M4 3l16 9-7 2-3 7L4 3Z",fill:"#111827"}),h.jsx("path",{d:"M8.2 8.6 15 12.6",stroke:"#ffffff",strokeWidth:"1.4",strokeLinecap:"round"}),h.jsx("path",{d:"M10.2 12.9 12.6 14.3 10.5 18.8Z",fill:"#ffffff",opacity:".92"})]}):h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:"h-4 w-4",children:[h.jsx("path",{d:"M17.2 3.2 9.4 10 5.1 6.7 3 7.8v8.4l2.1 1.1 4.3-3.3 7.8 6.8L21 19V5l-3.8-1.8Z",fill:"#007ACC"}),h.jsx("path",{d:"M17.2 8.2v7.6L12.5 12l4.7-3.8Z",fill:"#ffffff",opacity:".35"})]})}function Hj(n){var w,S;const{manifest:a}=Kl(),[r,u]=z.useState(!1),o=z.useRef(null);z.useEffect(()=>{if(!r)return;function A(U){var k;(k=o.current)!=null&&k.contains(U.target)||u(!1)}function R(U){U.key==="Escape"&&u(!1)}return document.addEventListener("pointerdown",A),document.addEventListener("keydown",R),()=>{document.removeEventListener("pointerdown",A),document.removeEventListener("keydown",R)}},[r]);const c=n.sourcePath&&((w=a.links)!=null&&w.source)?a.links.source.replace("{{path}}",n.sourcePath):void 0,d=(((S=a.dev)==null?void 0:S.editors)||[]).filter(A=>{var R;return(R=n.editLinks)==null?void 0:R[A.id]}),m=d.length>0;if(!c&&!m)return null;const g="rounded border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",p="border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",x="border border-border bg-elevated py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",b=m?h.jsx("div",{role:"menu",className:"absolute right-0 top-full z-20 mt-px min-w-48 overflow-hidden rounded border border-border bg-surface py-1 shadow-lg",children:d.map(A=>{var R;return h.jsxs("a",{role:"menuitem",href:(R=n.editLinks)==null?void 0:R[A.id],className:"flex items-center gap-2 px-3 py-2 text-sm font-semibold text-muted hover:bg-elevated hover:text-text",onClick:()=>u(!1),children:[h.jsx(Uj,{icon:A.icon}),h.jsxs("span",{children:["Open in ",A.label]})]},A.id)})}):null;return m?h.jsxs("div",{ref:o,className:"relative inline-flex",children:[c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:`${p} rounded-l`,children:"Edit"}):h.jsxs("button",{type:"button",className:`${p} inline-flex items-center gap-2 rounded`,"aria-haspopup":"menu","aria-expanded":r,onClick:()=>u(A=>!A),children:["Edit",h.jsx(Vg,{})]}),c&&h.jsx("button",{type:"button",className:`${x} -ml-px rounded-r px-1.5`,"aria-label":"Open edit menu","aria-haspopup":"menu","aria-expanded":r,onClick:()=>u(A=>!A),children:h.jsx(Vg,{})}),r&&b]}):c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:g,children:"Edit"}):null}function sx(n){const{setKey:a}=st(),r=n.rows||[],u=n.searchQuery??"",o=_j(u),c=!!o.trim(),d=n.formatPathLayout==="split",m=!!(n.hideTypeColumn&&d),g=!!n.showExampleColumn;let p=u.trim()?Rj(r,u):r;if(d&&n.selectedFormatType&&(p=p.filter(O=>Iu(O.path).type===n.selectedFormatType)),r.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No formats found."});if(p.length===0){const O=u.trim()?"No formats match your search.":n.selectedFormatType?"No formats for this type.":"No formats match your search.";return h.jsx("p",{className:"text-sm text-muted",children:O})}const x=d?Oj(p):null;function b(O){return O?c?h.jsx(Ie,{text:O,query:o}):O:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function w(O,I){const te=b(O);return I==="param"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap font-mono text-[11px] leading-snug text-muted",children:te}):I==="style"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap leading-snug text-text",children:te}):h.jsx("div",{className:"whitespace-pre-wrap leading-snug text-text [overflow-wrap:anywhere]",children:te})}function S(O){return O%2===0?"bg-surface":"bg-elevated/[0.2]"}function A(O){switch(O){case"type":return"border-b border-border border-r border-border/50";case"example":return"border-b border-border border-r border-border/50";case"style":return"border-b border-border border-r border-border/50";case"param":return"border-b border-border border-r border-border/40";case"value":return"border-b border-border";default:return""}}function R(O,I){const te=Da(O.value),q=O.source==="inherited"&&!!O.from,F=O.source==="target";return h.jsx("td",{className:[I,A("value")].join(" "),children:h.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[h.jsx("div",{className:["min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere]",O.source==="inherited"?"text-muted":""].join(" "),children:c?h.jsx(Ie,{text:te,query:o}):te}),(q||F)&&h.jsxs("div",{className:"flex shrink-0 flex-col items-end justify-center gap-1",children:[q&&O.from?h.jsx(Wi,{label:"inherited from",value:O.from,to:et("locale",O.from,a),tone:"inheritance",compact:!0}):null,F?h.jsx(Wi,{label:"from",value:"target",tone:"neutral",compact:!0}):null]})]})})}function U(O){return O?c?h.jsx(Ie,{text:O,query:o}):O:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function k(O,I){return!g||!O.showStyleCell?null:h.jsx("td",{rowSpan:O.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 whitespace-pre-wrap [overflow-wrap:anywhere]",I,A("example")].join(" "),children:U(O.row.examplePreview)})}function X(O){return h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 whitespace-pre-wrap [overflow-wrap:anywhere]","border-b border-border border-r border-border/40"].join(" "),children:U(O.examplePreview)})}return h.jsx("div",{className:"min-w-0 overflow-x-auto rounded-xl border border-border",children:h.jsxs("table",{className:"w-full min-w-[40rem] table-fixed border-collapse bg-surface text-xs",children:[d?h.jsx("colgroup",{children:m?g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[18%]"}),h.jsx("col",{className:"min-w-0 w-[14%]"}),h.jsx("col",{className:"min-w-0 w-[36%]"}),h.jsx("col",{className:"min-w-0 w-[32%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[22%]"}),h.jsx("col",{className:"min-w-0 w-[36%]"}),h.jsx("col",{className:"min-w-0 w-[42%]"})]}):g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[10%]"}),h.jsx("col",{className:"min-w-0 w-[16%]"}),h.jsx("col",{className:"min-w-0 w-[12%]"}),h.jsx("col",{className:"min-w-0 w-[34%]"}),h.jsx("col",{className:"min-w-0 w-[28%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[12%]"}),h.jsx("col",{className:"min-w-0 w-[18%]"}),h.jsx("col",{className:"min-w-0 w-[32%]"}),h.jsx("col",{className:"min-w-0 w-[38%]"})]})}):h.jsx("colgroup",{children:g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[40%]"}),h.jsx("col",{className:"min-w-0 w-[20%]"}),h.jsx("col",{className:"min-w-0 w-[40%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-1/2"}),h.jsx("col",{className:"min-w-0 w-1/2"})]})}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsx("tr",{children:d?h.jsxs(h.Fragment,{children:[m?null:h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Type"}),h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Style"}),g?h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Example"}):null,h.jsx("th",{className:"align-middle border-b border-r border-border/40 px-3 py-2 font-semibold",children:"Param"}),h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Value"})]}):h.jsxs(h.Fragment,{children:[h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Format"}),g?h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Example"}):null,h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Value"})]})})}),h.jsx("tbody",{children:d&&x?x.map(O=>{const I=S(O.typeBand);return h.jsxs("tr",{children:[!m&&O.showTypeCell?h.jsx("td",{rowSpan:O.typeRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",I,A("type")].join(" "),children:w(O.parts.type,"type")}):null,O.showStyleCell?h.jsx("td",{rowSpan:O.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",I,A("style")].join(" "),children:w(O.parts.style,"style")}):null,k(O,I),h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 font-medium text-muted",I,A("param")].join(" "),children:w(O.parts.param,"param")}),R(O.row,["align-middle min-w-0 px-3 py-2",I].join(" "))]},O.row.path)}):p.map(O=>{const I=["align-middle min-w-0 px-3 py-2 font-medium text-muted",g?"border-b border-border border-r border-border/40":"border-b border-border"].join(" ");return h.jsxs("tr",{children:[h.jsx("td",{className:I,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:c?h.jsx(Ie,{text:O.path,query:o}):O.path})}),g?X(O):null,R(O,"align-middle min-w-0 px-3 py-2 font-medium text-muted")]},O.path)})})]})})}function ox(n){const{setKey:a}=st();return h.jsx(Xe,{to:et("locale",n.localeKey,a),className:"font-medium text-primary hover:underline",children:n.localeKey})}function qj(n){const a=n.localeKeys||[];return a.length===0?h.jsx(h.Fragment,{children:"n/a"}):h.jsx(h.Fragment,{children:a.map((r,u)=>h.jsxs(z.Fragment,{children:[u>0?", ":null,h.jsx(Xe,{className:"font-medium text-primary hover:underline",to:et("locale",r,n.setKey),children:r})]},r))})}function Yj(n){const a=n.targetKeys||[];return a.length===0?h.jsx(h.Fragment,{children:"none"}):h.jsx("div",{className:"flex flex-wrap gap-2",children:a.map(r=>h.jsx(Xe,{className:"inline-flex",to:et("target",r,n.setKey),children:h.jsx(sn,{children:r})},r))})}function nf(){const{entityPath:n,entityKey:a,setKey:r}=Qu(),[u,o]=z.useState(null),[c,d]=z.useState(null);if(z.useEffect(()=>{if(!qg(n)||!a)return;const b=Ii[n];o(null),d(null),E1(b,a,r).then(o).catch(w=>d(w.message))},[n,a,r]),!qg(n)||!a)return h.jsx(bl,{to:Pi(r)||"/",replace:!0});const m=Ii[n],g=`${Pi(r)}/${my[m]}/${jt(a)}`;if(c)return h.jsx(qa,{title:"Unable to load entity",description:c});if(!u)return h.jsxs("div",{className:"text-muted",children:["Loading ",Qn[m].singular.toLowerCase(),"..."]});const p=u.entity,x=Vj(m,g);return h.jsxs("div",{children:[h.jsx(yf,{title:h.jsxs("span",{className:"flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1",children:[h.jsxs("span",{className:"whitespace-nowrap",children:[Qn[m].singular,":"]}),h.jsx(vl,{value:u.key,className:"min-w-0 text-[1.45rem] font-extrabold leading-tight"})]}),description:h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[p.archived&&h.jsx(sn,{tone:"danger",children:"archived"}),p.deprecated&&h.jsx(sn,{tone:"warning",children:"deprecated"})]}),actions:h.jsx(Hj,{sourcePath:u.sourcePath,editLinks:u.editLinks})}),h.jsx(tS,{tabs:x,children:h.jsx(q0,{context:{detail:u,setKey:r}})})]})}function Vj(n,a){const r=[{label:"Overview",to:a,end:!0},{label:"History",to:`${a}/history`}];return n==="locale"?[r[0],{label:"Formats",to:`${a}/formats`},{label:"Examples",to:`${a}/examples`},{label:"Duplicates",to:`${a}/duplicates`},r[1]]:n==="message"?[r[0],{label:"Translations",to:`${a}/translations`},{label:"Overrides",to:`${a}/overrides`},{label:"Examples",to:`${a}/examples`},r[1]]:n==="target"?[r[0],{label:"Formats",to:`${a}/formats`,end:!1},{label:"Messages",to:`${a}/messages`},r[1]]:n==="segment"?[r[0],{label:"Conditions",to:`${a}/conditions`},{label:"Usage",to:`${a}/usage`},r[1]]:[r[0],{label:"Usage",to:`${a}/usage`},r[1]]}function Kj(){const{detail:n,setKey:a}=st(),{manifest:r}=Kl(),u=n.entity,o=Qj(n,u,a,r.sets);return h.jsx("div",{className:"space-y-5",children:h.jsx(lS,{fields:o})})}function Qj(n,a,r,u){const o=u?{label:"Promotable",value:a.promotable===!1?"No":"Yes"}:void 0,c=m=>m.filter(g=>!!(g!=null&&g.value));if(n.type==="locale"){const m=[{label:"Direction",value:a.direction},{label:"Inherits formats from",value:a.inheritFormatsFrom},{label:"Inherits translations from",value:a.inheritTranslationsFrom},o,{label:"Description",value:h.jsx(ql,{value:a.description}),fullWidth:!0}];return c(m)}if(n.type==="message"){const m=[o,{label:"Deprecated",value:a.deprecated?"Yes":"No"},{label:"Deprecation warning",value:a.deprecationWarning},{label:"Targets",value:h.jsx(Yj,{targetKeys:n.targets,setKey:r})},{label:"Summary",value:a.summary,fullWidth:!0},{label:"Description",value:h.jsx(ql,{value:a.description}),fullWidth:!0},{label:"Meta",value:a.meta?h.jsx(ar,{value:a.meta}):void 0,fullWidth:!0}];return c(m)}if(n.type==="attribute"){const m=Array.isArray(a.enum)?a.enum.length>0:!!a.enum,g=Array.isArray(a.required)?a.required.length>0:!!a.required,p=typeof a.minimum<"u"||typeof a.maximum<"u",x=[{label:"Type",value:a.type},o,{label:"Allowed values",value:m?Da(a.enum):void 0},{label:"Required fields",value:g?Da(a.required):void 0},{label:"Pattern",value:a.pattern},{label:"Range",value:p?`${typeof a.minimum<"u"?a.minimum:"-∞"} to ${typeof a.maximum<"u"?a.maximum:"∞"}`:void 0},{label:"Description",value:h.jsx(ql,{value:a.description}),fullWidth:!0}];return c(x)}if(n.type==="segment")return c([{label:"Archived",value:a.archived?"Yes":"No"},o,{label:"Description",value:h.jsx(ql,{value:a.description}),fullWidth:!0}]);const d=[o,{label:"Included message patterns",value:Da(a.includeMessages)},{label:"Excluded message patterns",value:Da(a.excludeMessages)},{label:"Locales",value:h.jsx(qj,{localeKeys:n.locales,setKey:r})},{label:"Description",value:h.jsx(ql,{value:a.description}),fullWidth:!0}];return c(d)}const Gj=["type:number","style:decimal","type:date","param:maximumFractionDigits","value:2","from:en","source:direct"];function Xj(n){return h.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 pt-2 text-xs text-muted",children:[h.jsx("span",{className:"shrink-0",children:"Try:"}),Gj.map(a=>{const r=n.query.trim().split(/\s+/).some(u=>u.toLowerCase()===a.toLowerCase());return h.jsx("button",{type:"button",onClick:()=>n.onHintClick(a),className:["cursor-pointer rounded px-1.5 py-0.5 font-mono transition-colors",r?"bg-primary/10 text-primary":"bg-elevated text-muted hover:text-text"].join(" "),children:a},a)})]})}function cx(n){const[a]=Xn(),r=a.get("formatType")??"",u=r&&n.typeKeys.includes(r)?r:null;function o(d){const g=mn(a,"formatType",d===null?void 0:d).toString();return g?`?${g}`:""}const c=d=>["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",d?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" ");return h.jsxs("nav",{className:"flex min-w-0 flex-wrap gap-2","aria-label":"Format types",children:[h.jsx(Xe,{replace:!0,to:{search:o(null)},className:c(u===null),children:"All types"}),n.typeKeys.map(d=>{const m=d===u;return h.jsx(Xe,{replace:!0,to:{search:o(d)},className:c(m),children:d},d)})]})}function fx(n){const[a]=Xn(),r=a.get("formatType")??"",u=z.useMemo(()=>Mj(n),[n]),o=z.useMemo(()=>Dj(u),[u]),c=r&&o.includes(r)?r:null;return{formatTypes:u,formatTypePillKeys:o,selectedFormatType:c}}function dx(){const[n,a]=Xn(),[r,u]=z.useState(!1),o=n.get("q")??"";function c(d){const m=o.trim(),g=m.split(/\s+/).filter(Boolean),p=g.findIndex(b=>b.toLowerCase()===d.toLowerCase()),x=p!==-1?g.filter((b,w)=>w!==p).join(" "):m?`${m} ${d}`:d;a(mn(n,"q",x.trim()?x.trim():void 0),{replace:!0})}return h.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:h.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] flex-col gap-0",children:[h.jsxs("div",{className:"relative",children:[h.jsx(Zu,{type:"search",value:o,onChange:d=>{const m=d.target.value;a(mn(n,"q",m.trim()?m:void 0),{replace:!0})},placeholder:"Search formats…","aria-label":"Search formats",className:[Pu,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-10","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")}),h.jsx("button",{type:"button",onClick:()=>u(d=>!d),"aria-label":r?"Hide advanced search hints":"Show advanced search hints",className:["absolute right-2 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full border text-xs font-bold transition-colors",r?"border-primary bg-primary/10 text-primary":"border-border bg-surface text-muted hover:border-primary hover:text-primary"].join(" "),children:"?"})]}),h.jsx("div",{className:["grid transition-all duration-200 ease-in-out",r?"grid-rows-[1fr]":"grid-rows-[0fr]"].join(" "),children:h.jsx("div",{className:"overflow-hidden pl-1",children:h.jsx(Xj,{query:o,onHintClick:c})})})]})})}function Zj(){const{detail:n}=st(),[a]=Xn(),r=a.get("q")??"",u=n.formatRows,o=u??[],{formatTypes:c,formatTypePillKeys:d,selectedFormatType:m}=fx(o),g=rx();return h.jsxs("div",{className:"space-y-6",children:[c.length>0?h.jsx(cx,{typeKeys:d}):null,h.jsx(dx,{}),h.jsx(sx,{rows:u,searchQuery:r,formatPathLayout:"split",hideTypeColumn:m!=null,selectedFormatType:m,showExampleColumn:g})]})}function lf(){const{detail:n}=st();return n.type==="target"?h.jsx(hN,{}):h.jsx(Zj,{})}function $j(n){return n.overrides.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No overrides."}):h.jsxs("div",{className:"space-y-3",children:[h.jsx("p",{className:"text-sm font-medium text-muted",children:"Overrides"}),h.jsx("div",{className:"space-y-3",children:n.overrides.map(({key:a,row:r,override:u})=>h.jsxs("div",{className:"rounded border border-border bg-surface p-4",children:[h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[h.jsx(Xe,{to:`${et("message",n.messageKey,n.setKey)}/overrides#${a}`,className:"text-sm font-semibold text-primary hover:underline",children:h.jsx(vl,{value:a,className:"font-semibold"})}),r.source==="inherited"&&r.from&&h.jsx(Wi,{label:"inherited from",value:r.from,to:et("locale",r.from,n.setKey),tone:"inheritance",compact:!0})]}),(u.segments||u.conditions)&&h.jsxs("div",{className:"mt-4 space-y-4",children:[u.segments&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Segments"}),h.jsx(Ey,{segments:u.segments,setKey:n.setKey})]}),u.conditions&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Conditions"}),h.jsx(xf,{conditions:u.conditions,setKey:n.setKey})]})]}),h.jsxs("div",{className:"mt-4 space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Overridden translation"}),h.jsx(Wu,{value:r.value||"—",direction:Of(r.locale,n.localeDirections)})]})]},a))})]})}function Fj(){const{detail:n,setKey:a}=st(),r=n.entity,u=n.localeDirections||{},o=n.overrideTranslations||[],c=r.overrides||[],d=Object.fromEntries((n.translations||[]).map(g=>[g.locale,o.map(p=>({key:p.key,row:(p.rows||[]).find(x=>x.locale===g.locale),override:c.find(x=>x.key===p.key)})).filter(p=>!!(p.row&&p.row.source!=="missing"&&p.override))])),m=new Set(Object.entries(d).filter(([,g])=>g.length>0).map(([g])=>g));return h.jsx(ix,{rows:n.translations,linkLocales:!0,showSource:!1,localeDirections:u,getRowFragmentId:g=>Mf(`translation-${g.locale}`),renderExpandedRow:g=>h.jsx($j,{messageKey:n.key,overrides:d[g.locale]||[],localeDirections:u,setKey:a}),renderMetaCell:g=>{const p=[];return g.source==="inherited"&&g.from&&p.push(h.jsx(Wi,{label:"inherited from",value:g.from,to:et("locale",g.from,a),tone:"inheritance",compact:!0},`inherited-${g.locale}`)),m.has(g.locale)&&p.push(h.jsx(Wi,{label:"overrides",value:"yes",tone:"override",compact:!0},`override-${g.locale}`)),p.length===0?null:h.jsx("div",{className:"flex flex-wrap justify-end gap-1.5",children:p})}})}function Jj(){const{detail:n,setKey:a}=st(),r=n.entity,u=n.localeDirections||{},o=Object.fromEntries((n.translations||[]).map(d=>[d.locale,d.value])),c=r.overrides||[];return ts([c.length]),c.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No overrides found."}):h.jsx("div",{className:"space-y-6",children:c.map(d=>h.jsxs("section",{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h2",{id:d.key,className:"font-semibold [overflow-wrap:anywhere]",children:h.jsx(vl,{value:d.key,className:"font-semibold"})}),h.jsx(es,{targetId:d.key})]}),d.summary&&h.jsx("p",{className:"mt-1 text-sm text-muted",children:d.summary}),d.description&&h.jsx("div",{className:"mt-3",children:h.jsx(ql,{value:d.description})})]}),h.jsxs("div",{className:"space-y-4",children:[d.segments&&h.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-elevated p-4",children:[h.jsx("h3",{className:"text-sm font-semibold text-muted",children:"Segments"}),h.jsx(Ey,{segments:d.segments,setKey:a})]}),d.conditions&&h.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-elevated p-4",children:[h.jsx("h3",{className:"text-sm font-semibold text-muted",children:"Conditions"}),h.jsx(xf,{conditions:d.conditions,setKey:a})]}),h.jsx(ix,{translations:d.translations,linkLocales:!0,showSource:!1,translationLabel:"Overridden translation",comparisonLabel:"Original translation",comparisonValues:o,localeDirections:u})]})]},d.key))})}function Ij(){const{detail:n}=st(),[a,r]=Xn(),u=n.evaluatedExamples||[],o=n.localeDirections||{},c=Object.fromEntries((n.translations||[]).map(w=>[w.locale,w.value])),m=a.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(u.map(w=>w.locale))).sort(),p=a.get("locale"),x=p&&g.includes(p)?p:"",b=x?u.filter(w=>w.locale===x):u;return ts([b.length,x,m]),u.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples found."}):h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsxs("nav",{className:"flex min-w-0 flex-wrap gap-2",children:[h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",x?"border-pill bg-transparent text-text hover:bg-elevated":"border-primary bg-header-active text-header-text"].join(" "),onClick:()=>r(mn(a,"locale",void 0)),children:"All locales"}),g.map(w=>{const S=x===w;return h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",S?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),onClick:()=>r(mn(a,"locale",S?void 0:w)),children:w},w)})]}),h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(ux,{activeView:m,onViewChange:w=>r(mn(a,"view",w==="compact"?void 0:w))})})]}),m==="compact"?h.jsx(eN,{examples:b,localeDirections:o,originalTranslationsByLocale:c}):h.jsx(Wj,{examples:b,localeDirections:o,originalTranslationsByLocale:c})]})}function hx(n){var r,u,o;const a=(r=n.highlightQuery)!=null&&r.trim()&&n.title?h.jsx(Ie,{text:n.title,query:n.highlightQuery}):n.title;return h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h2",{id:n.targetId,className:"font-semibold",children:a}),h.jsx(es,{targetId:n.targetId})]}),(u=n.description)!=null&&u.trim()?(o=n.highlightQuery)!=null&&o.trim()?h.jsx("div",{className:"text-sm text-muted whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(Ie,{text:n.description.trim(),query:n.highlightQuery})}):h.jsx("div",{className:"text-sm text-muted",children:h.jsx(ql,{value:n.description})}):null]})}function mx(n){var u;const r=((u=n.highlightQuery)==null?void 0:u.trim())&&n.evaluatedTranslation!==void 0&&n.evaluatedTranslation!==null?h.jsx("div",{dir:n.direction,className:["min-w-0 max-w-full whitespace-pre-wrap [overflow-wrap:anywhere]",n.direction==="rtl"?"text-right":""].filter(Boolean).join(" "),style:n.direction?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(Ie,{text:typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation),query:n.highlightQuery??""})}):h.jsx(Wu,{value:n.evaluatedTranslation,direction:n.direction});return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse text-sm",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-1/2"}),h.jsx("col",{className:"w-1/2"})]}),h.jsx("thead",{className:"bg-elevated text-left text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-4 py-3 font-semibold",children:"Input"}),h.jsx("th",{className:"border-b border-border px-4 py-3 font-semibold",children:"Output"})]})}),h.jsx("tbody",{children:h.jsxs("tr",{className:"align-top",children:[h.jsx("td",{className:"min-w-0 border-b border-border px-4 py-4",children:n.inputs}),h.jsx("td",{className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"space-y-1",children:[h.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Evaluated translation"}),h.jsx("div",{className:"min-w-0",children:r})]})})]})})]})})}function xt(n){return h.jsxs("div",{className:"space-y-1",children:[h.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:n.label}),h.jsx("div",{className:"min-w-0",children:n.children})]})}function af(n){return Mf([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function px(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function Pj(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function gx(n){var c;const{example:a}=n,{detail:r,setKey:u}=st(),o=(c=n.originalTranslationsByLocale)==null?void 0:c[a.locale];return h.jsxs("div",{className:"min-w-0 space-y-4",children:[n.showLocale!==!1&&h.jsx(xt,{label:"Locale",children:h.jsx(ox,{localeKey:a.locale})}),typeof a.values<"u"&&h.jsx(xt,{label:"Values",children:h.jsx(Ua,{value:a.values})}),typeof a.context<"u"&&h.jsx(xt,{label:"Context",children:h.jsx(Ua,{value:a.context})}),typeof a.timeZone<"u"&&h.jsx(xt,{label:"Time zone",children:h.jsx("span",{className:"font-mono text-sm text-text",children:a.timeZone})}),typeof a.currency<"u"&&h.jsx(xt,{label:"Currency",children:h.jsx("span",{className:"font-mono text-sm text-text",children:a.currency})}),typeof a.formats<"u"&&h.jsx(xt,{label:"Formats",children:h.jsx(Ua,{value:a.formats})}),o&&h.jsx(xt,{label:"Original translation",children:h.jsxs("div",{className:"space-y-2",children:[h.jsx(Wu,{value:o}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Xe,{to:`${et("message",r.key,u)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Xe,{to:`${et("message",r.key,u)}/overrides`,className:"font-medium text-primary hover:underline",children:"overrides"}),"."]})]})})]})}function Wj(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=af(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(hx,{title:px(a),targetId:r,description:a.description}),h.jsx(mx,{inputs:h.jsx(gx,{example:a,showLocale:!0,originalTranslationsByLocale:n.originalTranslationsByLocale}),evaluatedTranslation:a.evaluatedTranslation,direction:Of(a.locale,n.localeDirections)})]},`${a.exampleIndex}-${a.matrixIndex??"base"}-${a.locale}`)})})}function eN(n){const[a,r]=z.useState([]),[u,o]=z.useState(null);z.useEffect(()=>{if(typeof window>"u")return;const d=decodeURIComponent(window.location.hash.slice(1));!d||!n.examples.find(g=>af(g)===d)||(r(g=>g.includes(d)?g:[...g,d]),o(d))},[n.examples]);function c(d){if(a.includes(d)){const m=a.filter(p=>p!==d),g=u===d?m[m.length-1]||null:u;r(m),o(g),Ya(g||void 0);return}r(m=>[...m,d]),o(d),Ya(d)}return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-16"}),h.jsx("col",{className:"w-28"}),h.jsx("col",{className:"w-1/3"}),h.jsx("col",{className:"w-auto"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"#"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Locale"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Description"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Evaluated translation"})]})}),h.jsx("tbody",{children:n.examples.map(d=>{const m=af(d),g=a.includes(m),p=Of(d.locale,n.localeDirections);return h.jsxs(z.Fragment,{children:[h.jsxs("tr",{id:m,className:["cursor-pointer align-top transition-colors",g?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>c(m),children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium text-muted",children:Pj(d)}),h.jsx("td",{className:"border-b border-border px-3 py-2",children:d.locale}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:d.description||"—"})}),h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2",p==="rtl"?"text-right":""].join(" "),dir:p,style:p?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:typeof d.evaluatedTranslation=="string"?d.evaluatedTranslation:JSON.stringify(d.evaluatedTranslation)})})]}),g&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:4,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-4",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:px(d)}),h.jsx(es,{targetId:m})]}),h.jsx(gx,{example:d,showLocale:!1,originalTranslationsByLocale:n.originalTranslationsByLocale})]})})})]},m)})})]})})}function qu(n){return Mf([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function rf(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function yx(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function tN(n){return typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation)}function nN(n,a){const r=a.trim().toLowerCase();return r?n.filter(u=>{const o=qu(u),c=yx(u),d=u.description??"",m=tN(u);return`${o} ${c} ${d} ${m}`.toLowerCase().includes(r)}):n}function xx(n){var m;const{example:a,setKey:r,localeDirection:u}=n,o=((m=n.highlightQuery)==null?void 0:m.trim())??"",c=!!o;function d(g){return c?h.jsx(Xe,{to:et("locale",g,r),className:"font-medium text-primary hover:underline",children:h.jsx(Ie,{text:g,query:o})}):h.jsx(ox,{localeKey:g})}return h.jsxs("div",{className:"min-w-0 space-y-4",children:[n.showLocale!==!1&&h.jsx(xt,{label:"Locale",children:d(a.locale)}),a.sourceLocale!==a.locale&&h.jsx(xt,{label:"Merged from",children:d(a.sourceLocale)}),a.message&&h.jsxs(h.Fragment,{children:[h.jsx(xt,{label:"Message",children:h.jsx(Xe,{to:et("message",a.message,r),className:"font-medium text-primary hover:underline",children:c?h.jsx(Ie,{text:a.message,query:o}):a.message})}),a.originalTranslation&&h.jsx(xt,{label:"Original translation",children:h.jsxs("div",{className:"space-y-2",children:[c?h.jsx("div",{dir:u,className:["min-w-0 max-w-full whitespace-pre-wrap [overflow-wrap:anywhere]",u==="rtl"?"text-right":""].filter(Boolean).join(" "),style:u?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(Ie,{text:a.originalTranslation,query:o})}):h.jsx(Wu,{value:a.originalTranslation,direction:u}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Xe,{to:`${et("message",a.message,r)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Xe,{to:`${et("message",a.message,r)}/overrides`,className:"font-medium text-primary hover:underline",children:"overrides"}),"."]})]})})]}),a.rawMessage&&h.jsx(xt,{label:"Raw message",children:h.jsx("div",{dir:u,className:["min-w-0 max-w-full",u==="rtl"?"text-right":""].filter(Boolean).join(" "),style:u?{unicodeBidi:"plaintext"}:void 0,children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(Ie,{text:a.rawMessage,query:o})}):h.jsx(ar,{value:a.rawMessage})})}),typeof a.values<"u"&&h.jsx(xt,{label:"Values",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(Ie,{text:JSON.stringify(a.values,null,2),query:o})}):h.jsx(Ua,{value:a.values})}),typeof a.context<"u"&&h.jsx(xt,{label:"Context",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(Ie,{text:JSON.stringify(a.context,null,2),query:o})}):h.jsx(Ua,{value:a.context})}),typeof a.timeZone<"u"&&h.jsx(xt,{label:"Time zone",children:h.jsx("span",{className:"font-mono text-sm text-text",children:c?h.jsx(Ie,{text:a.timeZone,query:o}):a.timeZone})}),typeof a.currency<"u"&&h.jsx(xt,{label:"Currency",children:h.jsx("span",{className:"font-mono text-sm text-text",children:c?h.jsx(Ie,{text:a.currency,query:o}):a.currency})}),typeof a.formats<"u"&&h.jsx(xt,{label:"Formats",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(Ie,{text:JSON.stringify(a.formats,null,2),query:o})}):h.jsx(Ua,{value:a.formats})})]})}function lN(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=qu(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(hx,{title:rf(a),targetId:r,description:a.description,highlightQuery:n.searchQuery}),h.jsx(mx,{inputs:h.jsx(xx,{example:a,setKey:n.setKey,localeDirection:n.localeDirection,showLocale:!1,highlightQuery:n.searchQuery}),evaluatedTranslation:a.evaluatedTranslation,direction:n.localeDirection,highlightQuery:n.searchQuery})]},`${a.exampleIndex}-${a.matrixIndex??"base"}-${a.sourceLocale}-${a.locale}`)})})}function aN(n){const[a,r]=z.useState([]),[u,o]=z.useState(null);z.useEffect(()=>{if(typeof window>"u")return;const d=decodeURIComponent(window.location.hash.slice(1));!d||!n.examples.find(g=>qu(g)===d)||(r(g=>g.includes(d)?g:[...g,d]),o(d))},[n.examples]);function c(d){if(a.includes(d)){const m=a.filter(p=>p!==d),g=u===d?m[m.length-1]||null:u;r(m),o(g),Ya(g||void 0);return}r(m=>[...m,d]),o(d),Ya(d)}return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-16"}),h.jsx("col",{className:"w-2/5"}),h.jsx("col",{className:"w-auto"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"#"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Description"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Evaluated translation"})]})}),h.jsx("tbody",{children:n.examples.map(d=>{const m=qu(d),g=a.includes(m);return h.jsxs(z.Fragment,{children:[h.jsxs("tr",{id:m,className:["cursor-pointer align-top transition-colors",g?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>c(m),children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium text-muted",children:h.jsx(Ie,{text:yx(d),query:n.searchQuery})}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(Ie,{text:d.description||"—",query:n.searchQuery})})}),h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2",n.localeDirection==="rtl"?"text-right":""].join(" "),dir:n.localeDirection,style:n.localeDirection?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(Ie,{text:typeof d.evaluatedTranslation=="string"?d.evaluatedTranslation:JSON.stringify(d.evaluatedTranslation),query:n.searchQuery})})})]}),g&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:3,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-4",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:n.searchQuery.trim()?h.jsx(Ie,{text:rf(d),query:n.searchQuery}):rf(d)}),h.jsx(es,{targetId:m})]}),h.jsx(xx,{example:d,setKey:n.setKey,localeDirection:n.localeDirection,showLocale:!1,highlightQuery:n.searchQuery})]})})})]},m)})})]})})}function iN(){const{detail:n,setKey:a}=st(),[r,u]=Xn(),o=n.evaluatedExamples||[],c=n.entity.direction,m=r.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(o.map(A=>A.sourceLocale))).sort(),p=r.get("sourceLocale"),x=p&&g.includes(p)?p:"",b=x?o.filter(A=>A.sourceLocale===x):o,w=r.get("q")??"",S=nN(b,w);return ts([S.length,x,m,w]),o.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples found."}):h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] items-center",children:h.jsx(Zu,{type:"search",value:w,onChange:A=>{const R=A.target.value;u(mn(r,"q",R.trim()?R:void 0),{replace:!0})},placeholder:"Search examples…","aria-label":"Search examples",className:[Pu,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-3","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")})}),g.length>1?h.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[h.jsx("span",{className:"text-sm text-muted",children:"Filter by source locale"}),h.jsxs("nav",{className:"flex flex-wrap gap-2",children:[h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",x?"border-pill bg-transparent text-text hover:bg-elevated":"border-primary bg-header-active text-header-text"].join(" "),onClick:()=>u(mn(r,"sourceLocale",void 0)),children:"All"}),g.map(A=>{const R=x===A;return h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",R?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),onClick:()=>u(mn(r,"sourceLocale",R?void 0:A)),children:A},A)})]})]}):null,h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(ux,{activeView:m,onViewChange:A=>u(mn(r,"view",A==="compact"?void 0:A))})})]}),S.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples match your search."}):m==="compact"?h.jsx(aN,{examples:S,setKey:a,localeDirection:c,searchQuery:w}):h.jsx(lN,{examples:S,setKey:a,localeDirection:c,searchQuery:w})]})}function rN(n,a){const r=a.trim().toLowerCase();return r?n.filter(u=>[u.value,...u.messageKeys,...u.sources.map(c=>c.locale)].join(" ").toLowerCase().includes(r)):n}function uN(){const{detail:n,setKey:a}=st(),[r,u]=Xn(),[o,c]=z.useState(null),[d,m]=z.useState(null),[g,p]=z.useState([]),x=n.entity.direction,b=r.get("q")??"";function w(A){const R=ku(A.value);p(U=>{if(U.includes(R)){const k=U.filter(X=>X!==R);return Ya(void 0),k}return Ya(R),[...U,R]})}if(z.useEffect(()=>{let A=!1;return c(null),m(null),p([]),N1(n.key,a).then(R=>{A||c(R)}).catch(R=>{A||m(R.message)}),()=>{A=!0}},[n.key,a]),z.useEffect(()=>{if(!o||typeof window>"u")return;const A=decodeURIComponent(window.location.hash.slice(1));if(!A)return;const R=o.duplicateValues.find(k=>ku(k.value)===A);if(!R)return;const U=ku(R.value);p(k=>k.includes(U)?k:[...k,U])},[o]),ts([o==null?void 0:o.duplicateValues.length,g.length]),d)return h.jsx(qa,{title:"Unable to load duplicate translations",description:d});if(!o)return h.jsx("div",{className:"text-sm text-muted",children:"Loading duplicate translations..."});if(o.duplicateValues.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No duplicate translations found for this locale."});const S=rN(o.duplicateValues,b);return h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] items-center",children:h.jsx(Zu,{type:"search",value:b,onChange:A=>{const R=A.target.value;u(mn(r,"q",R.trim()?R:void 0),{replace:!0})},placeholder:"Search duplicates...","aria-label":"Search duplicates",className:[Pu,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-3","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")})}),h.jsxs("div",{className:"shrink-0 text-xs text-muted",children:[o.summary.duplicateValues," value",o.summary.duplicateValues===1?"":"s"," ·"," ",o.summary.duplicateMessageKeys," message key",o.summary.duplicateMessageKeys===1?"":"s"]})]}),S.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No duplicates match your search."}):h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-[70%]"}),h.jsx("col",{className:"w-[30%]"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Duplicate value"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Messages"})]})}),h.jsx("tbody",{children:S.map(A=>{const R=Object.fromEntries(A.sources.map(X=>[X.messageKey,X.locale])),U=ku(A.value),k=g.includes(U);return h.jsxs(z.Fragment,{children:[h.jsxs("tr",{id:U,className:["cursor-pointer align-top transition-colors",k?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>w(A),children:[h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2 font-medium text-text",x==="rtl"?"text-right":""].join(" "),dir:x,style:x?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"truncate",children:h.jsx(Ie,{text:A.value,query:b})})}),h.jsxs("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:[A.messageKeys.length," message",A.messageKeys.length===1?"":"s"]})]}),k&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:2,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-3",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Translation value"}),h.jsx(ar,{value:A.value})]}),h.jsx("h3",{className:"text-sm font-semibold",children:"Messages"}),h.jsx("div",{className:"min-w-0 overflow-hidden rounded-lg border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-[70%]"}),h.jsx("col",{className:"w-[30%]"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Message"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Source"})]})}),h.jsx("tbody",{children:A.messageKeys.map(X=>{const O=R[X]||o.locale,I=O!==o.locale;return h.jsxs("tr",{className:"align-top",children:[h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2",children:h.jsx(Xe,{to:et("message",X,a),className:"font-medium text-primary [overflow-wrap:anywhere] hover:underline",children:h.jsx(Ie,{text:X,query:b})})}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:I?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"from "}),h.jsx(Xe,{to:et("locale",O,a),className:"font-medium text-primary hover:underline",onClick:te=>te.stopPropagation(),children:h.jsx(Ie,{text:O,query:b})})]}):h.jsx("span",{children:"direct"})})]},X)})})]})})]})})})]},A.value)})})]})})]})}function sN(){const{detail:n}=st();return n.type==="locale"?h.jsx(iN,{}):h.jsx(Ij,{})}function oN(){const{detail:n,setKey:a}=st(),r=n.usage||{};return h.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Segments"}),h.jsx(tr,{type:"segment",keys:r.segments,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(tr,{type:"message",keys:r.messages,setKey:a})]})]})}function cN(){const{detail:n,setKey:a}=st(),r=n.usage||{};return h.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Attributes"}),h.jsx(tr,{type:"attribute",keys:r.attributes,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(tr,{type:"message",keys:r.messages,setKey:a})]})]})}function fN(){const{detail:n}=st();return n.type==="segment"?h.jsx(cN,{}):h.jsx(oN,{})}function dN(){const{detail:n,setKey:a}=st(),r=n.entity;return h.jsx(xf,{conditions:r.conditions,setKey:a})}function hN(){const{detail:n,setKey:a}=st(),{localeKey:r}=Qu(),[u]=Xn(),o=u.get("q")??"",c=n.formatRowsByLocale||{},d=Object.keys(c).sort(),m=d.length===0?"":r&&c[r]?r:d[0],g=m&&c[m]?c[m]:[],{formatTypes:p,formatTypePillKeys:x,selectedFormatType:b}=fx(g);if(d.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No target formats found."});const w=`${Pi(a)}/targets/${jt(n.key)}/formats`;if(!r){const S=u.toString();return h.jsx(bl,{to:`${w}/${jt(m)}${S?`?${S}`:""}`,replace:!0})}return h.jsxs("div",{className:"space-y-6",children:[h.jsx("nav",{className:"flex min-w-0 flex-wrap gap-2",children:d.map(S=>{const A=u.toString(),R=A?`?${A}`:"",U=S===m;return h.jsx(Xe,{to:`${w}/${jt(S)}${R}`,className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",U?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),children:S},S)})}),p.length>0?h.jsx(cx,{typeKeys:x}):null,h.jsx(dx,{}),h.jsx(sx,{rows:c[m],searchQuery:o,formatPathLayout:"split",hideTypeColumn:b!=null,selectedFormatType:b,showExampleColumn:rx()})]})}function mN(){const{detail:n,setKey:a}=st();return h.jsx(tr,{type:"message",keys:n.messages,setKey:a})}function pN(){var u;const{manifest:n}=Kl(),{detail:a,setKey:r}=st();return h.jsx(vy,{path:`${r?`/data/sets/${jt(r)}`:"/data/root"}/history/${a.type}/${jt(a.key)}`,setKey:r,commitUrl:(u=n.links)==null?void 0:u.commit})}function Kg(n={}){const a=n.prefix||"";return h.jsxs(Fe,{path:`${a}:entityPath/:entityKey`,element:h.jsx(nf,{}),children:[h.jsx(Fe,{index:!0,element:h.jsx(Kj,{})}),h.jsx(Fe,{path:"formats",element:h.jsx(lf,{})}),h.jsx(Fe,{path:"examples",element:h.jsx(sN,{})}),h.jsx(Fe,{path:"duplicates",element:h.jsx(uN,{})}),h.jsx(Fe,{path:"translations",element:h.jsx(Fj,{})}),h.jsx(Fe,{path:"overrides",element:h.jsx(Jj,{})}),h.jsx(Fe,{path:"conditions",element:h.jsx(dN,{})}),h.jsx(Fe,{path:"usage",element:h.jsx(fN,{})}),h.jsx(Fe,{path:"messages",element:h.jsx(mN,{})}),h.jsx(Fe,{path:"history",element:h.jsx(pN,{})}),h.jsx(Fe,{path:"*",element:h.jsx(bl,{to:".",replace:!0})})]})}function gN(n){return h.jsx(A1,{initialManifest:n.manifest,children:h.jsx(H1,{children:h.jsxs(Y0,{children:[h.jsx(Fe,{index:!0,element:h.jsx(q1,{})}),h.jsx(Fe,{path:"sets/:setKey",element:h.jsx(bl,{to:"messages",replace:!0})}),h.jsx(Fe,{path:"sets/:setKey/:entityPath",element:h.jsx(Ip,{})}),h.jsx(Fe,{path:"sets/:setKey/:entityPath/:entityKey/formats/:localeKey",element:h.jsx(nf,{}),children:h.jsx(Fe,{index:!0,element:h.jsx(lf,{})})}),Kg({prefix:"sets/:setKey/"}),h.jsx(Fe,{path:"sets/:setKey/history",element:h.jsx(Pp,{})}),h.jsx(Fe,{path:"history",element:h.jsx(Pp,{})}),h.jsx(Fe,{path:":entityPath",element:h.jsx(Ip,{})}),h.jsx(Fe,{path:":entityPath/:entityKey/formats/:localeKey",element:h.jsx(nf,{}),children:h.jsx(Fe,{index:!0,element:h.jsx(lf,{})})}),Kg(),h.jsx(Fe,{path:"*",element:h.jsx(bl,{to:"/",replace:!0})})]})})})}async function yN(){const n=await gy(),a=n.router==="browser"?d1:h1;w1(n.router),Gg.createRoot(document.getElementById("root")).render(h.jsx(z.StrictMode,{children:h.jsx(a,{children:h.jsx(gN,{manifest:n})})}))}yN().catch(n=>{Gg.createRoot(document.getElementById("root")).render(h.jsx("div",{className:"p-8 text-danger",children:n.message}))});