@messagevisor/catalog 0.7.0 → 0.8.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.
@@ -0,0 +1,73 @@
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 $g(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var bc={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 Mp;function Uv(){if(Mp)return qi;Mp=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 p in o)p!=="key"&&(c[p]=o[p])}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 Op;function Hv(){return Op||(Op=1,bc.exports=Uv()),bc.exports}var h=Hv(),vc={exports:{}},ge={};/**
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 Dp;function qv(){if(Dp)return ge;Dp=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"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=w&&C[w]||C["@@iterator"],typeof C=="function"?C:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,H={};function k(C,V,E){this.props=C,this.context=V,this.refs=H,this.updater=E||R}k.prototype.isReactComponent={},k.prototype.setState=function(C,V){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,V,"setState")},k.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function Z(){}Z.prototype=k.prototype;function z(C,V,E){this.props=C,this.context=V,this.refs=H,this.updater=E||R}var J=z.prototype=new Z;J.constructor=z,_(J,k.prototype),J.isPureReactComponent=!0;var F=Array.isArray;function U(){}var $={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function se(C,V,E){var te=E.ref;return{$$typeof:n,type:C,key:V,ref:te!==void 0?te:null,props:E}}function me(C,V){return se(C.type,V,C.props)}function ne(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function ee(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(E){return V[E]})}var Se=/\/+/g;function ie(C,V){return typeof C=="object"&&C!==null&&C.key!=null?ee(""+C.key):V.toString(36)}function G(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(U,U):(C.status="pending",C.then(function(V){C.status==="pending"&&(C.status="fulfilled",C.value=V)},function(V){C.status==="pending"&&(C.status="rejected",C.reason=V)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function O(C,V,E,te,de){var oe=typeof C;(oe==="undefined"||oe==="boolean")&&(C=null);var Ne=!1;if(C===null)Ne=!0;else switch(oe){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(C.$$typeof){case n:case a:Ne=!0;break;case x:return Ne=C._init,O(Ne(C._payload),V,E,te,de)}}if(Ne)return de=de(C),Ne=te===""?"."+ie(C,0):te,F(de)?(E="",Ne!=null&&(E=Ne.replace(Se,"$&/")+"/"),O(de,V,E,"",function(Ft){return Ft})):de!=null&&(ne(de)&&(de=me(de,E+(de.key==null||C&&C.key===de.key?"":(""+de.key).replace(Se,"$&/")+"/")+Ne)),V.push(de)),1;Ne=0;var $e=te===""?".":te+":";if(F(C))for(var Le=0;Le<C.length;Le++)te=C[Le],oe=$e+ie(te,Le),Ne+=O(te,V,E,oe,de);else if(Le=S(C),typeof Le=="function")for(C=Le.call(C),Le=0;!(te=C.next()).done;)te=te.value,oe=$e+ie(te,Le++),Ne+=O(te,V,E,oe,de);else if(oe==="object"){if(typeof C.then=="function")return O(G(C),V,E,te,de);throw V=String(C),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function I(C,V,E){if(C==null)return C;var te=[],de=0;return O(C,te,"","",function(oe){return V.call(E,oe,de++)}),te}function le(C){if(C._status===-1){var V=C._result;V=V(),V.then(function(E){(C._status===0||C._status===-1)&&(C._status=1,C._result=E)},function(E){(C._status===0||C._status===-1)&&(C._status=2,C._result=E)}),C._status===-1&&(C._status=0,C._result=V)}if(C._status===1)return C._result.default;throw C._result}var ye=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},j={map:I,forEach:function(C,V,E){I(C,function(){V.apply(this,arguments)},E)},count:function(C){var V=0;return I(C,function(){V++}),V},toArray:function(C){return I(C,function(V){return V})||[]},only:function(C){if(!ne(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ge.Activity=b,ge.Children=j,ge.Component=k,ge.Fragment=r,ge.Profiler=o,ge.PureComponent=z,ge.StrictMode=u,ge.Suspense=g,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ge.__COMPILER_RUNTIME={__proto__:null,c:function(C){return $.H.useMemoCache(C)}},ge.cache=function(C){return function(){return C.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(C,V,E){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var te=_({},C.props),de=C.key;if(V!=null)for(oe in V.key!==void 0&&(de=""+V.key),V)!ue.call(V,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&V.ref===void 0||(te[oe]=V[oe]);var oe=arguments.length-2;if(oe===1)te.children=E;else if(1<oe){for(var Ne=Array(oe),$e=0;$e<oe;$e++)Ne[$e]=arguments[$e+2];te.children=Ne}return se(C.type,de,te)},ge.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},ge.createElement=function(C,V,E){var te,de={},oe=null;if(V!=null)for(te in V.key!==void 0&&(oe=""+V.key),V)ue.call(V,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(de[te]=V[te]);var Ne=arguments.length-2;if(Ne===1)de.children=E;else if(1<Ne){for(var $e=Array(Ne),Le=0;Le<Ne;Le++)$e[Le]=arguments[Le+2];de.children=$e}if(C&&C.defaultProps)for(te in Ne=C.defaultProps,Ne)de[te]===void 0&&(de[te]=Ne[te]);return se(C,oe,de)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(C){return{$$typeof:p,render:C}},ge.isValidElement=ne,ge.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:le}},ge.memo=function(C,V){return{$$typeof:m,type:C,compare:V===void 0?null:V}},ge.startTransition=function(C){var V=$.T,E={};$.T=E;try{var te=C(),de=$.S;de!==null&&de(E,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(U,ye)}catch(oe){ye(oe)}finally{V!==null&&E.types!==null&&(V.types=E.types),$.T=V}},ge.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ge.use=function(C){return $.H.use(C)},ge.useActionState=function(C,V,E){return $.H.useActionState(C,V,E)},ge.useCallback=function(C,V){return $.H.useCallback(C,V)},ge.useContext=function(C){return $.H.useContext(C)},ge.useDebugValue=function(){},ge.useDeferredValue=function(C,V){return $.H.useDeferredValue(C,V)},ge.useEffect=function(C,V){return $.H.useEffect(C,V)},ge.useEffectEvent=function(C){return $.H.useEffectEvent(C)},ge.useId=function(){return $.H.useId()},ge.useImperativeHandle=function(C,V,E){return $.H.useImperativeHandle(C,V,E)},ge.useInsertionEffect=function(C,V){return $.H.useInsertionEffect(C,V)},ge.useLayoutEffect=function(C,V){return $.H.useLayoutEffect(C,V)},ge.useMemo=function(C,V){return $.H.useMemo(C,V)},ge.useOptimistic=function(C,V){return $.H.useOptimistic(C,V)},ge.useReducer=function(C,V,E){return $.H.useReducer(C,V,E)},ge.useRef=function(C){return $.H.useRef(C)},ge.useState=function(C){return $.H.useState(C)},ge.useSyncExternalStore=function(C,V,E){return $.H.useSyncExternalStore(C,V,E)},ge.useTransition=function(){return $.H.useTransition()},ge.version="19.2.6",ge}var Lp;function of(){return Lp||(Lp=1,vc.exports=qv()),vc.exports}var T=of(),Sc={exports:{}},Yi={},wc={exports:{}},Ec={};/**
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 Bp;function Yv(){return Bp||(Bp=1,(function(n){function a(O,I){var le=O.length;O.push(I);e:for(;0<le;){var ye=le-1>>>1,j=O[ye];if(0<o(j,I))O[ye]=I,O[le]=j,le=ye;else break e}}function r(O){return O.length===0?null:O[0]}function u(O){if(O.length===0)return null;var I=O[0],le=O.pop();if(le!==I){O[0]=le;e:for(var ye=0,j=O.length,C=j>>>1;ye<C;){var V=2*(ye+1)-1,E=O[V],te=V+1,de=O[te];if(0>o(E,le))te<j&&0>o(de,E)?(O[ye]=de,O[te]=le,ye=te):(O[ye]=E,O[V]=le,ye=V);else if(te<j&&0>o(de,le))O[ye]=de,O[te]=le,ye=te;else break e}}return I}function o(O,I){var le=O.sortIndex-I.sortIndex;return le!==0?le:O.id-I.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,p=d.now();n.unstable_now=function(){return d.now()-p}}var g=[],m=[],x=1,b=null,w=3,S=!1,R=!1,_=!1,H=!1,k=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function J(O){for(var I=r(m);I!==null;){if(I.callback===null)u(m);else if(I.startTime<=O)u(m),I.sortIndex=I.expirationTime,a(g,I);else break;I=r(m)}}function F(O){if(_=!1,J(O),!R)if(r(g)!==null)R=!0,U||(U=!0,ee());else{var I=r(m);I!==null&&G(F,I.startTime-O)}}var U=!1,$=-1,ue=5,se=-1;function me(){return H?!0:!(n.unstable_now()-se<ue)}function ne(){if(H=!1,U){var O=n.unstable_now();se=O;var I=!0;try{e:{R=!1,_&&(_=!1,Z($),$=-1),S=!0;var le=w;try{t:{for(J(O),b=r(g);b!==null&&!(b.expirationTime>O&&me());){var ye=b.callback;if(typeof ye=="function"){b.callback=null,w=b.priorityLevel;var j=ye(b.expirationTime<=O);if(O=n.unstable_now(),typeof j=="function"){b.callback=j,J(O),I=!0;break t}b===r(g)&&u(g),J(O)}else u(g);b=r(g)}if(b!==null)I=!0;else{var C=r(m);C!==null&&G(F,C.startTime-O),I=!1}}break e}finally{b=null,w=le,S=!1}I=void 0}}finally{I?ee():U=!1}}}var ee;if(typeof z=="function")ee=function(){z(ne)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ie=Se.port2;Se.port1.onmessage=ne,ee=function(){ie.postMessage(null)}}else ee=function(){k(ne,0)};function G(O,I){$=k(function(){O(n.unstable_now())},I)}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(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(O){switch(w){case 1:case 2:case 3:var I=3;break;default:I=w}var le=w;w=I;try{return O()}finally{w=le}},n.unstable_requestPaint=function(){H=!0},n.unstable_runWithPriority=function(O,I){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var le=w;w=O;try{return I()}finally{w=le}},n.unstable_scheduleCallback=function(O,I,le){var ye=n.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?ye+le:ye):le=ye,O){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=le+j,O={id:x++,callback:I,priorityLevel:O,startTime:le,expirationTime:j,sortIndex:-1},le>ye?(O.sortIndex=le,a(m,O),r(g)===null&&O===r(m)&&(_?(Z($),$=-1):_=!0,G(F,le-ye))):(O.sortIndex=j,a(g,O),R||S||(R=!0,U||(U=!0,ee()))),O},n.unstable_shouldYield=me,n.unstable_wrapCallback=function(O){var I=w;return function(){var le=w;w=I;try{return O.apply(this,arguments)}finally{w=le}}}})(Ec)),Ec}var Up;function Vv(){return Up||(Up=1,wc.exports=Yv()),wc.exports}var jc={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 Hp;function Qv(){if(Hp)return bt;Hp=1;var n=of();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+m+" 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,m,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:g,containerInfo:m,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,bt.createPortal=function(g,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(g,m,null,x)},bt.flushSync=function(g){var m=d.T,x=u.p;try{if(d.T=null,u.p=2,g)return g()}finally{d.T=m,u.p=x,u.d.f()}},bt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(g,m))},bt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},bt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:S}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:w,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},bt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=p(m.as,m.crossOrigin);u.d.M(g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(g)},bt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin);u.d.L(g,x,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},bt.preloadModule=function(g,m){if(typeof g=="string")if(m){var x=p(m.as,m.crossOrigin);u.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(g)},bt.requestFormReset=function(g){u.d.r(g)},bt.unstable_batchedUpdates=function(g,m){return g(m)},bt.useFormState=function(g,m,x){return d.H.useFormState(g,m,x)},bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},bt.version="19.2.6",bt}var qp;function Kv(){if(qp)return jc.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(),jc.exports=Qv(),jc.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 Yp;function Gv(){if(Yp)return Yi;Yp=1;var n=Vv(),a=of(),r=Kv();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 p(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 m(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"),R=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),z=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ee(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 ie(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 _:return"Fragment";case k:return"Profiler";case H:return"StrictMode";case F:return"Suspense";case U:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case z:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var G=Array.isArray,O=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},ye=[],j=-1;function C(e){return{current:e}}function V(e){0>j||(e.current=ye[j],ye[j]=null,j--)}function E(e,t){j++,ye[j]=e.current,e.current=t}var te=C(null),de=C(null),oe=C(null),Ne=C(null);function $e(e,t){switch(E(oe,t),E(de,e),E(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?np(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=np(t),e=lp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(te),E(te,e)}function Le(){V(te),V(de),V(oe)}function Ft(e){e.memoizedState!==null&&E(Ne,e);var t=te.current,l=lp(t,e.type);t!==l&&(E(de,e),E(te,l))}function jn(e){de.current===e&&(V(te),V(de)),Ne.current===e&&(V(Ne),Li._currentValue=le)}var Za,sr;function Nn(e){if(Za===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Za=t&&t[1]||"",sr=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Za+e+sr}var Kl=!1;function Gl(e,t){if(!e||Kl)return"";Kl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(q){var B=q}Reflect.construct(e,[],X)}else{try{X.call()}catch(q){B=q}e.call(X.prototype)}}else{try{throw Error()}catch(q){B=q}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(q){if(q&&B&&typeof q.stack=="string")return[q.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{Kl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Nn(l):""}function or(e,t){switch(e.tag){case 26:case 27:case 5:return Nn(e.type);case 16:return Nn("Lazy");case 13:return e.child!==t&&t!==null?Nn("Suspense Fallback"):Nn("Suspense");case 19:return Nn("SuspenseList");case 0:case 15:return Gl(e.type,!1);case 11:return Gl(e.type.render,!1);case 1:return Gl(e.type,!0);case 31:return Nn("Activity");default:return""}}function cr(e){try{var t="",l=null;do t+=or(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Xl=Object.prototype.hasOwnProperty,Zl=n.unstable_scheduleCallback,$a=n.unstable_cancelCallback,ls=n.unstable_shouldYield,as=n.unstable_requestPaint,St=n.unstable_now,is=n.unstable_getCurrentPriorityLevel,Q=n.unstable_ImmediatePriority,W=n.unstable_UserBlockingPriority,he=n.unstable_NormalPriority,we=n.unstable_LowPriority,Me=n.unstable_IdlePriority,Lt=n.log,Tn=n.unstable_setDisableYieldValue,wt=null,ot=null;function Nt(e){if(typeof Lt=="function"&&Tn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(wt,e)}catch{}}var qe=Math.clz32?Math.clz32:jx,Fn=Math.log,cn=Math.LN2;function jx(e){return e>>>=0,e===0?32:31-(Fn(e)/cn|0)|0}var fr=256,dr=262144,hr=4194304;function El(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 mr(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=El(i):(y&=v,y!==0?s=El(y):l||(l=v&~e,l!==0&&(s=El(l))))):(v=i&~f,v!==0?s=El(v):y!==0?s=El(y):l||(l=i&~e,l!==0&&(s=El(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 Nx(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 Bf(){var e=hr;return hr<<=1,(hr&62914560)===0&&(hr=4194304),e}function rs(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 Tx(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),X=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 q=B[Y];q!==null&&(q.lane&=-536870913)}l&=~X}i!==0&&Uf(e,i,0),f!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=f&~(y&~t))}function Uf(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 Hf(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 qf(e,t){var l=t&-t;return l=(l&42)!==0?1:us(l),(l&(e.suspendedLanes|t))!==0?0:l}function us(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 ss(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yf(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Tp(e.type))}function Vf(e,t){var l=I.p;try{return I.p=e,t()}finally{I.p=l}}var Jn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Jn,Tt="__reactProps$"+Jn,$l="__reactContainer$"+Jn,os="__reactEvents$"+Jn,Cx="__reactListeners$"+Jn,Ax="__reactHandles$"+Jn,Qf="__reactResources$"+Jn,Ia="__reactMarker$"+Jn;function cs(e){delete e[ht],delete e[Tt],delete e[os],delete e[Cx],delete e[Ax]}function Fl(e){var t=e[ht];if(t)return t;for(var l=e.parentNode;l;){if(t=l[$l]||l[ht]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=cp(e);e!==null;){if(l=e[ht])return l;e=cp(e)}return t}e=l,l=e.parentNode}return null}function Jl(e){if(e=e[ht]||e[$l]){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 Il(e){var t=e[Qf];return t||(t=e[Qf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Ia]=!0}var Kf=new Set,Gf={};function jl(e,t){Pl(e,t),Pl(e+"Capture",t)}function Pl(e,t){for(Gf[e]=t,e=0;e<t.length;e++)Kf.add(t[e])}var zx=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]*$"),Xf={},Zf={};function kx(e){return Xl.call(Zf,e)?!0:Xl.call(Xf,e)?!1:zx.test(e)?Zf[e]=!0:(Xf[e]=!0,!1)}function pr(e,t,l){if(kx(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 gr(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 Cn(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 $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rx(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 fs(e){if(!e._valueTracker){var t=$f(e)?"checked":"value";e._valueTracker=Rx(e,t,""+e[t])}}function Ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=$f(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function yr(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 _x=/[\n"\\]/g;function It(e){return e.replace(_x,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ds(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?hs(e,y,Jt(t)):l!=null?hs(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 Jf(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)){fs(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),fs(e)}function hs(e,t,l){t==="number"&&yr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Wl(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 If(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 Pf(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if(G(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),fs(e)}function ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Mx=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 Wf(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||Mx.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ed(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&&Wf(e,s,i)}else for(var f in t)t.hasOwnProperty(f)&&Wf(e,f,t[f])}function ms(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 Ox=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"]]),Dx=/^[\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 xr(e){return Dx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function An(){}var ps=null;function gs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ta=null,na=null;function td(e){var t=Jl(e);if(t&&(e=t.stateNode)){var l=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ds(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));ds(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&&Ff(i)}break e;case"textarea":If(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Wl(e,!!l.multiple,t,!1)}}}var ys=!1;function nd(e,t,l){if(ys)return e(t,l);ys=!0;try{var i=e(t);return i}finally{if(ys=!1,(ta!==null||na!==null)&&(iu(),ta&&(t=ta,e=na,na=ta=null,td(t),e)))for(t=0;t<e.length;t++)td(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 zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=!1;if(zn)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){xs=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{xs=!1}var In=null,bs=null,br=null;function ld(){if(br)return br;var e,t=bs,l=t.length,i,s="value"in In?In.value:In.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 br=s.slice(e,1<i?1-i:void 0)}function vr(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 Sr(){return!0}function ad(){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)?Sr:ad,this.isPropagationStopped=ad,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=Sr)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Sr)},persist:function(){},isPersistent:Sr}),t}var Nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wr=Ct(Nl),ti=b({},Nl,{view:0,detail:0}),Lx=Ct(ti),vs,Ss,ni,Er=b({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Es,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"?(vs=e.screenX-ni.screenX,Ss=e.screenY-ni.screenY):Ss=vs=0,ni=e),vs)},movementY:function(e){return"movementY"in e?e.movementY:Ss}}),id=Ct(Er),Bx=b({},Er,{dataTransfer:0}),Ux=Ct(Bx),Hx=b({},ti,{relatedTarget:0}),ws=Ct(Hx),qx=b({},Nl,{animationName:0,elapsedTime:0,pseudoElement:0}),Yx=Ct(qx),Vx=b({},Nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qx=Ct(Vx),Kx=b({},Nl,{data:0}),rd=Ct(Kx),Gx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xx={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"},Zx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $x(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zx[e])?!!t[e]:!1}function Es(){return $x}var Fx=b({},ti,{key:function(e){if(e.key){var t=Gx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Es,charCode:function(e){return e.type==="keypress"?vr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jx=Ct(Fx),Ix=b({},Er,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=Ct(Ix),Px=b({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Es}),Wx=Ct(Px),eb=b({},Nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),tb=Ct(eb),nb=b({},Er,{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}),lb=Ct(nb),ab=b({},Nl,{newState:0,oldState:0}),ib=Ct(ab),rb=[9,13,27,32],js=zn&&"CompositionEvent"in window,li=null;zn&&"documentMode"in document&&(li=document.documentMode);var ub=zn&&"TextEvent"in window&&!li,sd=zn&&(!js||li&&8<li&&11>=li),od=" ",cd=!1;function fd(e,t){switch(e){case"keyup":return rb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var la=!1;function sb(e,t){switch(e){case"compositionend":return dd(t);case"keypress":return t.which!==32?null:(cd=!0,od);case"textInput":return e=t.data,e===od&&cd?null:e;default:return null}}function ob(e,t){if(la)return e==="compositionend"||!js&&fd(e,t)?(e=ld(),br=bs=In=null,la=!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 sd&&t.locale!=="ko"?null:t.data;default:return null}}var cb={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 hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cb[e.type]:t==="textarea"}function md(e,t,l,i){ta?na?na.push(i):na=[i]:ta=i,t=du(t,"onChange"),0<t.length&&(l=new wr("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var ai=null,ii=null;function fb(e){Jm(e,0)}function jr(e){var t=Pa(e);if(Ff(t))return e}function pd(e,t){if(e==="change")return t}var gd=!1;if(zn){var Ns;if(zn){var Ts="oninput"in document;if(!Ts){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),Ts=typeof yd.oninput=="function"}Ns=Ts}else Ns=!1;gd=Ns&&(!document.documentMode||9<document.documentMode)}function xd(){ai&&(ai.detachEvent("onpropertychange",bd),ii=ai=null)}function bd(e){if(e.propertyName==="value"&&jr(ii)){var t=[];md(t,ii,e,gs(e)),nd(fb,t)}}function db(e,t,l){e==="focusin"?(xd(),ai=t,ii=l,ai.attachEvent("onpropertychange",bd)):e==="focusout"&&xd()}function hb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jr(ii)}function mb(e,t){if(e==="click")return jr(t)}function pb(e,t){if(e==="input"||e==="change")return jr(t)}function gb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:gb;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(!Xl.call(t,s)||!Bt(e[s],t[s]))return!1}return!0}function vd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sd(e,t){var l=vd(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=vd(l)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ed(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yr(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=yr(e.document)}return t}function Cs(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 yb=zn&&"documentMode"in document&&11>=document.documentMode,aa=null,As=null,ui=null,zs=!1;function jd(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zs||aa==null||aa!==yr(i)||(i=aa,"selectionStart"in i&&Cs(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=du(As,"onSelect"),0<i.length&&(t=new wr("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=aa)))}function Tl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ia={animationend:Tl("Animation","AnimationEnd"),animationiteration:Tl("Animation","AnimationIteration"),animationstart:Tl("Animation","AnimationStart"),transitionrun:Tl("Transition","TransitionRun"),transitionstart:Tl("Transition","TransitionStart"),transitioncancel:Tl("Transition","TransitionCancel"),transitionend:Tl("Transition","TransitionEnd")},ks={},Nd={};zn&&(Nd=document.createElement("div").style,"AnimationEvent"in window||(delete ia.animationend.animation,delete ia.animationiteration.animation,delete ia.animationstart.animation),"TransitionEvent"in window||delete ia.transitionend.transition);function Cl(e){if(ks[e])return ks[e];if(!ia[e])return e;var t=ia[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Nd)return ks[e]=t[l];return e}var Td=Cl("animationend"),Cd=Cl("animationiteration"),Ad=Cl("animationstart"),xb=Cl("transitionrun"),bb=Cl("transitionstart"),vb=Cl("transitioncancel"),zd=Cl("transitionend"),kd=new Map,Rs="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(" ");Rs.push("scrollEnd");function fn(e,t){kd.set(e,t),jl(t,[e])}var Nr=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=[],ra=0,_s=0;function Tr(){for(var e=ra,t=_s=ra=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&&Rd(l,s,f)}}function Cr(e,t,l,i){Pt[ra++]=e,Pt[ra++]=t,Pt[ra++]=l,Pt[ra++]=i,_s|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ms(e,t,l,i){return Cr(e,t,l,i),Ar(e)}function Al(e,t){return Cr(e,null,null,t),Ar(e)}function Rd(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 Ar(e){if(50<zi)throw zi=0,Qo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ua={};function Sb(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 Sb(e,t,l,i)}function Os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kn(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 _d(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 zr(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=Tv(e,l,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=Ut(31,l,t,s),e.elementType=se,e.lanes=f,e;case _:return zl(l.children,s,f,t);case H:y=8,s|=24;break;case k:return e=Ut(12,l,t,s|2),e.elementType=k,e.lanes=f,e;case F:return e=Ut(13,l,t,s),e.elementType=F,e.lanes=f,e;case U:return e=Ut(19,l,t,s),e.elementType=U,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:y=10;break e;case Z:y=9;break e;case J:y=11;break e;case $:y=14;break e;case ue: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 zl(e,t,l,i){return e=Ut(7,e,i,t),e.lanes=l,e}function Ds(e,t,l){return e=Ut(6,e,null,t),e.lanes=l,e}function Md(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function Ls(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 Od=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var l=Od.get(e);return l!==void 0?l:(t={value:e,source:t,stack:cr(t)},Od.set(e,t),t)}return{value:e,source:t,stack:cr(t)}}var sa=[],oa=0,kr=null,si=0,en=[],tn=0,Pn=null,gn=1,yn="";function Rn(e,t){sa[oa++]=si,sa[oa++]=kr,kr=e,si=t}function Dd(e,t,l){en[tn++]=gn,en[tn++]=yn,en[tn++]=Pn,Pn=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 Bs(e){e.return!==null&&(Rn(e,1),Dd(e,1,0))}function Us(e){for(;e===kr;)kr=sa[--oa],sa[oa]=null,si=sa[--oa],sa[oa]=null;for(;e===Pn;)Pn=en[--tn],en[tn]=null,yn=en[--tn],en[tn]=null,gn=en[--tn],en[tn]=null}function Ld(e,t){en[tn++]=gn,en[tn++]=yn,en[tn++]=Pn,gn=t.id,yn=t.overflow,Pn=e}var mt=null,Ge=null,Ae=!1,Wn=null,nn=!1,Hs=Error(u(519));function el(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oi(Wt(t,e)),Hs}function Bd(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),Jf(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),Pf(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||ep(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=An),t=!0):t=!1,t||el(e,!0)}function Ud(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 ca(e){if(e!==mt)return!1;if(!Ae)return Ud(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")||ac(e.type,e.memoizedProps)),l=!l),l&&Ge&&el(e),Ud(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=op(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=op(e)}else t===27?(t=Ge,ml(e.type)?(e=oc,oc=null,Ge=e):Ge=t):Ge=mt?an(e.stateNode.nextSibling):null;return!0}function kl(){Ge=mt=null,Ae=!1}function qs(){var e=Wn;return e!==null&&(Rt===null?Rt=e:Rt.push.apply(Rt,e),Wn=null),e}function oi(e){Wn===null?Wn=[e]:Wn.push(e)}var Ys=C(null),Rl=null,_n=null;function tl(e,t,l){E(Ys,t._currentValue),t._currentValue=l}function Mn(e){e._currentValue=Ys.current,V(Ys)}function Vs(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 Qs(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),Vs(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),Vs(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 fa(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&&Qs(t,e,l,i),t.flags|=262144}function Rr(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _l(e){Rl=e,_n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Hd(Rl,e)}function _r(e,t){return Rl===null&&_l(e),Hd(e,t)}function Hd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},_n===null){if(e===null)throw Error(u(308));_n=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _n=_n.next=t;return l}var wb=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()})}},Eb=n.unstable_scheduleCallback,jb=n.unstable_NormalPriority,lt={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ks(){return{controller:new wb,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&Eb(jb,function(){e.controller.abort()})}var fi=null,Gs=0,da=0,ha=null;function Nb(e,t){if(fi===null){var l=fi=[];Gs=0,da=Fo(),ha={status:"pending",value:void 0,then:function(i){l.push(i)}}}return Gs++,t.then(qd,qd),t}function qd(){if(--Gs===0&&fi!==null){ha!==null&&(ha.status="fulfilled");var e=fi;fi=null,da=0,ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tb(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 Yd=O.S;O.S=function(e,t){jm=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Nb(e,t),Yd!==null&&Yd(e,t)};var Ml=C(null);function Xs(){var e=Ml.current;return e!==null?e:Ye.pooledCache}function Mr(e,t){t===null?E(Ml,Ml.current):E(Ml,t.pool)}function Vd(){var e=Xs();return e===null?null:{parent:lt._currentValue,pool:e}}var ma=Error(u(460)),Zs=Error(u(474)),Or=Error(u(542)),Dr={then:function(){}};function Qd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(An,An),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e;default:if(typeof t.status=="string")t.then(An,An);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,Xd(e),e}throw Dl=t,ma}}function Ol(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Dl=l,ma):l}}var Dl=null;function Gd(){if(Dl===null)throw Error(u(459));var e=Dl;return Dl=null,e}function Xd(e){if(e===ma||e===Or)throw Error(u(483))}var pa=null,di=0;function Lr(e){var t=di;return di+=1,pa===null&&(pa=[]),Kd(pa,e,t)}function hi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Br(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 Zd(e){function t(M,A){if(e){var D=M.deletions;D===null?(M.deletions=[A],M.flags|=16):D.push(A)}}function l(M,A){if(!e)return null;for(;A!==null;)t(M,A),A=A.sibling;return null}function i(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function s(M,A){return M=kn(M,A),M.index=0,M.sibling=null,M}function f(M,A,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<A?(M.flags|=67108866,A):D):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function y(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,A,D,K){return A===null||A.tag!==6?(A=Ds(D,M.mode,K),A.return=M,A):(A=s(A,D),A.return=M,A)}function N(M,A,D,K){var ce=D.type;return ce===_?Y(M,A,D.props.children,K,D.key):A!==null&&(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ue&&Ol(ce)===A.type)?(A=s(A,D.props),hi(A,D),A.return=M,A):(A=zr(D.type,D.key,D.props,null,M.mode,K),hi(A,D),A.return=M,A)}function L(M,A,D,K){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=Ls(D,M.mode,K),A.return=M,A):(A=s(A,D.children||[]),A.return=M,A)}function Y(M,A,D,K,ce){return A===null||A.tag!==7?(A=zl(D,M.mode,K,ce),A.return=M,A):(A=s(A,D),A.return=M,A)}function X(M,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Ds(""+A,M.mode,D),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case S:return D=zr(A.type,A.key,A.props,null,M.mode,D),hi(D,A),D.return=M,D;case R:return A=Ls(A,M.mode,D),A.return=M,A;case ue:return A=Ol(A),X(M,A,D)}if(G(A)||ee(A))return A=zl(A,M.mode,D,null),A.return=M,A;if(typeof A.then=="function")return X(M,Lr(A),D);if(A.$$typeof===z)return X(M,_r(M,A),D);Br(M,A)}return null}function B(M,A,D,K){var ce=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ce!==null?null:v(M,A,""+D,K);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===ce?N(M,A,D,K):null;case R:return D.key===ce?L(M,A,D,K):null;case ue:return D=Ol(D),B(M,A,D,K)}if(G(D)||ee(D))return ce!==null?null:Y(M,A,D,K,null);if(typeof D.then=="function")return B(M,A,Lr(D),K);if(D.$$typeof===z)return B(M,A,_r(M,D),K);Br(M,D)}return null}function q(M,A,D,K,ce){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return M=M.get(D)||null,v(A,M,""+K,ce);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case S:return M=M.get(K.key===null?D:K.key)||null,N(A,M,K,ce);case R:return M=M.get(K.key===null?D:K.key)||null,L(A,M,K,ce);case ue:return K=Ol(K),q(M,A,D,K,ce)}if(G(K)||ee(K))return M=M.get(D)||null,Y(A,M,K,ce,null);if(typeof K.then=="function")return q(M,A,D,Lr(K),ce);if(K.$$typeof===z)return q(M,A,D,_r(A,K),ce);Br(A,K)}return null}function ae(M,A,D,K){for(var ce=null,ze=null,re=A,be=A=0,Ce=null;re!==null&&be<D.length;be++){re.index>be?(Ce=re,re=null):Ce=re.sibling;var ke=B(M,re,D[be],K);if(ke===null){re===null&&(re=Ce);break}e&&re&&ke.alternate===null&&t(M,re),A=f(ke,A,be),ze===null?ce=ke:ze.sibling=ke,ze=ke,re=Ce}if(be===D.length)return l(M,re),Ae&&Rn(M,be),ce;if(re===null){for(;be<D.length;be++)re=X(M,D[be],K),re!==null&&(A=f(re,A,be),ze===null?ce=re:ze.sibling=re,ze=re);return Ae&&Rn(M,be),ce}for(re=i(re);be<D.length;be++)Ce=q(re,M,be,D[be],K),Ce!==null&&(e&&Ce.alternate!==null&&re.delete(Ce.key===null?be:Ce.key),A=f(Ce,A,be),ze===null?ce=Ce:ze.sibling=Ce,ze=Ce);return e&&re.forEach(function(bl){return t(M,bl)}),Ae&&Rn(M,be),ce}function fe(M,A,D,K){if(D==null)throw Error(u(151));for(var ce=null,ze=null,re=A,be=A=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 bl=B(M,re,ke.value,K);if(bl===null){re===null&&(re=Ce);break}e&&re&&bl.alternate===null&&t(M,re),A=f(bl,A,be),ze===null?ce=bl:ze.sibling=bl,ze=bl,re=Ce}if(ke.done)return l(M,re),Ae&&Rn(M,be),ce;if(re===null){for(;!ke.done;be++,ke=D.next())ke=X(M,ke.value,K),ke!==null&&(A=f(ke,A,be),ze===null?ce=ke:ze.sibling=ke,ze=ke);return Ae&&Rn(M,be),ce}for(re=i(re);!ke.done;be++,ke=D.next())ke=q(re,M,be,ke.value,K),ke!==null&&(e&&ke.alternate!==null&&re.delete(ke.key===null?be:ke.key),A=f(ke,A,be),ze===null?ce=ke:ze.sibling=ke,ze=ke);return e&&re.forEach(function(Bv){return t(M,Bv)}),Ae&&Rn(M,be),ce}function He(M,A,D,K){if(typeof D=="object"&&D!==null&&D.type===_&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var ce=D.key;A!==null;){if(A.key===ce){if(ce=D.type,ce===_){if(A.tag===7){l(M,A.sibling),K=s(A,D.props.children),K.return=M,M=K;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ue&&Ol(ce)===A.type){l(M,A.sibling),K=s(A,D.props),hi(K,D),K.return=M,M=K;break e}l(M,A);break}else t(M,A);A=A.sibling}D.type===_?(K=zl(D.props.children,M.mode,K,D.key),K.return=M,M=K):(K=zr(D.type,D.key,D.props,null,M.mode,K),hi(K,D),K.return=M,M=K)}return y(M);case R:e:{for(ce=D.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){l(M,A.sibling),K=s(A,D.children||[]),K.return=M,M=K;break e}else{l(M,A);break}else t(M,A);A=A.sibling}K=Ls(D,M.mode,K),K.return=M,M=K}return y(M);case ue:return D=Ol(D),He(M,A,D,K)}if(G(D))return ae(M,A,D,K);if(ee(D)){if(ce=ee(D),typeof ce!="function")throw Error(u(150));return D=ce.call(D),fe(M,A,D,K)}if(typeof D.then=="function")return He(M,A,Lr(D),K);if(D.$$typeof===z)return He(M,A,_r(M,D),K);Br(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(l(M,A.sibling),K=s(A,D),K.return=M,M=K):(l(M,A),K=Ds(D,M.mode,K),K.return=M,M=K),y(M)):l(M,A)}return function(M,A,D,K){try{di=0;var ce=He(M,A,D,K);return pa=null,ce}catch(re){if(re===ma||re===Or)throw re;var ze=Ut(29,re,null,M.mode);return ze.lanes=K,ze.return=M,ze}finally{}}}var Ll=Zd(!0),$d=Zd(!1),nl=!1;function $s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fs(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 ll(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function al(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=Ar(e),Rd(e,null,l),t}return Cr(e,i,t,l),Ar(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,Hf(e,l)}}function Js(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 Is=!1;function pi(){if(Is){var e=ha;if(e!==null)throw e}}function gi(e,t,l,i){Is=!1;var s=e.updateQueue;nl=!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 X=s.baseState;y=0,Y=L=N=null,v=f;do{var B=v.lane&-536870913,q=B!==v.lane;if(q?(Te&B)===B:(i&B)===B){B!==0&&B===da&&(Is=!0),Y!==null&&(Y=Y.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,fe=v;B=t;var He=l;switch(fe.tag){case 1:if(ae=fe.payload,typeof ae=="function"){X=ae.call(He,X,B);break e}X=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=fe.payload,B=typeof ae=="function"?ae.call(He,X,B):ae,B==null)break e;X=b({},X,B);break e;case 2:nl=!0}}B=v.callback,B!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[B]:q.push(B))}else q={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},Y===null?(L=Y=q,N=X):Y=Y.next=q,y|=B;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;q=v,v=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);Y===null&&(N=X),s.baseState=N,s.firstBaseUpdate=L,s.lastBaseUpdate=Y,f===null&&(s.shared.lanes=0),ol|=y,e.lanes=y,e.memoizedState=X}}function Fd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Fd(l[e],t)}var ga=C(null),Ur=C(0);function Id(e,t){e=Vn,E(Ur,e),E(ga,t),Vn=e|t.baseLanes}function Ps(){E(Ur,Vn),E(ga,ga.current)}function Ws(){Vn=Ur.current,V(ga),V(Ur)}var Ht=C(null),ln=null;function il(e){var t=e.alternate;E(tt,tt.current&1),E(Ht,e),ln===null&&(t===null||ga.current!==null||t.memoizedState!==null)&&(ln=e)}function eo(e){E(tt,tt.current),E(Ht,e),ln===null&&(ln=e)}function Pd(e){e.tag===22?(E(tt,tt.current),E(Ht,e),ln===null&&(ln=e)):rl()}function rl(){E(tt,tt.current),E(Ht,Ht.current)}function qt(e){V(Ht),ln===e&&(ln=null),V(tt)}var tt=C(0);function Hr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||uc(l)||sc(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,qr=!1,ya=!1,Bl=!1,Yr=0,yi=0,xa=null,Cb=0;function Pe(){throw Error(u(321))}function to(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 no(e,t,l,i,s,f){return On=f,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Dh:xo,Bl=!1,f=l(i,s),Bl=!1,ya&&(f=eh(t,l,i,s)),Wd(e),f}function Wd(e){O.H=vi;var t=Be!==null&&Be.next!==null;if(On=0,at=Be=xe=null,qr=!1,yi=0,xa=null,t)throw Error(u(300));e===null||it||(e=e.dependencies,e!==null&&Rr(e)&&(it=!0))}function eh(e,t,l,i){xe=e;var s=0;do{if(ya&&(xa=null),yi=0,ya=!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)}O.H=Lh,f=t(l,i)}while(ya);return f}function Ab(){var e=O.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 lo(){var e=Yr!==0;return Yr=0,e}function ao(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function io(e){if(qr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qr=!1}On=0,at=Be=xe=null,ya=!1,yi=Yr=0,xa=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 Vr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xi(e){var t=yi;return yi+=1,xa===null&&(xa=[]),e=Kd(xa,e,t),t=xe,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Dh:xo),e}function Qr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xi(e);if(e.$$typeof===z)return pt(e)}throw Error(u(438,String(e)))}function ro(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=Vr(),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]=me;return t.index++,l}function Dn(e,t){return typeof t=="function"?t(e):t}function Kr(e){var t=nt();return uo(t,Be,e)}function uo(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 X=L.lane&-536870913;if(X!==L.lane?(Te&X)===X:(On&X)===X){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}),X===da&&(Y=!0);else if((On&B)===B){L=L.next,B===da&&(Y=!0);continue}else X={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(v=N=X,y=f):N=N.next=X,xe.lanes|=B,ol|=B;X=L.action,Bl&&l(f,X),f=L.hasEagerState?L.eagerState:l(f,X)}else B={lane:X,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|=X,ol|=X;L=L.next}while(L!==null&&L!==t);if(N===null?y=f:N.next=v,!Bt(f,e.memoizedState)&&(it=!0,Y&&(l=ha,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 so(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 th(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,fo(ah.bind(null,i,s,e),[e]),s.getSnapshot!==t||y||at!==null&&at.memoizedState.tag&1){if(i.flags|=2048,ba(9,{destroy:void 0},lh.bind(null,i,s,l,t),null),Ye===null)throw Error(u(349));f||(On&127)!==0||nh(i,t,l)}return l}function nh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=Vr(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function lh(e,t,l,i){t.value=l,t.getSnapshot=i,ih(t)&&rh(e)}function ah(e,t,l){return l(function(){ih(t)&&rh(e)})}function ih(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Bt(e,l)}catch{return!0}}function rh(e){var t=Al(e,2);t!==null&&_t(t,e,2)}function oo(e){var t=Et();if(typeof e=="function"){var l=e;if(e=l(),Bl){Nt(!0);try{l()}finally{Nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},t}function uh(e,t,l,i){return e.baseState=l,uo(e,Be,typeof i=="function"?i:Dn)}function zb(e,t,l,i,s){if(Zr(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)}};O.T!==null?l(!0):f.isTransition=!1,i(f),l=t.pending,l===null?(f.next=t.pending=f,sh(t,f)):(f.next=l.next,t.pending=l.next=f)}}function sh(e,t){var l=t.action,i=t.payload,s=e.state;if(t.isTransition){var f=O.T,y={};O.T=y;try{var v=l(s,i),N=O.S;N!==null&&N(y,v),oh(e,t,v)}catch(L){co(e,t,L)}finally{f!==null&&y.types!==null&&(f.types=y.types),O.T=f}}else try{f=l(s,i),oh(e,t,f)}catch(L){co(e,t,L)}}function oh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){ch(e,t,i)},function(i){return co(e,t,i)}):ch(e,t,l)}function ch(e,t,l){t.status="fulfilled",t.value=l,fh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,sh(e,l)))}function co(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,fh(t),t=t.next;while(t!==i)}e.action=null}function fh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dh(e,t){return t}function hh(e,t){if(Ae){var l=Ye.formState;if(l!==null){e:{var i=xe;if(Ae){if(Ge){t:{for(var s=Ge,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){Ge=an(s.nextSibling),i=s.data==="F!";break e}}el(i)}i=!1}i&&(t=l[0])}}return l=Et(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:t},l.queue=i,l=_h.bind(null,xe,i),i.dispatch=l,i=oo(!1),f=yo.bind(null,xe,!1,i.queue),i=Et(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,l=zb.bind(null,xe,s,f,l),s.dispatch=l,i.memoizedState=e,[t,l,!1]}function mh(e){var t=nt();return ph(t,Be,e)}function ph(e,t,l){if(t=uo(e,t,dh)[0],e=Kr(Dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=xi(t)}catch(y){throw y===ma?Or:y}else i=t;t=nt();var s=t.queue,f=s.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,ba(9,{destroy:void 0},kb.bind(null,s,l),null)),[i,f,e]}function kb(e,t){e.action=t}function gh(e){var t=nt(),l=Be;if(l!==null)return ph(t,l,e);nt(),t=t.memoizedState,l=nt();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function ba(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Vr(),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 yh(){return nt().memoizedState}function Gr(e,t,l,i){var s=Et();xe.flags|=e,s.memoizedState=ba(1|t,{destroy:void 0},l,i===void 0?null:i)}function Xr(e,t,l,i){var s=nt();i=i===void 0?null:i;var f=s.memoizedState.inst;Be!==null&&i!==null&&to(i,Be.memoizedState.deps)?s.memoizedState=ba(t,f,l,i):(xe.flags|=e,s.memoizedState=ba(1|t,f,l,i))}function xh(e,t){Gr(8390656,8,e,t)}function fo(e,t){Xr(2048,8,e,t)}function Rb(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Vr(),xe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function bh(e){var t=nt().memoizedState;return Rb({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function vh(e,t){return Xr(4,2,e,t)}function Sh(e,t){return Xr(4,4,e,t)}function wh(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 Eh(e,t,l){l=l!=null?l.concat([e]):null,Xr(4,4,wh.bind(null,t,e),l)}function ho(){}function jh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&to(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Nh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&to(t,i[1]))return i[0];if(i=e(),Bl){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i}function mo(e,t,l){return l===void 0||(On&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Tm(),xe.lanes|=e,ol|=e,l)}function Th(e,t,l,i){return Bt(l,t)?l:ga.current!==null?(e=mo(e,l,i),Bt(e,t)||(it=!0),e):(On&42)===0||(On&1073741824)!==0&&(Te&261930)===0?(it=!0,e.memoizedState=l):(e=Tm(),xe.lanes|=e,ol|=e,t)}function Ch(e,t,l,i,s){var f=I.p;I.p=f!==0&&8>f?f:8;var y=O.T,v={};O.T=v,yo(e,!1,t,l);try{var N=s(),L=O.S;if(L!==null&&L(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Y=Tb(N,i);bi(e,t,Y,Qt(e))}else bi(e,t,i,Qt(e))}catch(X){bi(e,t,{then:function(){},status:"rejected",reason:X},Qt())}finally{I.p=f,y!==null&&v.types!==null&&(y.types=v.types),O.T=y}}function _b(){}function po(e,t,l,i){if(e.tag!==5)throw Error(u(476));var s=Ah(e).queue;Ch(e,s,t,le,l===null?_b:function(){return zh(e),l(i)})}function Ah(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:le},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zh(e){var t=Ah(e);t.next===null&&(t=e.alternate.memoizedState),bi(e,t.next.queue,{},Qt())}function go(){return pt(Li)}function kh(){return nt().memoizedState}function Rh(){return nt().memoizedState}function Mb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Qt();e=ll(l);var i=al(t,e,l);i!==null&&(_t(i,t,l),mi(i,t,l)),t={cache:Ks()},e.payload=t;return}t=t.return}}function Ob(e,t,l){var i=Qt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Zr(e)?Mh(t,l):(l=Ms(e,t,l,i),l!==null&&(_t(l,e,i),Oh(l,t,i)))}function _h(e,t,l){var i=Qt();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(Zr(e))Mh(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 Cr(e,t,s,0),Ye===null&&Tr(),!1}catch{}finally{}if(l=Ms(e,t,s,i),l!==null)return _t(l,e,i),Oh(l,t,i),!0}return!1}function yo(e,t,l,i){if(i={lane:2,revertLane:Fo(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Zr(e)){if(t)throw Error(u(479))}else t=Ms(e,l,i,2),t!==null&&_t(t,e,2)}function Zr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Mh(e,t){ya=qr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Oh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Hf(e,l)}}var vi={readContext:pt,use:Qr,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 Dh={readContext:pt,use:Qr,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:xh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Gr(4194308,4,wh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Gr(4194308,4,e,t)},useInsertionEffect:function(e,t){Gr(4,2,e,t)},useMemo:function(e,t){var l=Et();t=t===void 0?null:t;var i=e();if(Bl){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(Bl){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=Ob.bind(null,xe,e),[i.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=oo(e);var t=e.queue,l=_h.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ho,useDeferredValue:function(e,t){var l=Et();return mo(l,e,t)},useTransition:function(){var e=oo(!1);return e=Ch.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||nh(i,t,l)}s.memoizedState=l;var f={value:l,getSnapshot:t};return s.queue=f,xh(ah.bind(null,i,f,e),[e]),i.flags|=2048,ba(9,{destroy:void 0},lh.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=Yr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Cb++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:go,useFormState:hh,useActionState:hh,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=yo.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:ro,useCacheRefresh:function(){return Et().memoizedState=Mb.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)}}},xo={readContext:pt,use:Qr,useCallback:jh,useContext:pt,useEffect:fo,useImperativeHandle:Eh,useInsertionEffect:vh,useLayoutEffect:Sh,useMemo:Nh,useReducer:Kr,useRef:yh,useState:function(){return Kr(Dn)},useDebugValue:ho,useDeferredValue:function(e,t){var l=nt();return Th(l,Be.memoizedState,e,t)},useTransition:function(){var e=Kr(Dn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:th,useId:kh,useHostTransitionStatus:go,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var l=nt();return uh(l,Be,e,t)},useMemoCache:ro,useCacheRefresh:Rh};xo.useEffectEvent=bh;var Lh={readContext:pt,use:Qr,useCallback:jh,useContext:pt,useEffect:fo,useImperativeHandle:Eh,useInsertionEffect:vh,useLayoutEffect:Sh,useMemo:Nh,useReducer:so,useRef:yh,useState:function(){return so(Dn)},useDebugValue:ho,useDeferredValue:function(e,t){var l=nt();return Be===null?mo(l,e,t):Th(l,Be.memoizedState,e,t)},useTransition:function(){var e=so(Dn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:th,useId:kh,useHostTransitionStatus:go,useFormState:gh,useActionState:gh,useOptimistic:function(e,t){var l=nt();return Be!==null?uh(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ro,useCacheRefresh:Rh};Lh.useEffectEvent=bh;function bo(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 vo={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Qt(),s=ll(i);s.payload=t,l!=null&&(s.callback=l),t=al(e,s,i),t!==null&&(_t(t,e,i),mi(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Qt(),s=ll(i);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=al(e,s,i),t!==null&&(_t(t,e,i),mi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Qt(),i=ll(l);i.tag=2,t!=null&&(i.callback=t),t=al(e,i,l),t!==null&&(_t(t,e,l),mi(t,e,l))}};function Bh(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 Uh(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&&vo.enqueueReplaceState(t,t.state,null)}function Ul(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 Hh(e){Nr(e)}function qh(e){console.error(e)}function Yh(e){Nr(e)}function $r(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Vh(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 So(e,t,l){return l=ll(l),l.tag=3,l.payload={element:null},l.callback=function(){$r(e,t)},l}function Qh(e){return e=ll(e),e.tag=3,e}function Kh(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(){Vh(t,l,i)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Vh(t,l,i),typeof s!="function"&&(cl===null?cl=new Set([this]):cl.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function Db(e,t,l,i,s){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&fa(t,l,s,!0),l=Ht.current,l!==null){switch(l.tag){case 31:case 13:return ln===null?ru():l.alternate===null&&We===0&&(We=3),l.flags&=-257,l.flags|=65536,l.lanes=s,i===Dr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),Xo(e,i,s)),!1;case 22:return l.flags|=65536,i===Dr?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)),Xo(e,i,s)),!1}throw Error(u(435,l.tag))}return Xo(e,i,s),ru(),!1}if(Ae)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Hs&&(e=Error(u(422),{cause:i}),oi(Wt(e,l)))):(i!==Hs&&(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=So(e.stateNode,i,s),Js(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=So(l.stateNode,i,e),Js(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"&&(cl===null||!cl.has(f))))return l.flags|=65536,s&=-s,l.lanes|=s,s=Qh(s),Kh(s,e,l,i),Js(l,s),!1}l=l.return}while(l!==null);return!1}var wo=Error(u(461)),it=!1;function gt(e,t,l,i){t.child=e===null?$d(t,null,l,i):Ll(t,e.child,l,i)}function Gh(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 _l(t),i=no(e,t,l,y,f,s),v=lo(),e!==null&&!it?(ao(e,t,s),Ln(e,t,s)):(Ae&&v&&Bs(t),t.flags|=1,gt(e,t,i,s),t.child)}function Xh(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,Zh(e,t,f,i,s)):(e=zr(l.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!ko(e,s)){var y=f.memoizedProps;if(l=l.compare,l=l!==null?l:ri,l(y,i)&&e.ref===t.ref)return Ln(e,t,s)}return t.flags|=1,e=kn(f,i),e.ref=t.ref,e.return=t,t.child=e}function Zh(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,ko(e,s))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Ln(e,t,s)}return Eo(e,t,l,i,s)}function $h(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 Fh(e,t,f,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mr(t,f!==null?f.cachePool:null),f!==null?Id(t,f):Ps(),Pd(t);else return i=t.lanes=536870912,Fh(e,t,f!==null?f.baseLanes|l:l,l,i)}else f!==null?(Mr(t,f.cachePool),Id(t,f),rl(),t.memoizedState=null):(e!==null&&Mr(t,null),Ps(),rl());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 Fh(e,t,l,i,s){var f=Xs();return f=f===null?null:{parent:lt._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Mr(t,null),Ps(),Pd(t),e!==null&&fa(e,t,i,!0),t.childLanes=s,null}function Fr(e,t){return t=Ir({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jh(e,t,l){return Ll(t,e.child,null,l),e=Fr(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function Lb(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=Fr(t,i),t.lanes=536870912,Si(null,e);if(eo(t),(e=Ge)?(e=sp(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},l=Md(e),l.return=t,t.child=l,mt=t,Ge=null)):e=null,e===null)throw el(t);return t.lanes=536870912,null}return Fr(t,i)}var f=e.memoizedState;if(f!==null){var y=f.dehydrated;if(eo(t),s)if(t.flags&256)t.flags&=-257,t=Jh(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||fa(e,t,l,!1),s=(l&e.childLanes)!==0,it||s){if(i=Ye,i!==null&&(y=qf(i,l),y!==0&&y!==f.retryLane))throw f.retryLane=y,Al(e,y),_t(i,e,y),wo;ru(),t=Jh(e,t,l)}else e=f.treeContext,Ge=an(y.nextSibling),mt=t,Ae=!0,Wn=null,nn=!1,e!==null&&Ld(t,e),t=Fr(t,i),t.flags|=4096;return t}return e=kn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jr(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 Eo(e,t,l,i,s){return _l(t),l=no(e,t,l,i,void 0,s),i=lo(),e!==null&&!it?(ao(e,t,s),Ln(e,t,s)):(Ae&&i&&Bs(t),t.flags|=1,gt(e,t,l,s),t.child)}function Ih(e,t,l,i,s,f){return _l(t),t.updateQueue=null,l=eh(t,i,l,s),Wd(e),i=lo(),e!==null&&!it?(ao(e,t,f),Ln(e,t,f)):(Ae&&i&&Bs(t),t.flags|=1,gt(e,t,l,f),t.child)}function Ph(e,t,l,i,s){if(_l(t),t.stateNode===null){var f=ua,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=vo,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},$s(t),y=l.contextType,f.context=typeof y=="object"&&y!==null?pt(y):ua,f.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(bo(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&&vo.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=Ul(l,v);f.props=N;var L=f.context,Y=l.contextType;y=ua,typeof Y=="object"&&Y!==null&&(y=pt(Y));var X=l.getDerivedStateFromProps;Y=typeof X=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,Y||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||L!==y)&&Uh(t,f,i,y),nl=!1;var B=t.memoizedState;f.state=B,gi(t,i,f,s),pi(),L=t.memoizedState,v||B!==L||nl?(typeof X=="function"&&(bo(t,l,X,i),L=t.memoizedState),(N=nl||Bh(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,Fs(e,t),y=t.memoizedProps,Y=Ul(l,y),f.props=Y,X=t.pendingProps,B=f.context,L=l.contextType,N=ua,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!==X||B!==N)&&Uh(t,f,i,N),nl=!1,B=t.memoizedState,f.state=B,gi(t,i,f,s),pi();var q=t.memoizedState;y!==X||B!==q||nl||e!==null&&e.dependencies!==null&&Rr(e.dependencies)?(typeof v=="function"&&(bo(t,l,v,i),q=t.memoizedState),(Y=nl||Bh(t,l,Y,i,B,q,N)||e!==null&&e.dependencies!==null&&Rr(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,q,N),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,q,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=q),f.props=i,f.state=q,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,Jr(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=Ll(t,e.child,null,s),t.child=Ll(t,null,l,s)):gt(e,t,l,s),t.memoizedState=f.state,e=t.child):e=Ln(e,t,s),e}function Wh(e,t,l,i){return kl(),t.flags|=256,gt(e,t,l,i),t.child}var jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function No(e){return{baseLanes:e,cachePool:Vd()}}function To(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function em(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?il(t):rl(),(e=Ge)?(e=sp(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Pn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},l=Md(e),l.return=t,t.child=l,mt=t,Ge=null)):e=null,e===null)throw el(t);return sc(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,s?(rl(),s=t.mode,v=Ir({mode:"hidden",children:v},s),i=zl(i,s,l,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=No(l),i.childLanes=To(e,y,l),t.memoizedState=jo,Si(null,i)):(il(t),Co(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(f)t.flags&256?(il(t),t.flags&=-257,t=Ao(e,t,l)):t.memoizedState!==null?(rl(),t.child=e.child,t.flags|=128,t=null):(rl(),v=i.fallback,s=t.mode,i=Ir({mode:"visible",children:i.children},s),v=zl(v,s,l,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Ll(t,e.child,null,l),i=t.child,i.memoizedState=No(l),i.childLanes=To(e,y,l),t.memoizedState=jo,t=Si(null,i));else if(il(t),sc(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=Ao(e,t,l)}else if(it||fa(e,t,l,!1),y=(l&e.childLanes)!==0,it||y){if(y=Ye,y!==null&&(i=qf(y,l),i!==0&&i!==N.retryLane))throw N.retryLane=i,Al(e,i),_t(y,e,i),wo;uc(v)||ru(),t=Ao(e,t,l)}else uc(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ge=an(v.nextSibling),mt=t,Ae=!0,Wn=null,nn=!1,e!==null&&Ld(t,e),t=Co(t,i.children),t.flags|=4096);return t}return s?(rl(),v=i.fallback,s=t.mode,N=e.child,L=N.sibling,i=kn(N,{mode:"hidden",children:i.children}),i.subtreeFlags=N.subtreeFlags&65011712,L!==null?v=kn(L,v):(v=zl(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=No(l):(s=v.cachePool,s!==null?(N=lt._currentValue,s=s.parent!==N?{parent:N,pool:N}:s):s=Vd(),v={baseLanes:v.baseLanes|l,cachePool:s}),i.memoizedState=v,i.childLanes=To(e,y,l),t.memoizedState=jo,Si(e.child,i)):(il(t),l=e.child,e=l.sibling,l=kn(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 Co(e,t){return t=Ir({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ir(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function Ao(e,t,l){return Ll(t,e.child,null,l),e=Co(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tm(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Vs(e.return,t,l)}function zo(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 nm(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&&tm(e,l,t);else if(e.tag===19)tm(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&&Hr(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),zo(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&&Hr(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}zo(t,!0,l,null,f,i);break;case"together":zo(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ln(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ol|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(fa(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=kn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=kn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ko(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rr(e)))}function Bb(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),tl(t,lt,e.memoizedState.cache),kl();break;case 27:case 5:Ft(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:tl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eo(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(il(t),t.flags|=128,null):(l&t.child.childLanes)!==0?em(e,t,l):(il(t),e=Ln(e,t,l),e!==null?e.sibling:null);il(t);break;case 19:var s=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(fa(e,t,l,!1),i=(l&t.childLanes)!==0),s){if(i)return nm(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,$h(e,t,l,t.pendingProps);case 24:tl(t,lt,e.memoizedState.cache)}return Ln(e,t,l)}function lm(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!ko(e,l)&&(t.flags&128)===0)return it=!1,Bb(e,t,l);it=(e.flags&131072)!==0}else it=!1,Ae&&(t.flags&1048576)!==0&&Dd(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=Ul(e,i),t.tag=1,t=Ph(null,t,e,i,l)):(t.tag=0,t=Eo(null,t,e,i,l));else{if(e!=null){var s=e.$$typeof;if(s===J){t.tag=11,t=Gh(null,t,e,i,l);break e}else if(s===$){t.tag=14,t=Xh(null,t,e,i,l);break e}}throw t=ie(e)||e,Error(u(306,t,""))}}return t;case 0:return Eo(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,s=Ul(i,t.pendingProps),Ph(e,t,i,s,l);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var f=t.memoizedState;s=f.element,Fs(e,t),gi(t,i,null,l);var y=t.memoizedState;if(i=y.cache,tl(t,lt,i),i!==f.cache&&Qs(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=Wh(e,t,i,l);break e}else if(i!==s){s=Wt(Error(u(424)),t),oi(s),t=Wh(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(Ge=an(e.firstChild),mt=t,Ae=!0,Wn=null,nn=!0,l=$d(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(kl(),i===s){t=Ln(e,t,l);break e}gt(e,t,i,l)}t=t.child}return t;case 26:return Jr(e,t),e===null?(l=mp(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ae||(l=t.type,e=t.pendingProps,i=hu(oe.current).createElement(l),i[ht]=t,i[Tt]=e,yt(i,l,e),ft(i),t.stateNode=i):t.memoizedState=mp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ft(t),e===null&&Ae&&(i=t.stateNode=fp(t.type,t.pendingProps,oe.current),mt=t,nn=!0,s=Ge,ml(t.type)?(oc=s,Ge=an(i.firstChild)):Ge=s),gt(e,t,t.pendingProps.children,l),Jr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((s=i=Ge)&&(i=hv(i,t.type,t.pendingProps,nn),i!==null?(t.stateNode=i,mt=t,Ge=an(i.firstChild),nn=!1,s=!0):s=!1),s||el(t)),Ft(t),s=t.type,f=t.pendingProps,y=e!==null?e.memoizedProps:null,i=f.children,ac(s,f)?i=null:y!==null&&ac(s,y)&&(t.flags|=32),t.memoizedState!==null&&(s=no(e,t,Ab,null,null,l),Li._currentValue=s),Jr(e,t),gt(e,t,i,l),t.child;case 6:return e===null&&Ae&&((e=l=Ge)&&(l=mv(l,t.pendingProps,nn),l!==null?(t.stateNode=l,mt=t,Ge=null,e=!0):e=!1),e||el(t)),null;case 13:return em(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ll(t,null,i,l):gt(e,t,i,l),t.child;case 11:return Gh(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,tl(t,t.type,i.value),gt(e,t,i.children,l),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,_l(t),s=pt(s),i=i(s),t.flags|=1,gt(e,t,i,l),t.child;case 14:return Xh(e,t,t.type,t.pendingProps,l);case 15:return Zh(e,t,t.type,t.pendingProps,l);case 19:return nm(e,t,l);case 31:return Lb(e,t,l);case 22:return $h(e,t,l,t.pendingProps);case 24:return _l(t),i=pt(lt),e===null?(s=Xs(),s===null&&(s=Ye,f=Ks(),s.pooledCache=f,f.refCount++,f!==null&&(s.pooledCacheLanes|=l),s=f),t.memoizedState={parent:i,cache:s},$s(t),tl(t,lt,s)):((e.lanes&l)!==0&&(Fs(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),tl(t,lt,i)):(i=f.cache,tl(t,lt,i),i!==s.cache&&Qs(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 Bn(e){e.flags|=4}function Ro(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(km())e.flags|=8192;else throw Dl=Dr,Zs}else e.flags&=-16777217}function am(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bp(t))if(km())e.flags|=8192;else throw Dl=Dr,Zs}function Pr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bf():536870912,e.lanes|=t,Ea|=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 Xe(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 Ub(e,t,l){var i=t.pendingProps;switch(Us(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Mn(lt),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ca(t)?Bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qs())),Xe(t),null;case 26:var s=t.type,f=t.memoizedState;return e===null?(Bn(t),f!==null?(Xe(t),am(t,f)):(Xe(t),Ro(t,s,null,i,l))):f?f!==e.memoizedState?(Bn(t),Xe(t),am(t,f)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Bn(t),Xe(t),Ro(t,s,e,i,l)),null;case 27:if(jn(t),l=oe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Xe(t),null}e=te.current,ca(t)?Bd(t):(e=fp(s,i,l),t.stateNode=e,Bn(t))}return Xe(t),null;case 5:if(jn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Xe(t),null}if(f=te.current,ca(t))Bd(t);else{var y=hu(oe.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&&Bn(t)}}return Xe(t),Ro(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=oe.current,ca(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||ep(e.nodeValue,l)),e||el(t,!0)}else e=hu(e).createTextNode(i),e[ht]=t,t.stateNode=e}return Xe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=ca(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 kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else l=qs(),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 Xe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ca(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 kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),s=!1}else s=qs(),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),Pr(t,t.updateQueue),Xe(t),null);case 4:return Le(),e===null&&Wo(t.stateNode.containerInfo),Xe(t),null;case 10:return Mn(t.type),Xe(t),null;case 19:if(V(tt),i=t.memoizedState,i===null)return Xe(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=Hr(e),f!==null){for(t.flags|=128,wi(i,!1),e=f.updateQueue,t.updateQueue=e,Pr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)_d(l,e),l=l.sibling;return E(tt,tt.current&1|2),Ae&&Rn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&St()>lu&&(t.flags|=128,s=!0,wi(i,!1),t.lanes=4194304)}else{if(!s)if(e=Hr(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Pr(t,e),wi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!Ae)return Xe(t),null}else 2*St()-i.renderingStartTime>lu&&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&&Rn(t,i.treeForkCount),e):(Xe(t),null);case 22:case 23:return qt(t),Ws(),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&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),l=t.updateQueue,l!==null&&Pr(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(Ml),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Mn(lt),Xe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Hb(e,t){switch(Us(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(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 jn(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));kl()}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));kl()}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 Mn(t.type),null;case 22:case 23:return qt(t),Ws(),e!==null&&V(Ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mn(lt),null;case 25:return null;default:return null}}function im(e,t){switch(Us(t),t.tag){case 3:Mn(lt),Le();break;case 26:case 27:case 5:jn(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:Mn(t.type);break;case 22:case 23:qt(t),Ws(),e!==null&&V(Ml);break;case 24:Mn(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 ul(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 rm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jd(t,l)}catch(i){De(e,e.return,i)}}}function um(e,t,l){l.props=Ul(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 sm(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 _o(e,t,l){try{var i=e.stateNode;uv(i,e.type,l,t),i[Tt]=t}catch(s){De(e,e.return,s)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function Mo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(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&&ml(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=An));else if(i!==4&&(i===27&&ml(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 Wr(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&&ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Wr(e,t,l),e=e.sibling;e!==null;)Wr(e,t,l),e=e.sibling}function cm(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 Un=!1,rt=!1,Do=!1,fm=typeof WeakSet=="function"?WeakSet:Set,dt=null;function qb(e,t){if(e=e.containerInfo,nc=vu,e=Ed(e),Cs(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,X=e,B=null;t:for(;;){for(var q;X!==l||s!==0&&X.nodeType!==3||(v=y+s),X!==f||i!==0&&X.nodeType!==3||(N=y+i),X.nodeType===3&&(y+=X.nodeValue.length),(q=X.firstChild)!==null;)B=X,X=q;for(;;){if(X===e)break t;if(B===l&&++L===s&&(v=y),B===f&&++Y===i&&(N=y),(q=X.nextSibling)!==null)break;X=B,B=X.parentNode}X=q}l=v===-1||N===-1?null:{start:v,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(lc={focusedElem:e,selectionRange:l},vu=!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 ae=Ul(l.type,s);e=i.getSnapshotBeforeUpdate(ae,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)rc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rc(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 dm(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:qn(e,l),i&4&&Ei(5,l);break;case 1:if(qn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(y){De(l,l.return,y)}else{var s=Ul(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){De(l,l.return,y)}}i&64&&rm(l),i&512&&ji(l,l.return);break;case 3:if(qn(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{Jd(e,t)}catch(y){De(l,l.return,y)}}break;case 27:t===null&&i&4&&cm(l);case 26:case 5:qn(e,l),t===null&&i&4&&sm(l),i&512&&ji(l,l.return);break;case 12:qn(e,l);break;case 31:qn(e,l),i&4&&pm(e,l);break;case 13:qn(e,l),i&4&&gm(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Fb.bind(null,l),pv(e,l))));break;case 22:if(i=l.memoizedState!==null||Un,!i){t=t!==null&&t.memoizedState!==null||rt,s=Un;var f=rt;Un=i,(rt=t)&&!f?Yn(e,l,(l.subtreeFlags&8772)!==0):qn(e,l),Un=s,rt=f}break;case 30:break;default:qn(e,l)}}function hm(e){var t=e.alternate;t!==null&&(e.alternate=null,hm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cs(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 Fe=null,At=!1;function Hn(e,t,l){for(l=l.child;l!==null;)mm(e,t,l),l=l.sibling}function mm(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(wt,l)}catch{}switch(l.tag){case 26:rt||xn(l,t),Hn(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=Fe,s=At;ml(l.type)&&(Fe=l.stateNode,At=!1),Hn(e,t,l),Mi(l.stateNode),Fe=i,At=s;break;case 5:rt||xn(l,t);case 6:if(i=Fe,s=At,Fe=null,Hn(e,t,l),Fe=i,At=s,Fe!==null)if(At)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(l.stateNode)}catch(f){De(l,t,f)}else try{Fe.removeChild(l.stateNode)}catch(f){De(l,t,f)}break;case 18:Fe!==null&&(At?(e=Fe,rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ra(e)):rp(Fe,l.stateNode));break;case 4:i=Fe,s=At,Fe=l.stateNode.containerInfo,At=!0,Hn(e,t,l),Fe=i,At=s;break;case 0:case 11:case 14:case 15:ul(2,l,t),rt||ul(4,l,t),Hn(e,t,l);break;case 1:rt||(xn(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&um(l,t,i)),Hn(e,t,l);break;case 21:Hn(e,t,l);break;case 22:rt=(i=rt)||l.memoizedState!==null,Hn(e,t,l),rt=i;break;default:Hn(e,t,l)}}function pm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ra(e)}catch(l){De(t,t.return,l)}}}function gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ra(e)}catch(l){De(t,t.return,l)}}function Yb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fm),t;default:throw Error(u(435,e.tag))}}function eu(e,t){var l=Yb(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var s=Jb.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(ml(v.type)){Fe=v.stateNode,At=!1;break e}break;case 5:Fe=v.stateNode,At=!1;break e;case 3:case 4:Fe=v.stateNode.containerInfo,At=!0;break e}v=v.return}if(Fe===null)throw Error(u(160));mm(f,y,s),Fe=null,At=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ym(t,e),t=t.sibling}var dn=null;function ym(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&&(ul(3,e,e.return),Ei(3,e),ul(5,e,e.return));break;case 1:zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),i&64&&Un&&(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=yp("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=yp("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 xp(s,e.type,e.stateNode);else e.stateNode=gp(s,i,e.memoizedProps);else f!==i?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,i===null?xp(s,e.type,e.stateNode):gp(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&_o(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&&_o(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{ea(s,"")}catch(ae){De(e,e.return,ae)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,_o(e,s,l!==null?l.memoizedProps:s)),i&1024&&(Do=!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(ae){De(e,e.return,ae)}}break;case 3:if(gu=null,s=dn,dn=mu(t.containerInfo),zt(t,e),dn=s,kt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Ra(t.containerInfo)}catch(ae){De(e,e.return,ae)}Do&&(Do=!1,xm(e));break;case 4:i=dn,dn=mu(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,eu(e,i)));break;case 13:zt(t,e),kt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(nu=St()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,eu(e,i)));break;case 22:s=e.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,L=Un,Y=rt;if(Un=L||s,rt=Y||N,zt(t,e),rt=Y,Un=L,kt(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||N||Un||rt||Hl(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 X=N.memoizedProps.style,B=X!=null&&X.hasOwnProperty("display")?X.display:null;v.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ae){De(N,N.return,ae)}}}else if(t.tag===6){if(l===null){N=t;try{N.stateNode.nodeValue=s?"":N.memoizedProps}catch(ae){De(N,N.return,ae)}}}else if(t.tag===18){if(l===null){N=t;try{var q=N.stateNode;s?up(q,!0):up(N.stateNode,!1)}catch(ae){De(N,N.return,ae)}}}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,eu(e,l))));break;case 19:zt(t,e),kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,eu(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(om(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var s=l.stateNode,f=Mo(e);Wr(e,f,s);break;case 5:var y=l.stateNode;l.flags&32&&(ea(y,""),l.flags&=-33);var v=Mo(e);Wr(e,v,y);break;case 3:case 4:var N=l.stateNode.containerInfo,L=Mo(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 xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function qn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dm(e,t.alternate,t),t=t.sibling}function Hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),Hl(t);break;case 1:xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&um(t,t.return,l),Hl(t);break;case 27:Mi(t.stateNode);case 26:case 5:xn(t,t.return),Hl(t);break;case 22:t.memoizedState===null&&Hl(t);break;case 30:Hl(t);break;default:Hl(t)}e=e.sibling}}function Yn(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:Yn(s,f,l),Ei(4,f);break;case 1:if(Yn(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++)Fd(N[s],v)}catch(L){De(i,i.return,L)}}l&&y&64&&rm(f),ji(f,f.return);break;case 27:cm(f);case 26:case 5:Yn(s,f,l),l&&i===null&&y&4&&sm(f),ji(f,f.return);break;case 12:Yn(s,f,l);break;case 31:Yn(s,f,l),l&&y&4&&pm(s,f);break;case 13:Yn(s,f,l),l&&y&4&&gm(s,f);break;case 22:f.memoizedState===null&&Yn(s,f,l),ji(f,f.return);break;case 30:break;default:Yn(s,f,l)}t=t.sibling}}function Lo(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 Bo(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;)bm(e,t,l,i),t=t.sibling}function bm(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,va(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Lo(y,t);break;case 24:hn(e,t,l,i),s&2048&&Bo(t.alternate,t);break;default:hn(e,t,l,i)}}function va(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:va(f,y,v,N,s),Ei(8,y);break;case 23:break;case 22:var Y=y.stateNode;y.memoizedState!==null?Y._visibility&2?va(f,y,v,N,s):Ni(f,y):(Y._visibility|=2,va(f,y,v,N,s)),s&&L&2048&&Lo(y.alternate,y);break;case 24:va(f,y,v,N,s),s&&L&2048&&Bo(y.alternate,y);break;default:va(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&&Lo(i.alternate,i);break;case 24:Ni(l,i),s&2048&&Bo(i.alternate,i);break;default:Ni(l,i)}t=t.sibling}}var Ti=8192;function Sa(e,t,l){if(e.subtreeFlags&Ti)for(e=e.child;e!==null;)vm(e,t,l),e=e.sibling}function vm(e,t,l){switch(e.tag){case 26:Sa(e,t,l),e.flags&Ti&&e.memoizedState!==null&&Cv(l,dn,e.memoizedState,e.memoizedProps);break;case 5:Sa(e,t,l);break;case 3:case 4:var i=dn;dn=mu(e.stateNode.containerInfo),Sa(e,t,l),dn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ti,Ti=16777216,Sa(e,t,l),Ti=i):Sa(e,t,l));break;default:Sa(e,t,l)}}function Sm(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,Em(i,e)}Sm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wm(e),e=e.sibling}function wm(e){switch(e.tag){case 0:case 11:case 15:Ci(e),e.flags&2048&&ul(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,tu(e)):Ci(e);break;default:Ci(e)}}function tu(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,Em(i,e)}Sm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ul(8,t,t.return),tu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,tu(t));break;default:tu(t)}e=e.sibling}}function Em(e,t){for(;dt!==null;){var l=dt;switch(l.tag){case 0:case 11:case 15:ul(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(hm(i),i===l){dt=null;break e}if(s!==null){s.return=f,dt=s;break e}dt=f}}}var Vb={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}},Qb=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ye=null,Ee=null,Te=0,Oe=0,Yt=null,sl=!1,wa=!1,Uo=!1,Vn=0,We=0,ol=0,ql=0,Ho=0,Vt=0,Ea=0,Ai=null,Rt=null,qo=!1,nu=0,jm=0,lu=1/0,au=null,cl=null,ct=0,fl=null,ja=null,Qn=0,Yo=0,Vo=null,Nm=null,zi=0,Qo=null;function Qt(){return(Re&2)!==0&&Te!==0?Te&-Te:O.T!==null?Fo():Yf()}function Tm(){if(Vt===0)if((Te&536870912)===0||Ae){var e=dr;dr<<=1,(dr&3932160)===0&&(dr=262144),Vt=e}else Vt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Vt}function _t(e,t,l){(e===Ye&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(Na(e,0),dl(e,Te,Vt,!1)),Ja(e,l),((Re&2)===0||e!==Ye)&&(e===Ye&&((Re&2)===0&&(ql|=l),We===4&&dl(e,Te,Vt,!1)),bn(e))}function Cm(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?Xb(e,t):Go(e,t,!0),f=i;do{if(s===0){wa&&!i&&dl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!Kb(l)){s=Go(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&&(Na(v,y).flags|=256),y=Go(v,y,!1),y!==2){if(Uo&&!N){v.errorRecoveryDisabledLanes|=f,ql|=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){Na(e,0),dl(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:dl(i,t,Vt,!sl);break e;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=nu+300-St(),10<s)){if(dl(i,t,Vt,!sl),mr(i,0,!0)!==0)break e;Qn=t,i.timeoutHandle=ap(Am.bind(null,i,l,Rt,au,qo,t,Vt,ql,Ea,sl,f,"Throttled",-0,0),s);break e}Am(i,l,Rt,au,qo,t,Vt,ql,Ea,sl,f,null,-0,0)}}break}while(!0);bn(e)}function Am(e,t,l,i,s,f,y,v,N,L,Y,X,B,q){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:An},vm(t,f,X);var ae=(f&62914560)===f?nu-St():(f&4194048)===f?jm-St():0;if(ae=Av(X,ae),ae!==null){Qn=f,e.cancelPendingCommit=ae(Lm.bind(null,e,t,f,l,i,s,y,v,N,Y,X,null,B,q)),dl(e,f,y,!L);return}}Lm(e,t,f,l,i,s,y,v,N)}function Kb(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 dl(e,t,l,i){t&=~Ho,t&=~ql,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&&Uf(e,l,t)}function iu(){return(Re&6)===0?(ki(0),!1):!0}function Ko(){if(Ee!==null){if(Oe===0)var e=Ee.return;else e=Ee,_n=Rl=null,io(e),pa=null,di=0,e=Ee;for(;e!==null;)im(e.alternate,e),e=e.return;Ee=null}}function Na(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,cv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Qn=0,Ko(),Ye=e,Ee=l=kn(e.current,null),Te=t,Oe=0,Yt=null,sl=!1,wa=Fa(e,t),Uo=!1,Ea=Vt=Ho=ql=ol=We=0,Rt=Ai=null,qo=!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 Vn=t,Tr(),l}function zm(e,t){xe=null,O.H=vi,t===ma||t===Or?(t=Gd(),Oe=3):t===Zs?(t=Gd(),Oe=4):Oe=t===wo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,Ee===null&&(We=1,$r(e,Wt(t,e.current)))}function km(){var e=Ht.current;return e===null?!0:(Te&4194048)===Te?ln===null:(Te&62914560)===Te||(Te&536870912)!==0?e===ln:!1}function Rm(){var e=O.H;return O.H=vi,e===null?vi:e}function _m(){var e=O.A;return O.A=Vb,e}function ru(){We=4,sl||(Te&4194048)!==Te&&Ht.current!==null||(wa=!0),(ol&134217727)===0&&(ql&134217727)===0||Ye===null||dl(Ye,Te,Vt,!1)}function Go(e,t,l){var i=Re;Re|=2;var s=Rm(),f=_m();(Ye!==e||Te!==t)&&(au=null,Na(e,t)),t=!1;var y=We;e:do try{if(Oe!==0&&Ee!==null){var v=Ee,N=Yt;switch(Oe){case 8:Ko(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var L=Oe;if(Oe=0,Yt=null,Ta(e,v,N,L),l&&wa){y=0;break e}break;default:L=Oe,Oe=0,Yt=null,Ta(e,v,N,L)}}Gb(),y=We;break}catch(Y){zm(e,Y)}while(!0);return t&&e.shellSuspendCounter++,_n=Rl=null,Re=i,O.H=s,O.A=f,Ee===null&&(Ye=null,Te=0,Tr()),y}function Gb(){for(;Ee!==null;)Mm(Ee)}function Xb(e,t){var l=Re;Re|=2;var i=Rm(),s=_m();Ye!==e||Te!==t?(au=null,lu=St()+500,Na(e,t)):wa=Fa(e,t);e:do try{if(Oe!==0&&Ee!==null){t=Ee;var f=Yt;t:switch(Oe){case 1:Oe=0,Yt=null,Ta(e,t,f,1);break;case 2:case 9:if(Qd(f)){Oe=0,Yt=null,Om(t);break}t=function(){Oe!==2&&Oe!==9||Ye!==e||(Oe=7),bn(e)},f.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Qd(f)?(Oe=0,Yt=null,Om(t)):(Oe=0,Yt=null,Ta(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?bp(y):v.stateNode.complete){Oe=0,Yt=null;var N=v.sibling;if(N!==null)Ee=N;else{var L=v.return;L!==null?(Ee=L,uu(L)):Ee=null}break t}}Oe=0,Yt=null,Ta(e,t,f,5);break;case 6:Oe=0,Yt=null,Ta(e,t,f,6);break;case 8:Ko(),We=6;break e;default:throw Error(u(462))}}Zb();break}catch(Y){zm(e,Y)}while(!0);return _n=Rl=null,O.H=i,O.A=s,Re=l,Ee!==null?0:(Ye=null,Te=0,Tr(),We)}function Zb(){for(;Ee!==null&&!ls();)Mm(Ee)}function Mm(e){var t=lm(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,t===null?uu(e):Ee=t}function Om(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ih(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Ih(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:io(t);default:im(l,t),t=Ee=_d(t,Vn),t=lm(l,t,Vn)}e.memoizedProps=e.pendingProps,t===null?uu(e):Ee=t}function Ta(e,t,l,i){_n=Rl=null,io(t),pa=null,di=0;var s=t.return;try{if(Db(e,s,t,l,Te)){We=1,$r(e,Wt(l,e.current)),Ee=null;return}}catch(f){if(s!==null)throw Ee=s,f;We=1,$r(e,Wt(l,e.current)),Ee=null;return}t.flags&32768?(Ae||i===1?e=!0:wa||(Te&536870912)!==0?e=!1:(sl=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),Dm(t,e)):uu(t)}function uu(e){var t=e;do{if((t.flags&32768)!==0){Dm(t,sl);return}e=t.return;var l=Ub(t.alternate,t,Vn);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 Dm(e,t){do{var l=Hb(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 Lm(e,t,l,i,s,f,y,v,N){e.cancelPendingCommit=null;do su();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|=_s,Tx(e,l,f,y,v,N),e===Ye&&(Ee=Ye=null,Te=0),ja=t,fl=e,Qn=l,Yo=f,Vo=s,Nm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ib(he,function(){return Ym(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,s=I.p,I.p=2,y=Re,Re|=4;try{qb(e,t,l)}finally{Re=y,I.p=s,O.T=i}}ct=1,Bm(),Um(),Hm()}}function Bm(){if(ct===1){ct=0;var e=fl,t=ja,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var i=I.p;I.p=2;var s=Re;Re|=4;try{ym(t,e);var f=lc,y=Ed(e.containerInfo),v=f.focusedElem,N=f.selectionRange;if(y!==v&&v&&v.ownerDocument&&wd(v.ownerDocument.documentElement,v)){if(N!==null&&Cs(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 X=v.ownerDocument||document,B=X&&X.defaultView||window;if(B.getSelection){var q=B.getSelection(),ae=v.textContent.length,fe=Math.min(N.start,ae),He=N.end===void 0?fe:Math.min(N.end,ae);!q.extend&&fe>He&&(y=He,He=fe,fe=y);var M=Sd(v,fe),A=Sd(v,He);if(M&&A&&(q.rangeCount!==1||q.anchorNode!==M.node||q.anchorOffset!==M.offset||q.focusNode!==A.node||q.focusOffset!==A.offset)){var D=X.createRange();D.setStart(M.node,M.offset),q.removeAllRanges(),fe>He?(q.addRange(D),q.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),q.addRange(D))}}}}for(X=[],q=v;q=q.parentNode;)q.nodeType===1&&X.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<X.length;v++){var K=X[v];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}vu=!!nc,lc=nc=null}finally{Re=s,I.p=i,O.T=l}}e.current=t,ct=2}}function Um(){if(ct===2){ct=0;var e=fl,t=ja,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var i=I.p;I.p=2;var s=Re;Re|=4;try{dm(e,t.alternate,t)}finally{Re=s,I.p=i,O.T=l}}ct=3}}function Hm(){if(ct===4||ct===3){ct=0,as();var e=fl,t=ja,l=Qn,i=Nm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,ja=fl=null,qm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(cl=null),ss(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=O.T,s=I.p,I.p=2,O.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{O.T=t,I.p=s}}(Qn&3)!==0&&su(),bn(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===Qo?zi++:(zi=0,Qo=e):zi=0,ki(0)}}function qm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function su(){return Bm(),Um(),Hm(),Ym()}function Ym(){if(ct!==5)return!1;var e=fl,t=Yo;Yo=0;var l=ss(Qn),i=O.T,s=I.p;try{I.p=32>l?32:l,O.T=null,l=Vo,Vo=null;var f=fl,y=Qn;if(ct=0,ja=fl=null,Qn=0,(Re&6)!==0)throw Error(u(331));var v=Re;if(Re|=4,wm(f.current),bm(f,f.current,y,l),Re=v,ki(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(wt,f)}catch{}return!0}finally{I.p=s,O.T=i,qm(e,t)}}function Vm(e,t,l){t=Wt(l,t),t=So(e.stateNode,t,2),e=al(e,t,2),e!==null&&(Ja(e,2),bn(e))}function De(e,t,l){if(e.tag===3)Vm(e,e,l);else for(;t!==null;){if(t.tag===3){Vm(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(cl===null||!cl.has(i))){e=Wt(l,e),l=Qh(2),i=al(t,l,2),i!==null&&(Kh(l,i,t,e),Ja(i,2),bn(i));break}}t=t.return}}function Xo(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new Qb;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)||(Uo=!0,s.add(l),e=$b.bind(null,e,t,l),t.then(e,e))}function $b(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()-nu?(Re&2)===0&&Na(e,0):Ho|=l,Ea===Te&&(Ea=0)),bn(e)}function Qm(e,t){t===0&&(t=Bf()),e=Al(e,t),e!==null&&(Ja(e,t),bn(e))}function Fb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qm(e,l)}function Jb(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),Qm(e,l)}function Ib(e,t){return Zl(e,t)}var ou=null,Ca=null,Zo=!1,cu=!1,$o=!1,hl=0;function bn(e){e!==Ca&&e.next===null&&(Ca===null?ou=Ca=e:Ca=Ca.next=e),cu=!0,Zo||(Zo=!0,Wb())}function ki(e,t){if(!$o&&cu){$o=!0;do for(var l=!1,i=ou;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,Zm(i,f))}else f=Te,f=mr(i,i===Ye?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||Fa(i,f)||(l=!0,Zm(i,f));i=i.next}while(l);$o=!1}}function Pb(){Km()}function Km(){cu=Zo=!1;var e=0;hl!==0&&ov()&&(e=hl);for(var t=St(),l=null,i=ou;i!==null;){var s=i.next,f=Gm(i,t);f===0?(i.next=null,l===null?ou=s:l.next=s,s===null&&(Ca=l)):(l=i,(e!==0||(f&3)!==0)&&(cu=!0)),i=s}ct!==0&&ct!==5||ki(e),hl!==0&&(hl=0)}function Gm(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]=Nx(v,t)):N<=t&&(e.expiredLanes|=v),f&=~v}if(t=Ye,l=Te,l=mr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Oe===2||Oe===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),ss(l)){case 2:case 8:l=W;break;case 32:l=he;break;case 268435456:l=Me;break;default:l=he}return i=Xm.bind(null,e),l=Zl(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&$a(i),e.callbackPriority=2,e.callbackNode=null,2}function Xm(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(su()&&e.callbackNode!==l)return null;var i=Te;return i=mr(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Cm(e,i,t),Gm(e,St()),e.callbackNode!=null&&e.callbackNode===l?Xm.bind(null,e):null)}function Zm(e,t){if(su())return null;Cm(e,t,!0)}function Wb(){fv(function(){(Re&6)!==0?Zl(Q,Pb):Km()})}function Fo(){if(hl===0){var e=da;e===0&&(e=fr,fr<<=1,(fr&261888)===0&&(fr=256)),hl=e}return hl}function $m(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xr(""+e)}function Fm(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 ev(e,t,l,i,s){if(t==="submit"&&l&&l.stateNode===s){var f=$m((s[Tt]||null).action),y=i.submitter;y&&(t=(t=y[Tt]||null)?$m(t.formAction):y.getAttribute("formAction"),t!==null&&(f=t,y=null));var v=new wr("action","action",null,i,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(hl!==0){var N=y?Fm(s,y):new FormData(s);po(l,{pending:!0,data:N,method:s.method,action:f},null,N)}}else typeof f=="function"&&(v.preventDefault(),N=y?Fm(s,y):new FormData(s),po(l,{pending:!0,data:N,method:s.method,action:f},f,N))},currentTarget:s}]})}}for(var Jo=0;Jo<Rs.length;Jo++){var Io=Rs[Jo],tv=Io.toLowerCase(),nv=Io[0].toUpperCase()+Io.slice(1);fn(tv,"on"+nv)}fn(Td,"onAnimationEnd"),fn(Cd,"onAnimationIteration"),fn(Ad,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(xb,"onTransitionRun"),fn(bb,"onTransitionStart"),fn(vb,"onTransitionCancel"),fn(zd,"onTransitionEnd"),Pl("onMouseEnter",["mouseout","mouseover"]),Pl("onMouseLeave",["mouseout","mouseover"]),Pl("onPointerEnter",["pointerout","pointerover"]),Pl("onPointerLeave",["pointerout","pointerover"]),jl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jl("onBeforeInput",["compositionend","keypress","textInput","paste"]),jl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jl("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(" "),lv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ri));function Jm(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){Nr(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){Nr(Y)}s.currentTarget=null,f=N}}}}function je(e,t){var l=t[os];l===void 0&&(l=t[os]=new Set);var i=e+"__bubble";l.has(i)||(Im(t,e,2,!1),l.add(i))}function Po(e,t,l){var i=0;t&&(i|=4),Im(l,e,i,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Wo(e){if(!e[fu]){e[fu]=!0,Kf.forEach(function(l){l!=="selectionchange"&&(lv.has(l)||Po(l,!1,e),Po(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Po("selectionchange",!1,t))}}function Im(e,t,l,i){switch(Tp(t)){case 2:var s=Rv;break;case 8:s=_v;break;default:s=mc}l=s.bind(null,t,l,e),s=void 0,!xs||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 ec(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=Fl(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}nd(function(){var L=f,Y=gs(l),X=[];e:{var B=kd.get(e);if(B!==void 0){var q=wr,ae=e;switch(e){case"keypress":if(vr(l)===0)break e;case"keydown":case"keyup":q=Jx;break;case"focusin":ae="focus",q=ws;break;case"focusout":ae="blur",q=ws;break;case"beforeblur":case"afterblur":q=ws;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":q=id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Ux;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Wx;break;case Td:case Cd:case Ad:q=Yx;break;case zd:q=tb;break;case"scroll":case"scrollend":q=Lx;break;case"wheel":q=lb;break;case"copy":case"cut":case"paste":q=Qx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=ud;break;case"toggle":case"beforetoggle":q=ib}var fe=(t&4)!==0,He=!fe&&(e==="scroll"||e==="scrollend"),M=fe?B!==null?B+"Capture":null:B;fe=[];for(var A=L,D;A!==null;){var K=A;if(D=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||D===null||M===null||(K=Wa(A,M),K!=null&&fe.push(_i(A,K,D))),He)break;A=A.return}0<fe.length&&(B=new q(B,ae,null,l,Y),X.push({event:B,listeners:fe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",B&&l!==ps&&(ae=l.relatedTarget||l.fromElement)&&(Fl(ae)||ae[$l]))break e;if((q||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,q?(ae=l.relatedTarget||l.toElement,q=L,ae=ae?Fl(ae):null,ae!==null&&(He=c(ae),fe=ae.tag,ae!==He||fe!==5&&fe!==27&&fe!==6)&&(ae=null)):(q=null,ae=L),q!==ae)){if(fe=id,K="onMouseLeave",M="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(fe=ud,K="onPointerLeave",M="onPointerEnter",A="pointer"),He=q==null?B:Pa(q),D=ae==null?B:Pa(ae),B=new fe(K,A+"leave",q,l,Y),B.target=He,B.relatedTarget=D,K=null,Fl(Y)===L&&(fe=new fe(M,A+"enter",ae,l,Y),fe.target=D,fe.relatedTarget=He,K=fe),He=K,q&&ae)t:{for(fe=av,M=q,A=ae,D=0,K=M;K;K=fe(K))D++;K=0;for(var ce=A;ce;ce=fe(ce))K++;for(;0<D-K;)M=fe(M),D--;for(;0<K-D;)A=fe(A),K--;for(;D--;){if(M===A||A!==null&&M===A.alternate){fe=M;break t}M=fe(M),A=fe(A)}fe=null}else fe=null;q!==null&&Pm(X,B,q,fe,!1),ae!==null&&He!==null&&Pm(X,He,ae,fe,!0)}}e:{if(B=L?Pa(L):window,q=B.nodeName&&B.nodeName.toLowerCase(),q==="select"||q==="input"&&B.type==="file")var ze=pd;else if(hd(B))if(gd)ze=pb;else{ze=hb;var re=db}else q=B.nodeName,!q||q.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?L&&ms(L.elementType)&&(ze=pd):ze=mb;if(ze&&(ze=ze(e,L))){md(X,ze,l,Y);break e}re&&re(e,B,L),e==="focusout"&&L&&B.type==="number"&&L.memoizedProps.value!=null&&hs(B,"number",B.value)}switch(re=L?Pa(L):window,e){case"focusin":(hd(re)||re.contentEditable==="true")&&(aa=re,As=L,ui=null);break;case"focusout":ui=As=aa=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,jd(X,l,Y);break;case"selectionchange":if(yb)break;case"keydown":case"keyup":jd(X,l,Y)}var be;if(js)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 la?fd(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(sd&&l.locale!=="ko"&&(la||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&la&&(be=ld()):(In=Y,bs="value"in In?In.value:In.textContent,la=!0)),re=du(L,Ce),0<re.length&&(Ce=new rd(Ce,e,null,l,Y),X.push({event:Ce,listeners:re}),be?Ce.data=be:(be=dd(l),be!==null&&(Ce.data=be)))),(be=ub?sb(e,l):ob(e,l))&&(Ce=du(L,"onBeforeInput"),0<Ce.length&&(re=new rd("onBeforeInput","beforeinput",null,l,Y),X.push({event:re,listeners:Ce}),re.data=be)),ev(X,e,L,l,Y)}Jm(X,t)})}function _i(e,t,l){return{instance:e,listener:t,currentTarget:l}}function du(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 av(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pm(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 iv=/\r\n?/g,rv=/\u0000|\uFFFD/g;function Wm(e){return(typeof e=="string"?e:""+e).replace(iv,`
49
+ `).replace(rv,"")}function ep(e,t){return t=Wm(t),Wm(e)===t}function Ue(e,t,l,i,s,f){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ea(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ea(e,""+i);break;case"className":gr(e,"class",i);break;case"tabIndex":gr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":gr(e,l,i);break;case"style":ed(e,i,f);break;case"data":if(t!=="object"){gr(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=xr(""+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=xr(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=An);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=xr(""+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),pr(e,"popover",i);break;case"xlinkActuate":Cn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Cn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Cn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Cn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Cn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Cn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":pr(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=Ox.get(l)||l,pr(e,l,i))}}function tc(e,t,l,i,s,f){switch(l){case"style":ed(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"?ea(e,i):(typeof i=="number"||typeof i=="bigint")&&ea(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=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gf.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,""):pr(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)}}Jf(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?Wl(e,!!i,t,!1):l!=null&&Wl(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)}Pf(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(ms(t)){for(Y in l)l.hasOwnProperty(Y)&&(i=l[Y],i!==void 0&&tc(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 uv(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(q in l){var X=l[q];if(l.hasOwnProperty(q)&&X!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":N=X;default:i.hasOwnProperty(q)||Ue(e,t,q,null,i,X)}}for(var B in i){var q=i[B];if(X=l[B],i.hasOwnProperty(B)&&(q!=null||X!=null))switch(B){case"type":f=q;break;case"name":s=q;break;case"checked":L=q;break;case"defaultChecked":Y=q;break;case"value":y=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==X&&Ue(e,t,B,q,i,X)}}ds(e,y,v,N,L,Y,f,s);return;case"select":q=y=v=B=null;for(f in l)if(N=l[f],l.hasOwnProperty(f)&&N!=null)switch(f){case"value":break;case"multiple":q=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=q,B!=null?Wl(e,!!l,B,!1):!!i!=!!l&&(t!=null?Wl(e,!!l,t,!0):Wl(e,!!l,l?[]:"",!1));return;case"textarea":q=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":q=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)}If(e,B,q);return;case"option":for(var ae in l)if(B=l[ae],l.hasOwnProperty(ae)&&B!=null&&!i.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ue(e,t,ae,null,i,B)}for(N in i)if(B=i[N],q=l[N],i.hasOwnProperty(N)&&B!==q&&(B!=null||q!=null))switch(N){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ue(e,t,N,B,i,q)}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],q=l[L],i.hasOwnProperty(L)&&B!==q&&(B!=null||q!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Ue(e,t,L,B,i,q)}return;default:if(ms(t)){for(var He in l)B=l[He],l.hasOwnProperty(He)&&B!==void 0&&!i.hasOwnProperty(He)&&tc(e,t,He,void 0,i,B);for(Y in i)B=i[Y],q=l[Y],!i.hasOwnProperty(Y)||B===q||B===void 0&&q===void 0||tc(e,t,Y,B,i,q);return}}for(var M in l)B=l[M],l.hasOwnProperty(M)&&B!=null&&!i.hasOwnProperty(M)&&Ue(e,t,M,null,i,B);for(X in i)B=i[X],q=l[X],!i.hasOwnProperty(X)||B===q||B==null&&q==null||Ue(e,t,X,B,i,q)}function tp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sv(){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&&tp(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,X=N.initiatorType;Y&&tp(X)&&(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 nc=null,lc=null;function hu(e){return e.nodeType===9?e:e.ownerDocument}function np(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lp(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 ac(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 ic=null;function ov(){var e=window.event;return e&&e.type==="popstate"?e===ic?!1:(ic=e,!0):(ic=null,!1)}var ap=typeof setTimeout=="function"?setTimeout:void 0,cv=typeof clearTimeout=="function"?clearTimeout:void 0,ip=typeof Promise=="function"?Promise:void 0,fv=typeof queueMicrotask=="function"?queueMicrotask:typeof ip<"u"?function(e){return ip.resolve(null).then(e).catch(dv)}:ap;function dv(e){setTimeout(function(){throw e})}function ml(e){return e==="head"}function rp(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),Ra(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Mi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Mi(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"&&Mi(e.ownerDocument.body);l=s}while(l);Ra(t)}function up(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 rc(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":rc(l),cs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function hv(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 mv(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 sp(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 uc(e){return e.data==="$?"||e.data==="$~"}function sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pv(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 oc=null;function op(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 cp(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 fp(e,t,l){switch(t=hu(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 Mi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);cs(e)}var rn=new Map,dp=new Set;function mu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=I.d;I.d={f:gv,r:yv,D:xv,C:bv,L:vv,m:Sv,X:Ev,S:wv,M:jv};function gv(){var e=Kn.f(),t=iu();return e||t}function yv(e){var t=Jl(e);t!==null&&t.tag===5&&t.type==="form"?zh(t):Kn.r(e)}var Aa=typeof document>"u"?null:document;function hp(e,t,l){var i=Aa;if(i&&typeof t=="string"&&t){var s=It(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),dp.has(s)||(dp.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 xv(e){Kn.D(e),hp("dns-prefetch",e,null)}function bv(e,t){Kn.C(e,t),hp("preconnect",e,t)}function vv(e,t,l){Kn.L(e,t,l);var i=Aa;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=za(e);break;case"script":f=ka(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(Oi(f))||t==="script"&&i.querySelector(Di(f))||(t=i.createElement("link"),yt(t,"link",e),ft(t),i.head.appendChild(t)))}}function Sv(e,t){Kn.m(e,t);var l=Aa;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=ka(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 wv(e,t,l){Kn.S(e,t,l);var i=Aa;if(i&&e){var s=Il(i).hoistableStyles,f=za(e);t=t||"default";var y=s.get(f);if(!y){var v={loading:0,preload:null};if(y=i.querySelector(Oi(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=rn.get(f))&&cc(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,pu(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:v},s.set(f,y)}}}function Ev(e,t){Kn.X(e,t);var l=Aa;if(l&&e){var i=Il(l).hoistableScripts,s=ka(e),f=i.get(s);f||(f=l.querySelector(Di(s)),f||(e=b({src:e,async:!0},t),(t=rn.get(s))&&fc(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 jv(e,t){Kn.M(e,t);var l=Aa;if(l&&e){var i=Il(l).hoistableScripts,s=ka(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))&&fc(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 mp(e,t,l,i){var s=(s=oe.current)?mu(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=za(l.href),l=Il(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=za(l.href);var f=Il(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(Oi(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||Nv(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=ka(l),l=Il(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 za(e){return'href="'+It(e)+'"'}function Oi(e){return'link[rel="stylesheet"]['+e+"]"}function pp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Nv(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 ka(e){return'[src="'+It(e)+'"]'}function Di(e){return"script[async]"+e}function gp(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),pu(i,l.precedence,e),t.instance=i;case"stylesheet":s=za(l.href);var f=e.querySelector(Oi(s));if(f)return t.state.loading|=4,t.instance=f,ft(f),f;i=pp(l),(s=rn.get(s))&&cc(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,pu(f,l.precedence,e),t.instance=f;case"script":return f=ka(l.src),(s=e.querySelector(Di(f)))?(t.instance=s,ft(s),s):(i=l,(s=rn.get(f))&&(i=b({},l),fc(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,pu(i,l.precedence,e));return t.instance}function pu(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 cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var gu=null;function yp(e,t,l){if(gu===null){var i=new Map,s=gu=new Map;s.set(l,i)}else s=gu,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 xp(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Tv(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 bp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cv(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=za(i.href),f=t.querySelector(Oi(s));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,ft(f);return}f=t.ownerDocument||t,i=pp(i),(s=rn.get(s))&&cc(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=yu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var dc=0;function Av(e,t){return e.stylesheets&&e.count===0&&bu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&bu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&dc===0&&(dc=62500*sv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>dc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xu=null;function bu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xu=new Map,t.forEach(zv,e),xu=null,yu.call(e))}function zv(e,t){if(!(t.state.loading&4)){var l=xu.get(e);if(l)var i=l.get(null);else{l=new Map,xu.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=yu.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:z,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function kv(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=rs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.hiddenUpdates=rs(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 vp(e,t,l,i,s,f,y,v,N,L,Y,X){return e=new kv(e,t,l,y,N,L,Y,X,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},$s(f),e}function Sp(e){return e?(e=ua,e):ua}function wp(e,t,l,i,s,f){s=Sp(s),i.context===null?i.context=s:i.pendingContext=s,i=ll(t),i.payload={element:l},f=f===void 0?null:f,f!==null&&(i.callback=f),l=al(e,i,t),l!==null&&(_t(l,e,t),mi(l,e,t))}function Ep(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function hc(e,t){Ep(e,t),(e=e.alternate)&&Ep(e,t)}function jp(e){if(e.tag===13||e.tag===31){var t=Al(e,67108864);t!==null&&_t(t,e,67108864),hc(e,67108864)}}function Np(e){if(e.tag===13||e.tag===31){var t=Qt();t=us(t);var l=Al(e,t);l!==null&&_t(l,e,t),hc(e,t)}}var vu=!0;function Rv(e,t,l,i){var s=O.T;O.T=null;var f=I.p;try{I.p=2,mc(e,t,l,i)}finally{I.p=f,O.T=s}}function _v(e,t,l,i){var s=O.T;O.T=null;var f=I.p;try{I.p=8,mc(e,t,l,i)}finally{I.p=f,O.T=s}}function mc(e,t,l,i){if(vu){var s=pc(i);if(s===null)ec(e,t,i,Su,l),Cp(e,i);else if(Ov(s,e,t,l,i))i.stopPropagation();else if(Cp(e,i),t&4&&-1<Mv.indexOf(e)){for(;s!==null;){var f=Jl(s);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=El(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&&(lu=St()+500,ki(0))}}break;case 31:case 13:v=Al(f,2),v!==null&&_t(v,f,2),iu(),hc(f,2)}if(f=pc(i),f===null&&ec(e,t,i,Su,l),f===s)break;s=f}s!==null&&i.stopPropagation()}else ec(e,t,i,null,l)}}function pc(e){return e=gs(e),gc(e)}var Su=null;function gc(e){if(Su=null,e=Fl(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=p(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 Su=e,null}function Tp(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(is()){case Q:return 2;case W:return 8;case he:case we:return 32;case Me:return 268435456;default:return 32}default:return 32}}var yc=!1,pl=null,gl=null,yl=null,Bi=new Map,Ui=new Map,xl=[],Mv="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 Cp(e,t){switch(e){case"focusin":case"focusout":pl=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":yl=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=Jl(t),t!==null&&jp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Ov(e,t,l,i,s){switch(t){case"focusin":return pl=Hi(pl,e,t,l,i,s),!0;case"dragenter":return gl=Hi(gl,e,t,l,i,s),!0;case"mouseover":return yl=Hi(yl,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 Ap(e){var t=Fl(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,Vf(e.priority,function(){Np(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Vf(e.priority,function(){Np(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 wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=pc(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);ps=i,l.target.dispatchEvent(i),ps=null}else return t=Jl(l),t!==null&&jp(t),e.blockedOn=l,!1;t.shift()}return!0}function zp(e,t,l){wu(e)&&l.delete(t)}function Dv(){yc=!1,pl!==null&&wu(pl)&&(pl=null),gl!==null&&wu(gl)&&(gl=null),yl!==null&&wu(yl)&&(yl=null),Bi.forEach(zp),Ui.forEach(zp)}function Eu(e,t){e.blockedOn===t&&(e.blockedOn=null,yc||(yc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Dv)))}var ju=null;function kp(e){ju!==e&&(ju=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ju===e&&(ju=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(gc(i||l)===null)continue;break}var f=Jl(l);f!==null&&(e.splice(t,3),t-=3,po(f,{pending:!0,data:s,method:l.method,action:i},i,s))}}))}function Ra(e){function t(N){return Eu(N,e)}pl!==null&&Eu(pl,e),gl!==null&&Eu(gl,e),yl!==null&&Eu(yl,e),Bi.forEach(t),Ui.forEach(t);for(var l=0;l<xl.length;l++){var i=xl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<xl.length&&(l=xl[0],l.blockedOn===null);)Ap(l),l.blockedOn===null&&xl.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||kp(l);else if(y){var v=null;if(f&&f.hasAttribute("formAction")){if(s=f,y=f[Tt]||null)v=y.formAction;else if(gc(s)!==null)continue}else v=y.action;typeof v=="function"?l[i+1]=v:(l.splice(i,3),i-=3),kp(l)}}}function Rp(){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 xc(e){this._internalRoot=e}Nu.prototype.render=xc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Qt();wp(l,i,e,t,null,null)},Nu.prototype.unmount=xc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wp(e.current,2,null,e,null,null),iu(),t[$l]=null}};function Nu(e){this._internalRoot=e}Nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<xl.length&&t!==0&&t<xl[l].priority;l++);xl.splice(l,0,e),l===0&&Ap(e)}};var _p=a.version;if(_p!=="19.2.6")throw Error(u(527,_p,"19.2.6"));I.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=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Lv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{wt=Tu.inject(Lv),ot=Tu}catch{}}return Yi.createRoot=function(e,t){if(!o(e))throw Error(u(299));var l=!1,i="",s=Hh,f=qh,y=Yh;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=vp(e,1,!1,null,null,l,i,null,s,f,y,Rp),e[$l]=t.current,Wo(e),new xc(t)},Yi.hydrateRoot=function(e,t,l){if(!o(e))throw Error(u(299));var i=!1,s="",f=Hh,y=qh,v=Yh,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=vp(e,1,!0,t,l??null,i,s,N,f,y,v,Rp),t.context=Sp(null),l=t.current,i=Qt(),i=us(i),s=ll(i),s.callback=null,al(l,s,i),l=i,t.current.lanes=l,Ja(t,l),bn(t),e[$l]=t.current,Wo(e),new Nu(t)},Yi.version="19.2.6",Yi}var Vp;function Xv(){if(Vp)return Sc.exports;Vp=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(),Sc.exports=Gv(),Sc.exports}var Fg=Xv();/**
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 Qp="popstate";function Kp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Zv(n={}){function a(u,o){var m;let c=(m=o.state)==null?void 0:m.masked,{pathname:d,search:p,hash:g}=c||u.location;return Lu("",{pathname:d,search:p,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:Ua(o)}return Jg(a,r,null,n)}function $v(n={}){function a(o,c){let{pathname:d="/",search:p="",hash:g=""}=Vl(o.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Lu("",{pathname:d,search:p,hash:g},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(o,c){let d=o.document.querySelector("base"),p="";if(d&&d.getAttribute("href")){let g=o.location.href,m=g.indexOf("#");p=m===-1?g:g.slice(0,m)}return p+"#"+(typeof c=="string"?c:Ua(c))}function u(o,c){Xt(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return Jg(a,r,u,n)}function Ie(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 Fv(){return Math.random().toString(36).substring(2,10)}function Gp(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 Lu(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||Fv(),mask:o}}function Ua({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 Jg(n,a,r,u={}){let{window:o=document.defaultView,v5Compat:c=!1}=u,d=o.history,p="POP",g=null,m=x();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function x(){return(d.state||{idx:null}).idx}function b(){p="POP";let H=x(),k=H==null?null:H-m;m=H,g&&g({action:p,location:_.location,delta:k})}function w(H,k){p="PUSH";let Z=Kp(H)?H:Lu(_.location,H,k);r&&r(Z,H),m=x()+1;let z=Gp(Z,m),J=_.createHref(Z.mask||Z);try{d.pushState(z,"",J)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;o.location.assign(J)}c&&g&&g({action:p,location:_.location,delta:1})}function S(H,k){p="REPLACE";let Z=Kp(H)?H:Lu(_.location,H,k);r&&r(Z,H),m=x();let z=Gp(Z,m),J=_.createHref(Z.mask||Z);d.replaceState(z,"",J),c&&g&&g({action:p,location:_.location,delta:0})}function R(H){return Jv(o,H)}let _={get action(){return p},get location(){return n(o,d)},listen(H){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(Qp,b),g=H,()=>{o.removeEventListener(Qp,b),g=null}},createHref(H){return a(o,H)},createURL:R,encodeLocation(H){let k=R(H);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:w,replace:S,go(H){return d.go(H)}};return _}function Jv(n,a,r=!1){let u="http://localhost";n&&(u=n.location.origin!=="null"?n.location.origin:n.location.href),Ie(u,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:Ua(a);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=u+o),new URL(o,u)}function Ig(n,a,r="/"){return Iv(n,a,r,!1)}function Iv(n,a,r,u,o){let c=typeof a=="string"?Vl(a):a,d=Gn(c.pathname||"/",r);if(d==null)return null;let p=Pv(n),g=null,m=c0(d);for(let x=0;g==null&&x<p.length;++x)g=s0(p[x],m,u);return g}function Pv(n){let a=Pg(n);return Wv(a),a}function Pg(n,a=[],r=[],u="",o=!1){let c=(d,p,g=o,m)=>{let x={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(u)&&g)return;Ie(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&&(Ie(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Pg(d.children,a,w,b,g)),!(d.path==null&&!d.index)&&a.push({path:b,score:r0(b,d.index),routesMeta:w})};return n.forEach((d,p)=>{var g;if(d.path===""||!((g=d.path)!=null&&g.includes("?")))c(d,p);else for(let m of Wg(d.path))c(d,p,!0,m)}),a}function Wg(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=Wg(u.join("/")),p=[];return p.push(...d.map(g=>g===""?c:[c,g].join("/"))),o&&p.push(...d),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function Wv(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:u0(a.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var e0=/^:[\w-]+$/,t0=3,n0=2,l0=1,a0=10,i0=-2,Xp=n=>n==="*";function r0(n,a){let r=n.split("/"),u=r.length;return r.some(Xp)&&(u+=i0),a&&(u+=n0),r.filter(o=>!Xp(o)).reduce((o,c)=>o+(e0.test(c)?t0:c===""?l0:a0),u)}function u0(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 s0(n,a,r=!1){let{routesMeta:u}=n,o={},c="/",d=[];for(let p=0;p<u.length;++p){let g=u[p],m=p===u.length-1,x=c==="/"?a:a.slice(c.length)||"/",b=Bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},x),w=g.route;if(!b&&m&&r&&!u[u.length-1].route.index&&(b=Bu({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:m0(pn([c,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(c=pn([c,b.pathnameBase]))}return d}function Bu(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,u]=o0(n.path,n.caseSensitive,n.end),o=a.match(r);if(!o)return null;let c=o[0],d=c.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:u.reduce((m,{paramName:x,isOptional:b},w)=>{if(x==="*"){let R=p[w]||"";d=c.slice(0,c.length-R.length).replace(/(.)\/+$/,"$1")}const S=p[w];return b&&!S?m[x]=void 0:m[x]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:n}}function o0(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,p,g,m,x)=>{if(u.push({paramName:p,isOptional:g!=null}),g){let b=x.charAt(m+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 c0(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 f0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function d0(n,a="/"){let{pathname:r,search:u="",hash:o=""}=typeof n=="string"?Vl(n):n,c;return r?(r=ey(r),r.startsWith("/")?c=Zp(r.substring(1),"/"):c=Zp(r,a)):c=a,{pathname:c,search:p0(u),hash:g0(o)}}function Zp(n,a){let r=Uu(a).split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Nc(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 h0(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function cf(n){let a=h0(n);return a.map((r,u)=>u===a.length-1?r.pathname:r.pathnameBase)}function Vu(n,a,r,u=!1){let o;typeof n=="string"?o=Vl(n):(o={...n},Ie(!o.pathname||!o.pathname.includes("?"),Nc("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),Nc("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),Nc("#","search","hash",o)));let c=n===""||o.pathname==="",d=c?"/":o.pathname,p;if(d==null)p=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("/")}p=b>=0?a[b]:"/"}let g=d0(o,p),m=d&&d!=="/"&&d.endsWith("/"),x=(c||d===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(m||x)&&(g.pathname+="/"),g}var ey=n=>n.replace(/\/\/+/g,"/"),pn=n=>ey(n.join("/")),Uu=n=>n.replace(/\/+$/,""),m0=n=>Uu(n).replace(/^\/*/,"/"),p0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,g0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,y0=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 x0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function b0(n){let a=n.map(r=>r.route.path).filter(Boolean);return pn(a)||"/"}var ty=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ny(n,a){let r=n;if(typeof r!="string"||!f0.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,o=!1;if(ty)try{let c=new URL(window.location.href),d=r.startsWith("//")?new URL(c.protocol+r):new URL(r),p=Gn(d.pathname,a);d.origin===c.origin&&p!=null?r=p+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 ly=["POST","PUT","PATCH","DELETE"];new Set(ly);var v0=["GET",...ly];new Set(v0);var Va=T.createContext(null);Va.displayName="DataRouter";var Qu=T.createContext(null);Qu.displayName="DataRouterState";var ay=T.createContext(!1);function S0(){return T.useContext(ay)}var iy=T.createContext({isTransitioning:!1});iy.displayName="ViewTransition";var w0=T.createContext(new Map);w0.displayName="Fetchers";var E0=T.createContext(null);E0.displayName="Await";var Zt=T.createContext(null);Zt.displayName="Navigation";var lr=T.createContext(null);lr.displayName="Location";var on=T.createContext({outlet:null,matches:[],isDataRoute:!1});on.displayName="Route";var ff=T.createContext(null);ff.displayName="RouteError";var ry="REACT_ROUTER_ERROR",j0="REDIRECT",N0="ROUTE_ERROR_RESPONSE";function T0(n){if(n.startsWith(`${ry}:${j0}:{`))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 C0(n){if(n.startsWith(`${ry}:${N0}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new y0(a.status,a.statusText,a.data)}catch{}}function A0(n,{relative:a}={}){Ie(Qa(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=T.useContext(Zt),{hash:o,pathname:c,search:d}=ar(n,{relative:a}),p=c;return r!=="/"&&(p=c==="/"?r:pn([r,c])),u.createHref({pathname:p,search:d,hash:o})}function Qa(){return T.useContext(lr)!=null}function $t(){return Ie(Qa(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(lr).location}var uy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sy(n){T.useContext(Zt).static||T.useLayoutEffect(n)}function Ku(){let{isDataRoute:n}=T.useContext(on);return n?Q0():z0()}function z0(){Ie(Qa(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext(Va),{basename:a,navigator:r}=T.useContext(Zt),{matches:u}=T.useContext(on),{pathname:o}=$t(),c=JSON.stringify(cf(u)),d=T.useRef(!1);return sy(()=>{d.current=!0}),T.useCallback((g,m={})=>{if(Xt(d.current,uy),!d.current)return;if(typeof g=="number"){r.go(g);return}let x=Vu(g,JSON.parse(c),o,m.relative==="path");n==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:pn([a,x.pathname])),(m.replace?r.replace:r.push)(x,m.state,m)},[a,r,c,o,n])}var oy=T.createContext(null);function k0(){return T.useContext(oy)}function R0(n){let a=T.useContext(on).outlet;return T.useMemo(()=>a&&T.createElement(oy.Provider,{value:n},a),[a,n])}function Gu(){let{matches:n}=T.useContext(on),a=n[n.length-1];return(a==null?void 0:a.params)??{}}function ar(n,{relative:a}={}){let{matches:r}=T.useContext(on),{pathname:u}=$t(),o=JSON.stringify(cf(r));return T.useMemo(()=>Vu(n,JSON.parse(o),u,a==="path"),[n,o,u,a])}function _0(n,a){return cy(n,a)}function cy(n,a,r){var H;Ie(Qa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=T.useContext(Zt),{matches:o}=T.useContext(on),c=o[o.length-1],d=c?c.params:{},p=c?c.pathname:"/",g=c?c.pathnameBase:"/",m=c&&c.route;{let k=m&&m.path||"";dy(p,!m||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (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;Ie(g==="/"||((H=k.pathname)==null?void 0:H.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 R=r&&r.state.matches.length?r.state.matches.map(k=>Object.assign(k,{route:r.manifest[k.route.id]||k.route})):Ig(n,{pathname:S});Xt(m||R!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Xt(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.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 _=B0(R&&R.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&&_?T.createElement(lr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...b},navigationType:"POP"}},_):_}function M0(){let n=V0(),a=x0(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=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:c},"ErrorBoundary")," or"," ",T.createElement("code",{style:c},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},a),r?T.createElement("pre",{style:o},r):null,d)}var O0=T.createElement(M0,null),fy=class extends T.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=C0(n.digest);r&&(n=r)}let a=n!==void 0?T.createElement(on.Provider,{value:this.props.routeContext},T.createElement(ff.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(D0,{error:n},a):a}};fy.contextType=ay;var Tc=new WeakMap;function D0({children:n,error:a}){let{basename:r}=T.useContext(Zt);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let u=T0(a.digest);if(u){let o=Tc.get(a);if(o)throw o;let c=ny(u.location,r);if(ty&&!Tc.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 Tc.set(a,d),d}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function L0({routeContext:n,match:a,children:r}){let u=T.useContext(Va);return u&&u.static&&u.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=a.route.id),T.createElement(on.Provider,{value:n},r)}function B0(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);Ie(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,p=-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)&&(p=x),b.route.id){let{loaderData:w,errors:S}=u,R=b.route.loader&&!w.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||R){r.isStatic&&(d=!0),p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}}let g=r==null?void 0:r.onError,m=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:b0(u.matches),errorInfo:b})}:void 0;return o.reduceRight((x,b,w)=>{let S,R=!1,_=null,H=null;u&&(S=c&&b.route.id?c[b.route.id]:void 0,_=b.route.errorElement||O0,d&&(p<0&&w===0?(dy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,H=null):p===w&&(R=!0,H=b.route.hydrateFallbackElement||null)));let k=a.concat(o.slice(0,w+1)),Z=()=>{let z;return S?z=_:R?z=H:b.route.Component?z=T.createElement(b.route.Component,null):b.route.element?z=b.route.element:z=x,T.createElement(L0,{match:b,routeContext:{outlet:x,matches:k,isDataRoute:u!=null},children:z})};return u&&(b.route.ErrorBoundary||b.route.errorElement||w===0)?T.createElement(fy,{location:u.location,revalidation:u.revalidation,component:_,error:S,children:Z(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:m}):Z()},null)}function df(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function U0(n){let a=T.useContext(Va);return Ie(a,df(n)),a}function H0(n){let a=T.useContext(Qu);return Ie(a,df(n)),a}function q0(n){let a=T.useContext(on);return Ie(a,df(n)),a}function hf(n){let a=q0(n),r=a.matches[a.matches.length-1];return Ie(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Y0(){return hf("useRouteId")}function V0(){var u;let n=T.useContext(ff),a=H0("useRouteError"),r=hf("useRouteError");return n!==void 0?n:(u=a.errors)==null?void 0:u[r]}function Q0(){let{router:n}=U0("useNavigate"),a=hf("useNavigate"),r=T.useRef(!1);return sy(()=>{r.current=!0}),T.useCallback(async(o,c={})=>{Xt(r.current,uy),r.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:a,...c}))},[n,a])}var $p={};function dy(n,a,r){!a&&!$p[n]&&($p[n]=!0,Xt(!1,r))}T.memo(K0);function K0({routes:n,manifest:a,future:r,state:u,isStatic:o,onError:c}){return cy(n,void 0,{manifest:a,state:u,isStatic:o,onError:c})}function Xn({to:n,replace:a,state:r,relative:u}){Ie(Qa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=T.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}=T.useContext(on),{pathname:d}=$t(),p=Ku(),g=Vu(n,cf(c),d,u==="path"),m=JSON.stringify(g);return T.useEffect(()=>{p(JSON.parse(m),{replace:a,state:r,relative:u})},[p,m,u,a,r]),null}function G0(n){return R0(n.context)}function Je(n){Ie(!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 hy({basename:n="/",children:a=null,location:r,navigationType:u="POP",navigator:o,static:c=!1,useTransitions:d}){Ie(!Qa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),g=T.useMemo(()=>({basename:p,navigator:o,static:c,useTransitions:d,future:{}}),[p,o,c,d]);typeof r=="string"&&(r=Vl(r));let{pathname:m="/",search:x="",hash:b="",state:w=null,key:S="default",mask:R}=r,_=T.useMemo(()=>{let H=Gn(m,p);return H==null?null:{location:{pathname:H,search:x,hash:b,state:w,key:S,mask:R},navigationType:u}},[p,m,x,b,w,S,u,R]);return Xt(_!=null,`<Router basename="${p}"> is not able to match the URL "${m}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:T.createElement(Zt.Provider,{value:g},T.createElement(lr.Provider,{children:a,value:_}))}function X0({children:n,location:a}){return _0(Gc(n),a)}function Gc(n,a=[]){let r=[];return T.Children.forEach(n,(u,o)=>{if(!T.isValidElement(u))return;let c=[...a,o];if(u.type===T.Fragment){r.push.apply(r,Gc(u.props.children,c));return}Ie(u.type===Je,`[${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>`),Ie(!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=Gc(u.props.children,c)),r.push(d)}),r}var Mu="get",Ou="application/x-www-form-urlencoded";function Xu(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Z0(n){return Xu(n)&&n.tagName.toLowerCase()==="button"}function $0(n){return Xu(n)&&n.tagName.toLowerCase()==="form"}function F0(n){return Xu(n)&&n.tagName.toLowerCase()==="input"}function J0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function I0(n,a){return n.button===0&&(!a||a==="_self")&&!J0(n)}function Xc(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 P0(n,a){let r=Xc(n);return a&&a.forEach((u,o)=>{r.has(o)||a.getAll(o).forEach(c=>{r.append(o,c)})}),r}var Cu=null;function W0(){if(Cu===null)try{new FormData(document.createElement("form"),0),Cu=!1}catch{Cu=!0}return Cu}var e1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Cc(n){return n!=null&&!e1.has(n)?(Xt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ou}"`),null):n}function t1(n,a){let r,u,o,c,d;if($0(n)){let p=n.getAttribute("action");u=p?Gn(p,a):null,r=n.getAttribute("method")||Mu,o=Cc(n.getAttribute("enctype"))||Ou,c=new FormData(n)}else if(Z0(n)||F0(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(u=g?Gn(g,a):null,r=n.getAttribute("formmethod")||p.getAttribute("method")||Mu,o=Cc(n.getAttribute("formenctype"))||Cc(p.getAttribute("enctype"))||Ou,c=new FormData(p,n),!W0()){let{name:m,type:x,value:b}=n;if(x==="image"){let w=m?`${m}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else m&&c.append(m,b)}}else{if(Xu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Mu,u=null,o=Ou,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 mf(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function my(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=`${Uu(a)}/_root.${u}`:o.pathname=`${Uu(o.pathname)}.${u}`,o}async function n1(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 l1(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 a1(n,a,r){let u=await Promise.all(n.map(async o=>{let c=a.routes[o.route.id];if(c){let d=await n1(c,r);return d.links?d.links():[]}return[]}));return s1(u.flat(1).filter(l1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Fp(n,a,r,u,o,c){let d=(g,m)=>r[m]?g.route.id!==r[m].route.id:!0,p=(g,m)=>{var x;return r[m].pathname!==g.pathname||((x=r[m].route.path)==null?void 0:x.endsWith("*"))&&r[m].params["*"]!==g.params["*"]};return c==="assets"?a.filter((g,m)=>d(g,m)||p(g,m)):c==="data"?a.filter((g,m)=>{var b;let x=u.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(d(g,m)||p(g,m))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 i1(n,a,{includeHydrateFallback:r}={}){return r1(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 r1(n){return[...new Set(n)]}function u1(n){let a={},r=Object.keys(n).sort();for(let u of r)a[u]=n[u];return a}function s1(n,a){let r=new Set;return new Set(a),n.reduce((u,o)=>{let c=JSON.stringify(u1(o));return r.has(c)||(r.add(c),u.push({key:c,link:o})),u},[])}function pf(){let n=T.useContext(Va);return mf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function o1(){let n=T.useContext(Qu);return mf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var gf=T.createContext(void 0);gf.displayName="FrameworkContext";function yf(){let n=T.useContext(gf);return mf(n,"You must render this element inside a <HydratedRouter> element"),n}function c1(n,a){let r=T.useContext(gf),[u,o]=T.useState(!1),[c,d]=T.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:x,onTouchStart:b}=a,w=T.useRef(null);T.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let _=k=>{k.forEach(Z=>{d(Z.isIntersecting)})},H=new IntersectionObserver(_,{threshold:.5});return w.current&&H.observe(w.current),()=>{H.disconnect()}}},[n]),T.useEffect(()=>{if(u){let _=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(_)}}},[u]);let S=()=>{o(!0)},R=()=>{o(!1),d(!1)};return r?n!=="intent"?[c,w,{}]:[c,w,{onFocus:Vi(p,S),onBlur:Vi(g,R),onMouseEnter:Vi(m,S),onMouseLeave:Vi(x,R),onTouchStart:Vi(b,S)}]:[!1,w,{}]}function Vi(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function f1({page:n,...a}){let r=S0(),{router:u}=pf(),o=T.useMemo(()=>Ig(u.routes,n,u.basename),[u.routes,n,u.basename]);return o?r?T.createElement(h1,{page:n,matches:o,...a}):T.createElement(m1,{page:n,matches:o,...a}):null}function d1(n){let{manifest:a,routeModules:r}=yf(),[u,o]=T.useState([]);return T.useEffect(()=>{let c=!1;return a1(n,a,r).then(d=>{c||o(d)}),()=>{c=!0}},[n,a,r]),u}function h1({page:n,matches:a,...r}){let u=$t(),{future:o}=yf(),{basename:c}=pf(),d=T.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let p=my(n,c,o.v8_trailingSlashAwareDataRequests,"rsc"),g=!1,m=[];for(let x of a)typeof x.route.shouldRevalidate=="function"?g=!0:m.push(x.route.id);return g&&m.length>0&&p.searchParams.set("_routes",m.join(",")),[p.pathname+p.search]},[c,o.v8_trailingSlashAwareDataRequests,n,u,a]);return T.createElement(T.Fragment,null,d.map(p=>T.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})))}function m1({page:n,matches:a,...r}){let u=$t(),{future:o,manifest:c,routeModules:d}=yf(),{basename:p}=pf(),{loaderData:g,matches:m}=o1(),x=T.useMemo(()=>Fp(n,a,m,c,u,"data"),[n,a,m,c,u]),b=T.useMemo(()=>Fp(n,a,m,c,u,"assets"),[n,a,m,c,u]),w=T.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let _=new Set,H=!1;if(a.forEach(Z=>{var J;let z=c.routes[Z.route.id];!z||!z.hasLoader||(!x.some(F=>F.route.id===Z.route.id)&&Z.route.id in g&&((J=d[Z.route.id])!=null&&J.shouldRevalidate)||z.hasClientLoader?H=!0:_.add(Z.route.id))}),_.size===0)return[];let k=my(n,p,o.v8_trailingSlashAwareDataRequests,"data");return H&&_.size>0&&k.searchParams.set("_routes",a.filter(Z=>_.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[k.pathname+k.search]},[p,o.v8_trailingSlashAwareDataRequests,g,u,c,x,a,n,d]),S=T.useMemo(()=>i1(b,c),[b,c]),R=d1(b);return T.createElement(T.Fragment,null,w.map(_=>T.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...r})),S.map(_=>T.createElement("link",{key:_,rel:"modulepreload",href:_,...r})),R.map(({key:_,link:H})=>T.createElement("link",{key:_,nonce:r.nonce,...H,crossOrigin:H.crossOrigin??r.crossOrigin})))}function p1(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var g1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g1&&(window.__reactRouterVersion="7.16.0")}catch{}function y1({basename:n,children:a,useTransitions:r,window:u}){let o=T.useRef();o.current==null&&(o.current=Zv({window:u,v5Compat:!0}));let c=o.current,[d,p]=T.useState({action:c.action,location:c.location}),g=T.useCallback(m=>{r===!1?p(m):T.startTransition(()=>p(m))},[r]);return T.useLayoutEffect(()=>c.listen(g),[c,g]),T.createElement(hy,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,useTransitions:r})}function x1({basename:n,children:a,useTransitions:r,window:u}){let o=T.useRef();o.current==null&&(o.current=$v({window:u,v5Compat:!0}));let c=o.current,[d,p]=T.useState({action:c.action,location:c.location}),g=T.useCallback(m=>{r===!1?p(m):T.startTransition(()=>p(m))},[r]);return T.useLayoutEffect(()=>c.listen(g),[c,g]),T.createElement(hy,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,useTransitions:r})}var py=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ze=T.forwardRef(function({onClick:a,discover:r="render",prefetch:u="none",relative:o,reloadDocument:c,replace:d,mask:p,state:g,target:m,to:x,preventScrollReset:b,viewTransition:w,defaultShouldRevalidate:S,...R},_){let{basename:H,navigator:k,useTransitions:Z}=T.useContext(Zt),z=typeof x=="string"&&py.test(x),J=ny(x,H);x=J.to;let F=A0(x,{relative:o}),U=$t(),$=null;if(p){let G=Vu(p,[],U.mask?U.mask.pathname:"/",!0);H!=="/"&&(G.pathname=G.pathname==="/"?H:pn([H,G.pathname])),$=k.createHref(G)}let[ue,se,me]=c1(u,R),ne=S1(x,{replace:d,mask:p,state:g,target:m,preventScrollReset:b,relative:o,viewTransition:w,defaultShouldRevalidate:S,useTransitions:Z});function ee(G){a&&a(G),G.defaultPrevented||ne(G)}let Se=!(J.isExternal||c),ie=T.createElement("a",{...R,...me,href:(Se?$:void 0)||J.absoluteURL||F,onClick:Se?ee:a,ref:p1(_,se),target:m,"data-discover":!z&&r==="render"?"true":void 0});return ue&&!z?T.createElement(T.Fragment,null,ie,T.createElement(f1,{page:F})):ie});Ze.displayName="Link";var Ji=T.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:u="",end:o=!1,style:c,to:d,viewTransition:p,children:g,...m},x){let b=ar(d,{relative:m.relative}),w=$t(),S=T.useContext(Qu),{navigator:R,basename:_}=T.useContext(Zt),H=S!=null&&T1(b)&&p===!0,k=R.encodeLocation?R.encodeLocation(b).pathname:b.pathname,Z=w.pathname,z=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(Z=Z.toLowerCase(),z=z?z.toLowerCase():null,k=k.toLowerCase()),z&&_&&(z=Gn(z,_)||z);const J=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let F=Z===k||!o&&Z.startsWith(k)&&Z.charAt(J)==="/",U=z!=null&&(z===k||!o&&z.startsWith(k)&&z.charAt(k.length)==="/"),$={isActive:F,isPending:U,isTransitioning:H},ue=F?a:void 0,se;typeof u=="function"?se=u($):se=[u,F?"active":null,U?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let me=typeof c=="function"?c($):c;return T.createElement(Ze,{...m,"aria-current":ue,className:se,ref:x,style:me,to:d,viewTransition:p},typeof g=="function"?g($):g)});Ji.displayName="NavLink";var b1=T.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:u,replace:o,state:c,method:d=Mu,action:p,onSubmit:g,relative:m,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:w,...S},R)=>{let{useTransitions:_}=T.useContext(Zt),H=j1(),k=N1(p,{relative:m}),Z=d.toLowerCase()==="get"?"get":"post",z=typeof p=="string"&&py.test(p),J=F=>{if(g&&g(F),F.defaultPrevented)return;F.preventDefault();let U=F.nativeEvent.submitter,$=(U==null?void 0:U.getAttribute("formmethod"))||d,ue=()=>H(U||F.currentTarget,{fetcherKey:a,method:$,navigate:r,replace:o,state:c,relative:m,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:w});_&&r!==!1?T.startTransition(()=>ue()):ue()};return T.createElement("form",{ref:R,method:Z,action:k,onSubmit:u?g:J,...S,"data-discover":!z&&n==="render"?"true":void 0})});b1.displayName="Form";function v1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gy(n){let a=T.useContext(Va);return Ie(a,v1(n)),a}function S1(n,{target:a,replace:r,mask:u,state:o,preventScrollReset:c,relative:d,viewTransition:p,defaultShouldRevalidate:g,useTransitions:m}={}){let x=Ku(),b=$t(),w=ar(n,{relative:d});return T.useCallback(S=>{if(I0(S,a)){S.preventDefault();let R=r!==void 0?r:Ua(b)===Ua(w),_=()=>x(n,{replace:R,mask:u,state:o,preventScrollReset:c,relative:d,viewTransition:p,defaultShouldRevalidate:g});m?T.startTransition(()=>_()):_()}},[b,x,w,r,u,o,a,n,c,d,p,g,m])}function $n(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=T.useRef(Xc(n)),r=T.useRef(!1),u=$t(),o=T.useMemo(()=>P0(u.search,r.current?null:a.current),[u.search]),c=Ku(),d=T.useCallback((p,g)=>{const m=Xc(typeof p=="function"?p(new URLSearchParams(o)):p);r.current=!0,c("?"+m,g)},[c,o]);return[o,d]}var w1=0,E1=()=>`__${String(++w1)}__`;function j1(){let{router:n}=gy("useSubmit"),{basename:a}=T.useContext(Zt),r=Y0(),u=n.fetch,o=n.navigate;return T.useCallback(async(c,d={})=>{let{action:p,method:g,encType:m,formData:x,body:b}=t1(c,a);if(d.navigate===!1){let w=d.fetcherKey||E1();await u(w,r,d.action||p,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||g,formEncType:d.encType||m,flushSync:d.flushSync})}else await o(d.action||p,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||g,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[u,o,a,r])}function N1(n,{relative:a}={}){let{basename:r}=T.useContext(Zt),u=T.useContext(on);Ie(u,"useFormAction must be used inside a RouteContext");let[o]=u.matches.slice(-1),c={...ar(n||".",{relative:a})},d=$t();if(n==null){c.search=d.search;let p=new URLSearchParams(c.search),g=p.getAll("index");if(g.some(x=>x==="")){p.delete("index"),g.filter(b=>b).forEach(b=>p.append("index",b));let x=p.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])),Ua(c)}function T1(n,{relative:a}={}){let r=T.useContext(iy);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=gy("useViewTransitionState"),o=ar(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 Bu(o.pathname,d)!=null||Bu(o.pathname,c)!=null}const yy=["messages","locales","attributes","segments","targets"],Ii={locales:"locale",messages:"message",attributes:"attribute",segments:"segment",targets:"target"},xy={locale:"locales",message:"messages",attribute:"attributes",segment:"segments",target:"targets"},Zn={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)}/${xy[n]}/${jt(a)}`}function Zu(n){return n?`/data/sets/${jt(n)}`:"/data/root"}let by="browser";function Ka(n){const a=n.replace(/^\//,"");return by==="browser"?`/${a}`:a}function C1(n){by=n||"browser"}async function Ha(n){const a=await fetch(n);if(!a.ok)throw new Error(`Unable to load ${n}`);return a.json()}function vy(){return Ha(Ka("data/manifest.json")).catch(()=>Ha("/data/manifest.json"))}function xf(n){return Ha(Ka(`${Zu(n)}/index.json`))}function A1(n,a,r){return Ha(Ka(`${Zu(r)}/entities/${n}/${jt(a)}.json`))}function z1(n,a){const r=Ka(`${n}/page-${a}.json`),u={page:1,pageSize:50,totalPages:1,entries:[]};return fetch(r).then(o=>{if(o.ok){if((o.headers.get("content-type")||"").includes("text/html")){if(a===1)return u;throw new Error(`Unable to load ${r}`)}return o.json()}if(o.status===404&&a===1)return u;throw new Error(`Unable to load ${r}`)})}function k1(n,a){return Ha(Ka(`${Zu(a)}/duplicates/locales/${jt(n)}.json`))}const Ac=new Map;function R1(n){return Array.from(new TextEncoder().encode(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}function _1(n,a){const r=`${a??"__root__"}:${n}`,u=Ac.get(r);return u?Promise.resolve(u):Ha(Ka(`${Zu(a)}/translations/${R1(n)}.json`)).then(o=>(Ac.set(r,o),o)).catch(()=>{const o={};return Ac.set(r,o),o})}const Sy=T.createContext(null);function M1(n){const[a,r]=T.useState(n.initialManifest||null),[u,o]=T.useState(null);return T.useEffect(()=>{n.initialManifest||vy().then(r).catch(c=>o(c.message))},[n.initialManifest]),u?h.jsx("div",{className:"p-8 text-danger",children:u}):a?h.jsx(Sy.Provider,{value:{manifest:a},children:n.children}):h.jsx("div",{className:"p-8 text-muted",children:"Loading catalog..."})}function En(){const n=T.useContext(Sy);if(!n)throw new Error("useCatalog must be used inside CatalogProvider.");return n}const O1="/favicon.png",D1="/logo-text.png",Jp={page:"min-h-screen bg-background text-text",pageShell:"m-8 mx-auto max-w-5xl"};function L1({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 B1(n){const[a,r]=T.useState(null),u=Pi(n.setKey),o="History";return T.useEffect(()=>{r(null),xf(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:[yy.map(c=>{const d=Ii[c];return h.jsxs(Ji,{to:`${u}/${c}`,className:L1,children:[h.jsx("span",{children:Zn[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 Ip(n){return yy.indexOf(n)!==-1}function U1(n,a,r){const u=Ii[a];return(n.entities[u]||[]).some(c=>c.key===r)}async function H1(n,a){const r=jt(a),u=n.match(/^\/sets\/[^/]+\/([^/]+)$/);if(u&&Ip(u[1]))return`/sets/${r}/${u[1]}`;if(n.match(/^\/sets\/[^/]+\/history$/))return`/sets/${r}/history`;const o=n.match(/^\/sets\/[^/]+\/([^/]+)\/([^/]+)(\/.*)?$/);if(o&&Ip(o[1])){const c=o[1],d=decodeURIComponent(o[2]),p=o[3]||"";try{const g=await xf(a);return U1(g,c,d)?`/sets/${r}/${c}/${jt(d)}${p}`:`/sets/${r}/${c}`}catch{return`/sets/${r}/${c}`}}return`/sets/${r}/messages`}function q1(n){const{manifest:a}=En(),r=$t(),u=Ku(),o=T.useId(),c=T.useRef(null),d=n.currentSetKey||a.setKeys[0]||"";if(!a.sets||a.setKeys.length===0)return null;function p(){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||p()},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 m=g.target.value;u(await H1(r.pathname,m))},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 Y1(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 V1(n){return n==="github"||n==="gitlab"||n==="bitbucket"}function Q1(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 K1(n){var d;const{manifest:a}=En(),u=$t().pathname.match(/^\/sets\/([^/]+)/),o=u?decodeURIComponent(u[1]):void 0,c=!a.sets||!!o;return h.jsxs("div",{className:Jp.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:O1,alt:"",width:32,height:32,className:"h-8 w-8 shrink-0 object-contain",decoding:"async"}),h.jsx("img",{src:D1,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(q1,{currentSetKey:o}),((d=a.links)==null?void 0:d.repository)&&V1(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(Y1,{provider:a.links.provider})})]})]})}),h.jsx("main",{className:Jp.pageShell,children:h.jsxs("div",{className:c?"items-start gap-6 md:flex":"",children:[c&&h.jsx(B1,{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 ",Q1(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 G1(){const{manifest:n}=En();if(!n.sets)return h.jsx(Xn,{to:"/messages",replace:!0});const a=n.setKeys[0];return h.jsx(Xn,{to:a?`/sets/${jt(a)}/messages`:"/history",replace:!0})}const X1={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 ${X1[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 $u({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 wy({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 Z1(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $1(n){const a=Array.isArray(n)?n:[n];return Array.from(new Set(a.map(r=>r.trim()).filter(r=>r.length>0))).sort((r,u)=>u.length-r.length)}function Ve(n){const a=$1(n.query);if(a.length===0)return h.jsx(h.Fragment,{children:n.text});const r=new RegExp(a.map(Z1).join("|"),"gi"),u=[];let o=0,c=0;for(const d of n.text.matchAll(r))d.index!==void 0&&d.index>o&&u.push(n.text.slice(o,d.index)),d.index!==void 0&&(u.push(h.jsx(Ey,{children:d[0]},`hm-${d.index}-${c++}`)),o=d.index+d[0].length);return o<n.text.length&&u.push(n.text.slice(o)),h.jsx(h.Fragment,{children:u})}function Ey(n){return 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:n.children})}function F1(n,a){const r=n.toLowerCase(),u=[];for(const o of a){const c=o.trim().toLowerCase();if(!c)continue;let d=r.indexOf(c);for(;d!==-1;)u.push({start:d,end:d+c.length}),d=r.indexOf(c,d+c.length)}return u.sort((o,c)=>o.start-c.start||c.end-o.end).reduce((o,c)=>{const d=o[o.length-1];return!d||c.start>d.end?o.push({...c}):d.end=Math.max(d.end,c.end),o},[])}function Au(n){return n.split(".").flatMap((a,r,u)=>{const o=[a];return r<u.length-1&&o.push(h.jsxs(T.Fragment,{children:[".",h.jsx("wbr",{})]},`dot-${r}`)),o})}function J1(n,a){const r=F1(n,a);if(r.length===0)return Au(n);const u=[];let o=0;return r.forEach((c,d)=>{c.start>o&&u.push(h.jsx(T.Fragment,{children:Au(n.slice(o,c.start))},`text-${o}`)),u.push(h.jsx(Ey,{children:Au(n.slice(c.start,c.end))},`highlight-${c.start}-${d}`)),o=c.end}),o<n.length&&u.push(h.jsx(T.Fragment,{children:Au(n.slice(o))},`text-${o}`)),u}function Sl(n){const a=n.highlightQuery||[];return h.jsx("span",{className:["inline leading-snug [overflow-wrap:anywhere]",n.className||""].join(" "),children:J1(n.value,a)})}const Pp=1e3,zc=10;function I1(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 Wi(n){const a=[],r=[];for(const u of I1(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}}const P1=450;function W1(n,a,r,u){var g;const{freeText:o,qualifiers:c}=a;if(o.length>0){const m=n.key.toLowerCase();if(!o.every(x=>m.includes(x)))return!1}const d=c.some(m=>m.key==="has"&&m.value==="overrides"),p=c.filter(m=>m.key==="locale").map(m=>m.value.toLowerCase());for(const m of c)switch(m.key){case"description":{if(!(n.description||"").toLowerCase().includes(m.value.toLowerCase()))return!1;break}case"target":{if(!(n.targets||[]).map(b=>b.toLowerCase()).includes(m.value.toLowerCase()))return!1;break}case"is":{if(m.value==="deprecated"&&!n.deprecated||m.value==="archived"&&!n.archived)return!1;break}case"has":{if(m.value==="overrides"){if(p.length>0){const x=(n.overrideLocales||[]).map(b=>b.toLowerCase());if(!p.every(b=>x.includes(b)))return!1}else if(!((g=n.overrideLocales)!=null&&g.length))return!1}break}case"locale":{if(!d&&!(n.locales||[]).map(b=>b.toLowerCase()).includes(m.value.toLowerCase()))return!1;break}case"translation":{if(!u)break;if(m.value.length<3||!r)return!0;const x=r[n.key];if(!x||x.length===0)return!1;if(m.value.length===3)break;const b=m.value.toLowerCase();if(!x.some(w=>w.includes(b)))return!1;break}}return!0}function jy(n,a,r,u){const o=a,c=r;return n==="message"?[...u?['translation:"keyword"']:[],...o?[`target:${o}`]:[],...c?[`locale:${c}`]:[],'description:"keyword"',"has:overrides",...c?[`has:overrides locale:${c}`]:["has:overrides"],"is:deprecated","is:archived"]:null}function eS({type:n,query:a,firstTargetKey:r,firstLocaleKey:u,translationSearchEnabled:o,onHintClick:c}){const d=jy(n,r,u,o);return d?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:"}),d.map(p=>{const g=a.trim().split(/\s+/).some(m=>m.toLowerCase()===p.toLowerCase());return h.jsx("button",{type:"button",onClick:()=>c(p),className:["cursor-pointer rounded px-1.5 py-0.5 font-mono transition-colors",g?"bg-primary/10 text-primary":"bg-elevated text-muted hover:text-text"].join(" "),children:p},p)})]}):null}function tS(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 nS(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:h.jsx(Ve,{text:n.entity.lastModified.author,query:n.highlightQuery})})," ","on ",h.jsx(Ve,{text:r,query:n.highlightQuery})]})}function lS(n,a){return n==="target"?[`${a.messageCount||0} ${a.messageCount===1?"message":"messages"}`]:a.targets||[]}function kc(n){return Array.from(new Set(n.map(a=>a.trim()).filter(Boolean)))}function aS(n){const a=Wi(n),r=kc(a.freeText),u=kc(a.qualifiers.filter(c=>c.key==="description").map(c=>c.value)),o=kc(a.qualifiers.filter(c=>c.key==="target"||c.key==="locale").map(c=>c.value));return{key:r,description:u,relationship:o,lastModified:r}}function iS(n){return!n||n==="name"||n==="name:asc"||n==="asc"?"asc":n==="-name"||n==="name:desc"||n==="desc"?"desc":"asc"}function Rc(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}const rS=T.memo(function({type:a,query:r,firstTargetKey:u,firstLocaleKey:o,translationSearchEnabled:c,onQueryCommit:d,onHintClick:p}){const[g,m]=T.useState(r),[x,b]=T.useState(!1),w=T.useRef(null),S=T.useRef(null),R=T.useRef(null),_=T.useRef(null),H=jy(a,u,o,c)!==null,k=T.useCallback(()=>{w.current&&(clearTimeout(w.current),w.current=null),S.current!==null&&"cancelIdleCallback"in window&&(window.cancelIdleCallback(S.current),S.current=null),R.current!==null&&(window.cancelAnimationFrame(R.current),R.current=null),_.current&&(clearTimeout(_.current),_.current=null)},[]),Z=T.useCallback(F=>{if("requestIdleCallback"in window){S.current=window.requestIdleCallback(()=>{S.current=null,d(F)},{timeout:700});return}R.current=window.requestAnimationFrame(()=>{R.current=null,_.current=setTimeout(()=>{_.current=null,d(F)},0)})},[d]),z=T.useCallback(F=>{k(),w.current=setTimeout(()=>{w.current=null,Z(F)},P1)},[k,Z]),J=T.useCallback(F=>{k(),d(F)},[k,d]);return T.useEffect(()=>{k(),m(r)},[r,k]),T.useEffect(()=>()=>{k()},[k]),h.jsxs("div",{children:[h.jsxs("div",{className:"relative",children:[h.jsx($u,{value:g,onChange:F=>{const U=F.target.value;m(U),z(U)},onBlur:F=>{J(F.target.value)},onKeyDown:F=>{F.key==="Enter"&&J(F.currentTarget.value)},placeholder:`Search ${Zn[a].plural.toLowerCase()}...`,className:H?"pr-10":""}),H&&h.jsx("button",{type:"button",onClick:()=>b(F=>!F),"aria-label":x?"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",x?"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",x?"grid-rows-[1fr]":"grid-rows-[0fr]"].join(" "),children:h.jsx("div",{className:"overflow-hidden pl-5",children:h.jsx(eS,{type:a,query:r,firstTargetKey:u,firstLocaleKey:o,translationSearchEnabled:c,onHintClick:p})})})]})});function uS(n){var se,me,ne,ee,Se,ie;const[a,r]=$n(),[u,o]=T.useState(!1),[c,d]=T.useState(null),[p,g]=T.useState(null),m=T.useRef(null),x=a.get("q")||"",b=T.useRef(a);T.useEffect(()=>{b.current=a},[a]);const w=T.useCallback(G=>{const O=G.trim()?G:void 0;(b.current.get("q")||"")!==(O||"")&&T.startTransition(()=>{r(Rc(b.current,"q",O))})},[r]);T.useEffect(()=>()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]);const S=(ne=(me=(se=n.allEntities)==null?void 0:se.target)==null?void 0:me.find(G=>!G.archived))==null?void 0:ne.key,R=(ie=(Se=(ee=n.allEntities)==null?void 0:ee.locale)==null?void 0:Se.find(G=>!G.archived))==null?void 0:ie.key,_=n.translationSearchEnabled===!0,H=Wi(x).qualifiers.find(G=>G.key==="translation"),k=_&&H&&H.value.length>=3?H.value.slice(0,3).toLowerCase():null;T.useEffect(()=>{if(m.current&&clearTimeout(m.current),!k){d(null),g(null);return}if(k!==p)return m.current=setTimeout(()=>{m.current=null,_1(k,n.setKey).then(G=>{d(G),g(k)})},300),()=>{m.current&&(clearTimeout(m.current),m.current=null)}},[k,p,n.setKey]);const Z=iS(a.get("sort")),z=p===k?c:null,J=T.useMemo(()=>aS(x),[x]),F=T.useMemo(()=>{const G=Wi(x),O=x.trim().length>0;return n.entities.filter(le=>O?W1(le,G,z,_):!0).slice().sort((le,ye)=>{const j=le.key.localeCompare(le.key===ye.key?"":ye.key);return Z==="desc"?j*-1:j})},[x,n.entities,Z,z,_]),U=u?F:F.slice(0,Pp),$=F.length>Pp&&!u;T.useEffect(()=>{o(!1)},[x,Z,n.type,n.setKey]);function ue(G){const O=x.trim(),I=O.split(/\s+/).filter(Boolean),le=I.findIndex(j=>j.toLowerCase()===G.toLowerCase()),ye=le!==-1?I.filter((j,C)=>C!==le).join(" "):O?`${O} ${G}`:G;r(Rc(b.current,"q",ye||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.jsx(rS,{type:n.type,query:x,firstTargetKey:S,firstLocaleKey:R,translationSearchEnabled:_,onQueryCommit:w,onHintClick:ue}),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(Rc(a,"sort",Z==="desc"?void 0:"-name")),"aria-label":Z==="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:Z==="desc"?"Z-A":"A-Z"})]})]})}),F.length===0&&h.jsx(qa,{title:"No results found"}),h.jsx("div",{className:"divide-y divide-border bg-surface",children:U.map(G=>h.jsx(Ze,{to:et(n.type,G.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(Sl,{value:G.key,className:"text-sm font-semibold text-primary",highlightQuery:J.key}),h.jsx("div",{className:"mt-1 truncate text-sm text-muted",children:h.jsx(Ve,{text:G.description||"No description",query:J.description})})]}),h.jsx("div",{className:"shrink-0",children:tS(G)})]}),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:lS(n.type,G).map(O=>h.jsx(sn,{children:h.jsx(Ve,{text:O,query:J.relationship})},O))}),h.jsx("span",{className:"shrink-0 md:text-right",children:h.jsx(nS,{entity:G,highlightQuery:J.lastModified})})]})]})})},G.key))}),h.jsxs("div",{className:"space-y-4 px-6 pb-6",children:[h.jsxs("p",{className:"text-center text-sm text-muted",children:[U.length," of ",F.length," ",Zn[n.type].plural.toLowerCase(),F.length!==n.entities.length?` (${n.entities.length} total)`:""]}),$&&h.jsx("div",{className:"flex justify-center",children:h.jsxs(wy,{onClick:()=>o(!0),children:["Load all ",F.length," ",Zn[n.type].plural.toLowerCase()]})})]})]})}function bf(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 sS(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function Wp(){var g;const{entityPath:n,setKey:a}=Gu(),{manifest:r}=En(),[u,o]=T.useState(null),[c,d]=T.useState(null);if(T.useEffect(()=>{o(null),d(null),xf(a).then(o).catch(m=>d(m.message))},[a]),!sS(n))return h.jsx(Xn,{to:"locales",replace:!0});const p=Ii[n];return c?h.jsx(qa,{title:"Unable to load catalog index",description:c}):u?h.jsxs("div",{children:[h.jsx(bf,{title:Zn[p].plural}),h.jsx(uS,{type:p,entities:u.entities[p],setKey:a,allEntities:u.entities,translationSearchEnabled:((g=r.features)==null?void 0:g.translationSearch)===!0})]}):h.jsxs("div",{className:"text-muted",children:["Loading ",Zn[p].plural.toLowerCase(),"..."]})}function oS(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 cS(n){var m;const u=(m=new Intl.DateTimeFormat(void 0,{timeZoneName:"short"}).formatToParts(n).find(x=>x.type==="timeZoneName"))==null?void 0:m.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?"+":"-",p=String(Math.floor(Math.abs(c)/60)).padStart(2,"0"),g=String(Math.abs(c)%60).padStart(2,"0");return`UTC${d}${p}:${g}`}function fS(n){var m,x,b,w,S,R;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=(m=r.find(_=>_.type==="month"))==null?void 0:m.value,o=(x=r.find(_=>_.type==="day"))==null?void 0:x.value,c=(b=r.find(_=>_.type==="year"))==null?void 0:b.value,d=(w=r.find(_=>_.type==="hour"))==null?void 0:w.value,p=(S=r.find(_=>_.type==="minute"))==null?void 0:S.value,g=(R=r.find(_=>_.type==="second"))==null?void 0:R.value;return!u||!o||!c||!d||!p||!g?n:`${u} ${oS(Number(o))}, ${c} at ${d}:${p}:${g} ${cS(a)}`}function dS(n){var c;const[a,r]=T.useState(!1),u=n.entry.entities.length>zc,o=a?n.entry.entities:n.entry.entities.slice(0,zc);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:fS(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"?Zn[d.type].singular:"Test"," ",d.type!=="test"?h.jsx(Ze,{className:"font-medium text-primary hover:underline",to:et(d.type,d.key,d.set||n.setKey),children:h.jsx(Sl,{value:d.key,className:"font-medium"})}):h.jsx(Sl,{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-zc} more)`})]},`${n.entry.commit}-${n.entry.timestamp}`)}function Ny(n){const[a,r]=T.useState([]),[u,o]=T.useState(0),[c,d]=T.useState(1),[p,g]=T.useState(null);async function m(x){try{const b=await z1(n.path,x);r(w=>[...w,...b.entries]),o(b.page),d(b.totalPages)}catch(b){g(b.message)}}return T.useEffect(()=>{r([]),o(0),d(1),g(null),m(1)},[n.path]),p?h.jsx(qa,{title:"History unavailable",description:p}):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(dS,{entry:x,setKey:n.setKey,commitUrl:n.commitUrl},`${x.commit}-${x.timestamp}`))}),u<c&&h.jsx(wy,{onClick:()=>m(u+1),className:"w-full",children:"Load more"})]})}function eg(){var u;const{manifest:n}=En(),{setKey:a}=Gu(),r=a?`/data/sets/${jt(a)}/history`:"/data/project/history";return h.jsxs("div",{children:[h.jsx(bf,{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(Ny,{path:r,setKey:a,commitUrl:(u=n.links)==null?void 0:u.commit})})]})}function hS(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 ir(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 mS={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 er(n){const a=mS[n.tone||"neutral"],r=n.to?h.jsx(Ze,{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 pS(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 Zc(n){return typeof n>"u"?"":n===null?"null":Array.isArray(n)?n.map(a=>Zc(a)).join(", "):typeof n=="object"?JSON.stringify(n):String(n)}function gS(n){return n.split(".")[0]}function yS(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(Ze,{to:et("attribute",gS(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:Zc(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:Zc(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 Ty(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(Ty,{condition:o,setKey:n.setKey},`${r}-${c}`))})]})}return h.jsx(yS,{condition:a,setKey:n.setKey})}function vf(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(Ty,{condition:r,setKey:n.setKey},u))})}function xS(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(Ze,{to:et("segment",n.segmentKey,n.setKey),className:"font-semibold text-primary hover:underline",children:h.jsx(Sl,{value:n.segmentKey,className:"font-semibold"})})]})})}function Cy(n){if(typeof n.segment=="string")return h.jsx(xS,{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(Cy,{segment:u,setKey:n.setKey},`${a}-${o}`))})]})}function Ay(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(Cy,{segment:r,setKey:n.setKey},u))})}function bS(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const vS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wS={};function tg(n,a){return(wS.jsx?SS:vS).test(n)}const ES=/[ \t\n\f\r]/g;function jS(n){return typeof n=="object"?n.type==="text"?ng(n.value):!1:ng(n)}function ng(n){return n.replace(ES,"")===""}class rr{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}rr.prototype.normal={};rr.prototype.property={};rr.prototype.space=void 0;function zy(n,a){const r={},u={};for(const o of n)Object.assign(r,o.property),Object.assign(u,o.normal);return new rr(r,u,a)}function $c(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 NS=0;const ve=Ql(),ut=Ql(),Fc=Ql(),P=Ql(),Qe=Ql(),Da=Ql(),Kt=Ql();function Ql(){return 2**++NS}const Jc=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:ut,commaOrSpaceSeparated:Kt,commaSeparated:Da,number:P,overloadedBoolean:Fc,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),_c=Object.keys(Jc);class Sf extends Dt{constructor(a,r,u,o){let c=-1;if(super(a,r),lg(this,"space",o),typeof u=="number")for(;++c<_c.length;){const d=_c[c];lg(this,_c[c],(u&Jc[d])===Jc[d])}}}Sf.prototype.defined=!0;function lg(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 Sf(u,n.transform(n.attributes||{},u),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,r[$c(u)]=u,r[$c(c.attribute)]=u}return new rr(a,r,n.space)}const ky=Ga({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:P,ariaColIndex:P,ariaColSpan:P,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Qe,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:P,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:P,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Qe,ariaRowCount:P,ariaRowIndex:P,ariaRowSpan:P,ariaSelected:ut,ariaSetSize:P,ariaSort:null,ariaValueMax:P,ariaValueMin:P,ariaValueNow:P,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Ry(n,a){return a in n?n[a]:a}function _y(n,a){return Ry(n,a.toLowerCase())}const TS=Ga({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Da,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Qe,autoFocus:ve,autoPlay:ve,blocking:Qe,capture:null,charSet:null,checked:ve,cite:null,className:Qe,cols:P,colSpan:null,content:null,contentEditable:ut,controls:ve,controlsList:Qe,coords:P|Da,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Fc,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Qe,height:P,hidden:Fc,high:P,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:ve,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:P,manifest:null,max:null,maxLength:P,media:null,method:null,min:null,minLength:P,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:P,pattern:null,ping:Qe,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Qe,required:ve,reversed:ve,rows:P,rowSpan:P,sandbox:Qe,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:P,sizes:null,slot:null,span:P,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:P,step:null,style:null,tabIndex:P,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:ut,width:P,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:P,borderColor:null,bottomMargin:P,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:P,leftMargin:P,link:null,longDesc:null,lowSrc:null,marginHeight:P,marginWidth:P,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:P,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:P,valueType:null,version:null,vAlign:null,vLink:null,vSpace:P,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:P,security:null,unselectable:null},space:"html",transform:_y}),CS=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:Kt,accentHeight:P,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:P,amplitude:P,arabicForm:null,ascent:P,attributeName:null,attributeType:null,azimuth:P,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:P,by:null,calcMode:null,capHeight:P,className:Qe,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:P,diffuseConstant:P,direction:null,display:null,dur:null,divisor:P,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:P,enableBackground:null,end:null,event:null,exponent:P,externalResourcesRequired:null,fill:null,fillOpacity:P,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:Da,g2:Da,glyphName:Da,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:P,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:P,horizOriginX:P,horizOriginY:P,id:null,ideographic:P,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:P,k:P,k1:P,k2:P,k3:P,k4:P,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:P,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:P,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:P,overlineThickness:P,paintOrder:null,panose1:null,path:null,pathLength:P,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:P,pointsAtY:P,pointsAtZ:P,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:P,specularExponent:P,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:P,strikethroughThickness:P,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:P,strokeOpacity:P,strokeWidth:null,style:null,surfaceScale:P,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:P,tableValues:null,target:null,targetX:P,targetY:P,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:P,underlineThickness:P,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:P,values:null,vAlphabetic:P,vMathematical:P,vectorEffect:null,vHanging:P,vIdeographic:P,version:null,vertAdvY:P,vertOriginX:P,vertOriginY:P,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:P,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ry}),My=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()}}),Oy=Ga({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_y}),Dy=Ga({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),AS={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"},zS=/[A-Z]/g,ag=/-[a-z]/g,kS=/^data[-\w.:]+$/i;function RS(n,a){const r=$c(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"&&kS.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(ag,MS);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!ag.test(c)){let d=c.replace(zS,_S);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}o=Sf}return new o(u,a)}function _S(n){return"-"+n.toLowerCase()}function MS(n){return n.charAt(1).toUpperCase()}const OS=zy([ky,TS,My,Oy,Dy],"html"),wf=zy([ky,CS,My,Oy,Dy],"svg");function DS(n){return n.join(" ").trim()}var _a={},Mc,ig;function LS(){if(ig)return Mc;ig=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,p=/^\s+|\s+$/g,g=`
61
+ `,m="/",x="*",b="",w="comment",S="declaration";function R(H,k){if(typeof H!="string")throw new TypeError("First argument must be a string");if(!H)return[];k=k||{};var Z=1,z=1;function J(ie){var G=ie.match(a);G&&(Z+=G.length);var O=ie.lastIndexOf(g);z=~O?ie.length-O:z+ie.length}function F(){var ie={line:Z,column:z};return function(G){return G.position=new U(ie),se(),G}}function U(ie){this.start=ie,this.end={line:Z,column:z},this.source=k.source}U.prototype.content=H;function $(ie){var G=new Error(k.source+":"+Z+":"+z+": "+ie);if(G.reason=ie,G.filename=k.source,G.line=Z,G.column=z,G.source=H,!k.silent)throw G}function ue(ie){var G=ie.exec(H);if(G){var O=G[0];return J(O),H=H.slice(O.length),G}}function se(){ue(r)}function me(ie){var G;for(ie=ie||[];G=ne();)G!==!1&&ie.push(G);return ie}function ne(){var ie=F();if(!(m!=H.charAt(0)||x!=H.charAt(1))){for(var G=2;b!=H.charAt(G)&&(x!=H.charAt(G)||m!=H.charAt(G+1));)++G;if(G+=2,b===H.charAt(G-1))return $("End of comment missing");var O=H.slice(2,G-2);return z+=2,J(O),H=H.slice(G),z+=2,ie({type:w,comment:O})}}function ee(){var ie=F(),G=ue(u);if(G){if(ne(),!ue(o))return $("property missing ':'");var O=ue(c),I=ie({type:S,property:_(G[0].replace(n,b)),value:O?_(O[0].replace(n,b)):b});return ue(d),I}}function Se(){var ie=[];me(ie);for(var G;G=ee();)G!==!1&&(ie.push(G),me(ie));return ie}return se(),Se()}function _(H){return H?H.replace(p,b):b}return Mc=R,Mc}var rg;function BS(){if(rg)return _a;rg=1;var n=_a&&_a.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=r;const a=n(LS());function r(u,o){let c=null;if(!u||typeof u!="string")return c;const d=(0,a.default)(u),p=typeof o=="function";return d.forEach(g=>{if(g.type!=="declaration")return;const{property:m,value:x}=g;p?o(m,x,g):x&&(c=c||{},c[m]=x)}),c}return _a}var Qi={},ug;function US(){if(ug)return Qi;ug=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(m){return!m||r.test(m)||n.test(m)},d=function(m,x){return x.toUpperCase()},p=function(m,x){return"".concat(x,"-")},g=function(m,x){return x===void 0&&(x={}),c(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(o,p):m=m.replace(u,p),m.replace(a,d))};return Qi.camelCase=g,Qi}var Ki,sg;function HS(){if(sg)return Ki;sg=1;var n=Ki&&Ki.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},a=n(BS()),r=US();function u(o,c){var d={};return!o||typeof o!="string"||(0,a.default)(o,function(p,g){p&&g&&(d[(0,r.camelCase)(p,c)]=g)}),d}return u.default=u,Ki=u,Ki}var qS=HS();const YS=$g(qS),Ly=By("end"),Ef=By("start");function By(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 VS(n){const a=Ef(n),r=Ly(n);if(a&&r)return{start:a,end:r}}function Zi(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?og(n.position):"start"in n||"end"in n?og(n):"line"in n||"column"in n?Ic(n):""}function Ic(n){return cg(n&&n.line)+":"+cg(n&&n.column)}function og(n){return Ic(n&&n.start)+"-"+Ic(n&&n.end)}function cg(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 p=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=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=p?p.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 jf={}.hasOwnProperty,QS=new Map,KS=/[A-Z]/g,GS=new Set(["table","tbody","thead","tfoot","tr"]),XS=new Set(["td","th"]),Uy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ZS(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=tw(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=ew(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"?wf:OS,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=Hy(o,n,void 0);return c&&typeof c!="string"?c:o.create(n,o.Fragment,{children:c||void 0},void 0)}function Hy(n,a,r){if(a.type==="element")return $S(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return FS(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return IS(n,a,r);if(a.type==="mdxjsEsm")return JS(n,a);if(a.type==="root")return PS(n,a,r);if(a.type==="text")return WS(n,a)}function $S(n,a,r){const u=n.schema;let o=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=wf,n.schema=o),n.ancestors.push(a);const c=Yy(n,a.tagName,!1),d=nw(n,a);let p=Tf(n,a);return GS.has(a.tagName)&&(p=p.filter(function(g){return typeof g=="string"?!jS(g):!0})),qy(n,d,c,a),Nf(d,p),n.ancestors.pop(),n.schema=u,n.create(a,c,d,r)}function FS(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)}tr(n,a.position)}function JS(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);tr(n,a.position)}function IS(n,a,r){const u=n.schema;let o=u;a.name==="svg"&&u.space==="html"&&(o=wf,n.schema=o),n.ancestors.push(a);const c=a.name===null?n.Fragment:Yy(n,a.name,!0),d=lw(n,a),p=Tf(n,a);return qy(n,d,c,a),Nf(d,p),n.ancestors.pop(),n.schema=u,n.create(a,c,d,r)}function PS(n,a,r){const u={};return Nf(u,Tf(n,a)),n.create(a,n.Fragment,u,r)}function WS(n,a){return a.value}function qy(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function Nf(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function ew(n,a,r){return u;function u(o,c,d,p){const m=Array.isArray(d.children)?r:a;return p?m(c,d,p):m(c,d)}}function tw(n,a){return r;function r(u,o,c,d){const p=Array.isArray(c.children),g=Ef(u);return a(o,c,d,p,{columnNumber:g?g.column-1:void 0,fileName:n,lineNumber:g?g.line:void 0},void 0)}}function nw(n,a){const r={};let u,o;for(o in a.properties)if(o!=="children"&&jf.call(a.properties,o)){const c=aw(n,o,a.properties[o]);if(c){const[d,p]=c;n.tableCellAlignToStyle&&d==="align"&&typeof p=="string"&&XS.has(a.tagName)?u=p:r[d]=p}}if(u){const c=r.style||(r.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function lw(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 p=d.properties[0];p.type,Object.assign(r,n.evaluater.evaluateExpression(p.argument))}else tr(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 p=u.value.data.estree.body[0];p.type,c=n.evaluater.evaluateExpression(p.expression)}else tr(n,a.position);else c=u.value===null?!0:u.value;r[o]=c}return r}function Tf(n,a){const r=[];let u=-1;const o=n.passKeys?new Map:QS;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 m=o.get(g)||0;d=g+"-"+m,o.set(g,m+1)}}const p=Hy(n,c,d);p!==void 0&&r.push(p)}return r}function aw(n,a,r){const u=RS(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?bS(r):DS(r)),u.property==="style"){let o=typeof r=="object"?r:iw(n,String(r));return n.stylePropertyNameCase==="css"&&(o=rw(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&u.space?AS[u.property]||u.property:u.attribute,r]}}function iw(n,a){try{return YS(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=Uy+"#cannot-parse-style-attribute",o}}function Yy(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 p=tg(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};d=d?{type:"MemberExpression",object:d,property:p,computed:!!(c&&p.type==="Literal"),optional:!1}:p}u=d}else u=tg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const o=u.value;return jf.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(u);tr(n)}function tr(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=Uy+"#cannot-handle-mdx-estrees-without-createevaluater",r}function rw(n){const a={};let r;for(r in n)jf.call(n,r)&&(a[uw(r)]=n[r]);return a}function uw(n){let a=n.replace(KS,sw);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function sw(n){return"-"+n.toLowerCase()}const Oc={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"]},ow={};function cw(n,a){const r=ow,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Vy(n,u,o)}function Vy(n,a,r){if(fw(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 fg(n.children,a,r)}return Array.isArray(n)?fg(n,a,r):""}function fg(n,a,r){const u=[];let o=-1;for(;++o<n.length;)u[o]=Vy(n[o],a,r);return u.join("")}function fw(n){return!!(n&&typeof n=="object")}const dg=document.createElement("i");function Cf(n){const a="&"+n+";";dg.innerHTML=a;const r=dg.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 hg={}.hasOwnProperty;function dw(n){const a={};let r=-1;for(;++r<n.length;)hw(a,n[r]);return a}function hw(n,a){let r;for(r in a){const o=(hg.call(n,r)?n[r]:void 0)||(n[r]={}),c=a[r];let d;if(c)for(d in c){hg.call(o,d)||(o[d]=[]);const p=c[d];mw(o[d],Array.isArray(p)?p:p?[p]:[])}}}function mw(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 Qy(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 La(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sn=wl(/[A-Za-z]/),Gt=wl(/[\dA-Za-z]/),pw=wl(/[#-'*+\--9=?A-Z^-~]/);function Pc(n){return n!==null&&(n<32||n===127)}const Wc=wl(/\d/),gw=wl(/[\dA-Fa-f]/),yw=wl(/[!-/:-@[-`{-~]/);function pe(n){return n!==null&&n<-2}function Ot(n){return n!==null&&(n<0||n===32)}function _e(n){return n===-2||n===-1||n===32}const xw=wl(new RegExp("\\p{P}|\\p{S}","u")),bw=wl(/\s/);function wl(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 p=n.charCodeAt(r+1);c<56320&&p>56319&&p<57344?(d=String.fromCharCode(c,p),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),p(g)):a(g)}function p(g){return _e(g)&&c++<o?(n.consume(g),p):(n.exit(r),a(g))}}const vw={tokenize:Sw};function Sw(n){const a=n.attempt(this.parser.constructs.contentInitial,u,o);let r;return a;function u(p){if(p===null){n.consume(p);return}return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),Ke(n,a,"linePrefix")}function o(p){return n.enter("paragraph"),c(p)}function c(p){const g=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=g),r=g,d(p)}function d(p){if(p===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(p);return}return pe(p)?(n.consume(p),n.exit("chunkText"),c):(n.consume(p),d)}}const ww={tokenize:Ew},mg={tokenize:jw};function Ew(n){const a=this,r=[];let u=0,o,c,d;return p;function p(z){if(u<r.length){const J=r[u];return a.containerState=J[1],n.attempt(J[0].continuation,g,m)(z)}return m(z)}function g(z){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,o&&Z();const J=a.events.length;let F=J,U;for(;F--;)if(a.events[F][0]==="exit"&&a.events[F][1].type==="chunkFlow"){U=a.events[F][1].end;break}k(u);let $=J;for(;$<a.events.length;)a.events[$][1].end={...U},$++;return wn(a.events,F+1,0,a.events.slice(J)),a.events.length=$,m(z)}return p(z)}function m(z){if(u===r.length){if(!o)return w(z);if(o.currentConstruct&&o.currentConstruct.concrete)return R(z);a.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(mg,x,b)(z)}function x(z){return o&&Z(),k(u),w(z)}function b(z){return a.parser.lazy[a.now().line]=u!==r.length,d=a.now().offset,R(z)}function w(z){return a.containerState={},n.attempt(mg,S,R)(z)}function S(z){return u++,r.push([a.currentConstruct,a.containerState]),w(z)}function R(z){if(z===null){o&&Z(),k(0),n.consume(z);return}return o=o||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),_(z)}function _(z){if(z===null){H(n.exit("chunkFlow"),!0),k(0),n.consume(z);return}return pe(z)?(n.consume(z),H(n.exit("chunkFlow")),u=0,a.interrupt=void 0,p):(n.consume(z),_)}function H(z,J){const F=a.sliceStream(z);if(J&&F.push(null),z.previous=c,c&&(c.next=z),c=z,o.defineSkip(z.start),o.write(F),a.parser.lazy[z.start.line]){let U=o.events.length;for(;U--;)if(o.events[U][1].start.offset<d&&(!o.events[U][1].end||o.events[U][1].end.offset>d))return;const $=a.events.length;let ue=$,se,me;for(;ue--;)if(a.events[ue][0]==="exit"&&a.events[ue][1].type==="chunkFlow"){if(se){me=a.events[ue][1].end;break}se=!0}for(k(u),U=$;U<a.events.length;)a.events[U][1].end={...me},U++;wn(a.events,ue+1,0,a.events.slice($)),a.events.length=U}}function k(z){let J=r.length;for(;J-- >z;){const F=r[J];a.containerState=F[1],F[0].exit.call(a,n)}r.length=z}function Z(){o.write([null]),c=void 0,o=void 0,a.containerState._closeFlow=void 0}}function jw(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 pg(n){if(n===null||Ot(n)||bw(n))return 1;if(xw(n))return 2}function Af(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 ef={name:"attention",resolveAll:Nw,tokenize:Tw};function Nw(n,a){let r=-1,u,o,c,d,p,g,m,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};gg(b,-g),gg(w,g),d={type:g>1?"strongSequence":"emphasisSequence",start:b,end:{...n[u][1].end}},p={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:{...p.end}},n[u][1].end={...d.start},n[r][1].start={...p.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=un(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=un(m,[["enter",o,a],["enter",d,a],["exit",d,a],["enter",c,a]]),m=un(m,Af(a.parser.constructs.insideSpan.null,n.slice(u+1,r),a)),m=un(m,[["exit",c,a],["enter",p,a],["exit",p,a],["exit",o,a]]),n[r][1].end.offset-n[r][1].start.offset?(x=2,m=un(m,[["enter",n[r][1],a],["exit",n[r][1],a]])):x=0,wn(n,u-1,r-u+3,m),r=u+m.length-x-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function Tw(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=pg(u);let c;return d;function d(g){return c=g,n.enter("attentionSequence"),p(g)}function p(g){if(g===c)return n.consume(g),p;const m=n.exit("attentionSequence"),x=pg(g),b=!x||x===2&&o||r.includes(g),w=!o||o===2&&x||r.includes(u);return m._open=!!(c===42?b:b&&(o||!w)),m._close=!!(c===42?w:w&&(x||!b)),a(g)}}function gg(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const Cw={name:"autolink",tokenize:Aw};function Aw(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):m(S)}function d(S){return S===43||S===45||S===46||Gt(S)?(u=1,p(S)):m(S)}function p(S){return S===58?(n.consume(S),u=0,g):(S===43||S===45||S===46||Gt(S))&&u++<32?(n.consume(S),p):(u=0,m(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||Pc(S)?r(S):(n.consume(S),g)}function m(S){return S===64?(n.consume(S),x):pw(S)?(n.consume(S),m):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 R=S===45?w:b;return n.consume(S),R}return r(S)}}const Fu={partial:!0,tokenize:zw};function zw(n,a,r){return u;function u(c){return _e(c)?Ke(n,o,"linePrefix")(c):o(c)}function o(c){return c===null||pe(c)?a(c):r(c)}}const Ky={continuation:{tokenize:Rw},exit:_w,name:"blockQuote",tokenize:kw};function kw(n,a,r){const u=this;return o;function o(d){if(d===62){const p=u.containerState;return p.open||(n.enter("blockQuote",{_container:!0}),p.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 Rw(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(Ky,a,r)(d)}}function _w(n){n.exit("blockQuote")}const Gy={name:"characterEscape",tokenize:Mw};function Mw(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 yw(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(c)}}const Xy={name:"characterReference",tokenize:Ow};function Ow(n,a,r){const u=this;let o=0,c,d;return p;function p(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"),m):(n.enter("characterReferenceValue"),c=31,d=Gt,x(b))}function m(b){return b===88||b===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(b),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,d=gw,x):(n.enter("characterReferenceValue"),c=7,d=Wc,x(b))}function x(b){if(b===59&&o){const w=n.exit("characterReferenceValue");return d===Gt&&!Cf(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 yg={partial:!0,tokenize:Lw},xg={concrete:!0,name:"codeFenced",tokenize:Dw};function Dw(n,a,r){const u=this,o={partial:!0,tokenize:F};let c=0,d=0,p;return g;function g(U){return m(U)}function m(U){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,p=U,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(U)}function x(U){return U===p?(d++,n.consume(U),x):d<3?r(U):(n.exit("codeFencedFenceSequence"),_e(U)?Ke(n,b,"whitespace")(U):b(U))}function b(U){return U===null||pe(U)?(n.exit("codeFencedFence"),u.interrupt?a(U):n.check(yg,_,J)(U)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),w(U))}function w(U){return U===null||pe(U)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),b(U)):_e(U)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ke(n,S,"whitespace")(U)):U===96&&U===p?r(U):(n.consume(U),w)}function S(U){return U===null||pe(U)?b(U):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),R(U))}function R(U){return U===null||pe(U)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),b(U)):U===96&&U===p?r(U):(n.consume(U),R)}function _(U){return n.attempt(o,J,H)(U)}function H(U){return n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),k}function k(U){return c>0&&_e(U)?Ke(n,Z,"linePrefix",c+1)(U):Z(U)}function Z(U){return U===null||pe(U)?n.check(yg,_,J)(U):(n.enter("codeFlowValue"),z(U))}function z(U){return U===null||pe(U)?(n.exit("codeFlowValue"),Z(U)):(n.consume(U),z)}function J(U){return n.exit("codeFenced"),a(U)}function F(U,$,ue){let se=0;return me;function me(G){return U.enter("lineEnding"),U.consume(G),U.exit("lineEnding"),ne}function ne(G){return U.enter("codeFencedFence"),_e(G)?Ke(U,ee,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):ee(G)}function ee(G){return G===p?(U.enter("codeFencedFenceSequence"),Se(G)):ue(G)}function Se(G){return G===p?(se++,U.consume(G),Se):se>=d?(U.exit("codeFencedFenceSequence"),_e(G)?Ke(U,ie,"whitespace")(G):ie(G)):ue(G)}function ie(G){return G===null||pe(G)?(U.exit("codeFencedFence"),$(G)):ue(G)}}}function Lw(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 Dc={name:"codeIndented",tokenize:Uw},Bw={partial:!0,tokenize:Hw};function Uw(n,a,r){const u=this;return o;function o(m){return n.enter("codeIndented"),Ke(n,c,"linePrefix",5)(m)}function c(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?d(m):r(m)}function d(m){return m===null?g(m):pe(m)?n.attempt(Bw,d,g)(m):(n.enter("codeFlowValue"),p(m))}function p(m){return m===null||pe(m)?(n.exit("codeFlowValue"),d(m)):(n.consume(m),p)}function g(m){return n.exit("codeIndented"),a(m)}}function Hw(n,a,r){const u=this;return o;function o(d){return u.parser.lazy[u.now().line]?r(d):pe(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),o):Ke(n,c,"linePrefix",5)(d)}function c(d){const p=u.events[u.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(d):pe(d)?o(d):r(d)}}const qw={name:"codeText",previous:Vw,resolve:Yw,tokenize:Qw};function Yw(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 Vw(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Qw(n,a,r){let u=0,o,c;return d;function d(b){return n.enter("codeText"),n.enter("codeTextSequence"),p(b)}function p(b){return b===96?(n.consume(b),u++,p):(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)):pe(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),g):(n.enter("codeTextData"),m(b))}function m(b){return b===null||b===32||b===96||pe(b)?(n.exit("codeTextData"),g(b)):(n.consume(b),m)}function x(b){return b===96?(n.consume(b),o++,x):o===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(b)):(c.type="codeTextData",m(b))}}class Kw{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 Zy(n){const a={};let r=-1,u,o,c,d,p,g,m;const x=new Kw(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,Gw(x,r)),r=a[r],m=!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},p=x.slice(o,r),p.unshift(u),x.splice(o,r-o+1,p))}}return wn(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function Gw(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 p=d.events,g=[],m={};let x,b,w=-1,S=r,R=0,_=0;const H=[_];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<p.length;)p[w][0]==="exit"&&p[w-1][0]==="enter"&&p[w][1].type===p[w-1][1].type&&p[w][1].start.line!==p[w][1].end.line&&(_=w+1,H.push(_),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(d.events=[],S?(S._tokenizer=void 0,S.previous=void 0):H.pop(),w=H.length;w--;){const k=p.slice(H[w],H[w+1]),Z=c.pop();g.push([Z,Z+k.length-1]),n.splice(Z,2,k)}for(g.reverse(),w=-1;++w<g.length;)m[R+g[w][0]]=R+g[w][1],R+=g[w][1]-g[w][0]-1;return m}const Xw={resolve:$w,tokenize:Fw},Zw={partial:!0,tokenize:Jw};function $w(n){return Zy(n),n}function Fw(n,a){let r;return u;function u(p){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),o(p)}function o(p){return p===null?c(p):pe(p)?n.check(Zw,d,c)(p):(n.consume(p),o)}function c(p){return n.exit("chunkContent"),n.exit("content"),a(p)}function d(p){return n.consume(p),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function Jw(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||pe(d))return r(d);const p=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(d):n.interrupt(u.parser.constructs.flow,r,a)(d)}}function $y(n,a,r,u,o,c,d,p,g){const m=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||Pc(k)?r(k):(n.enter(u),n.enter(d),n.enter(p),n.enter("chunkString",{contentType:"string"}),_(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(p),n.enter("chunkString",{contentType:"string"}),S(k))}function S(k){return k===62?(n.exit("chunkString"),n.exit(p),w(k)):k===null||k===60||pe(k)?r(k):(n.consume(k),k===92?R:S)}function R(k){return k===60||k===62||k===92?(n.consume(k),S):S(k)}function _(k){return!x&&(k===null||k===41||Ot(k))?(n.exit("chunkString"),n.exit(p),n.exit(d),n.exit(u),a(k)):x<m&&k===40?(n.consume(k),x++,_):k===41?(n.consume(k),x--,_):k===null||k===32||k===40||Pc(k)?r(k):(n.consume(k),k===92?H:_)}function H(k){return k===40||k===41||k===92?(n.consume(k),_):_(k)}}function Fy(n,a,r,u,o,c){const d=this;let p=0,g;return m;function m(S){return n.enter(u),n.enter(o),n.consume(S),n.exit(o),n.enter(c),x}function x(S){return p>999||S===null||S===91||S===93&&!g||S===94&&!p&&"_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):pe(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||pe(S)||p++>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),p++,b):b(S)}}function Jy(n,a,r,u,o,c){let d;return p;function p(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),m(w))}function m(w){return w===d?(n.exit(c),g(d)):w===null?r(w):pe(w)?(n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),Ke(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===d||w===null||pe(w)?(n.exit("chunkString"),m(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 pe(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 Iw={name:"definition",tokenize:Ww},Pw={partial:!0,tokenize:e2};function Ww(n,a,r){const u=this;let o;return c;function c(S){return n.enter("definition"),d(S)}function d(S){return Fy.call(u,n,p,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function p(S){return o=La(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 Ot(S)?$i(n,m)(S):m(S)}function m(S){return $y(n,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function x(S){return n.attempt(Pw,b,b)(S)}function b(S){return _e(S)?Ke(n,w,"whitespace")(S):w(S)}function w(S){return S===null||pe(S)?(n.exit("definition"),u.parser.defined.push(o),a(S)):r(S)}}function e2(n,a,r){return u;function u(p){return Ot(p)?$i(n,o)(p):r(p)}function o(p){return Jy(n,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function c(p){return _e(p)?Ke(n,d,"whitespace")(p):d(p)}function d(p){return p===null||pe(p)?a(p):r(p)}}const t2={name:"hardBreakEscape",tokenize:n2};function n2(n,a,r){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),o}function o(c){return pe(c)?(n.exit("hardBreakEscape"),a(c)):r(c)}}const l2={name:"headingAtx",resolve:a2,tokenize:i2};function a2(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 i2(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||Ot(x)?(n.exit("atxHeadingSequence"),p(x)):r(x)}function p(x){return x===35?(n.enter("atxHeadingSequence"),g(x)):x===null||pe(x)?(n.exit("atxHeading"),a(x)):_e(x)?Ke(n,p,"whitespace")(x):(n.enter("atxHeadingText"),m(x))}function g(x){return x===35?(n.consume(x),g):(n.exit("atxHeadingSequence"),p(x))}function m(x){return x===null||x===35||Ot(x)?(n.exit("atxHeadingText"),p(x)):(n.consume(x),m)}}const r2=["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"],bg=["pre","script","style","textarea"],u2={concrete:!0,name:"htmlFlow",resolveTo:c2,tokenize:f2},s2={partial:!0,tokenize:h2},o2={partial:!0,tokenize:d2};function c2(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 f2(n,a,r){const u=this;let o,c,d,p,g;return m;function m(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,_):E===63?(n.consume(E),o=3,u.interrupt?a:j):Sn(E)?(n.consume(E),d=String.fromCharCode(E),H):r(E)}function w(E){return E===45?(n.consume(E),o=2,S):E===91?(n.consume(E),o=5,p=0,R):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 R(E){const te="CDATA[";return E===te.charCodeAt(p++)?(n.consume(E),p===te.length?u.interrupt?a:ee:R):r(E)}function _(E){return Sn(E)?(n.consume(E),d=String.fromCharCode(E),H):r(E)}function H(E){if(E===null||E===47||E===62||Ot(E)){const te=E===47,de=d.toLowerCase();return!te&&!c&&bg.includes(de)?(o=1,u.interrupt?a(E):ee(E)):r2.includes(d.toLowerCase())?(o=6,te?(n.consume(E),k):u.interrupt?a(E):ee(E)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(E):c?Z(E):z(E))}return E===45||Gt(E)?(n.consume(E),d+=String.fromCharCode(E),H):r(E)}function k(E){return E===62?(n.consume(E),u.interrupt?a:ee):r(E)}function Z(E){return _e(E)?(n.consume(E),Z):me(E)}function z(E){return E===47?(n.consume(E),me):E===58||E===95||Sn(E)?(n.consume(E),J):_e(E)?(n.consume(E),z):me(E)}function J(E){return E===45||E===46||E===58||E===95||Gt(E)?(n.consume(E),J):F(E)}function F(E){return E===61?(n.consume(E),U):_e(E)?(n.consume(E),F):z(E)}function U(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(n.consume(E),g=E,$):_e(E)?(n.consume(E),U):ue(E)}function $(E){return E===g?(n.consume(E),g=null,se):E===null||pe(E)?r(E):(n.consume(E),$)}function ue(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ot(E)?F(E):(n.consume(E),ue)}function se(E){return E===47||E===62||_e(E)?z(E):r(E)}function me(E){return E===62?(n.consume(E),ne):r(E)}function ne(E){return E===null||pe(E)?ee(E):_e(E)?(n.consume(E),ne):r(E)}function ee(E){return E===45&&o===2?(n.consume(E),O):E===60&&o===1?(n.consume(E),I):E===62&&o===4?(n.consume(E),C):E===63&&o===3?(n.consume(E),j):E===93&&o===5?(n.consume(E),ye):pe(E)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(s2,V,Se)(E)):E===null||pe(E)?(n.exit("htmlFlowData"),Se(E)):(n.consume(E),ee)}function Se(E){return n.check(o2,ie,V)(E)}function ie(E){return n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),G}function G(E){return E===null||pe(E)?Se(E):(n.enter("htmlFlowData"),ee(E))}function O(E){return E===45?(n.consume(E),j):ee(E)}function I(E){return E===47?(n.consume(E),d="",le):ee(E)}function le(E){if(E===62){const te=d.toLowerCase();return bg.includes(te)?(n.consume(E),C):ee(E)}return Sn(E)&&d.length<8?(n.consume(E),d+=String.fromCharCode(E),le):ee(E)}function ye(E){return E===93?(n.consume(E),j):ee(E)}function j(E){return E===62?(n.consume(E),C):E===45&&o===2?(n.consume(E),j):ee(E)}function C(E){return E===null||pe(E)?(n.exit("htmlFlowData"),V(E)):(n.consume(E),C)}function V(E){return n.exit("htmlFlow"),a(E)}}function d2(n,a,r){const u=this;return o;function o(d){return pe(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 h2(n,a,r){return u;function u(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(Fu,a,r)}}const m2={name:"htmlText",tokenize:p2};function p2(n,a,r){const u=this;let o,c,d;return p;function p(j){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(j),g}function g(j){return j===33?(n.consume(j),m):j===47?(n.consume(j),F):j===63?(n.consume(j),z):Sn(j)?(n.consume(j),ue):r(j)}function m(j){return j===45?(n.consume(j),x):j===91?(n.consume(j),c=0,R):Sn(j)?(n.consume(j),Z):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):pe(j)?(d=b,I(j)):(n.consume(j),b)}function w(j){return j===45?(n.consume(j),S):b(j)}function S(j){return j===62?O(j):j===45?w(j):b(j)}function R(j){const C="CDATA[";return j===C.charCodeAt(c++)?(n.consume(j),c===C.length?_:R):r(j)}function _(j){return j===null?r(j):j===93?(n.consume(j),H):pe(j)?(d=_,I(j)):(n.consume(j),_)}function H(j){return j===93?(n.consume(j),k):_(j)}function k(j){return j===62?O(j):j===93?(n.consume(j),k):_(j)}function Z(j){return j===null||j===62?O(j):pe(j)?(d=Z,I(j)):(n.consume(j),Z)}function z(j){return j===null?r(j):j===63?(n.consume(j),J):pe(j)?(d=z,I(j)):(n.consume(j),z)}function J(j){return j===62?O(j):z(j)}function F(j){return Sn(j)?(n.consume(j),U):r(j)}function U(j){return j===45||Gt(j)?(n.consume(j),U):$(j)}function $(j){return pe(j)?(d=$,I(j)):_e(j)?(n.consume(j),$):O(j)}function ue(j){return j===45||Gt(j)?(n.consume(j),ue):j===47||j===62||Ot(j)?se(j):r(j)}function se(j){return j===47?(n.consume(j),O):j===58||j===95||Sn(j)?(n.consume(j),me):pe(j)?(d=se,I(j)):_e(j)?(n.consume(j),se):O(j)}function me(j){return j===45||j===46||j===58||j===95||Gt(j)?(n.consume(j),me):ne(j)}function ne(j){return j===61?(n.consume(j),ee):pe(j)?(d=ne,I(j)):_e(j)?(n.consume(j),ne):se(j)}function ee(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(n.consume(j),o=j,Se):pe(j)?(d=ee,I(j)):_e(j)?(n.consume(j),ee):(n.consume(j),ie)}function Se(j){return j===o?(n.consume(j),o=void 0,G):j===null?r(j):pe(j)?(d=Se,I(j)):(n.consume(j),Se)}function ie(j){return j===null||j===34||j===39||j===60||j===61||j===96?r(j):j===47||j===62||Ot(j)?se(j):(n.consume(j),ie)}function G(j){return j===47||j===62||Ot(j)?se(j):r(j)}function O(j){return j===62?(n.consume(j),n.exit("htmlTextData"),n.exit("htmlText"),a):r(j)}function I(j){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(j),n.exit("lineEnding"),le}function le(j){return _e(j)?Ke(n,ye,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):ye(j)}function ye(j){return n.enter("htmlTextData"),d(j)}}const zf={name:"labelEnd",resolveAll:b2,resolveTo:v2,tokenize:S2},g2={tokenize:w2},y2={tokenize:E2},x2={tokenize:j2};function b2(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 v2(n,a){let r=n.length,u=0,o,c,d,p;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}},m={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 p=[["enter",g,a],["enter",m,a]],p=un(p,n.slice(c+1,c+u+3)),p=un(p,[["enter",x,a]]),p=un(p,Af(a.parser.constructs.insideSpan.null,n.slice(c+u+4,d-3),a)),p=un(p,[["exit",x,a],n[d-2],n[d-1],["exit",m,a]]),p=un(p,n.slice(d+1)),p=un(p,[["exit",g,a]]),wn(n,c,n.length,p),n}function S2(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 p;function p(w){return c?c._inactive?b(w):(d=u.parser.defined.includes(La(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(g2,x,d?x:b)(w):w===91?n.attempt(y2,x,d?m:b)(w):d?x(w):b(w)}function m(w){return n.attempt(x2,x,b)(w)}function x(w){return a(w)}function b(w){return c._balanced=!0,r(w)}}function w2(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 Ot(b)?$i(n,c)(b):c(b)}function c(b){return b===41?x(b):$y(n,d,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function d(b){return Ot(b)?$i(n,g)(b):x(b)}function p(b){return r(b)}function g(b){return b===34||b===39||b===40?Jy(n,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):x(b)}function m(b){return Ot(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 E2(n,a,r){const u=this;return o;function o(p){return Fy.call(u,n,c,d,"reference","referenceMarker","referenceString")(p)}function c(p){return u.parser.defined.includes(La(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(p):r(p)}function d(p){return r(p)}}function j2(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 N2={name:"labelStartImage",resolveAll:zf.resolveAll,tokenize:T2};function T2(n,a,r){const u=this;return o;function o(p){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(p),n.exit("labelImageMarker"),c}function c(p){return p===91?(n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelImage"),d):r(p)}function d(p){return p===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(p):a(p)}}const C2={name:"labelStartLink",resolveAll:zf.resolveAll,tokenize:A2};function A2(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 Lc={name:"lineEnding",tokenize:z2};function z2(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Ke(n,a,"linePrefix")}}const Du={name:"thematicBreak",tokenize:k2};function k2(n,a,r){let u=0,o;return c;function c(m){return n.enter("thematicBreak"),d(m)}function d(m){return o=m,p(m)}function p(m){return m===o?(n.enter("thematicBreakSequence"),g(m)):u>=3&&(m===null||pe(m))?(n.exit("thematicBreak"),a(m)):r(m)}function g(m){return m===o?(n.consume(m),u++,g):(n.exit("thematicBreakSequence"),_e(m)?Ke(n,p,"whitespace")(m):p(m))}}const Mt={continuation:{tokenize:O2},exit:L2,name:"list",tokenize:M2},R2={partial:!0,tokenize:B2},_2={partial:!0,tokenize:D2};function M2(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 p;function p(S){const R=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:Wc(S)){if(u.containerState.type||(u.containerState.type=R,n.enter(R,{_container:!0})),R==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(Du,r,m)(S):m(S);if(!u.interrupt||S===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),g(S)}return r(S)}function g(S){return Wc(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"),m(S)):r(S)}function m(S){return n.enter("listItemMarker"),n.consume(S),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,n.check(Fu,u.interrupt?r:x,n.attempt(R2,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 O2(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check(Fu,o,c);function o(p){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ke(n,a,"listItemIndent",u.containerState.size+1)(p)}function c(p){return u.containerState.furtherBlankLines||!_e(p)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,d(p)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(_2,a,d)(p))}function d(p){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ke(n,n.attempt(Mt,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function D2(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 L2(n){n.exit(this.containerState.type)}function B2(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 vg={name:"setextUnderline",resolveTo:U2,tokenize:H2};function U2(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 H2(n,a,r){const u=this;let o;return c;function c(m){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=m,d(m)):r(m)}function d(m){return n.enter("setextHeadingLineSequence"),p(m)}function p(m){return m===o?(n.consume(m),p):(n.exit("setextHeadingLineSequence"),_e(m)?Ke(n,g,"lineSuffix")(m):g(m))}function g(m){return m===null||pe(m)?(n.exit("setextHeadingLine"),a(m)):r(m)}}const q2={tokenize:Y2};function Y2(n){const a=this,r=n.attempt(Fu,u,n.attempt(this.parser.constructs.flowInitial,o,Ke(n,n.attempt(this.parser.constructs.flow,o,n.attempt(Xw,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 V2={resolveAll:Py()},Q2=Iy("string"),K2=Iy("text");function Iy(n){return{resolveAll:Py(n==="text"?G2:void 0),tokenize:a};function a(r){const u=this,o=this.parser.constructs[n],c=r.attempt(o,d,p);return d;function d(x){return m(x)?c(x):p(x)}function p(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),g}function g(x){return m(x)?(r.exit("data"),c(x)):(r.consume(x),g)}function m(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 Py(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 G2(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,p=0,g;for(;c--;){const m=o[c];if(typeof m=="string"){for(d=m.length;m.charCodeAt(d-1)===32;)p++,d--;if(d)break;d=-1}else if(m===-2)g=!0,p++;else if(m!==-1){c++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(p=0),p){const m={type:r===n.length||g||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?d:u.start._bufferIndex+d,_index:u.start._index+c,line:u.end.line,column:u.end.column-p,offset:u.end.offset-p},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(r,0,["enter",m,a],["exit",m,a]),r+=2)}r++}return n}const X2={42:Mt,43:Mt,45:Mt,48:Mt,49:Mt,50:Mt,51:Mt,52:Mt,53:Mt,54:Mt,55:Mt,56:Mt,57:Mt,62:Ky},Z2={91:Iw},$2={[-2]:Dc,[-1]:Dc,32:Dc},F2={35:l2,42:Du,45:[vg,Du],60:u2,61:vg,95:Du,96:xg,126:xg},J2={38:Xy,92:Gy},I2={[-5]:Lc,[-4]:Lc,[-3]:Lc,33:N2,38:Xy,42:ef,60:[Cw,m2],91:C2,92:[t2,Gy],93:zf,95:ef,96:qw},P2={null:[ef,V2]},W2={null:[42,95]},eE={null:[]},tE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:W2,contentInitial:Z2,disable:eE,document:X2,flow:F2,flowInitial:$2,insideSpan:P2,string:J2,text:I2},Symbol.toStringTag,{value:"Module"}));function nE(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=[],p=[];const g={attempt:$(F),check:$(U),consume:Z,enter:z,exit:J,interrupt:$(U,{interrupt:!0})},m={code:null,containerState:{},defineSkip:_,events:[],now:R,parser:n,previous:null,sliceSerialize:w,sliceStream:S,write:b};let x=a.tokenize.call(m,g);return a.resolveAll&&c.push(a),m;function b(ne){return d=un(d,ne),H(),d[d.length-1]!==null?[]:(ue(a,0),m.events=Af(c,m.events,m),m.events)}function w(ne,ee){return aE(S(ne),ee)}function S(ne){return lE(d,ne)}function R(){const{_bufferIndex:ne,_index:ee,line:Se,column:ie,offset:G}=u;return{_bufferIndex:ne,_index:ee,line:Se,column:ie,offset:G}}function _(ne){o[ne.line]=ne.column,me()}function H(){let ne;for(;u._index<d.length;){const ee=d[u._index];if(typeof ee=="string")for(ne=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ne&&u._bufferIndex<ee.length;)k(ee.charCodeAt(u._bufferIndex));else k(ee)}}function k(ne){x=x(ne)}function Z(ne){pe(ne)?(u.line++,u.column=1,u.offset+=ne===-3?2:1,me()):ne!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===d[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=ne}function z(ne,ee){const Se=ee||{};return Se.type=ne,Se.start=R(),m.events.push(["enter",Se,m]),p.push(Se),Se}function J(ne){const ee=p.pop();return ee.end=R(),m.events.push(["exit",ee,m]),ee}function F(ne,ee){ue(ne,ee.from)}function U(ne,ee){ee.restore()}function $(ne,ee){return Se;function Se(ie,G,O){let I,le,ye,j;return Array.isArray(ie)?V(ie):"tokenize"in ie?V([ie]):C(ie);function C(oe){return Ne;function Ne($e){const Le=$e!==null&&oe[$e],Ft=$e!==null&&oe.null,jn=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return V(jn)($e)}}function V(oe){return I=oe,le=0,oe.length===0?O:E(oe[le])}function E(oe){return Ne;function Ne($e){return j=se(),ye=oe,oe.partial||(m.currentConstruct=oe),oe.name&&m.parser.constructs.disable.null.includes(oe.name)?de():oe.tokenize.call(ee?Object.assign(Object.create(m),ee):m,g,te,de)($e)}}function te(oe){return ne(ye,j),G}function de(oe){return j.restore(),++le<I.length?E(I[le]):O}}}function ue(ne,ee){ne.resolveAll&&!c.includes(ne)&&c.push(ne),ne.resolve&&wn(m.events,ee,m.events.length-ee,ne.resolve(m.events.slice(ee),m)),ne.resolveTo&&(m.events=ne.resolveTo(m.events,m))}function se(){const ne=R(),ee=m.previous,Se=m.currentConstruct,ie=m.events.length,G=Array.from(p);return{from:ie,restore:O};function O(){u=ne,m.previous=ee,m.currentConstruct=Se,m.events.length=ie,p=G,me()}}function me(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function lE(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 p=d[0];typeof p=="string"?d[0]=p.slice(u):d.shift()}c>0&&d.push(n[o].slice(0,c))}return d}function aE(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 iE(n){const u={constructs:dw([tE,...(n||{}).extensions||[]]),content:o(vw),defined:[],document:o(ww),flow:o(q2),lazy:{},string:o(Q2),text:o(K2)};return u;function o(c){return d;function d(p){return nE(u,c,p)}}}function rE(n){for(;!Zy(n););return n}const Sg=/[\0\t\n\r]/g;function uE(){let n=1,a="",r=!0,u;return o;function o(c,d,p){const g=[];let m,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(Sg.lastIndex=b,m=Sg.exec(c),w=m&&m.index!==void 0?m.index:c.length,S=c.charCodeAt(w),!m){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 p&&(u&&g.push(-5),a&&g.push(a),g.push(null)),g}}const sE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function oE(n){return n.replace(sE,cE)}function cE(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),c=o===120||o===88;return Qy(r.slice(c?2:1),c?16:10)}return Cf(r)||n}const Wy={}.hasOwnProperty;function fE(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),dE(r)(rE(iE(r).document().write(uE()(n,a,!0))))}function dE(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Xl),autolinkProtocol:se,autolinkEmail:se,atxHeading:c(Kl),blockQuote:c(Ft),characterEscape:se,characterReference:se,codeFenced:c(jn),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(jn,d),codeText:c(Za,d),codeTextData:se,data:se,codeFlowValue:se,definition:c(sr),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(Nn),hardBreakEscape:c(Gl),hardBreakTrailing:c(Gl),htmlFlow:c(or,d),htmlFlowData:se,htmlText:c(or,d),htmlTextData:se,image:c(cr),label:d,link:c(Xl),listItem:c($a),listItemValue:w,listOrdered:c(Zl,b),listUnordered:c(Zl),paragraph:c(ls),reference:E,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(Kl),strong:c(as),thematicBreak:c(is)},exit:{atxHeading:g(),atxHeadingSequence:F,autolink:g(),autolinkEmail:Le,autolinkProtocol:$e,blockQuote:g(),characterEscapeValue:me,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:oe,characterReference:Ne,codeFenced:g(H),codeFencedFence:_,codeFencedFenceInfo:S,codeFencedFenceMeta:R,codeFlowValue:me,codeIndented:g(k),codeText:g(G),codeTextData:me,data:me,definition:g(),definitionDestinationString:J,definitionLabelString:Z,definitionTitleString:z,emphasis:g(),hardBreakEscape:g(ee),hardBreakTrailing:g(ee),htmlFlow:g(Se),htmlFlowData:me,htmlText:g(ie),htmlTextData:me,image:g(I),label:ye,labelText:le,lineEnding:ne,link:g(O),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:te,resourceDestinationString:j,resourceTitleString:C,resource:V,setextHeading:g(ue),setextHeadingLineSequence:$,setextHeadingText:U,strong:g(),thematicBreak:g()}};ex(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(Q){let W={type:"root",children:[]};const he={stack:[W],tokenStack:[],config:a,enter:p,exit:m,buffer:d,resume:x,data:r},we=[];let Me=-1;for(;++Me<Q.length;)if(Q[Me][1].type==="listOrdered"||Q[Me][1].type==="listUnordered")if(Q[Me][0]==="enter")we.push(Me);else{const Lt=we.pop();Me=o(Q,Lt,Me)}for(Me=-1;++Me<Q.length;){const Lt=a[Q[Me][0]];Wy.call(Lt,Q[Me][1].type)&&Lt[Q[Me][1].type].call(Object.assign({sliceSerialize:Q[Me][2].sliceSerialize},he),Q[Me][1])}if(he.tokenStack.length>0){const Lt=he.tokenStack[he.tokenStack.length-1];(Lt[1]||wg).call(he,void 0,Lt[0])}for(W.position={start:vl(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:vl(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<a.transforms.length;)W=a.transforms[Me](W)||W;return W}function o(Q,W,he){let we=W-1,Me=-1,Lt=!1,Tn,wt,ot,Nt;for(;++we<=he;){const qe=Q[we];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?Me++:Me--,Nt=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(Tn&&!Nt&&!Me&&!ot&&(ot=we),Nt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nt=void 0}if(!Me&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||Me===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(Tn){let Fn=we;for(wt=void 0;Fn--;){const cn=Q[Fn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;wt&&(Q[wt][1].type="lineEndingBlank",Lt=!0),cn[1].type="lineEnding",wt=Fn}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)&&(Tn._spread=!0),Tn.end=Object.assign({},wt?Q[wt][1].start:qe[1].end),Q.splice(wt||we,0,["exit",Tn,qe[2]]),we++,he++}if(qe[1].type==="listItemPrefix"){const Fn={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};Tn=Fn,Q.splice(we,0,["enter",Fn,qe[2]]),we++,he++,ot=void 0,Nt=!0}}}return Q[W][1]._spread=Lt,he}function c(Q,W){return he;function he(we){p.call(this,Q(we),we),W&&W.call(this,we)}}function d(){this.stack.push({type:"fragment",children:[]})}function p(Q,W,he){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([W,he||void 0]),Q.position={start:vl(W.start),end:void 0}}function g(Q){return W;function W(he){Q&&Q.call(this,he),m.call(this,he)}}function m(Q,W){const he=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==Q.type&&(W?W.call(this,Q,we[0]):(we[1]||wg).call(this,Q,we[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Zi({start:Q.start,end:Q.end})+"): it’s not open");he.position.end=vl(Q.end)}function x(){return cw(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function w(Q){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.lang=Q}function R(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.meta=Q}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function H(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q.replace(/(\r?\n|\r)$/g,"")}function Z(Q){const W=this.resume(),he=this.stack[this.stack.length-1];he.label=W,he.identifier=La(this.sliceSerialize(Q)).toLowerCase()}function z(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.title=Q}function J(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.url=Q}function F(Q){const W=this.stack[this.stack.length-1];if(!W.depth){const he=this.sliceSerialize(Q).length;W.depth=he}}function U(){this.data.setextHeadingSlurpLineEnding=!0}function $(Q){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function se(Q){const he=this.stack[this.stack.length-1].children;let we=he[he.length-1];(!we||we.type!=="text")&&(we=St(),we.position={start:vl(Q.start),end:void 0},he.push(we)),this.stack.push(we)}function me(Q){const W=this.stack.pop();W.value+=this.sliceSerialize(Q),W.position.end=vl(Q.end)}function ne(Q){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=W.children[W.children.length-1];he.position.end=vl(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(W.type)&&(se.call(this,Q),me.call(this,Q))}function ee(){this.data.atHardBreak=!0}function Se(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q}function ie(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q}function G(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q}function O(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=W,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function I(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=W,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function le(Q){const W=this.sliceSerialize(Q),he=this.stack[this.stack.length-2];he.label=oE(W),he.identifier=La(W).toLowerCase()}function ye(){const Q=this.stack[this.stack.length-1],W=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const we=Q.children;he.children=we}else he.alt=W}function j(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.url=Q}function C(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.title=Q}function V(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function te(Q){const W=this.resume(),he=this.stack[this.stack.length-1];he.label=W,he.identifier=La(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function de(Q){this.data.characterReferenceType=Q.type}function oe(Q){const W=this.sliceSerialize(Q),he=this.data.characterReferenceType;let we;he?(we=Qy(W,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Cf(W);const Me=this.stack[this.stack.length-1];Me.value+=we}function Ne(Q){const W=this.stack.pop();W.position.end=vl(Q.end)}function $e(Q){me.call(this,Q);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(Q)}function Le(Q){me.call(this,Q);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(Q)}function Ft(){return{type:"blockquote",children:[]}}function jn(){return{type:"code",lang:null,meta:null,value:""}}function Za(){return{type:"inlineCode",value:""}}function sr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nn(){return{type:"emphasis",children:[]}}function Kl(){return{type:"heading",depth:0,children:[]}}function Gl(){return{type:"break"}}function or(){return{type:"html",value:""}}function cr(){return{type:"image",title:null,url:"",alt:null}}function Xl(){return{type:"link",title:null,url:"",children:[]}}function Zl(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function $a(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function ls(){return{type:"paragraph",children:[]}}function as(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function is(){return{type:"thematicBreak"}}}function vl(n){return{line:n.line,column:n.column,offset:n.offset}}function ex(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?ex(n,u):hE(n,u)}}function hE(n,a){let r;for(r in a)if(Wy.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 wg(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 mE(n){const a=this;a.parser=r;function r(u){return fE(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function pE(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 gE(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
64
+ `}]}function yE(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 xE(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function bE(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function vE(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,p=n.footnoteCounts.get(u);p===void 0?(p=0,n.footnoteOrder.push(u),d=n.footnoteOrder.length):d=c+1,p+=1,n.footnoteCounts.set(u,p);const g={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(p>1?"-"+p:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};n.patch(a,g);const m={type:"element",tagName:"sup",properties:{},children:[g]};return n.patch(a,m),n.applyData(a,m)}function SE(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 wE(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function tx(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 EE(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return tx(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 jE(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 NE(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 TE(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return tx(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 CE(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 AE(n,a,r){const u=n.all(a),o=r?zE(r):nx(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 p=-1;for(;++p<u.length;){const x=u[p];(o||p!==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 m={type:"element",tagName:"li",properties:c,children:d};return n.patch(a,m),n.applyData(a,m)}function zE(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=nx(r[u])}return a}function nx(n){const a=n.spread;return a??n.children.length>1}function kE(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 RE(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function _E(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function ME(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function OE(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)},p=Ef(a.children[1]),g=Ly(a.children[a.children.length-1]);p&&g&&(d.position={start:p,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 DE(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,p=d?d.length:a.children.length;let g=-1;const m=[];for(;++g<p;){const b=a.children[g],w={},S=d?d[g]:void 0;S&&(w.align=S);let R={type:"element",tagName:c,properties:w,children:[]};b&&(R.children=n.all(b),n.patch(b,R),R=n.applyData(b,R)),m.push(R)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,x),n.applyData(a,x)}function LE(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const Eg=9,jg=32;function BE(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),o=0;const c=[];for(;u;)c.push(Ng(a.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=r.exec(a);return c.push(Ng(a.slice(o),o>0,!1)),c.join("")}function Ng(n,a,r){let u=0,o=n.length;if(a){let c=n.codePointAt(u);for(;c===Eg||c===jg;)u++,c=n.codePointAt(u)}if(r){let c=n.codePointAt(o-1);for(;c===Eg||c===jg;)o--,c=n.codePointAt(o-1)}return o>u?n.slice(u,o):""}function UE(n,a){const r={type:"text",value:BE(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function HE(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const qE={blockquote:pE,break:gE,code:yE,delete:xE,emphasis:bE,footnoteReference:vE,heading:SE,html:wE,imageReference:EE,image:jE,inlineCode:NE,linkReference:TE,link:CE,listItem:AE,list:kE,paragraph:RE,root:_E,strong:ME,table:OE,tableCell:LE,tableRow:DE,text:UE,thematicBreak:HE,toml:zu,yaml:zu,definition:zu,footnoteDefinition:zu};function zu(){}const lx=-1,Ju=0,Fi=1,Hu=2,kf=3,Rf=4,_f=5,Mf=6,ax=7,ix=8,YE=typeof self=="object"?self:globalThis,Tg=(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 YE[n](a)},VE=(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 Ju:case lx:return r(d,o);case Fi:{const p=r([],o);for(const g of d)p.push(u(g));return p}case Hu:{const p=r({},o);for(const[g,m]of d)p[u(g)]=u(m);return p}case kf:return r(new Date(d),o);case Rf:{const{source:p,flags:g}=d;return r(new RegExp(p,g),o)}case _f:{const p=r(new Map,o);for(const[g,m]of d)p.set(u(g),u(m));return p}case Mf:{const p=r(new Set,o);for(const g of d)p.add(u(g));return p}case ax:{const{name:p,message:g}=d;return r(Tg(p,g),o)}case ix: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:p}=new Uint8Array(d);return r(new DataView(p),d)}}return r(Tg(c,d),o)};return u},Cg=n=>VE(new Map,n)(0),Ma="",{toString:QE}={},{keys:KE}=Object,Xi=n=>{const a=typeof n;if(a!=="object"||!n)return[Ju,a];const r=QE.call(n).slice(8,-1);switch(r){case"Array":return[Fi,Ma];case"Object":return[Hu,Ma];case"Date":return[kf,Ma];case"RegExp":return[Rf,Ma];case"Map":return[_f,Ma];case"Set":return[Mf,Ma];case"DataView":return[Fi,r]}return r.includes("Array")?[Fi,r]:r.includes("Error")?[ax,r]:[Hu,r]},ku=([n,a])=>n===Ju&&(a==="function"||a==="symbol"),GE=(n,a,r,u)=>{const o=(d,p)=>{const g=u.push(d)-1;return r.set(p,g),g},c=d=>{if(r.has(d))return r.get(d);let[p,g]=Xi(d);switch(p){case Ju:{let x=d;switch(g){case"bigint":p=ix,x=d.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+g);x=null;break;case"undefined":return o([lx],d)}return o([p,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([p,x],d);for(const w of d)x.push(c(w));return b}case Hu:{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([p,x],d);for(const w of KE(d))(n||!ku(Xi(d[w])))&&x.push([c(w),c(d[w])]);return b}case kf:return o([p,d.toISOString()],d);case Rf:{const{source:x,flags:b}=d;return o([p,{source:x,flags:b}],d)}case _f:{const x=[],b=o([p,x],d);for(const[w,S]of d)(n||!(ku(Xi(w))||ku(Xi(S))))&&x.push([c(w),c(S)]);return b}case Mf:{const x=[],b=o([p,x],d);for(const w of d)(n||!ku(Xi(w)))&&x.push(c(w));return b}}const{message:m}=d;return o([p,{name:g,message:m}],d)};return c},Ag=(n,{json:a,lossy:r}={})=>{const u=[];return GE(!(a||r),!!a,new Map,u)(n),u},qu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?Cg(Ag(n,a)):structuredClone(n):(n,a)=>Cg(Ag(n,a));function XE(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 ZE(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function $E(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||XE,u=n.options.footnoteBackLabel||ZE,o=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",d=n.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let g=-1;for(;++g<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[g]);if(!m)continue;const x=n.all(m),b=String(m.identifier).toUpperCase(),w=Xa(b.toLowerCase());let S=0;const R=[],_=n.footnoteCounts.get(b);for(;_!==void 0&&++S<=_;){R.length>0&&R.push({type:"text",value:" "});let Z=typeof r=="string"?r:r(g,S);typeof Z=="string"&&(Z={type:"text",value:Z}),R.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(Z)?Z:[Z]})}const H=x[x.length-1];if(H&&H.type==="element"&&H.tagName==="p"){const Z=H.children[H.children.length-1];Z&&Z.type==="text"?Z.value+=" ":H.children.push({type:"text",value:" "}),H.children.push(...R)}else x.push(...R);const k={type:"element",tagName:"li",properties:{id:a+"fn-"+w},children:n.wrap(x,!0)};n.patch(m,k),p.push(k)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...qu(d),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
68
+ `},{type:"element",tagName:"ol",properties:{},children:n.wrap(p,!0)},{type:"text",value:`
69
+ `}]}}const rx=(function(n){if(n==null)return PE;if(typeof n=="function")return Iu(n);if(typeof n=="object")return Array.isArray(n)?FE(n):JE(n);if(typeof n=="string")return IE(n);throw new Error("Expected function, string, or object as test")});function FE(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=rx(n[r]);return Iu(u);function u(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function JE(n){const a=n;return Iu(r);function r(u){const o=u;let c;for(c in n)if(o[c]!==a[c])return!1;return!0}}function IE(n){return Iu(a);function a(r){return r&&r.type===n}}function Iu(n){return a;function a(r,u,o){return!!(WE(r)&&n.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function PE(){return!0}function WE(n){return n!==null&&typeof n=="object"&&"type"in n}const ux=[],ej=!0,zg=!1,tj="skip";function nj(n,a,r,u){let o;typeof a=="function"&&typeof r!="function"?(u=r,r=a):o=a;const c=rx(o),d=u?-1:1;p(n,void 0,[])();function p(g,m,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=ux,R,_,H;if((!a||c(g,m,x[x.length-1]||void 0))&&(S=lj(r(g,x)),S[0]===zg))return S;if("children"in g&&g.children){const k=g;if(k.children&&S[0]!==tj)for(_=(u?k.children.length:-1)+d,H=x.concat(k);_>-1&&_<k.children.length;){const Z=k.children[_];if(R=p(Z,_,H)(),R[0]===zg)return R;_=typeof R[1]=="number"?R[1]:_+d}}return S}}}function lj(n){return Array.isArray(n)?n:typeof n=="number"?[ej,n]:n==null?ux:[n]}function sx(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),nj(n,c,p,o);function p(g,m){const x=m[m.length-1],b=x?x.children.indexOf(g):void 0;return d(g,b,x)}}const tf={}.hasOwnProperty,aj={};function ij(n,a){const r=a||aj,u=new Map,o=new Map,c=new Map,d={...qE,...r.handlers},p={all:m,applyData:uj,definitionById:u,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:d,one:g,options:r,patch:rj,wrap:oj};return sx(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)}}),p;function g(x,b){const w=x.type,S=p.handlers[w];if(tf.call(p.handlers,w)&&S)return S(p,x,b);if(p.options.passThrough&&p.options.passThrough.includes(w)){if("children"in x){const{children:_,...H}=x,k=qu(H);return k.children=p.all(x),k}return qu(x)}return(p.options.unknownHandler||sj)(p,x,b)}function m(x){const b=[];if("children"in x){const w=x.children;let S=-1;for(;++S<w.length;){const R=p.one(w[S],x);if(R){if(S&&w[S-1].type==="break"&&(!Array.isArray(R)&&R.type==="text"&&(R.value=kg(R.value)),!Array.isArray(R)&&R.type==="element")){const _=R.children[0];_&&_.type==="text"&&(_.value=kg(_.value))}Array.isArray(R)?b.push(...R):b.push(R)}}}return b}}function rj(n,a){n.position&&(a.position=VS(n))}function uj(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,qu(c)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function sj(n,a){const r=a.data||{},u="value"in a&&!(tf.call(r,"hProperties")||tf.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 oj(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 kg(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function Rg(n,a){const r=ij(n,a),u=r.one(n,void 0),o=$E(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 cj(n,a){return n&&"run"in n?async function(r,u){const o=Rg(r,{file:u,...a});await n.run(o,u)}:function(r,u){return Rg(r,{file:u,...n||a})}}function _g(n){if(n)throw n}var Bc,Mg;function fj(){if(Mg)return Bc;Mg=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},c=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var x=n.call(m,"constructor"),b=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!b)return!1;var w;for(w in m);return typeof w>"u"||n.call(m,w)},d=function(m,x){r&&x.name==="__proto__"?r(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},p=function(m,x){if(x==="__proto__")if(n.call(m,x)){if(u)return u(m,x).value}else return;return m[x]};return Bc=function g(){var m,x,b,w,S,R,_=arguments[0],H=1,k=arguments.length,Z=!1;for(typeof _=="boolean"&&(Z=_,_=arguments[1]||{},H=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});H<k;++H)if(m=arguments[H],m!=null)for(x in m)b=p(_,x),w=p(m,x),_!==w&&(Z&&w&&(c(w)||(S=o(w)))?(S?(S=!1,R=b&&o(b)?b:[]):R=b&&c(b)?b:{},d(_,{name:x,newValue:g(Z,R,w)})):typeof w<"u"&&d(_,{name:x,newValue:w}));return _},Bc}var dj=fj();const Uc=$g(dj);function nf(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 hj(){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);p(null,...o);function p(g,...m){const x=n[++c];let b=-1;if(g){d(g);return}for(;++b<o.length;)(m[b]===null||m[b]===void 0)&&(m[b]=o[b]);o=m,x?mj(x,p)(...m):d(null,...m)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),a}}function mj(n,a){let r;return u;function u(...d){const p=n.length>d.length;let g;p&&d.push(o);try{g=n.apply(this,d)}catch(m){const x=m;if(p&&r)throw x;return o(x)}p||(g&&g.then&&typeof g.then=="function"?g.then(c,o):g instanceof Error?o(g):c(g))}function o(d,...p){r||(r=!0,a(d,...p))}function c(d){o(null,d)}}const vn={basename:pj,dirname:gj,extname:yj,join:xj,sep:"/"};function pj(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');ur(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,p=a.length-1;for(;o--;)if(n.codePointAt(o)===47){if(c){r=o+1;break}}else d<0&&(c=!0,d=o+1),p>-1&&(n.codePointAt(o)===a.codePointAt(p--)?p<0&&(u=o):(p=-1,u=d));return r===u?u=d:u<0&&(u=n.length),n.slice(r,u)}function gj(n){if(ur(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 yj(n){ur(n);let a=n.length,r=-1,u=0,o=-1,c=0,d;for(;a--;){const p=n.codePointAt(a);if(p===47){if(d){u=a+1;break}continue}r<0&&(d=!0,r=a+1),p===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 xj(...n){let a=-1,r;for(;++a<n.length;)ur(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":bj(r)}function bj(n){ur(n);const a=n.codePointAt(0)===47;let r=vj(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function vj(n,a){let r="",u=0,o=-1,c=0,d=-1,p,g;for(;++d<=n.length;){if(d<n.length)p=n.codePointAt(d);else{if(p===47)break;p=47}if(p===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 p===46&&c>-1?c++:c=-1}return r}function ur(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Sj={cwd:wj};function wj(){return"/"}function lf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Ej(n){if(typeof n=="string")n=new URL(n);else if(!lf(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 jj(n)}function jj(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 Hc=["history","path","basename","stem","extname","dirname"];class ox{constructor(a){let r;a?lf(a)?r={path:a}:typeof a=="string"||Nj(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":Sj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Hc.length;){const c=Hc[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)Hc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?vn.basename(this.path):void 0}set basename(a){Yc(a,"basename"),qc(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){Og(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(qc(a,"extname"),Og(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){lf(a)&&(a=Ej(a)),Yc(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){Yc(a,"stem"),qc(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 qc(n,a){if(n&&n.includes(vn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+vn.sep+"`")}function Yc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Og(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function Nj(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const Tj=(function(n){const u=this.constructor.prototype,o=u[n],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),Cj={}.hasOwnProperty;class Of extends Tj{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=hj()}copy(){const a=new Of;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(Uc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(Kc("data",this.frozen),this.namespace[a]=r,this):Cj.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Kc("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=Ru(a),u=this.parser||this.Parser;return Vc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),Vc("process",this.parser||this.Parser),Qc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(c,d){const p=Ru(a),g=u.parse(p);u.run(g,p,function(x,b,w){if(x||!b||!w)return m(x);const S=b,R=u.stringify(S,w);kj(R)?w.value=R:w.result=R,m(x,w)});function m(x,b){x||!b?d(x):c?c(b):r(void 0,b)}}}processSync(a){let r=!1,u;return this.freeze(),Vc("processSync",this.parser||this.Parser),Qc("processSync",this.compiler||this.Compiler),this.process(a,o),Lg("processSync","process",r),u;function o(c,d){r=!0,_g(c),u=d}}run(a,r,u){Dg(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,p){const g=Ru(r);o.run(a,g,m);function m(x,b,w){const S=b||a;x?p(x):d?d(S):u(void 0,S,w)}}}runSync(a,r){let u=!1,o;return this.run(a,r,c),Lg("runSync","run",u),o;function c(d,p){_g(d),o=p,u=!0}}stringify(a,r){this.freeze();const u=Ru(r),o=this.compiler||this.Compiler;return Qc("stringify",o),Dg(a),o(a,u)}use(a,...r){const u=this.attachers,o=this.namespace;if(Kc("use",this.frozen),a!=null)if(typeof a=="function")g(a,r);else if(typeof a=="object")Array.isArray(a)?p(a):d(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(m){if(typeof m=="function")g(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[x,...b]=m;g(x,b)}else d(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function d(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");p(m.plugins),m.settings&&(o.settings=Uc(!0,o.settings,m.settings))}function p(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const b=m[x];c(b)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function g(m,x){let b=-1,w=-1;for(;++b<u.length;)if(u[b][0]===m){w=b;break}if(w===-1)u.push([m,...x]);else if(x.length>0){let[S,...R]=x;const _=u[w][1];nf(_)&&nf(S)&&(S=Uc(!0,_,S)),u[w]=[m,S,...R]}}}}const Aj=new Of().freeze();function Vc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Qc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Kc(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 Dg(n){if(!nf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Lg(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Ru(n){return zj(n)?n:new ox(n)}function zj(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function kj(n){return typeof n=="string"||Rj(n)}function Rj(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const _j="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bg=[],Ug={allowDangerousHtml:!0},Mj=/^(https?|ircs?|mailto|xmpp)$/i,Oj=[{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 Dj(n){const a=Lj(n),r=Bj(n);return Uj(a.runSync(a.parse(r),r),n)}function Lj(n){const a=n.rehypePlugins||Bg,r=n.remarkPlugins||Bg,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Ug}:Ug;return Aj().use(mE).use(r).use(cj,u).use(a)}function Bj(n){const a=n.children||"",r=new ox;return typeof a=="string"&&(r.value=a),r}function Uj(n,a){const r=a.allowedElements,u=a.allowElement,o=a.components,c=a.disallowedElements,d=a.skipHtml,p=a.unwrapDisallowed,g=a.urlTransform||Hj;for(const x of Oj)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+_j+x.id,void 0);return sx(n,m),ZS(n,{Fragment:h.Fragment,components:o,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function m(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 Oc)if(Object.hasOwn(Oc,S)&&Object.hasOwn(x.properties,S)){const R=x.properties[S],_=Oc[S];(_===null||_.includes(x.tagName))&&(x.properties[S]=g(String(R||""),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 p&&x.children?w.children.splice(b,1,...x.children):w.children.splice(b,1),b}}}function Hj(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||Mj.test(n.slice(0,a))?n:""}function Yl(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(Dj,{children:n.value})})}function Hg(n){return n==="rtl"?"text-right":""}function qg(n){if(n)return{unicodeBidi:"plaintext"}}function Yg(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 cx(n){const{setKey:a}=st(),r=n.showSource!==!1,u=n.rows?n.rows:Object.entries(n.translations||{}).sort(([m],[x])=>m.localeCompare(x)).map(([m,x])=>({locale:m,value:x,source:"direct"})),[o,c]=T.useState([]),[d,p]=T.useState(null);if(u.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No translations found."});T.useEffect(()=>{if(typeof window>"u"||!n.getRowFragmentId)return;const m=decodeURIComponent(window.location.hash.slice(1));if(!m)return;const x=u.find(w=>{var S;return((S=n.getRowFragmentId)==null?void 0:S.call(n,w))===m});if(!x)return;const b=n.getRowKey?n.getRowKey(x):x.locale;c(w=>w.includes(b)?w:[...w,b]),p(m)},[u,n.getRowFragmentId,n.getRowKey]),T.useEffect(()=>{if(!d||typeof window>"u")return;const m=window.requestAnimationFrame(()=>{const x=document.getElementById(d);x&&x.scrollIntoView({block:"start"})});return()=>{window.cancelAnimationFrame(m)}},[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(m=>{var R,_,H,k,Z,z,J,F,U;const x=n.getRowKey?n.getRowKey(m):m.locale,b=(R=n.getRowFragmentId)==null?void 0:R.call(n,m),w=!!n.renderExpandedRow,S=o.includes(x);return h.jsxs(T.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($=>{var ue;if($.includes(x)){const se=$.filter(ee=>ee!==x),me=b&&d===b?se[se.length-1]||null:$[$.length-1]||null,ne=me&&((ue=n.getRowFragmentId)==null?void 0:ue.call(n,u.find(ee=>(n.getRowKey?n.getRowKey(ee):ee.locale)===me)))||null;return p(ne),Yg(ne||void 0),se}return b&&(p(b),Yg(b)),[...$,x]}):void 0,children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium",children:n.linkLocales?h.jsx(Ze,{to:et("locale",m.locale,a),className:"font-medium text-primary hover:underline",onClick:$=>$.stopPropagation(),children:m.locale}):m.locale}),h.jsx("td",{className:["border-b border-border px-3 py-2",m.source==="inherited"?"text-faint":"",Hg((_=n.localeDirections)==null?void 0:_[m.locale])].join(" "),dir:(H=n.localeDirections)==null?void 0:H[m.locale],style:qg((k=n.localeDirections)==null?void 0:k[m.locale]),children:m.value||"—"}),n.comparisonLabel&&h.jsx("td",{className:["border-b border-border px-3 py-2 text-muted",Hg((Z=n.localeDirections)==null?void 0:Z[m.locale])].join(" "),dir:(z=n.localeDirections)==null?void 0:z[m.locale],style:qg((J=n.localeDirections)==null?void 0:J[m.locale]),children:((F=n.comparisonValues)==null?void 0:F[m.locale])||"—"}),n.renderMetaCell&&h.jsx("td",{className:"border-b border-border px-3 py-2",children:n.renderMetaCell(m)}),r&&h.jsxs("td",{className:"border-b border-border px-3 py-2 text-muted",children:[m.source,m.from?h.jsxs(h.Fragment,{children:[" from ",h.jsx(Ze,{to:et("locale",m.from,a),className:"font-medium text-primary hover:underline",onClick:$=>$.stopPropagation(),children:m.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:(U=n.renderExpandedRow)==null?void 0:U.call(n,m)})})]},x)})})]})})}function nr(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(Ze,{className:"text-primary hover:underline",to:et(n.type,n.type==="attribute"?a.split(".")[0]:a,n.setKey),children:h.jsx(Sl,{value:a,className:"font-medium"})})},a))})}const qj="dup";function _u(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),`${qj}${(a>>>0).toString(36)}${(r>>>0).toString(36)}`}function Yj(n,a){return n.slice().sort((r,u)=>{const o=a.direction==="asc"?1:-1,c=r.value.localeCompare(u.value);return a.column==="messages"?(r.messageKeys.length-u.messageKeys.length||c)*o:(r.value.localeCompare(u.value)||r.messageKeys.length-u.messageKeys.length)*o})}function Vg(n,a){return n.column!==a?{column:a,direction:a==="messages"?"desc":"asc"}:{column:a,direction:n.direction==="asc"?"desc":"asc"}}function Df(n,a){if(n)return a==null?void 0:a[n]}function Lf(n){return n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function Qg(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function st(){return k0()}function Oa(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 Vj(n,a){const r=Pu(n.path),u=Oa(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 p=d.value.toLowerCase();switch(d.key){case"type":if(!r.type.toLowerCase().includes(p))return!1;break;case"style":if(!r.style.toLowerCase().includes(p))return!1;break;case"param":if(!r.param.toLowerCase().includes(p))return!1;break;case"value":if(!u.toLowerCase().includes(p))return!1;break;case"from":if(!(n.from||"").toLowerCase().includes(p))return!1;break;case"source":if(!n.source.toLowerCase().includes(p))return!1;break;default:if(!c.includes(p))return!1}}return!0}function Qj(n,a){const r=a.trim();if(!r)return n;const u=Wi(r);return u.freeText.length===0&&u.qualifiers.length===0?n:n.filter(o=>Vj(o,u))}function Kj(n){const a=n.trim();if(!a)return"";const r=Wi(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 Pu(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 Gj(n){const r=[...n].sort((d,p)=>d.path.localeCompare(p.path)).map(d=>({row:d,parts:Pu(d.path)})),u=[];let o=0,c=0;for(;c<r.length;){const d=r[c].parts.type;let p=c;for(;p<r.length&&r[p].parts.type===d;)p++;const g=p-c;let m=c;for(;m<p;){const x=r[m].parts.style;let b=m;for(;b<p&&r[b].parts.style===x;)b++;const w=b-m;for(let S=m;S<b;S++)u.push({row:r[S].row,parts:r[S].parts,showTypeCell:S===c,typeRowSpan:g,showStyleCell:S===m,styleRowSpan:w,typeBand:o});m=b}o+=1,c=p}return u}function Xj(n){const a=new Set;for(const r of n){const u=Pu(r.path).type;u&&a.add(u)}return[...a].sort((r,u)=>r.localeCompare(u))}const Kg=["number","date","time"];function fx(n){return!1}function Zj(n){const a=new Set(Kg),r=n.filter(u=>!a.has(u)).sort((u,o)=>u.localeCompare(o));return[...Kg,...r]}function mn(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}function $j(){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 Fj(){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 Wu="h-7";function dx(n){return h.jsxs("div",{className:["inline-flex shrink-0 items-stretch rounded-lg border border-border bg-elevated p-px",Wu].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($j,{})}),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(Fj,{})})]})}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 Ba(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(ir,{value:n.value})}function es(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(ir,{value:n.value})})}function ts(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 ns(n){T.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 Gg(){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 Jj(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 Ij(n){var w,S;const{manifest:a}=En(),[r,u]=T.useState(!1),o=T.useRef(null);T.useEffect(()=>{if(!r)return;function R(H){var k;(k=o.current)!=null&&k.contains(H.target)||u(!1)}function _(H){H.key==="Escape"&&u(!1)}return document.addEventListener("pointerdown",R),document.addEventListener("keydown",_),()=>{document.removeEventListener("pointerdown",R),document.removeEventListener("keydown",_)}},[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(R=>{var _;return(_=n.editLinks)==null?void 0:_[R.id]}),p=d.length>0;if(!c&&!p)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",m="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=p?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(R=>{var _;return h.jsxs("a",{role:"menuitem",href:(_=n.editLinks)==null?void 0:_[R.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(Jj,{icon:R.icon}),h.jsxs("span",{children:["Open in ",R.label]})]},R.id)})}):null;return p?h.jsxs("div",{ref:o,className:"relative inline-flex",children:[c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:`${m} rounded-l`,children:"Edit"}):h.jsxs("button",{type:"button",className:`${m} inline-flex items-center gap-2 rounded`,"aria-haspopup":"menu","aria-expanded":r,onClick:()=>u(R=>!R),children:["Edit",h.jsx(Gg,{})]}),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(R=>!R),children:h.jsx(Gg,{})}),r&&b]}):c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:g,children:"Edit"}):null}function hx(n){const{setKey:a}=st(),r=n.rows||[],u=n.searchQuery??"",o=Kj(u),c=!!o.trim(),d=n.formatPathLayout==="split",p=!!(n.hideTypeColumn&&d),g=!!n.showExampleColumn;let m=u.trim()?Qj(r,u):r;if(d&&n.selectedFormatType&&(m=m.filter(z=>Pu(z.path).type===n.selectedFormatType)),r.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No formats found."});if(m.length===0){const z=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:z})}const x=d?Gj(m):null;function b(z){return z?c?h.jsx(Ve,{text:z,query:o}):z:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function w(z,J){const F=b(z);return J==="param"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap font-mono text-[11px] leading-snug text-muted",children:F}):J==="style"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap leading-snug text-text",children:F}):h.jsx("div",{className:"whitespace-pre-wrap leading-snug text-text [overflow-wrap:anywhere]",children:F})}function S(z){return z%2===0?"bg-surface":"bg-elevated/[0.2]"}function R(z){switch(z){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 _(z,J){const F=Oa(z.value),U=z.source==="inherited"&&!!z.from,$=z.source==="target";return h.jsx("td",{className:[J,R("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]",z.source==="inherited"?"text-muted":""].join(" "),children:c?h.jsx(Ve,{text:F,query:o}):F}),(U||$)&&h.jsxs("div",{className:"flex shrink-0 flex-col items-end justify-center gap-1",children:[U&&z.from?h.jsx(er,{label:"inherited from",value:z.from,to:et("locale",z.from,a),tone:"inheritance",compact:!0}):null,$?h.jsx(er,{label:"from",value:"target",tone:"neutral",compact:!0}):null]})]})})}function H(z){return z?c?h.jsx(Ve,{text:z,query:o}):z:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function k(z,J){return!g||!z.showStyleCell?null:h.jsx("td",{rowSpan:z.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 whitespace-pre-wrap [overflow-wrap:anywhere]",J,R("example")].join(" "),children:H(z.row.examplePreview)})}function Z(z){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:H(z.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:p?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:[p?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(z=>{const J=S(z.typeBand);return h.jsxs("tr",{children:[!p&&z.showTypeCell?h.jsx("td",{rowSpan:z.typeRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",J,R("type")].join(" "),children:w(z.parts.type,"type")}):null,z.showStyleCell?h.jsx("td",{rowSpan:z.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",J,R("style")].join(" "),children:w(z.parts.style,"style")}):null,k(z,J),h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 font-medium text-muted",J,R("param")].join(" "),children:w(z.parts.param,"param")}),_(z.row,["align-middle min-w-0 px-3 py-2",J].join(" "))]},z.row.path)}):m.map(z=>{const J=["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:J,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:c?h.jsx(Ve,{text:z.path,query:o}):z.path})}),g?Z(z):null,_(z,"align-middle min-w-0 px-3 py-2 font-medium text-muted")]},z.path)})})]})})}function mx(n){const{setKey:a}=st();return h.jsx(Ze,{to:et("locale",n.localeKey,a),className:"font-medium text-primary hover:underline",children:n.localeKey})}function Pj(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(T.Fragment,{children:[u>0?", ":null,h.jsx(Ze,{className:"font-medium text-primary hover:underline",to:et("locale",r,n.setKey),children:r})]},r))})}function Wj(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(Ze,{className:"inline-flex",to:et("target",r,n.setKey),children:h.jsx(sn,{children:r})},r))})}function af(){var w;const{entityPath:n,entityKey:a,setKey:r}=Gu(),[u,o]=T.useState(null),[c,d]=T.useState(null);if(T.useEffect(()=>{if(!Qg(n)||!a)return;const S=Ii[n];o(null),d(null),A1(S,a,r).then(o).catch(R=>d(R.message))},[n,a,r]),!Qg(n)||!a)return h.jsx(Xn,{to:Pi(r)||"/",replace:!0});const p=Ii[n],g=`${Pi(r)}/${xy[p]}/${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 ",Zn[p].singular.toLowerCase(),"..."]});const m=u.entity,{manifest:x}=En(),b=eN(p,g,((w=x.features)==null?void 0:w.duplicates)===!0);return h.jsxs("div",{children:[h.jsx(bf,{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:[Zn[p].singular,":"]}),h.jsx(Sl,{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:[m.archived&&h.jsx(sn,{tone:"danger",children:"archived"}),m.deprecated&&h.jsx(sn,{tone:"warning",children:"deprecated"})]}),actions:h.jsx(Ij,{sourcePath:u.sourcePath,editLinks:u.editLinks})}),h.jsx(hS,{tabs:b,children:h.jsx(G0,{context:{detail:u,setKey:r}})})]})}function eN(n,a,r=!1){const u=[{label:"Overview",to:a,end:!0},{label:"History",to:`${a}/history`}];return n==="locale"?[u[0],{label:"Formats",to:`${a}/formats`},{label:"Examples",to:`${a}/examples`},...r?[{label:"Duplicates",to:`${a}/duplicates`}]:[],u[1]]:n==="message"?[u[0],{label:"Translations",to:`${a}/translations`},{label:"Overrides",to:`${a}/overrides`},{label:"Examples",to:`${a}/examples`},u[1]]:n==="target"?[u[0],{label:"Formats",to:`${a}/formats`,end:!1},{label:"Messages",to:`${a}/messages`},u[1]]:n==="segment"?[u[0],{label:"Conditions",to:`${a}/conditions`},{label:"Usage",to:`${a}/usage`},u[1]]:[u[0],{label:"Usage",to:`${a}/usage`},u[1]]}function tN(){const{detail:n,setKey:a}=st(),{manifest:r}=En(),u=n.entity,o=nN(n,u,a,r.sets);return h.jsx("div",{className:"space-y-5",children:h.jsx(pS,{fields:o})})}function nN(n,a,r,u){const o=u?{label:"Promotable",value:a.promotable===!1?"No":"Yes"}:void 0,c=p=>p.filter(g=>!!(g!=null&&g.value));if(n.type==="locale"){const p=[{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(Yl,{value:a.description}),fullWidth:!0}];return c(p)}if(n.type==="message"){const p=[o,{label:"Deprecated",value:a.deprecated?"Yes":"No"},{label:"Deprecation warning",value:a.deprecationWarning},{label:"Targets",value:h.jsx(Wj,{targetKeys:n.targets,setKey:r})},{label:"Summary",value:a.summary,fullWidth:!0},{label:"Description",value:h.jsx(Yl,{value:a.description}),fullWidth:!0},{label:"Meta",value:a.meta?h.jsx(ir,{value:a.meta}):void 0,fullWidth:!0}];return c(p)}if(n.type==="attribute"){const p=Array.isArray(a.enum)?a.enum.length>0:!!a.enum,g=Array.isArray(a.required)?a.required.length>0:!!a.required,m=typeof a.minimum<"u"||typeof a.maximum<"u",x=[{label:"Type",value:a.type},o,{label:"Allowed values",value:p?Oa(a.enum):void 0},{label:"Required fields",value:g?Oa(a.required):void 0},{label:"Pattern",value:a.pattern},{label:"Range",value:m?`${typeof a.minimum<"u"?a.minimum:"-∞"} to ${typeof a.maximum<"u"?a.maximum:"∞"}`:void 0},{label:"Description",value:h.jsx(Yl,{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(Yl,{value:a.description}),fullWidth:!0}]);const d=[o,{label:"Included message patterns",value:Oa(a.includeMessages)},{label:"Excluded message patterns",value:Oa(a.excludeMessages)},{label:"Locales",value:h.jsx(Pj,{localeKeys:n.locales,setKey:r})},{label:"Description",value:h.jsx(Yl,{value:a.description}),fullWidth:!0}];return c(d)}const lN=["type:number","style:decimal","type:date","param:maximumFractionDigits","value:2","from:en","source:direct"];function aN(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:"}),lN.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 px(n){const[a]=$n(),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(Ze,{replace:!0,to:{search:o(null)},className:c(u===null),children:"All types"}),n.typeKeys.map(d=>{const p=d===u;return h.jsx(Ze,{replace:!0,to:{search:o(d)},className:c(p),children:d},d)})]})}function gx(n){const[a]=$n(),r=a.get("formatType")??"",u=T.useMemo(()=>Xj(n),[n]),o=T.useMemo(()=>Zj(u),[u]),c=r&&o.includes(r)?r:null;return{formatTypes:u,formatTypePillKeys:o,selectedFormatType:c}}function yx(){const[n,a]=$n(),[r,u]=T.useState(!1),o=n.get("q")??"";function c(d){const p=o.trim(),g=p.split(/\s+/).filter(Boolean),m=g.findIndex(b=>b.toLowerCase()===d.toLowerCase()),x=m!==-1?g.filter((b,w)=>w!==m).join(" "):p?`${p} ${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($u,{type:"search",value:o,onChange:d=>{const p=d.target.value;a(mn(n,"q",p.trim()?p:void 0),{replace:!0})},placeholder:"Search formats…","aria-label":"Search formats",className:[Wu,"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(aN,{query:o,onHintClick:c})})})]})})}function iN(){const{detail:n}=st(),[a]=$n(),r=a.get("q")??"",u=n.formatRows,o=u??[],{formatTypes:c,formatTypePillKeys:d,selectedFormatType:p}=gx(o),g=fx();return h.jsxs("div",{className:"space-y-6",children:[c.length>0?h.jsx(px,{typeKeys:d}):null,h.jsx(yx,{}),h.jsx(hx,{rows:u,searchQuery:r,formatPathLayout:"split",hideTypeColumn:p!=null,selectedFormatType:p,showExampleColumn:g})]})}function rf(){const{detail:n}=st();return n.type==="target"?h.jsx(NN,{}):h.jsx(iN,{})}function rN(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(Ze,{to:`${et("message",n.messageKey,n.setKey)}/overrides#${a}`,className:"text-sm font-semibold text-primary hover:underline",children:h.jsx(Sl,{value:a,className:"font-semibold"})}),r.source==="inherited"&&r.from&&h.jsx(er,{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(Ay,{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(vf,{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(es,{value:r.value||"—",direction:Df(r.locale,n.localeDirections)})]})]},a))})]})}function uN(){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(m=>({key:m.key,row:(m.rows||[]).find(x=>x.locale===g.locale),override:c.find(x=>x.key===m.key)})).filter(m=>!!(m.row&&m.row.source!=="missing"&&m.override))])),p=new Set(Object.entries(d).filter(([,g])=>g.length>0).map(([g])=>g));return h.jsx(cx,{rows:n.translations,linkLocales:!0,showSource:!1,localeDirections:u,getRowFragmentId:g=>Lf(`translation-${g.locale}`),renderExpandedRow:g=>h.jsx(rN,{messageKey:n.key,overrides:d[g.locale]||[],localeDirections:u,setKey:a}),renderMetaCell:g=>{const m=[];return g.source==="inherited"&&g.from&&m.push(h.jsx(er,{label:"inherited from",value:g.from,to:et("locale",g.from,a),tone:"inheritance",compact:!0},`inherited-${g.locale}`)),p.has(g.locale)&&m.push(h.jsx(er,{label:"overrides",value:"yes",tone:"override",compact:!0},`override-${g.locale}`)),m.length===0?null:h.jsx("div",{className:"flex flex-wrap justify-end gap-1.5",children:m})}})}function sN(){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 ns([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(Sl,{value:d.key,className:"font-semibold"})}),h.jsx(ts,{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(Yl,{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(Ay,{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(vf,{conditions:d.conditions,setKey:a})]}),h.jsx(cx,{translations:d.translations,linkLocales:!0,showSource:!1,translationLabel:"Overridden translation",comparisonLabel:"Original translation",comparisonValues:o,localeDirections:u})]})]},d.key))})}function oN(){const{detail:n}=st(),[a,r]=$n(),u=n.evaluatedExamples||[],o=n.localeDirections||{},c=Object.fromEntries((n.translations||[]).map(w=>[w.locale,w.value])),p=a.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(u.map(w=>w.locale))).sort(),m=a.get("locale"),x=m&&g.includes(m)?m:"",b=x?u.filter(w=>w.locale===x):u;return ns([b.length,x,p]),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(dx,{activeView:p,onViewChange:w=>r(mn(a,"view",w==="compact"?void 0:w))})})]}),p==="compact"?h.jsx(dN,{examples:b,localeDirections:o,originalTranslationsByLocale:c}):h.jsx(fN,{examples:b,localeDirections:o,originalTranslationsByLocale:c})]})}function xx(n){var r,u,o;const a=(r=n.highlightQuery)!=null&&r.trim()&&n.title?h.jsx(Ve,{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(ts,{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(Ve,{text:n.description.trim(),query:n.highlightQuery})}):h.jsx("div",{className:"text-sm text-muted",children:h.jsx(Yl,{value:n.description})}):null]})}function bx(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(Ve,{text:typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation),query:n.highlightQuery??""})}):h.jsx(es,{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 uf(n){return Lf([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function vx(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function cN(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function Sx(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(mx,{localeKey:a.locale})}),typeof a.values<"u"&&h.jsx(xt,{label:"Values",children:h.jsx(Ba,{value:a.values})}),typeof a.context<"u"&&h.jsx(xt,{label:"Context",children:h.jsx(Ba,{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(Ba,{value:a.formats})}),o&&h.jsx(xt,{label:"Original translation",children:h.jsxs("div",{className:"space-y-2",children:[h.jsx(es,{value:o}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Ze,{to:`${et("message",r.key,u)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Ze,{to:`${et("message",r.key,u)}/overrides`,className:"font-medium text-primary hover:underline",children:"overrides"}),"."]})]})})]})}function fN(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=uf(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(xx,{title:vx(a),targetId:r,description:a.description}),h.jsx(bx,{inputs:h.jsx(Sx,{example:a,showLocale:!0,originalTranslationsByLocale:n.originalTranslationsByLocale}),evaluatedTranslation:a.evaluatedTranslation,direction:Df(a.locale,n.localeDirections)})]},`${a.exampleIndex}-${a.matrixIndex??"base"}-${a.locale}`)})})}function dN(n){const[a,r]=T.useState([]),[u,o]=T.useState(null);T.useEffect(()=>{if(typeof window>"u")return;const d=decodeURIComponent(window.location.hash.slice(1));!d||!n.examples.find(g=>uf(g)===d)||(r(g=>g.includes(d)?g:[...g,d]),o(d))},[n.examples]);function c(d){if(a.includes(d)){const p=a.filter(m=>m!==d),g=u===d?p[p.length-1]||null:u;r(p),o(g),Ya(g||void 0);return}r(p=>[...p,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 p=uf(d),g=a.includes(p),m=Df(d.locale,n.localeDirections);return h.jsxs(T.Fragment,{children:[h.jsxs("tr",{id:p,className:["cursor-pointer align-top transition-colors",g?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>c(p),children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium text-muted",children:cN(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",m==="rtl"?"text-right":""].join(" "),dir:m,style:m?{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:vx(d)}),h.jsx(ts,{targetId:p})]}),h.jsx(Sx,{example:d,showLocale:!1,originalTranslationsByLocale:n.originalTranslationsByLocale})]})})})]},p)})})]})})}function Yu(n){return Lf([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function sf(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function wx(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function hN(n){return typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation)}function mN(n,a){const r=a.trim().toLowerCase();return r?n.filter(u=>{const o=Yu(u),c=wx(u),d=u.description??"",p=hN(u);return`${o} ${c} ${d} ${p}`.toLowerCase().includes(r)}):n}function Ex(n){var p;const{example:a,setKey:r,localeDirection:u}=n,o=((p=n.highlightQuery)==null?void 0:p.trim())??"",c=!!o;function d(g){return c?h.jsx(Ze,{to:et("locale",g,r),className:"font-medium text-primary hover:underline",children:h.jsx(Ve,{text:g,query:o})}):h.jsx(mx,{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(Ze,{to:et("message",a.message,r),className:"font-medium text-primary hover:underline",children:c?h.jsx(Ve,{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(Ve,{text:a.originalTranslation,query:o})}):h.jsx(es,{value:a.originalTranslation,direction:u}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Ze,{to:`${et("message",a.message,r)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Ze,{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(Ve,{text:a.rawMessage,query:o})}):h.jsx(ir,{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(Ve,{text:JSON.stringify(a.values,null,2),query:o})}):h.jsx(Ba,{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(Ve,{text:JSON.stringify(a.context,null,2),query:o})}):h.jsx(Ba,{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(Ve,{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(Ve,{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(Ve,{text:JSON.stringify(a.formats,null,2),query:o})}):h.jsx(Ba,{value:a.formats})})]})}function pN(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=Yu(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(xx,{title:sf(a),targetId:r,description:a.description,highlightQuery:n.searchQuery}),h.jsx(bx,{inputs:h.jsx(Ex,{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 gN(n){const[a,r]=T.useState([]),[u,o]=T.useState(null);T.useEffect(()=>{if(typeof window>"u")return;const d=decodeURIComponent(window.location.hash.slice(1));!d||!n.examples.find(g=>Yu(g)===d)||(r(g=>g.includes(d)?g:[...g,d]),o(d))},[n.examples]);function c(d){if(a.includes(d)){const p=a.filter(m=>m!==d),g=u===d?p[p.length-1]||null:u;r(p),o(g),Ya(g||void 0);return}r(p=>[...p,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 p=Yu(d),g=a.includes(p);return h.jsxs(T.Fragment,{children:[h.jsxs("tr",{id:p,className:["cursor-pointer align-top transition-colors",g?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>c(p),children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium text-muted",children:h.jsx(Ve,{text:wx(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(Ve,{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(Ve,{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(Ve,{text:sf(d),query:n.searchQuery}):sf(d)}),h.jsx(ts,{targetId:p})]}),h.jsx(Ex,{example:d,setKey:n.setKey,localeDirection:n.localeDirection,showLocale:!1,highlightQuery:n.searchQuery})]})})})]},p)})})]})})}function yN(){const{detail:n,setKey:a}=st(),[r,u]=$n(),o=n.evaluatedExamples||[],c=n.entity.direction,p=r.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(o.map(R=>R.sourceLocale))).sort(),m=r.get("sourceLocale"),x=m&&g.includes(m)?m:"",b=x?o.filter(R=>R.sourceLocale===x):o,w=r.get("q")??"",S=mN(b,w);return ns([S.length,x,p,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($u,{type:"search",value:w,onChange:R=>{const _=R.target.value;u(mn(r,"q",_.trim()?_:void 0),{replace:!0})},placeholder:"Search examples…","aria-label":"Search examples",className:[Wu,"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(R=>{const _=x===R;return h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",_?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),onClick:()=>u(mn(r,"sourceLocale",_?void 0:R)),children:R},R)})]})]}):null,h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(dx,{activeView:p,onViewChange:R=>u(mn(r,"view",R==="compact"?void 0:R))})})]}),S.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples match your search."}):p==="compact"?h.jsx(gN,{examples:S,setKey:a,localeDirection:c,searchQuery:w}):h.jsx(pN,{examples:S,setKey:a,localeDirection:c,searchQuery:w})]})}function xN(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 Xg(n){return h.jsx("span",{className:n.active?"text-primary":"text-muted/60","aria-hidden":"true",children:n.active?n.direction==="asc"?"↑":"↓":"↕"})}function bN(){var Z;const{detail:n,setKey:a}=st(),{manifest:r}=En(),[u,o]=$n(),[c,d]=T.useState(null),[p,g]=T.useState(null),[m,x]=T.useState([]),[b,w]=T.useState({column:"messages",direction:"desc"}),S=n.entity.direction,R=u.get("q")??"",_=((Z=r.features)==null?void 0:Z.duplicates)===!0;function H(z){const J=_u(z.value);x(F=>{if(F.includes(J)){const U=F.filter($=>$!==J);return Ya(void 0),U}return Ya(J),[...F,J]})}if(T.useEffect(()=>{if(!_)return;let z=!1;return d(null),g(null),x([]),k1(n.key,a).then(J=>{z||d(J)}).catch(J=>{z||g(J.message)}),()=>{z=!0}},[n.key,_,a]),T.useEffect(()=>{if(!c||typeof window>"u")return;const z=decodeURIComponent(window.location.hash.slice(1));if(!z)return;const J=c.duplicateValues.find(U=>_u(U.value)===z);if(!J)return;const F=_u(J.value);x(U=>U.includes(F)?U:[...U,F])},[c]),ns([c==null?void 0:c.duplicateValues.length,m.length]),!_)return h.jsx(Xn,{to:"..",replace:!0});if(p)return h.jsx(qa,{title:"Unable to load duplicate translations",description:p});if(!c)return h.jsx("div",{className:"text-sm text-muted",children:"Loading duplicate translations..."});if(c.duplicateValues.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No duplicate translations found for this locale."});const k=Yj(xN(c.duplicateValues,R),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($u,{type:"search",value:R,onChange:z=>{const J=z.target.value;o(mn(u,"q",J.trim()?J:void 0),{replace:!0})},placeholder:"Search duplicates...","aria-label":"Search duplicates",className:[Wu,"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:[c.summary.duplicateValues," value",c.summary.duplicateValues===1?"":"s"," ·"," ",c.summary.duplicateMessageKeys," message key",c.summary.duplicateMessageKeys===1?"":"s"]})]}),k.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","aria-sort":b.column==="value"?b.direction==="asc"?"ascending":"descending":"none",children:h.jsxs("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1 text-left font-semibold uppercase tracking-wide text-muted transition-colors hover:text-text",onClick:()=>w(z=>Vg(z,"value")),children:[h.jsx("span",{children:"Duplicate value"}),h.jsx(Xg,{active:b.column==="value",direction:b.direction})]})}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold","aria-sort":b.column==="messages"?b.direction==="asc"?"ascending":"descending":"none",children:h.jsxs("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1 text-left font-semibold uppercase tracking-wide text-muted transition-colors hover:text-text",onClick:()=>w(z=>Vg(z,"messages")),children:[h.jsx("span",{children:"Messages"}),h.jsx(Xg,{active:b.column==="messages",direction:b.direction})]})})]})}),h.jsx("tbody",{children:k.map(z=>{const J=Object.fromEntries(z.sources.map($=>[$.messageKey,$.locale])),F=_u(z.value),U=m.includes(F);return h.jsxs(T.Fragment,{children:[h.jsxs("tr",{id:F,className:["cursor-pointer align-top transition-colors",U?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>H(z),children:[h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2 font-medium text-text",S==="rtl"?"text-right":""].join(" "),dir:S,style:S?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"truncate",children:h.jsx(Ve,{text:z.value,query:R})})}),h.jsxs("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:[z.messageKeys.length," message",z.messageKeys.length===1?"":"s"]})]}),U&&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(ir,{value:z.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:z.messageKeys.map($=>{const ue=J[$]||c.locale,se=ue!==c.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(Ze,{to:et("message",$,a),className:"font-medium text-primary [overflow-wrap:anywhere] hover:underline",children:h.jsx(Ve,{text:$,query:R})})}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:se?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"from "}),h.jsx(Ze,{to:et("locale",ue,a),className:"font-medium text-primary hover:underline",onClick:me=>me.stopPropagation(),children:h.jsx(Ve,{text:ue,query:R})})]}):h.jsx("span",{children:"direct"})})]},$)})})]})})]})})})]},z.value)})})]})})]})}function vN(){const{detail:n}=st();return n.type==="locale"?h.jsx(yN,{}):h.jsx(oN,{})}function SN(){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(nr,{type:"segment",keys:r.segments,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(nr,{type:"message",keys:r.messages,setKey:a})]})]})}function wN(){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(nr,{type:"attribute",keys:r.attributes,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(nr,{type:"message",keys:r.messages,setKey:a})]})]})}function EN(){const{detail:n}=st();return n.type==="segment"?h.jsx(wN,{}):h.jsx(SN,{})}function jN(){const{detail:n,setKey:a}=st(),r=n.entity;return h.jsx(vf,{conditions:r.conditions,setKey:a})}function NN(){const{detail:n,setKey:a}=st(),{localeKey:r}=Gu(),[u]=$n(),o=u.get("q")??"",c=n.formatRowsByLocale||{},d=Object.keys(c).sort(),p=d.length===0?"":r&&c[r]?r:d[0],g=p&&c[p]?c[p]:[],{formatTypes:m,formatTypePillKeys:x,selectedFormatType:b}=gx(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(Xn,{to:`${w}/${jt(p)}${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 R=u.toString(),_=R?`?${R}`:"",H=S===p;return h.jsx(Ze,{to:`${w}/${jt(S)}${_}`,className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",H?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),children:S},S)})}),m.length>0?h.jsx(px,{typeKeys:x}):null,h.jsx(yx,{}),h.jsx(hx,{rows:c[p],searchQuery:o,formatPathLayout:"split",hideTypeColumn:b!=null,selectedFormatType:b,showExampleColumn:fx()})]})}function TN(){const{detail:n,setKey:a}=st();return h.jsx(nr,{type:"message",keys:n.messages,setKey:a})}function CN(){var u;const{manifest:n}=En(),{detail:a,setKey:r}=st();return h.jsx(Ny,{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 Zg(n={}){const a=n.prefix||"";return h.jsxs(Je,{path:`${a}:entityPath/:entityKey`,element:h.jsx(af,{}),children:[h.jsx(Je,{index:!0,element:h.jsx(tN,{})}),h.jsx(Je,{path:"formats",element:h.jsx(rf,{})}),h.jsx(Je,{path:"examples",element:h.jsx(vN,{})}),h.jsx(Je,{path:"duplicates",element:h.jsx(bN,{})}),h.jsx(Je,{path:"translations",element:h.jsx(uN,{})}),h.jsx(Je,{path:"overrides",element:h.jsx(sN,{})}),h.jsx(Je,{path:"conditions",element:h.jsx(jN,{})}),h.jsx(Je,{path:"usage",element:h.jsx(EN,{})}),h.jsx(Je,{path:"messages",element:h.jsx(TN,{})}),h.jsx(Je,{path:"history",element:h.jsx(CN,{})}),h.jsx(Je,{path:"*",element:h.jsx(Xn,{to:".",replace:!0})})]})}function AN(n){return h.jsx(M1,{initialManifest:n.manifest,children:h.jsx(K1,{children:h.jsxs(X0,{children:[h.jsx(Je,{index:!0,element:h.jsx(G1,{})}),h.jsx(Je,{path:"sets/:setKey",element:h.jsx(Xn,{to:"messages",replace:!0})}),h.jsx(Je,{path:"sets/:setKey/:entityPath",element:h.jsx(Wp,{})}),h.jsx(Je,{path:"sets/:setKey/:entityPath/:entityKey/formats/:localeKey",element:h.jsx(af,{}),children:h.jsx(Je,{index:!0,element:h.jsx(rf,{})})}),Zg({prefix:"sets/:setKey/"}),h.jsx(Je,{path:"sets/:setKey/history",element:h.jsx(eg,{})}),h.jsx(Je,{path:"history",element:h.jsx(eg,{})}),h.jsx(Je,{path:":entityPath",element:h.jsx(Wp,{})}),h.jsx(Je,{path:":entityPath/:entityKey/formats/:localeKey",element:h.jsx(af,{}),children:h.jsx(Je,{index:!0,element:h.jsx(rf,{})})}),Zg(),h.jsx(Je,{path:"*",element:h.jsx(Xn,{to:"/",replace:!0})})]})})})}async function zN(){const n=await vy(),a=n.router==="browser"?y1:x1;C1(n.router),Fg.createRoot(document.getElementById("root")).render(h.jsx(T.StrictMode,{children:h.jsx(a,{children:h.jsx(AN,{manifest:n})})}))}zN().catch(n=>{Fg.createRoot(document.getElementById("root")).render(h.jsx("div",{className:"p-8 text-danger",children:n.message}))});