@malloy-publisher/server 0.0.77 → 0.0.78
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.
- package/dist/app/assets/RenderedResult-BAZuT25g-etaZB-YF.js +2 -0
- package/dist/app/assets/index-BKC-ikb3.css +1 -0
- package/dist/app/assets/index-BsMlh93-.js +210 -0
- package/dist/app/assets/index-BsXDwHRS.js +671 -0
- package/dist/app/assets/index-DQrKrnRW.js +432 -0
- package/dist/app/assets/index.umd-DaHgfkHn.js +2078 -0
- package/dist/app/index.html +2 -2
- package/dxt/malloy_bridge.py +149 -69
- package/malloy_mcp.dxt +0 -0
- package/package.json +1 -1
- package/dist/app/assets/RenderedResult-DXlUZo0k-lc5JU6CQ.js +0 -1
- package/dist/app/assets/index--hbjs-yl.js +0 -3414
- package/dist/app/assets/index-C127D7lT.css +0 -1
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-0fTdLuKf-C_Z-qPys.js","assets/html-B0P_v3yU-5FUQOWqS.js","assets/javascript-fa8UlHZE-ySlJ1b_l.js","assets/css-D1aVdRIU-BPhBrDlE.js","assets/angular-ts-wkniW60G-CLxf_aqD.js","assets/scss-DhHc4lxB-DOVe6m7U.js","assets/apl-TLDHFJX6-4Ja2pao0.js","assets/xml-ChBsf5uy-CRY5u_dA.js","assets/java-B7odJ7Ap-xI-RfyKK.js","assets/json-71t8ZF9g-BQoSv7ci.js","assets/astro-Uf8_VxKJ-CLNq6E27.js","assets/typescript-buWNZFwO-Dj6nwHGl.js","assets/postcss-BZ3MNRIJ-B3ZDOciz.js","assets/blade-BtR00Gx0-BH_u9bLw.js","assets/sql-DCkt643--COK4E0Yg.js","assets/bsl-BIXPNqL4-B7NuXuWJ.js","assets/sdbl-BBamrXFL-BLhTXw86.js","assets/cairo-tXZKA2PT-BLBT-6ii.js","assets/python-xYxLFJY--DhUJRlN_.js","assets/cobol-DMssKNmC-B2fukI-w.js","assets/coffee-D_GzM8k1-4lliG68M.js","assets/cpp-CJF2i3ah-pZOsOWe_.js","assets/regexp-GiFkbxS--DWJ3fJO_.js","assets/glsl-XLGYNq5B-BsoackK0.js","assets/c-DASdrs7p-C3t2pwGQ.js","assets/crystal-BKWnaU3g-DLUiimt9.js","assets/shellscript-Dn0-btNd-atvbtKCR.js","assets/edge-CgxR-qhM-C4-j-4jN.js","assets/html-derivative-D59SHfh8-CSkG6UyS.js","assets/elixir-DZkeSPwW-CcKXTVRL.js","assets/elm-BKuV1HE1-DhehEoOI.js","assets/erb-BLwkpXUJ-ChmaBI6f.js","assets/ruby-DcPLUUK3-ComHSJZD.js","assets/haml-CMN0hQaL-P2mc1-Uz.js","assets/graphql-DWpQF4JI-Bg_kbUNo.js","assets/jsx-Bkesy5tT-BAng5TT0.js","assets/tsx-DiGsgWT8-B6W0miNI.js","assets/lua-BVfhNLDr-CWJMHgTQ.js","assets/yaml-Bbg74JKr-CVw76BM1.js","assets/fortran-fixed-form-s9Hnb3av-DpX1AVnn.js","assets/fortran-free-form-CNDsBFUj-DKXYxT9g.js","assets/fsharp-Cv0x43wb-Dg8cqrY9.js","assets/markdown-B6guhLWd-UIAJJxZW.js","assets/gdresource-CMcKXvgJ-CWt23EK3.js","assets/gdshader-BGJEsM2Z-SKMF96pI.js","assets/gdscript-D7aheHm--DfxzS6Rs.js","assets/git-commit-BspYIY3P-n1pa9hpQ.js","assets/diff-XmNrvgM1-BgYniUM_.js","assets/git-rebase--zLBTjUa-D_BU2XLr.js","assets/glimmer-js-DhY9umHJ-VrvmblrN.js","assets/glimmer-ts-CCrHcYH5-JtH9P_df.js","assets/hack-CQrV-ytR-DsU69WFl.js","assets/handlebars-Cc-7fXX5-1wmMMko9.js","assets/http-Dcjm_K1m-BIoBBtFi.js","assets/hxml-BNKImryz-C86vEiUs.js","assets/haxe-CZZ33vZw-C5wWYbrZ.js","assets/imba-Drd0AMDo-ClNo5Aft.js","assets/jinja-CCSYduCH-DYrHgqe4.js","assets/jison-BygvlveW-CnxAXEK_.js","assets/julia-CiahampL-V7UYV-sq.js","assets/r-F-9I-ITZ-CwjWoCRV.js","assets/latex-LfGCYGw5-BH0TQ0ei.js","assets/tex-mHs7a43s-GNY7iZwJ.js","assets/liquid-CvufO3kO-CDc-Ahzk.js","assets/marko-CHlMS8w5-BMD3FaEa.js","assets/less-DQA4v-Nm-BfCpw3nA.js","assets/mdc-4K6B6lHG-BAGHtNo-.js","assets/nginx-Can2eAjw-CdY2tLiv.js","assets/nim-B3r2RtQZ-VfCbv_TB.js","assets/perl-DaMQyPwp-C4BFOiY3.js","assets/php-BL3EfPBi-BMN5eA9q.js","assets/pug-HKe4Luo3-BjTLA0bL.js","assets/qml-FlMIyjU9-DSnJ_WBo.js","assets/razor-CeqqNtyB-CTLKKD1r.js","assets/csharp-CYWRhZ2R-D9R-vmeu.js","assets/rst-C3D6-dqL-DnZbUBhI.js","assets/cmake-Dr-A3iJx-DbXoA79R.js","assets/sas-tDSYjXcL-BoaRjvJ1.js","assets/shaderlab-CvqEIoL0-D4Zbm5h2.js","assets/hlsl-3-lv4gi7-ifBTmRxC.js","assets/shellsession-8OLo3sB6-BcsC7Rtk.js","assets/soy-EwHMOVPj-g2bfMTqc.js","assets/sparql-DhuelBut-DSDXMn9h.js","assets/turtle-BJ2wmjPc-BMR_PYu6.js","assets/stata-Dok6hMw0-Dx5Z5W33.js","assets/svelte-01qw6Rxm-BPq1Epw_.js","assets/templ-Hmy8U0DD-bZJvPZVc.js","assets/go-BErP6iv1-B1SYOhNW.js","assets/ts-tags-DYZ4SGcN-DHCrqCAy.js","assets/twig-BmytkGQV-gxvDbPvi.js","assets/vue-Bl1uVNsA-B0HO5ROf.js","assets/vue-html-DHr5wjBG-BZddcMPi.js","assets/xsl-BefjlXrd-kO2fudRX.js","assets/index-BsMlh93-.js","assets/index-BsXDwHRS.js","assets/index.umd-DaHgfkHn.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function _F(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var sEe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function CN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T1={exports:{}},gf={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Fw;function AF(){if(Fw)return gf;Fw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var c in o)c!=="key"&&(a[c]=o[c])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return gf.Fragment=t,gf.jsx=n,gf.jsxs=n,gf}var Bw;function wF(){return Bw||(Bw=1,T1.exports=AF()),T1.exports}var E=wF(),S1={exports:{}},Lt={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var jw;function kF(){if(jw)return Lt;jw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;function g(N){return N===null||typeof N!="object"?null:(N=h&&N[h]||N["@@iterator"],typeof N=="function"?N:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(N,K,ee){this.props=N,this.context=K,this.refs=x,this.updater=ee||y}S.prototype.isReactComponent={},S.prototype.setState=function(N,K){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,K,"setState")},S.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function T(){}T.prototype=S.prototype;function D(N,K,ee){this.props=N,this.context=K,this.refs=x,this.updater=ee||y}var k=D.prototype=new T;k.constructor=D,b(k,S.prototype),k.isPureReactComponent=!0;var R=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function F(N,K,ee,P,re,me){return ee=me.ref,{$$typeof:e,type:N,key:K,ref:ee!==void 0?ee:null,props:me}}function U(N,K){return F(N.type,K,void 0,void 0,void 0,N.props)}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function C(N){var K={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ee){return K[ee]})}var M=/\/+/g;function V(N,K){return typeof N=="object"&&N!==null&&N.key!=null?C(""+N.key):K.toString(36)}function z(){}function W(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(z,z):(N.status="pending",N.then(function(K){N.status==="pending"&&(N.status="fulfilled",N.value=K)},function(K){N.status==="pending"&&(N.status="rejected",N.reason=K)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function Y(N,K,ee,P,re){var me=typeof N;(me==="undefined"||me==="boolean")&&(N=null);var oe=!1;if(N===null)oe=!0;else switch(me){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(N.$$typeof){case e:case t:oe=!0;break;case p:return oe=N._init,Y(oe(N._payload),K,ee,P,re)}}if(oe)return re=re(N),oe=P===""?"."+V(N,0):P,R(re)?(ee="",oe!=null&&(ee=oe.replace(M,"$&/")+"/"),Y(re,K,ee,"",function(Ve){return Ve})):re!=null&&(H(re)&&(re=U(re,ee+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(M,"$&/")+"/")+oe)),K.push(re)),1;oe=0;var ve=P===""?".":P+":";if(R(N))for(var ye=0;ye<N.length;ye++)P=N[ye],me=ve+V(P,ye),oe+=Y(P,K,ee,me,re);else if(ye=g(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(P=N.next()).done;)P=P.value,me=ve+V(P,ye++),oe+=Y(P,K,ee,me,re);else if(me==="object"){if(typeof N.then=="function")return Y(W(N),K,ee,P,re);throw K=String(N),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return oe}function B(N,K,ee){if(N==null)return N;var P=[],re=0;return Y(N,P,"","",function(me){return K.call(ee,me,re++)}),P}function J(N){if(N._status===-1){var K=N._result;K=K(),K.then(function(ee){(N._status===0||N._status===-1)&&(N._status=1,N._result=ee)},function(ee){(N._status===0||N._status===-1)&&(N._status=2,N._result=ee)}),N._status===-1&&(N._status=0,N._result=K)}if(N._status===1)return N._result.default;throw N._result}var ae=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function ne(){}return Lt.Children={map:B,forEach:function(N,K,ee){B(N,function(){K.apply(this,arguments)},ee)},count:function(N){var K=0;return B(N,function(){K++}),K},toArray:function(N){return B(N,function(K){return K})||[]},only:function(N){if(!H(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Lt.Component=S,Lt.Fragment=n,Lt.Profiler=o,Lt.PureComponent=D,Lt.StrictMode=r,Lt.Suspense=u,Lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Lt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return I.H.useMemoCache(N)}},Lt.cache=function(N){return function(){return N.apply(null,arguments)}},Lt.cloneElement=function(N,K,ee){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var P=b({},N.props),re=N.key,me=void 0;if(K!=null)for(oe in K.ref!==void 0&&(me=void 0),K.key!==void 0&&(re=""+K.key),K)!O.call(K,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&K.ref===void 0||(P[oe]=K[oe]);var oe=arguments.length-2;if(oe===1)P.children=ee;else if(1<oe){for(var ve=Array(oe),ye=0;ye<oe;ye++)ve[ye]=arguments[ye+2];P.children=ve}return F(N.type,re,void 0,void 0,me,P)},Lt.createContext=function(N){return N={$$typeof:s,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:a,_context:N},N},Lt.createElement=function(N,K,ee){var P,re={},me=null;if(K!=null)for(P in K.key!==void 0&&(me=""+K.key),K)O.call(K,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(re[P]=K[P]);var oe=arguments.length-2;if(oe===1)re.children=ee;else if(1<oe){for(var ve=Array(oe),ye=0;ye<oe;ye++)ve[ye]=arguments[ye+2];re.children=ve}if(N&&N.defaultProps)for(P in oe=N.defaultProps,oe)re[P]===void 0&&(re[P]=oe[P]);return F(N,me,void 0,void 0,null,re)},Lt.createRef=function(){return{current:null}},Lt.forwardRef=function(N){return{$$typeof:c,render:N}},Lt.isValidElement=H,Lt.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:J}},Lt.memo=function(N,K){return{$$typeof:d,type:N,compare:K===void 0?null:K}},Lt.startTransition=function(N){var K=I.T,ee={};I.T=ee;try{var P=N(),re=I.S;re!==null&&re(ee,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(ne,ae)}catch(me){ae(me)}finally{I.T=K}},Lt.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Lt.use=function(N){return I.H.use(N)},Lt.useActionState=function(N,K,ee){return I.H.useActionState(N,K,ee)},Lt.useCallback=function(N,K){return I.H.useCallback(N,K)},Lt.useContext=function(N){return I.H.useContext(N)},Lt.useDebugValue=function(){},Lt.useDeferredValue=function(N,K){return I.H.useDeferredValue(N,K)},Lt.useEffect=function(N,K,ee){var P=I.H;if(typeof ee=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(N,K)},Lt.useId=function(){return I.H.useId()},Lt.useImperativeHandle=function(N,K,ee){return I.H.useImperativeHandle(N,K,ee)},Lt.useInsertionEffect=function(N,K){return I.H.useInsertionEffect(N,K)},Lt.useLayoutEffect=function(N,K){return I.H.useLayoutEffect(N,K)},Lt.useMemo=function(N,K){return I.H.useMemo(N,K)},Lt.useOptimistic=function(N,K){return I.H.useOptimistic(N,K)},Lt.useReducer=function(N,K,ee){return I.H.useReducer(N,K,ee)},Lt.useRef=function(N){return I.H.useRef(N)},Lt.useState=function(N){return I.H.useState(N)},Lt.useSyncExternalStore=function(N,K,ee){return I.H.useSyncExternalStore(N,K,ee)},Lt.useTransition=function(){return I.H.useTransition()},Lt.version="19.1.0",Lt}var Uw;function DT(){return Uw||(Uw=1,S1.exports=kF()),S1.exports}var w=DT();const $e=CN(w),YE=_F({__proto__:null,default:$e},[w]);var C1={exports:{}},yf={},_1={exports:{}},A1={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Hw;function DF(){return Hw||(Hw=1,function(e){function t(B,J){var ae=B.length;B.push(J);e:for(;0<ae;){var ne=ae-1>>>1,N=B[ne];if(0<o(N,J))B[ne]=J,B[ae]=N,ae=ne;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var J=B[0],ae=B.pop();if(ae!==J){B[0]=ae;e:for(var ne=0,N=B.length,K=N>>>1;ne<K;){var ee=2*(ne+1)-1,P=B[ee],re=ee+1,me=B[re];if(0>o(P,ae))re<N&&0>o(me,P)?(B[ne]=me,B[re]=ae,ne=re):(B[ne]=P,B[ee]=ae,ne=ee);else if(re<N&&0>o(me,ae))B[ne]=me,B[re]=ae,ne=re;else break e}}return J}function o(B,J){var ae=B.sortIndex-J.sortIndex;return ae!==0?ae:B.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var u=[],d=[],p=1,h=null,g=3,y=!1,b=!1,x=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var J=n(d);J!==null;){if(J.callback===null)r(d);else if(J.startTime<=B)r(d),J.sortIndex=J.expirationTime,t(u,J);else break;J=n(d)}}function I(B){if(x=!1,R(B),!b)if(n(u)!==null)b=!0,O||(O=!0,V());else{var J=n(d);J!==null&&Y(I,J.startTime-B)}}var O=!1,F=-1,U=5,H=-1;function C(){return S?!0:!(e.unstable_now()-H<U)}function M(){if(S=!1,O){var B=e.unstable_now();H=B;var J=!0;try{e:{b=!1,x&&(x=!1,D(F),F=-1),y=!0;var ae=g;try{t:{for(R(B),h=n(u);h!==null&&!(h.expirationTime>B&&C());){var ne=h.callback;if(typeof ne=="function"){h.callback=null,g=h.priorityLevel;var N=ne(h.expirationTime<=B);if(B=e.unstable_now(),typeof N=="function"){h.callback=N,R(B),J=!0;break t}h===n(u)&&r(u),R(B)}else r(u);h=n(u)}if(h!==null)J=!0;else{var K=n(d);K!==null&&Y(I,K.startTime-B),J=!1}}break e}finally{h=null,g=ae,y=!1}J=void 0}}finally{J?V():O=!1}}}var V;if(typeof k=="function")V=function(){k(M)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,W=z.port2;z.port1.onmessage=M,V=function(){W.postMessage(null)}}else V=function(){T(M,0)};function Y(B,J){F=T(function(){B(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(B){switch(g){case 1:case 2:case 3:var J=3;break;default:J=g}var ae=g;g=J;try{return B()}finally{g=ae}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(B,J){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ae=g;g=B;try{return J()}finally{g=ae}},e.unstable_scheduleCallback=function(B,J,ae){var ne=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?ne+ae:ne):ae=ne,B){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=ae+N,B={id:p++,callback:J,priorityLevel:B,startTime:ae,expirationTime:N,sortIndex:-1},ae>ne?(B.sortIndex=ae,t(d,B),n(u)===null&&B===n(d)&&(x?(D(F),F=-1):x=!0,Y(I,ae-ne))):(B.sortIndex=N,t(u,B),b||y||(b=!0,O||(O=!0,V()))),B},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(B){var J=g;return function(){var ae=g;g=J;try{return B.apply(this,arguments)}finally{g=ae}}}}(A1)),A1}var zw;function RF(){return zw||(zw=1,_1.exports=DF()),_1.exports}var w1={exports:{}},Gr={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var $w;function IF(){if($w)return Gr;$w=1;var e=DT();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(u,d,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:u,containerInfo:d,implementation:p}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Gr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Gr.createPortal=function(u,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return a(u,d,null,p)},Gr.flushSync=function(u){var d=s.T,p=r.p;try{if(s.T=null,r.p=2,u)return u()}finally{s.T=d,r.p=p,r.d.f()}},Gr.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d))},Gr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Gr.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var p=d.as,h=c(p,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,y=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:y}):p==="script"&&r.d.X(u,{crossOrigin:h,integrity:g,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Gr.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=c(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},Gr.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,h=c(p,d.crossOrigin);r.d.L(u,p,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Gr.preloadModule=function(u,d){if(typeof u=="string")if(d){var p=c(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},Gr.requestFormReset=function(u){r.d.r(u)},Gr.unstable_batchedUpdates=function(u,d){return u(d)},Gr.useFormState=function(u,d,p){return s.H.useFormState(u,d,p)},Gr.useFormStatus=function(){return s.H.useHostTransitionStatus()},Gr.version="19.1.0",Gr}var Vw;function _N(){if(Vw)return w1.exports;Vw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),w1.exports=IF(),w1.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var Gw;function OF(){if(Gw)return yf;Gw=1;var e=RF(),t=DT(),n=_N();function r(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function a(i){var l=i,f=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(f=l.return),i=l.return;while(i)}return l.tag===3?f:null}function s(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function c(i){if(a(i)!==i)throw Error(r(188))}function u(i){var l=i.alternate;if(!l){if(l=a(i),l===null)throw Error(r(188));return l!==i?null:i}for(var f=i,m=l;;){var v=f.return;if(v===null)break;var _=v.alternate;if(_===null){if(m=v.return,m!==null){f=m;continue}break}if(v.child===_.child){for(_=v.child;_;){if(_===f)return c(v),i;if(_===m)return c(v),l;_=_.sibling}throw Error(r(188))}if(f.return!==m.return)f=v,m=_;else{for(var L=!1,j=v.child;j;){if(j===f){L=!0,f=v,m=_;break}if(j===m){L=!0,m=v,f=_;break}j=j.sibling}if(!L){for(j=_.child;j;){if(j===f){L=!0,f=_,m=v;break}if(j===m){L=!0,m=_,f=v;break}j=j.sibling}if(!L)throw Error(r(189))}}if(f.alternate!==m)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?i:l}function d(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=d(i),l!==null)return l;i=i.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function V(i){return i===null||typeof i!="object"?null:(i=M&&i[M]||i["@@iterator"],typeof i=="function"?i:null)}var z=Symbol.for("react.client.reference");function W(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList";case H:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case k:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case R:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case F:return l=i.displayName||null,l!==null?l:W(i.type)||"Memo";case U:l=i._payload,i=i._init;try{return W(i(l))}catch{}}return null}var Y=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},ne=[],N=-1;function K(i){return{current:i}}function ee(i){0>N||(i.current=ne[N],ne[N]=null,N--)}function P(i,l){N++,ne[N]=i.current,i.current=l}var re=K(null),me=K(null),oe=K(null),ve=K(null);function ye(i,l){switch(P(oe,l),P(me,i),P(re,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?dw(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=dw(l),i=fw(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ee(re),P(re,i)}function Ve(){ee(re),ee(me),ee(oe)}function Le(i){i.memoizedState!==null&&P(ve,i);var l=re.current,f=fw(l,i.type);l!==f&&(P(me,i),P(re,f))}function Oe(i){me.current===i&&(ee(re),ee(me)),ve.current===i&&(ee(ve),df._currentValue=ae)}var Qe=Object.prototype.hasOwnProperty,nt=e.unstable_scheduleCallback,De=e.unstable_cancelCallback,gt=e.unstable_shouldYield,Ct=e.unstable_requestPaint,Be=e.unstable_now,mt=e.unstable_getCurrentPriorityLevel,it=e.unstable_ImmediatePriority,lt=e.unstable_UserBlockingPriority,je=e.unstable_NormalPriority,Pe=e.unstable_LowPriority,Jt=e.unstable_IdlePriority,Mt=e.log,_t=e.unstable_setDisableYieldValue,ue=null,ge=null;function Ue(i){if(typeof Mt=="function"&&_t(i),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(ue,i)}catch{}}var Xe=Math.clz32?Math.clz32:en,Et=Math.log,Je=Math.LN2;function en(i){return i>>>=0,i===0?32:31-(Et(i)/Je|0)|0}var Ut=256,Ke=4194304;function Ee(i){var l=i&42;if(l!==0)return l;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Se(i,l,f){var m=i.pendingLanes;if(m===0)return 0;var v=0,_=i.suspendedLanes,L=i.pingedLanes;i=i.warmLanes;var j=m&134217727;return j!==0?(m=j&~_,m!==0?v=Ee(m):(L&=j,L!==0?v=Ee(L):f||(f=j&~i,f!==0&&(v=Ee(f))))):(j=m&~_,j!==0?v=Ee(j):L!==0?v=Ee(L):f||(f=m&~i,f!==0&&(v=Ee(f)))),v===0?0:l!==0&&l!==v&&(l&_)===0&&(_=v&-v,f=l&-l,_>=f||_===32&&(f&4194048)!==0)?l:v}function ht(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function rt(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 mn(){var i=Ut;return Ut<<=1,(Ut&4194048)===0&&(Ut=256),i}function Pr(){var i=Ke;return Ke<<=1,(Ke&62914560)===0&&(Ke=4194304),i}function vr(i){for(var l=[],f=0;31>f;f++)l.push(i);return l}function $n(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function sr(i,l,f,m,v,_){var L=i.pendingLanes;i.pendingLanes=f,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=f,i.entangledLanes&=f,i.errorRecoveryDisabledLanes&=f,i.shellSuspendCounter=0;var j=i.entanglements,X=i.expirationTimes,fe=i.hiddenUpdates;for(f=L&~f;0<f;){var Ae=31-Xe(f),Re=1<<Ae;j[Ae]=0,X[Ae]=-1;var pe=fe[Ae];if(pe!==null)for(fe[Ae]=null,Ae=0;Ae<pe.length;Ae++){var he=pe[Ae];he!==null&&(he.lane&=-536870913)}f&=~Re}m!==0&&oo(i,m,0),_!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=_&~(L&~l))}function oo(i,l,f){i.pendingLanes|=l,i.suspendedLanes&=~l;var m=31-Xe(l);i.entangledLanes|=l,i.entanglements[m]=i.entanglements[m]|1073741824|f&4194090}function xn(i,l){var f=i.entangledLanes|=l;for(i=i.entanglements;f;){var m=31-Xe(f),v=1<<m;v&l|i[m]&l&&(i[m]|=l),f&=~v}}function Lr(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function yt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function te(){var i=J.p;return i!==0?i:(i=window.event,i===void 0?32:Iw(i.type))}function Z(i,l){var f=J.p;try{return J.p=i,l()}finally{J.p=f}}var ie=Math.random().toString(36).slice(2),be="__reactFiber$"+ie,we="__reactProps$"+ie,qe="__reactContainer$"+ie,ot="__reactEvents$"+ie,Ze="__reactListeners$"+ie,st="__reactHandles$"+ie,et="__reactResources$"+ie,bt="__reactMarker$"+ie;function At(i){delete i[be],delete i[we],delete i[ot],delete i[Ze],delete i[st]}function kt(i){var l=i[be];if(l)return l;for(var f=i.parentNode;f;){if(l=f[qe]||f[be]){if(f=l.alternate,l.child!==null||f!==null&&f.child!==null)for(i=gw(i);i!==null;){if(f=i[be])return f;i=gw(i)}return l}i=f,f=i.parentNode}return null}function rn(i){if(i=i[be]||i[qe]){var l=i.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return i}return null}function On(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i.stateNode;throw Error(r(33))}function Hn(i){var l=i[et];return l||(l=i[et]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function on(i){i[bt]=!0}var Qt=new Set,rs={};function Jr(i,l){Wo(i,l),Wo(i+"Capture",l)}function Wo(i,l){for(rs[i]=l,i=0;i<l.length;i++)Qt.add(l[i])}var ao=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]*$"),os={},as={};function xd(i){return Qe.call(as,i)?!0:Qe.call(os,i)?!1:ao.test(i)?as[i]=!0:(os[i]=!0,!1)}function Yo(i,l,f){if(xd(l))if(f===null)i.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":i.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(l);return}}i.setAttribute(l,""+f)}}function vi(i,l,f){if(f===null)i.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttribute(l,""+f)}}function Ht(i,l,f,m){if(m===null)i.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(f);return}i.setAttributeNS(l,f,""+m)}}var $r,wa;function ka(i){if($r===void 0)try{throw Error()}catch(f){var l=f.stack.trim().match(/\n( *(at )?)/);$r=l&&l[1]||"",wa=-1<f.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+$r+i+wa}var rl=!1;function Pn(i,l){if(!i||rl)return"";rl=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(he){var pe=he}Reflect.construct(i,[],Re)}else{try{Re.call()}catch(he){pe=he}i.call(Re.prototype)}}else{try{throw Error()}catch(he){pe=he}(Re=i())&&typeof Re.catch=="function"&&Re.catch(function(){})}}catch(he){if(he&&pe&&typeof he.stack=="string")return[he.stack,pe.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=m.DetermineComponentFrameRoot(),L=_[0],j=_[1];if(L&&j){var X=L.split(`
|
|
45
|
+
`),fe=j.split(`
|
|
46
|
+
`);for(v=m=0;m<X.length&&!X[m].includes("DetermineComponentFrameRoot");)m++;for(;v<fe.length&&!fe[v].includes("DetermineComponentFrameRoot");)v++;if(m===X.length||v===fe.length)for(m=X.length-1,v=fe.length-1;1<=m&&0<=v&&X[m]!==fe[v];)v--;for(;1<=m&&0<=v;m--,v--)if(X[m]!==fe[v]){if(m!==1||v!==1)do if(m--,v--,0>v||X[m]!==fe[v]){var Ae=`
|
|
47
|
+
`+X[m].replace(" at new "," at ");return i.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",i.displayName)),Ae}while(1<=m&&0<=v);break}}}finally{rl=!1,Error.prepareStackTrace=f}return(f=i?i.displayName||i.name:"")?ka(f):""}function is(i){switch(i.tag){case 26:case 27:case 5:return ka(i.type);case 16:return ka("Lazy");case 13:return ka("Suspense");case 19:return ka("SuspenseList");case 0:case 15:return Pn(i.type,!1);case 11:return Pn(i.type.render,!1);case 1:return Pn(i.type,!0);case 31:return ka("Activity");default:return""}}function Td(i){try{var l="";do l+=is(i),i=i.return;while(i);return l}catch(f){return`
|
|
48
|
+
Error generating stack: `+f.message+`
|
|
49
|
+
`+f.stack}}function io(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function i_(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function E8(i){var l=i_(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),m=""+i[l];if(!i.hasOwnProperty(l)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var v=f.get,_=f.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return v.call(this)},set:function(L){m=""+L,_.call(this,L)}}),Object.defineProperty(i,l,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(L){m=""+L},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function Bh(i){i._valueTracker||(i._valueTracker=E8(i))}function s_(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var f=l.getValue(),m="";return i&&(m=i_(i)?i.checked?"true":"false":i.value),i=m,i!==f?(l.setValue(i),!0):!1}function jh(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var x8=/[\n"\\]/g;function Ko(i){return i.replace(x8,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function vb(i,l,f,m,v,_,L,j){i.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?i.type=L:i.removeAttribute("type"),l!=null?L==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+io(l)):i.value!==""+io(l)&&(i.value=""+io(l)):L!=="submit"&&L!=="reset"||i.removeAttribute("value"),l!=null?Eb(i,L,io(l)):f!=null?Eb(i,L,io(f)):m!=null&&i.removeAttribute("value"),v==null&&_!=null&&(i.defaultChecked=!!_),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?i.name=""+io(j):i.removeAttribute("name")}function l_(i,l,f,m,v,_,L,j){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),l!=null||f!=null){if(!(_!=="submit"&&_!=="reset"||l!=null))return;f=f!=null?""+io(f):"",l=l!=null?""+io(l):f,j||l===i.value||(i.value=l),i.defaultValue=l}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=j?i.checked:!!m,i.defaultChecked=!!m,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(i.name=L)}function Eb(i,l,f){l==="number"&&jh(i.ownerDocument)===i||i.defaultValue===""+f||(i.defaultValue=""+f)}function fc(i,l,f,m){if(i=i.options,l){l={};for(var v=0;v<f.length;v++)l["$"+f[v]]=!0;for(f=0;f<i.length;f++)v=l.hasOwnProperty("$"+i[f].value),i[f].selected!==v&&(i[f].selected=v),v&&m&&(i[f].defaultSelected=!0)}else{for(f=""+io(f),l=null,v=0;v<i.length;v++){if(i[v].value===f){i[v].selected=!0,m&&(i[v].defaultSelected=!0);return}l!==null||i[v].disabled||(l=i[v])}l!==null&&(l.selected=!0)}}function c_(i,l,f){if(l!=null&&(l=""+io(l),l!==i.value&&(i.value=l),f==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=f!=null?""+io(f):""}function u_(i,l,f,m){if(l==null){if(m!=null){if(f!=null)throw Error(r(92));if(Y(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),l=f}f=io(l),i.defaultValue=f,m=i.textContent,m===f&&m!==""&&m!==null&&(i.value=m)}function pc(i,l){if(l){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=l;return}}i.textContent=l}var T8=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 d_(i,l,f){var m=l.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="":m?i.setProperty(l,f):typeof f!="number"||f===0||T8.has(l)?l==="float"?i.cssFloat=f:i[l]=(""+f).trim():i[l]=f+"px"}function f_(i,l,f){if(l!=null&&typeof l!="object")throw Error(r(62));if(i=i.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?i.setProperty(m,""):m==="float"?i.cssFloat="":i[m]="");for(var v in l)m=l[v],l.hasOwnProperty(v)&&f[v]!==m&&d_(i,v,m)}else for(var _ in l)l.hasOwnProperty(_)&&d_(i,_,l[_])}function xb(i){if(i.indexOf("-")===-1)return!1;switch(i){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 S8=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"]]),C8=/^[\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 Uh(i){return C8.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Tb=null;function Sb(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var hc=null,mc=null;function p_(i){var l=rn(i);if(l&&(i=l.stateNode)){var f=i[we]||null;e:switch(i=l.stateNode,l.type){case"input":if(vb(i,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),l=f.name,f.type==="radio"&&l!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Ko(""+l)+'"][type="radio"]'),l=0;l<f.length;l++){var m=f[l];if(m!==i&&m.form===i.form){var v=m[we]||null;if(!v)throw Error(r(90));vb(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(l=0;l<f.length;l++)m=f[l],m.form===i.form&&s_(m)}break e;case"textarea":c_(i,f.value,f.defaultValue);break e;case"select":l=f.value,l!=null&&fc(i,!!f.multiple,l,!1)}}}var Cb=!1;function h_(i,l,f){if(Cb)return i(l,f);Cb=!0;try{var m=i(l);return m}finally{if(Cb=!1,(hc!==null||mc!==null)&&(_m(),hc&&(l=hc,i=mc,mc=hc=null,p_(l),i)))for(l=0;l<i.length;l++)p_(i[l])}}function Sd(i,l){var f=i.stateNode;if(f===null)return null;var m=f[we]||null;if(m===null)return null;f=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(f&&typeof f!="function")throw Error(r(231,l,typeof f));return f}var Ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_b=!1;if(Ei)try{var Cd={};Object.defineProperty(Cd,"passive",{get:function(){_b=!0}}),window.addEventListener("test",Cd,Cd),window.removeEventListener("test",Cd,Cd)}catch{_b=!1}var ss=null,Ab=null,Hh=null;function m_(){if(Hh)return Hh;var i,l=Ab,f=l.length,m,v="value"in ss?ss.value:ss.textContent,_=v.length;for(i=0;i<f&&l[i]===v[i];i++);var L=f-i;for(m=1;m<=L&&l[f-m]===v[_-m];m++);return Hh=v.slice(i,1<m?1-m:void 0)}function zh(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function $h(){return!0}function g_(){return!1}function so(i){function l(f,m,v,_,L){this._reactName=f,this._targetInst=v,this.type=m,this.nativeEvent=_,this.target=L,this.currentTarget=null;for(var j in i)i.hasOwnProperty(j)&&(f=i[j],this[j]=f?f(_):_[j]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?$h:g_,this.isPropagationStopped=g_,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=$h)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=$h)},persist:function(){},isPersistent:$h}),l}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vh=so(ol),_d=p({},ol,{view:0,detail:0}),_8=so(_d),wb,kb,Ad,Gh=p({},_d,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rb,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Ad&&(Ad&&i.type==="mousemove"?(wb=i.screenX-Ad.screenX,kb=i.screenY-Ad.screenY):kb=wb=0,Ad=i),wb)},movementY:function(i){return"movementY"in i?i.movementY:kb}}),y_=so(Gh),A8=p({},Gh,{dataTransfer:0}),w8=so(A8),k8=p({},_d,{relatedTarget:0}),Db=so(k8),D8=p({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),R8=so(D8),I8=p({},ol,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),O8=so(I8),N8=p({},ol,{data:0}),b_=so(N8),P8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L8={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"},M8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F8(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=M8[i])?!!l[i]:!1}function Rb(){return F8}var B8=p({},_d,{key:function(i){if(i.key){var l=P8[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=zh(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?L8[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rb,charCode:function(i){return i.type==="keypress"?zh(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?zh(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),j8=so(B8),U8=p({},Gh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),v_=so(U8),H8=p({},_d,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rb}),z8=so(H8),$8=p({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),V8=so($8),G8=p({},Gh,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),q8=so(G8),W8=p({},ol,{newState:0,oldState:0}),Y8=so(W8),K8=[9,13,27,32],Ib=Ei&&"CompositionEvent"in window,wd=null;Ei&&"documentMode"in document&&(wd=document.documentMode);var Q8=Ei&&"TextEvent"in window&&!wd,E_=Ei&&(!Ib||wd&&8<wd&&11>=wd),x_=" ",T_=!1;function S_(i,l){switch(i){case"keyup":return K8.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var gc=!1;function X8(i,l){switch(i){case"compositionend":return C_(l);case"keypress":return l.which!==32?null:(T_=!0,x_);case"textInput":return i=l.data,i===x_&&T_?null:i;default:return null}}function Z8(i,l){if(gc)return i==="compositionend"||!Ib&&S_(i,l)?(i=m_(),Hh=Ab=ss=null,gc=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return E_&&l.locale!=="ko"?null:l.data;default:return null}}var J8={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 __(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!J8[i.type]:l==="textarea"}function A_(i,l,f,m){hc?mc?mc.push(m):mc=[m]:hc=m,l=Im(l,"onChange"),0<l.length&&(f=new Vh("onChange","change",null,f,m),i.push({event:f,listeners:l}))}var kd=null,Dd=null;function e7(i){iw(i,0)}function qh(i){var l=On(i);if(s_(l))return i}function w_(i,l){if(i==="change")return l}var k_=!1;if(Ei){var Ob;if(Ei){var Nb="oninput"in document;if(!Nb){var D_=document.createElement("div");D_.setAttribute("oninput","return;"),Nb=typeof D_.oninput=="function"}Ob=Nb}else Ob=!1;k_=Ob&&(!document.documentMode||9<document.documentMode)}function R_(){kd&&(kd.detachEvent("onpropertychange",I_),Dd=kd=null)}function I_(i){if(i.propertyName==="value"&&qh(Dd)){var l=[];A_(l,Dd,i,Sb(i)),h_(e7,l)}}function t7(i,l,f){i==="focusin"?(R_(),kd=l,Dd=f,kd.attachEvent("onpropertychange",I_)):i==="focusout"&&R_()}function n7(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return qh(Dd)}function r7(i,l){if(i==="click")return qh(l)}function o7(i,l){if(i==="input"||i==="change")return qh(l)}function a7(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var _o=typeof Object.is=="function"?Object.is:a7;function Rd(i,l){if(_o(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var f=Object.keys(i),m=Object.keys(l);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var v=f[m];if(!Qe.call(l,v)||!_o(i[v],l[v]))return!1}return!0}function O_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function N_(i,l){var f=O_(i);i=0;for(var m;f;){if(f.nodeType===3){if(m=i+f.textContent.length,i<=l&&m>=l)return{node:f,offset:l-i};i=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=O_(f)}}function P_(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?P_(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function L_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=jh(i.document);l instanceof i.HTMLIFrameElement;){try{var f=typeof l.contentWindow.location.href=="string"}catch{f=!1}if(f)i=l.contentWindow;else break;l=jh(i.document)}return l}function Pb(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var i7=Ei&&"documentMode"in document&&11>=document.documentMode,yc=null,Lb=null,Id=null,Mb=!1;function M_(i,l,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Mb||yc==null||yc!==jh(m)||(m=yc,"selectionStart"in m&&Pb(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Id&&Rd(Id,m)||(Id=m,m=Im(Lb,"onSelect"),0<m.length&&(l=new Vh("onSelect","select",null,l,f),i.push({event:l,listeners:m}),l.target=yc)))}function al(i,l){var f={};return f[i.toLowerCase()]=l.toLowerCase(),f["Webkit"+i]="webkit"+l,f["Moz"+i]="moz"+l,f}var bc={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},Fb={},F_={};Ei&&(F_=document.createElement("div").style,"AnimationEvent"in window||(delete bc.animationend.animation,delete bc.animationiteration.animation,delete bc.animationstart.animation),"TransitionEvent"in window||delete bc.transitionend.transition);function il(i){if(Fb[i])return Fb[i];if(!bc[i])return i;var l=bc[i],f;for(f in l)if(l.hasOwnProperty(f)&&f in F_)return Fb[i]=l[f];return i}var B_=il("animationend"),j_=il("animationiteration"),U_=il("animationstart"),s7=il("transitionrun"),l7=il("transitionstart"),c7=il("transitioncancel"),H_=il("transitionend"),z_=new Map,Bb="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(" ");Bb.push("scrollEnd");function Da(i,l){z_.set(i,l),Jr(l,[i])}var $_=new WeakMap;function Qo(i,l){if(typeof i=="object"&&i!==null){var f=$_.get(i);return f!==void 0?f:(l={value:i,source:l,stack:Td(l)},$_.set(i,l),l)}return{value:i,source:l,stack:Td(l)}}var Xo=[],vc=0,jb=0;function Wh(){for(var i=vc,l=jb=vc=0;l<i;){var f=Xo[l];Xo[l++]=null;var m=Xo[l];Xo[l++]=null;var v=Xo[l];Xo[l++]=null;var _=Xo[l];if(Xo[l++]=null,m!==null&&v!==null){var L=m.pending;L===null?v.next=v:(v.next=L.next,L.next=v),m.pending=v}_!==0&&V_(f,v,_)}}function Yh(i,l,f,m){Xo[vc++]=i,Xo[vc++]=l,Xo[vc++]=f,Xo[vc++]=m,jb|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function Ub(i,l,f,m){return Yh(i,l,f,m),Kh(i)}function Ec(i,l){return Yh(i,null,null,l),Kh(i)}function V_(i,l,f){i.lanes|=f;var m=i.alternate;m!==null&&(m.lanes|=f);for(var v=!1,_=i.return;_!==null;)_.childLanes|=f,m=_.alternate,m!==null&&(m.childLanes|=f),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(v=!0)),i=_,_=_.return;return i.tag===3?(_=i.stateNode,v&&l!==null&&(v=31-Xe(f),i=_.hiddenUpdates,m=i[v],m===null?i[v]=[l]:m.push(l),l.lane=f|536870912),_):null}function Kh(i){if(50<nf)throw nf=0,qv=null,Error(r(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var xc={};function u7(i,l,f,m){this.tag=i,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ao(i,l,f,m){return new u7(i,l,f,m)}function Hb(i){return i=i.prototype,!(!i||!i.isReactComponent)}function xi(i,l){var f=i.alternate;return f===null?(f=Ao(i.tag,l,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=l,f.type=i.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=i.flags&65011712,f.childLanes=i.childLanes,f.lanes=i.lanes,f.child=i.child,f.memoizedProps=i.memoizedProps,f.memoizedState=i.memoizedState,f.updateQueue=i.updateQueue,l=i.dependencies,f.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f.refCleanup=i.refCleanup,f}function G_(i,l){i.flags&=65011714;var f=i.alternate;return f===null?(i.childLanes=0,i.lanes=l,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=f.childLanes,i.lanes=f.lanes,i.child=f.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=f.memoizedProps,i.memoizedState=f.memoizedState,i.updateQueue=f.updateQueue,i.type=f.type,l=f.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),i}function Qh(i,l,f,m,v,_){var L=0;if(m=i,typeof i=="function")Hb(i)&&(L=1);else if(typeof i=="string")L=fF(i,f,re.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case H:return i=Ao(31,f,l,v),i.elementType=H,i.lanes=_,i;case b:return sl(f.children,v,_,l);case x:L=8,v|=24;break;case S:return i=Ao(12,f,l,v|2),i.elementType=S,i.lanes=_,i;case I:return i=Ao(13,f,l,v),i.elementType=I,i.lanes=_,i;case O:return i=Ao(19,f,l,v),i.elementType=O,i.lanes=_,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:case k:L=10;break e;case D:L=9;break e;case R:L=11;break e;case F:L=14;break e;case U:L=16,m=null;break e}L=29,f=Error(r(130,i===null?"null":typeof i,"")),m=null}return l=Ao(L,f,l,v),l.elementType=i,l.type=m,l.lanes=_,l}function sl(i,l,f,m){return i=Ao(7,i,m,l),i.lanes=f,i}function zb(i,l,f){return i=Ao(6,i,null,l),i.lanes=f,i}function $b(i,l,f){return l=Ao(4,i.children!==null?i.children:[],i.key,l),l.lanes=f,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var Tc=[],Sc=0,Xh=null,Zh=0,Zo=[],Jo=0,ll=null,Ti=1,Si="";function cl(i,l){Tc[Sc++]=Zh,Tc[Sc++]=Xh,Xh=i,Zh=l}function q_(i,l,f){Zo[Jo++]=Ti,Zo[Jo++]=Si,Zo[Jo++]=ll,ll=i;var m=Ti;i=Si;var v=32-Xe(m)-1;m&=~(1<<v),f+=1;var _=32-Xe(l)+v;if(30<_){var L=v-v%5;_=(m&(1<<L)-1).toString(32),m>>=L,v-=L,Ti=1<<32-Xe(l)+v|f<<v|m,Si=_+i}else Ti=1<<_|f<<v|m,Si=i}function Vb(i){i.return!==null&&(cl(i,1),q_(i,1,0))}function Gb(i){for(;i===Xh;)Xh=Tc[--Sc],Tc[Sc]=null,Zh=Tc[--Sc],Tc[Sc]=null;for(;i===ll;)ll=Zo[--Jo],Zo[Jo]=null,Si=Zo[--Jo],Zo[Jo]=null,Ti=Zo[--Jo],Zo[Jo]=null}var eo=null,Vn=null,sn=!1,ul=null,Ga=!1,qb=Error(r(519));function dl(i){var l=Error(r(418,""));throw Pd(Qo(l,i)),qb}function W_(i){var l=i.stateNode,f=i.type,m=i.memoizedProps;switch(l[be]=i,l[we]=m,f){case"dialog":Gt("cancel",l),Gt("close",l);break;case"iframe":case"object":case"embed":Gt("load",l);break;case"video":case"audio":for(f=0;f<of.length;f++)Gt(of[f],l);break;case"source":Gt("error",l);break;case"img":case"image":case"link":Gt("error",l),Gt("load",l);break;case"details":Gt("toggle",l);break;case"input":Gt("invalid",l),l_(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Bh(l);break;case"select":Gt("invalid",l);break;case"textarea":Gt("invalid",l),u_(l,m.value,m.defaultValue,m.children),Bh(l)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||l.textContent===""+f||m.suppressHydrationWarning===!0||uw(l.textContent,f)?(m.popover!=null&&(Gt("beforetoggle",l),Gt("toggle",l)),m.onScroll!=null&&Gt("scroll",l),m.onScrollEnd!=null&&Gt("scrollend",l),m.onClick!=null&&(l.onclick=Om),l=!0):l=!1,l||dl(i)}function Y_(i){for(eo=i.return;eo;)switch(eo.tag){case 5:case 13:Ga=!1;return;case 27:case 3:Ga=!0;return;default:eo=eo.return}}function Od(i){if(i!==eo)return!1;if(!sn)return Y_(i),sn=!0,!1;var l=i.tag,f;if((f=l!==3&&l!==27)&&((f=l===5)&&(f=i.type,f=!(f!=="form"&&f!=="button")||l1(i.type,i.memoizedProps)),f=!f),f&&Vn&&dl(i),Y_(i),l===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,l=0;i;){if(i.nodeType===8)if(f=i.data,f==="/$"){if(l===0){Vn=Ia(i.nextSibling);break e}l--}else f!=="$"&&f!=="$!"&&f!=="$?"||l++;i=i.nextSibling}Vn=null}}else l===27?(l=Vn,Ss(i.type)?(i=f1,f1=null,Vn=i):Vn=l):Vn=eo?Ia(i.stateNode.nextSibling):null;return!0}function Nd(){Vn=eo=null,sn=!1}function K_(){var i=ul;return i!==null&&(uo===null?uo=i:uo.push.apply(uo,i),ul=null),i}function Pd(i){ul===null?ul=[i]:ul.push(i)}var Wb=K(null),fl=null,Ci=null;function ls(i,l,f){P(Wb,l._currentValue),l._currentValue=f}function _i(i){i._currentValue=Wb.current,ee(Wb)}function Yb(i,l,f){for(;i!==null;){var m=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),i===f)break;i=i.return}}function Kb(i,l,f,m){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var _=v.dependencies;if(_!==null){var L=v.child;_=_.firstContext;e:for(;_!==null;){var j=_;_=v;for(var X=0;X<l.length;X++)if(j.context===l[X]){_.lanes|=f,j=_.alternate,j!==null&&(j.lanes|=f),Yb(_.return,f,i),m||(L=null);break e}_=j.next}}else if(v.tag===18){if(L=v.return,L===null)throw Error(r(341));L.lanes|=f,_=L.alternate,_!==null&&(_.lanes|=f),Yb(L,f,i),L=null}else L=v.child;if(L!==null)L.return=v;else for(L=v;L!==null;){if(L===i){L=null;break}if(v=L.sibling,v!==null){v.return=L.return,L=v;break}L=L.return}v=L}}function Ld(i,l,f,m){i=null;for(var v=l,_=!1;v!==null;){if(!_){if((v.flags&524288)!==0)_=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var L=v.alternate;if(L===null)throw Error(r(387));if(L=L.memoizedProps,L!==null){var j=v.type;_o(v.pendingProps.value,L.value)||(i!==null?i.push(j):i=[j])}}else if(v===ve.current){if(L=v.alternate,L===null)throw Error(r(387));L.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(df):i=[df])}v=v.return}i!==null&&Kb(l,i,f,m),l.flags|=262144}function Jh(i){for(i=i.firstContext;i!==null;){if(!_o(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function pl(i){fl=i,Ci=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Vr(i){return Q_(fl,i)}function em(i,l){return fl===null&&pl(i),Q_(i,l)}function Q_(i,l){var f=l._currentValue;if(l={context:l,memoizedValue:f,next:null},Ci===null){if(i===null)throw Error(r(308));Ci=l,i.dependencies={lanes:0,firstContext:l},i.flags|=524288}else Ci=Ci.next=l;return f}var d7=typeof AbortController<"u"?AbortController:function(){var i=[],l=this.signal={aborted:!1,addEventListener:function(f,m){i.push(m)}};this.abort=function(){l.aborted=!0,i.forEach(function(f){return f()})}},f7=e.unstable_scheduleCallback,p7=e.unstable_NormalPriority,Er={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qb(){return{controller:new d7,data:new Map,refCount:0}}function Md(i){i.refCount--,i.refCount===0&&f7(p7,function(){i.controller.abort()})}var Fd=null,Xb=0,Cc=0,_c=null;function h7(i,l){if(Fd===null){var f=Fd=[];Xb=0,Cc=Jv(),_c={status:"pending",value:void 0,then:function(m){f.push(m)}}}return Xb++,l.then(X_,X_),l}function X_(){if(--Xb===0&&Fd!==null){_c!==null&&(_c.status="fulfilled");var i=Fd;Fd=null,Cc=0,_c=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function m7(i,l){var f=[],m={status:"pending",value:null,reason:null,then:function(v){f.push(v)}};return i.then(function(){m.status="fulfilled",m.value=l;for(var v=0;v<f.length;v++)(0,f[v])(l)},function(v){for(m.status="rejected",m.reason=v,v=0;v<f.length;v++)(0,f[v])(void 0)}),m}var Z_=B.S;B.S=function(i,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&h7(i,l),Z_!==null&&Z_(i,l)};var hl=K(null);function Zb(){var i=hl.current;return i!==null?i:kn.pooledCache}function tm(i,l){l===null?P(hl,hl.current):P(hl,l.pool)}function J_(){var i=Zb();return i===null?null:{parent:Er._currentValue,pool:i}}var Bd=Error(r(460)),eA=Error(r(474)),nm=Error(r(542)),Jb={then:function(){}};function tA(i){return i=i.status,i==="fulfilled"||i==="rejected"}function rm(){}function nA(i,l,f){switch(f=i[f],f===void 0?i.push(l):f!==l&&(l.then(rm,rm),l=f),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,oA(i),i;default:if(typeof l.status=="string")l.then(rm,rm);else{if(i=kn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=l,i.status="pending",i.then(function(m){if(l.status==="pending"){var v=l;v.status="fulfilled",v.value=m}},function(m){if(l.status==="pending"){var v=l;v.status="rejected",v.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,oA(i),i}throw jd=l,Bd}}var jd=null;function rA(){if(jd===null)throw Error(r(459));var i=jd;return jd=null,i}function oA(i){if(i===Bd||i===nm)throw Error(r(483))}var cs=!1;function ev(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tv(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function us(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function ds(i,l,f){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(fn&2)!==0){var v=m.pending;return v===null?l.next=l:(l.next=v.next,v.next=l),m.pending=l,l=Kh(i),V_(i,null,f),l}return Yh(i,m,l,f),Kh(i)}function Ud(i,l,f){if(l=l.updateQueue,l!==null&&(l=l.shared,(f&4194048)!==0)){var m=l.lanes;m&=i.pendingLanes,f|=m,l.lanes=f,xn(i,f)}}function nv(i,l){var f=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var v=null,_=null;if(f=f.firstBaseUpdate,f!==null){do{var L={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};_===null?v=_=L:_=_.next=L,f=f.next}while(f!==null);_===null?v=_=l:_=_.next=l}else v=_=l;f={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:_,shared:m.shared,callbacks:m.callbacks},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=l:i.next=l,f.lastBaseUpdate=l}var rv=!1;function Hd(){if(rv){var i=_c;if(i!==null)throw i}}function zd(i,l,f,m){rv=!1;var v=i.updateQueue;cs=!1;var _=v.firstBaseUpdate,L=v.lastBaseUpdate,j=v.shared.pending;if(j!==null){v.shared.pending=null;var X=j,fe=X.next;X.next=null,L===null?_=fe:L.next=fe,L=X;var Ae=i.alternate;Ae!==null&&(Ae=Ae.updateQueue,j=Ae.lastBaseUpdate,j!==L&&(j===null?Ae.firstBaseUpdate=fe:j.next=fe,Ae.lastBaseUpdate=X))}if(_!==null){var Re=v.baseState;L=0,Ae=fe=X=null,j=_;do{var pe=j.lane&-536870913,he=pe!==j.lane;if(he?(tn&pe)===pe:(m&pe)===pe){pe!==0&&pe===Cc&&(rv=!0),Ae!==null&&(Ae=Ae.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var wt=i,xt=j;pe=l;var bn=f;switch(xt.tag){case 1:if(wt=xt.payload,typeof wt=="function"){Re=wt.call(bn,Re,pe);break e}Re=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=xt.payload,pe=typeof wt=="function"?wt.call(bn,Re,pe):wt,pe==null)break e;Re=p({},Re,pe);break e;case 2:cs=!0}}pe=j.callback,pe!==null&&(i.flags|=64,he&&(i.flags|=8192),he=v.callbacks,he===null?v.callbacks=[pe]:he.push(pe))}else he={lane:pe,tag:j.tag,payload:j.payload,callback:j.callback,next:null},Ae===null?(fe=Ae=he,X=Re):Ae=Ae.next=he,L|=pe;if(j=j.next,j===null){if(j=v.shared.pending,j===null)break;he=j,j=he.next,he.next=null,v.lastBaseUpdate=he,v.shared.pending=null}}while(!0);Ae===null&&(X=Re),v.baseState=X,v.firstBaseUpdate=fe,v.lastBaseUpdate=Ae,_===null&&(v.shared.lanes=0),vs|=L,i.lanes=L,i.memoizedState=Re}}function aA(i,l){if(typeof i!="function")throw Error(r(191,i));i.call(l)}function iA(i,l){var f=i.callbacks;if(f!==null)for(i.callbacks=null,i=0;i<f.length;i++)aA(f[i],l)}var Ac=K(null),om=K(0);function sA(i,l){i=Oi,P(om,i),P(Ac,l),Oi=i|l.baseLanes}function ov(){P(om,Oi),P(Ac,Ac.current)}function av(){Oi=om.current,ee(Ac),ee(om)}var fs=0,Bt=null,gn=null,lr=null,am=!1,wc=!1,ml=!1,im=0,$d=0,kc=null,g7=0;function Xn(){throw Error(r(321))}function iv(i,l){if(l===null)return!1;for(var f=0;f<l.length&&f<i.length;f++)if(!_o(i[f],l[f]))return!1;return!0}function sv(i,l,f,m,v,_){return fs=_,Bt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,B.H=i===null||i.memoizedState===null?VA:GA,ml=!1,_=f(m,v),ml=!1,wc&&(_=cA(l,f,m,v)),lA(i),_}function lA(i){B.H=fm;var l=gn!==null&&gn.next!==null;if(fs=0,lr=gn=Bt=null,am=!1,$d=0,kc=null,l)throw Error(r(300));i===null||wr||(i=i.dependencies,i!==null&&Jh(i)&&(wr=!0))}function cA(i,l,f,m){Bt=i;var v=0;do{if(wc&&(kc=null),$d=0,wc=!1,25<=v)throw Error(r(301));if(v+=1,lr=gn=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}B.H=S7,_=l(f,m)}while(wc);return _}function y7(){var i=B.H,l=i.useState()[0];return l=typeof l.then=="function"?Vd(l):l,i=i.useState()[0],(gn!==null?gn.memoizedState:null)!==i&&(Bt.flags|=1024),l}function lv(){var i=im!==0;return im=0,i}function cv(i,l,f){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~f}function uv(i){if(am){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}am=!1}fs=0,lr=gn=Bt=null,wc=!1,$d=im=0,kc=null}function lo(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lr===null?Bt.memoizedState=lr=i:lr=lr.next=i,lr}function cr(){if(gn===null){var i=Bt.alternate;i=i!==null?i.memoizedState:null}else i=gn.next;var l=lr===null?Bt.memoizedState:lr.next;if(l!==null)lr=l,gn=i;else{if(i===null)throw Bt.alternate===null?Error(r(467)):Error(r(310));gn=i,i={memoizedState:gn.memoizedState,baseState:gn.baseState,baseQueue:gn.baseQueue,queue:gn.queue,next:null},lr===null?Bt.memoizedState=lr=i:lr=lr.next=i}return lr}function dv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vd(i){var l=$d;return $d+=1,kc===null&&(kc=[]),i=nA(kc,i,l),l=Bt,(lr===null?l.memoizedState:lr.next)===null&&(l=l.alternate,B.H=l===null||l.memoizedState===null?VA:GA),i}function sm(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Vd(i);if(i.$$typeof===k)return Vr(i)}throw Error(r(438,String(i)))}function fv(i){var l=null,f=Bt.updateQueue;if(f!==null&&(l=f.memoCache),l==null){var m=Bt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(v){return v.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),f===null&&(f=dv(),Bt.updateQueue=f),f.memoCache=l,f=l.data[l.index],f===void 0)for(f=l.data[l.index]=Array(i),m=0;m<i;m++)f[m]=C;return l.index++,f}function Ai(i,l){return typeof l=="function"?l(i):l}function lm(i){var l=cr();return pv(l,gn,i)}function pv(i,l,f){var m=i.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=f;var v=i.baseQueue,_=m.pending;if(_!==null){if(v!==null){var L=v.next;v.next=_.next,_.next=L}l.baseQueue=v=_,m.pending=null}if(_=i.baseState,v===null)i.memoizedState=_;else{l=v.next;var j=L=null,X=null,fe=l,Ae=!1;do{var Re=fe.lane&-536870913;if(Re!==fe.lane?(tn&Re)===Re:(fs&Re)===Re){var pe=fe.revertLane;if(pe===0)X!==null&&(X=X.next={lane:0,revertLane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),Re===Cc&&(Ae=!0);else if((fs&pe)===pe){fe=fe.next,pe===Cc&&(Ae=!0);continue}else Re={lane:0,revertLane:fe.revertLane,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},X===null?(j=X=Re,L=_):X=X.next=Re,Bt.lanes|=pe,vs|=pe;Re=fe.action,ml&&f(_,Re),_=fe.hasEagerState?fe.eagerState:f(_,Re)}else pe={lane:Re,revertLane:fe.revertLane,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},X===null?(j=X=pe,L=_):X=X.next=pe,Bt.lanes|=Re,vs|=Re;fe=fe.next}while(fe!==null&&fe!==l);if(X===null?L=_:X.next=j,!_o(_,i.memoizedState)&&(wr=!0,Ae&&(f=_c,f!==null)))throw f;i.memoizedState=_,i.baseState=L,i.baseQueue=X,m.lastRenderedState=_}return v===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function hv(i){var l=cr(),f=l.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=i;var m=f.dispatch,v=f.pending,_=l.memoizedState;if(v!==null){f.pending=null;var L=v=v.next;do _=i(_,L.action),L=L.next;while(L!==v);_o(_,l.memoizedState)||(wr=!0),l.memoizedState=_,l.baseQueue===null&&(l.baseState=_),f.lastRenderedState=_}return[_,m]}function uA(i,l,f){var m=Bt,v=cr(),_=sn;if(_){if(f===void 0)throw Error(r(407));f=f()}else f=l();var L=!_o((gn||v).memoizedState,f);L&&(v.memoizedState=f,wr=!0),v=v.queue;var j=pA.bind(null,m,v,i);if(Gd(2048,8,j,[i]),v.getSnapshot!==l||L||lr!==null&&lr.memoizedState.tag&1){if(m.flags|=2048,Dc(9,cm(),fA.bind(null,m,v,f,l),null),kn===null)throw Error(r(349));_||(fs&124)!==0||dA(m,l,f)}return f}function dA(i,l,f){i.flags|=16384,i={getSnapshot:l,value:f},l=Bt.updateQueue,l===null?(l=dv(),Bt.updateQueue=l,l.stores=[i]):(f=l.stores,f===null?l.stores=[i]:f.push(i))}function fA(i,l,f,m){l.value=f,l.getSnapshot=m,hA(l)&&mA(i)}function pA(i,l,f){return f(function(){hA(l)&&mA(i)})}function hA(i){var l=i.getSnapshot;i=i.value;try{var f=l();return!_o(i,f)}catch{return!0}}function mA(i){var l=Ec(i,2);l!==null&&Io(l,i,2)}function mv(i){var l=lo();if(typeof i=="function"){var f=i;if(i=f(),ml){Ue(!0);try{f()}finally{Ue(!1)}}}return l.memoizedState=l.baseState=i,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:i},l}function gA(i,l,f,m){return i.baseState=f,pv(i,gn,typeof m=="function"?m:Ai)}function b7(i,l,f,m,v){if(dm(i))throw Error(r(485));if(i=l.action,i!==null){var _={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){_.listeners.push(L)}};B.T!==null?f(!0):_.isTransition=!1,m(_),f=l.pending,f===null?(_.next=l.pending=_,yA(l,_)):(_.next=f.next,l.pending=f.next=_)}}function yA(i,l){var f=l.action,m=l.payload,v=i.state;if(l.isTransition){var _=B.T,L={};B.T=L;try{var j=f(v,m),X=B.S;X!==null&&X(L,j),bA(i,l,j)}catch(fe){gv(i,l,fe)}finally{B.T=_}}else try{_=f(v,m),bA(i,l,_)}catch(fe){gv(i,l,fe)}}function bA(i,l,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){vA(i,l,m)},function(m){return gv(i,l,m)}):vA(i,l,f)}function vA(i,l,f){l.status="fulfilled",l.value=f,EA(l),i.state=f,l=i.pending,l!==null&&(f=l.next,f===l?i.pending=null:(f=f.next,l.next=f,yA(i,f)))}function gv(i,l,f){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=f,EA(l),l=l.next;while(l!==m)}i.action=null}function EA(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function xA(i,l){return l}function TA(i,l){if(sn){var f=kn.formState;if(f!==null){e:{var m=Bt;if(sn){if(Vn){t:{for(var v=Vn,_=Ga;v.nodeType!==8;){if(!_){v=null;break t}if(v=Ia(v.nextSibling),v===null){v=null;break t}}_=v.data,v=_==="F!"||_==="F"?v:null}if(v){Vn=Ia(v.nextSibling),m=v.data==="F!";break e}}dl(m)}m=!1}m&&(l=f[0])}}return f=lo(),f.memoizedState=f.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xA,lastRenderedState:l},f.queue=m,f=HA.bind(null,Bt,m),m.dispatch=f,m=mv(!1),_=xv.bind(null,Bt,!1,m.queue),m=lo(),v={state:l,dispatch:null,action:i,pending:null},m.queue=v,f=b7.bind(null,Bt,v,_,f),v.dispatch=f,m.memoizedState=i,[l,f,!1]}function SA(i){var l=cr();return CA(l,gn,i)}function CA(i,l,f){if(l=pv(i,l,xA)[0],i=lm(Ai)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=Vd(l)}catch(L){throw L===Bd?nm:L}else m=l;l=cr();var v=l.queue,_=v.dispatch;return f!==l.memoizedState&&(Bt.flags|=2048,Dc(9,cm(),v7.bind(null,v,f),null)),[m,_,i]}function v7(i,l){i.action=l}function _A(i){var l=cr(),f=gn;if(f!==null)return CA(l,f,i);cr(),l=l.memoizedState,f=cr();var m=f.queue.dispatch;return f.memoizedState=i,[l,m,!1]}function Dc(i,l,f,m){return i={tag:i,create:f,deps:m,inst:l,next:null},l=Bt.updateQueue,l===null&&(l=dv(),Bt.updateQueue=l),f=l.lastEffect,f===null?l.lastEffect=i.next=i:(m=f.next,f.next=i,i.next=m,l.lastEffect=i),i}function cm(){return{destroy:void 0,resource:void 0}}function AA(){return cr().memoizedState}function um(i,l,f,m){var v=lo();m=m===void 0?null:m,Bt.flags|=i,v.memoizedState=Dc(1|l,cm(),f,m)}function Gd(i,l,f,m){var v=cr();m=m===void 0?null:m;var _=v.memoizedState.inst;gn!==null&&m!==null&&iv(m,gn.memoizedState.deps)?v.memoizedState=Dc(l,_,f,m):(Bt.flags|=i,v.memoizedState=Dc(1|l,_,f,m))}function wA(i,l){um(8390656,8,i,l)}function kA(i,l){Gd(2048,8,i,l)}function DA(i,l){return Gd(4,2,i,l)}function RA(i,l){return Gd(4,4,i,l)}function IA(i,l){if(typeof l=="function"){i=i();var f=l(i);return function(){typeof f=="function"?f():l(null)}}if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function OA(i,l,f){f=f!=null?f.concat([i]):null,Gd(4,4,IA.bind(null,l,i),f)}function yv(){}function NA(i,l){var f=cr();l=l===void 0?null:l;var m=f.memoizedState;return l!==null&&iv(l,m[1])?m[0]:(f.memoizedState=[i,l],i)}function PA(i,l){var f=cr();l=l===void 0?null:l;var m=f.memoizedState;if(l!==null&&iv(l,m[1]))return m[0];if(m=i(),ml){Ue(!0);try{i()}finally{Ue(!1)}}return f.memoizedState=[m,l],m}function bv(i,l,f){return f===void 0||(fs&1073741824)!==0?i.memoizedState=l:(i.memoizedState=f,i=F2(),Bt.lanes|=i,vs|=i,f)}function LA(i,l,f,m){return _o(f,l)?f:Ac.current!==null?(i=bv(i,f,m),_o(i,l)||(wr=!0),i):(fs&42)===0?(wr=!0,i.memoizedState=f):(i=F2(),Bt.lanes|=i,vs|=i,l)}function MA(i,l,f,m,v){var _=J.p;J.p=_!==0&&8>_?_:8;var L=B.T,j={};B.T=j,xv(i,!1,l,f);try{var X=v(),fe=B.S;if(fe!==null&&fe(j,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var Ae=m7(X,m);qd(i,l,Ae,Ro(i))}else qd(i,l,m,Ro(i))}catch(Re){qd(i,l,{then:function(){},status:"rejected",reason:Re},Ro())}finally{J.p=_,B.T=L}}function E7(){}function vv(i,l,f,m){if(i.tag!==5)throw Error(r(476));var v=FA(i).queue;MA(i,v,l,ae,f===null?E7:function(){return BA(i),f(m)})}function FA(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:ae},next:null};var f={};return l.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:f},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function BA(i){var l=FA(i).next.queue;qd(i,l,{},Ro())}function Ev(){return Vr(df)}function jA(){return cr().memoizedState}function UA(){return cr().memoizedState}function x7(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var f=Ro();i=us(f);var m=ds(l,i,f);m!==null&&(Io(m,l,f),Ud(m,l,f)),l={cache:Qb()},i.payload=l;return}l=l.return}}function T7(i,l,f){var m=Ro();f={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null},dm(i)?zA(l,f):(f=Ub(i,l,f,m),f!==null&&(Io(f,i,m),$A(f,l,m)))}function HA(i,l,f){var m=Ro();qd(i,l,f,m)}function qd(i,l,f,m){var v={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null};if(dm(i))zA(l,v);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=l.lastRenderedReducer,_!==null))try{var L=l.lastRenderedState,j=_(L,f);if(v.hasEagerState=!0,v.eagerState=j,_o(j,L))return Yh(i,l,v,0),kn===null&&Wh(),!1}catch{}finally{}if(f=Ub(i,l,v,m),f!==null)return Io(f,i,m),$A(f,l,m),!0}return!1}function xv(i,l,f,m){if(m={lane:2,revertLane:Jv(),action:m,hasEagerState:!1,eagerState:null,next:null},dm(i)){if(l)throw Error(r(479))}else l=Ub(i,f,m,2),l!==null&&Io(l,i,2)}function dm(i){var l=i.alternate;return i===Bt||l!==null&&l===Bt}function zA(i,l){wc=am=!0;var f=i.pending;f===null?l.next=l:(l.next=f.next,f.next=l),i.pending=l}function $A(i,l,f){if((f&4194048)!==0){var m=l.lanes;m&=i.pendingLanes,f|=m,l.lanes=f,xn(i,f)}}var fm={readContext:Vr,use:sm,useCallback:Xn,useContext:Xn,useEffect:Xn,useImperativeHandle:Xn,useLayoutEffect:Xn,useInsertionEffect:Xn,useMemo:Xn,useReducer:Xn,useRef:Xn,useState:Xn,useDebugValue:Xn,useDeferredValue:Xn,useTransition:Xn,useSyncExternalStore:Xn,useId:Xn,useHostTransitionStatus:Xn,useFormState:Xn,useActionState:Xn,useOptimistic:Xn,useMemoCache:Xn,useCacheRefresh:Xn},VA={readContext:Vr,use:sm,useCallback:function(i,l){return lo().memoizedState=[i,l===void 0?null:l],i},useContext:Vr,useEffect:wA,useImperativeHandle:function(i,l,f){f=f!=null?f.concat([i]):null,um(4194308,4,IA.bind(null,l,i),f)},useLayoutEffect:function(i,l){return um(4194308,4,i,l)},useInsertionEffect:function(i,l){um(4,2,i,l)},useMemo:function(i,l){var f=lo();l=l===void 0?null:l;var m=i();if(ml){Ue(!0);try{i()}finally{Ue(!1)}}return f.memoizedState=[m,l],m},useReducer:function(i,l,f){var m=lo();if(f!==void 0){var v=f(l);if(ml){Ue(!0);try{f(l)}finally{Ue(!1)}}}else v=l;return m.memoizedState=m.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},m.queue=i,i=i.dispatch=T7.bind(null,Bt,i),[m.memoizedState,i]},useRef:function(i){var l=lo();return i={current:i},l.memoizedState=i},useState:function(i){i=mv(i);var l=i.queue,f=HA.bind(null,Bt,l);return l.dispatch=f,[i.memoizedState,f]},useDebugValue:yv,useDeferredValue:function(i,l){var f=lo();return bv(f,i,l)},useTransition:function(){var i=mv(!1);return i=MA.bind(null,Bt,i.queue,!0,!1),lo().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,f){var m=Bt,v=lo();if(sn){if(f===void 0)throw Error(r(407));f=f()}else{if(f=l(),kn===null)throw Error(r(349));(tn&124)!==0||dA(m,l,f)}v.memoizedState=f;var _={value:f,getSnapshot:l};return v.queue=_,wA(pA.bind(null,m,_,i),[i]),m.flags|=2048,Dc(9,cm(),fA.bind(null,m,_,f,l),null),f},useId:function(){var i=lo(),l=kn.identifierPrefix;if(sn){var f=Si,m=Ti;f=(m&~(1<<32-Xe(m)-1)).toString(32)+f,l="«"+l+"R"+f,f=im++,0<f&&(l+="H"+f.toString(32)),l+="»"}else f=g7++,l="«"+l+"r"+f.toString(32)+"»";return i.memoizedState=l},useHostTransitionStatus:Ev,useFormState:TA,useActionState:TA,useOptimistic:function(i){var l=lo();l.memoizedState=l.baseState=i;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=f,l=xv.bind(null,Bt,!0,f),f.dispatch=l,[i,l]},useMemoCache:fv,useCacheRefresh:function(){return lo().memoizedState=x7.bind(null,Bt)}},GA={readContext:Vr,use:sm,useCallback:NA,useContext:Vr,useEffect:kA,useImperativeHandle:OA,useInsertionEffect:DA,useLayoutEffect:RA,useMemo:PA,useReducer:lm,useRef:AA,useState:function(){return lm(Ai)},useDebugValue:yv,useDeferredValue:function(i,l){var f=cr();return LA(f,gn.memoizedState,i,l)},useTransition:function(){var i=lm(Ai)[0],l=cr().memoizedState;return[typeof i=="boolean"?i:Vd(i),l]},useSyncExternalStore:uA,useId:jA,useHostTransitionStatus:Ev,useFormState:SA,useActionState:SA,useOptimistic:function(i,l){var f=cr();return gA(f,gn,i,l)},useMemoCache:fv,useCacheRefresh:UA},S7={readContext:Vr,use:sm,useCallback:NA,useContext:Vr,useEffect:kA,useImperativeHandle:OA,useInsertionEffect:DA,useLayoutEffect:RA,useMemo:PA,useReducer:hv,useRef:AA,useState:function(){return hv(Ai)},useDebugValue:yv,useDeferredValue:function(i,l){var f=cr();return gn===null?bv(f,i,l):LA(f,gn.memoizedState,i,l)},useTransition:function(){var i=hv(Ai)[0],l=cr().memoizedState;return[typeof i=="boolean"?i:Vd(i),l]},useSyncExternalStore:uA,useId:jA,useHostTransitionStatus:Ev,useFormState:_A,useActionState:_A,useOptimistic:function(i,l){var f=cr();return gn!==null?gA(f,gn,i,l):(f.baseState=i,[i,f.queue.dispatch])},useMemoCache:fv,useCacheRefresh:UA},Rc=null,Wd=0;function pm(i){var l=Wd;return Wd+=1,Rc===null&&(Rc=[]),nA(Rc,i,l)}function Yd(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function hm(i,l){throw l.$$typeof===h?Error(r(525)):(i=Object.prototype.toString.call(l),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i)))}function qA(i){var l=i._init;return l(i._payload)}function WA(i){function l(le,se){if(i){var ce=le.deletions;ce===null?(le.deletions=[se],le.flags|=16):ce.push(se)}}function f(le,se){if(!i)return null;for(;se!==null;)l(le,se),se=se.sibling;return null}function m(le){for(var se=new Map;le!==null;)le.key!==null?se.set(le.key,le):se.set(le.index,le),le=le.sibling;return se}function v(le,se){return le=xi(le,se),le.index=0,le.sibling=null,le}function _(le,se,ce){return le.index=ce,i?(ce=le.alternate,ce!==null?(ce=ce.index,ce<se?(le.flags|=67108866,se):ce):(le.flags|=67108866,se)):(le.flags|=1048576,se)}function L(le){return i&&le.alternate===null&&(le.flags|=67108866),le}function j(le,se,ce,ke){return se===null||se.tag!==6?(se=zb(ce,le.mode,ke),se.return=le,se):(se=v(se,ce),se.return=le,se)}function X(le,se,ce,ke){var tt=ce.type;return tt===b?Ae(le,se,ce.props.children,ke,ce.key):se!==null&&(se.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===U&&qA(tt)===se.type)?(se=v(se,ce.props),Yd(se,ce),se.return=le,se):(se=Qh(ce.type,ce.key,ce.props,null,le.mode,ke),Yd(se,ce),se.return=le,se)}function fe(le,se,ce,ke){return se===null||se.tag!==4||se.stateNode.containerInfo!==ce.containerInfo||se.stateNode.implementation!==ce.implementation?(se=$b(ce,le.mode,ke),se.return=le,se):(se=v(se,ce.children||[]),se.return=le,se)}function Ae(le,se,ce,ke,tt){return se===null||se.tag!==7?(se=sl(ce,le.mode,ke,tt),se.return=le,se):(se=v(se,ce),se.return=le,se)}function Re(le,se,ce){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=zb(""+se,le.mode,ce),se.return=le,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case g:return ce=Qh(se.type,se.key,se.props,null,le.mode,ce),Yd(ce,se),ce.return=le,ce;case y:return se=$b(se,le.mode,ce),se.return=le,se;case U:var ke=se._init;return se=ke(se._payload),Re(le,se,ce)}if(Y(se)||V(se))return se=sl(se,le.mode,ce,null),se.return=le,se;if(typeof se.then=="function")return Re(le,pm(se),ce);if(se.$$typeof===k)return Re(le,em(le,se),ce);hm(le,se)}return null}function pe(le,se,ce,ke){var tt=se!==null?se.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return tt!==null?null:j(le,se,""+ce,ke);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case g:return ce.key===tt?X(le,se,ce,ke):null;case y:return ce.key===tt?fe(le,se,ce,ke):null;case U:return tt=ce._init,ce=tt(ce._payload),pe(le,se,ce,ke)}if(Y(ce)||V(ce))return tt!==null?null:Ae(le,se,ce,ke,null);if(typeof ce.then=="function")return pe(le,se,pm(ce),ke);if(ce.$$typeof===k)return pe(le,se,em(le,ce),ke);hm(le,ce)}return null}function he(le,se,ce,ke,tt){if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return le=le.get(ce)||null,j(se,le,""+ke,tt);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case g:return le=le.get(ke.key===null?ce:ke.key)||null,X(se,le,ke,tt);case y:return le=le.get(ke.key===null?ce:ke.key)||null,fe(se,le,ke,tt);case U:var zt=ke._init;return ke=zt(ke._payload),he(le,se,ce,ke,tt)}if(Y(ke)||V(ke))return le=le.get(ce)||null,Ae(se,le,ke,tt,null);if(typeof ke.then=="function")return he(le,se,ce,pm(ke),tt);if(ke.$$typeof===k)return he(le,se,ce,em(se,ke),tt);hm(se,ke)}return null}function wt(le,se,ce,ke){for(var tt=null,zt=null,pt=se,Tt=se=0,Dr=null;pt!==null&&Tt<ce.length;Tt++){pt.index>Tt?(Dr=pt,pt=null):Dr=pt.sibling;var an=pe(le,pt,ce[Tt],ke);if(an===null){pt===null&&(pt=Dr);break}i&&pt&&an.alternate===null&&l(le,pt),se=_(an,se,Tt),zt===null?tt=an:zt.sibling=an,zt=an,pt=Dr}if(Tt===ce.length)return f(le,pt),sn&&cl(le,Tt),tt;if(pt===null){for(;Tt<ce.length;Tt++)pt=Re(le,ce[Tt],ke),pt!==null&&(se=_(pt,se,Tt),zt===null?tt=pt:zt.sibling=pt,zt=pt);return sn&&cl(le,Tt),tt}for(pt=m(pt);Tt<ce.length;Tt++)Dr=he(pt,le,Tt,ce[Tt],ke),Dr!==null&&(i&&Dr.alternate!==null&&pt.delete(Dr.key===null?Tt:Dr.key),se=_(Dr,se,Tt),zt===null?tt=Dr:zt.sibling=Dr,zt=Dr);return i&&pt.forEach(function(ks){return l(le,ks)}),sn&&cl(le,Tt),tt}function xt(le,se,ce,ke){if(ce==null)throw Error(r(151));for(var tt=null,zt=null,pt=se,Tt=se=0,Dr=null,an=ce.next();pt!==null&&!an.done;Tt++,an=ce.next()){pt.index>Tt?(Dr=pt,pt=null):Dr=pt.sibling;var ks=pe(le,pt,an.value,ke);if(ks===null){pt===null&&(pt=Dr);break}i&&pt&&ks.alternate===null&&l(le,pt),se=_(ks,se,Tt),zt===null?tt=ks:zt.sibling=ks,zt=ks,pt=Dr}if(an.done)return f(le,pt),sn&&cl(le,Tt),tt;if(pt===null){for(;!an.done;Tt++,an=ce.next())an=Re(le,an.value,ke),an!==null&&(se=_(an,se,Tt),zt===null?tt=an:zt.sibling=an,zt=an);return sn&&cl(le,Tt),tt}for(pt=m(pt);!an.done;Tt++,an=ce.next())an=he(pt,le,Tt,an.value,ke),an!==null&&(i&&an.alternate!==null&&pt.delete(an.key===null?Tt:an.key),se=_(an,se,Tt),zt===null?tt=an:zt.sibling=an,zt=an);return i&&pt.forEach(function(CF){return l(le,CF)}),sn&&cl(le,Tt),tt}function bn(le,se,ce,ke){if(typeof ce=="object"&&ce!==null&&ce.type===b&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case g:e:{for(var tt=ce.key;se!==null;){if(se.key===tt){if(tt=ce.type,tt===b){if(se.tag===7){f(le,se.sibling),ke=v(se,ce.props.children),ke.return=le,le=ke;break e}}else if(se.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===U&&qA(tt)===se.type){f(le,se.sibling),ke=v(se,ce.props),Yd(ke,ce),ke.return=le,le=ke;break e}f(le,se);break}else l(le,se);se=se.sibling}ce.type===b?(ke=sl(ce.props.children,le.mode,ke,ce.key),ke.return=le,le=ke):(ke=Qh(ce.type,ce.key,ce.props,null,le.mode,ke),Yd(ke,ce),ke.return=le,le=ke)}return L(le);case y:e:{for(tt=ce.key;se!==null;){if(se.key===tt)if(se.tag===4&&se.stateNode.containerInfo===ce.containerInfo&&se.stateNode.implementation===ce.implementation){f(le,se.sibling),ke=v(se,ce.children||[]),ke.return=le,le=ke;break e}else{f(le,se);break}else l(le,se);se=se.sibling}ke=$b(ce,le.mode,ke),ke.return=le,le=ke}return L(le);case U:return tt=ce._init,ce=tt(ce._payload),bn(le,se,ce,ke)}if(Y(ce))return wt(le,se,ce,ke);if(V(ce)){if(tt=V(ce),typeof tt!="function")throw Error(r(150));return ce=tt.call(ce),xt(le,se,ce,ke)}if(typeof ce.then=="function")return bn(le,se,pm(ce),ke);if(ce.$$typeof===k)return bn(le,se,em(le,ce),ke);hm(le,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint"?(ce=""+ce,se!==null&&se.tag===6?(f(le,se.sibling),ke=v(se,ce),ke.return=le,le=ke):(f(le,se),ke=zb(ce,le.mode,ke),ke.return=le,le=ke),L(le)):f(le,se)}return function(le,se,ce,ke){try{Wd=0;var tt=bn(le,se,ce,ke);return Rc=null,tt}catch(pt){if(pt===Bd||pt===nm)throw pt;var zt=Ao(29,pt,null,le.mode);return zt.lanes=ke,zt.return=le,zt}finally{}}}var Ic=WA(!0),YA=WA(!1),ea=K(null),qa=null;function ps(i){var l=i.alternate;P(xr,xr.current&1),P(ea,i),qa===null&&(l===null||Ac.current!==null||l.memoizedState!==null)&&(qa=i)}function KA(i){if(i.tag===22){if(P(xr,xr.current),P(ea,i),qa===null){var l=i.alternate;l!==null&&l.memoizedState!==null&&(qa=i)}}else hs()}function hs(){P(xr,xr.current),P(ea,ea.current)}function wi(i){ee(ea),qa===i&&(qa=null),ee(xr)}var xr=K(0);function mm(i){for(var l=i;l!==null;){if(l.tag===13){var f=l.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||d1(f)))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}function Tv(i,l,f,m){l=i.memoizedState,f=f(m,l),f=f==null?l:p({},l,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var Sv={enqueueSetState:function(i,l,f){i=i._reactInternals;var m=Ro(),v=us(m);v.payload=l,f!=null&&(v.callback=f),l=ds(i,v,m),l!==null&&(Io(l,i,m),Ud(l,i,m))},enqueueReplaceState:function(i,l,f){i=i._reactInternals;var m=Ro(),v=us(m);v.tag=1,v.payload=l,f!=null&&(v.callback=f),l=ds(i,v,m),l!==null&&(Io(l,i,m),Ud(l,i,m))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var f=Ro(),m=us(f);m.tag=2,l!=null&&(m.callback=l),l=ds(i,m,f),l!==null&&(Io(l,i,f),Ud(l,i,f))}};function QA(i,l,f,m,v,_,L){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,_,L):l.prototype&&l.prototype.isPureReactComponent?!Rd(f,m)||!Rd(v,_):!0}function XA(i,l,f,m){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(f,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(f,m),l.state!==i&&Sv.enqueueReplaceState(l,l.state,null)}function gl(i,l){var f=l;if("ref"in l){f={};for(var m in l)m!=="ref"&&(f[m]=l[m])}if(i=i.defaultProps){f===l&&(f=p({},f));for(var v in i)f[v]===void 0&&(f[v]=i[v])}return f}var gm=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function ZA(i){gm(i)}function JA(i){console.error(i)}function e2(i){gm(i)}function ym(i,l){try{var f=i.onUncaughtError;f(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function t2(i,l,f){try{var m=i.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Cv(i,l,f){return f=us(f),f.tag=3,f.payload={element:null},f.callback=function(){ym(i,l)},f}function n2(i){return i=us(i),i.tag=3,i}function r2(i,l,f,m){var v=f.type.getDerivedStateFromError;if(typeof v=="function"){var _=m.value;i.payload=function(){return v(_)},i.callback=function(){t2(l,f,m)}}var L=f.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(i.callback=function(){t2(l,f,m),typeof v!="function"&&(Es===null?Es=new Set([this]):Es.add(this));var j=m.stack;this.componentDidCatch(m.value,{componentStack:j!==null?j:""})})}function C7(i,l,f,m,v){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=f.alternate,l!==null&&Ld(l,f,v,!0),f=ea.current,f!==null){switch(f.tag){case 13:return qa===null?Yv():f.alternate===null&&Gn===0&&(Gn=3),f.flags&=-257,f.flags|=65536,f.lanes=v,m===Jb?f.flags|=16384:(l=f.updateQueue,l===null?f.updateQueue=new Set([m]):l.add(m),Qv(i,m,v)),!1;case 22:return f.flags|=65536,m===Jb?f.flags|=16384:(l=f.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=l):(f=l.retryQueue,f===null?l.retryQueue=new Set([m]):f.add(m)),Qv(i,m,v)),!1}throw Error(r(435,f.tag))}return Qv(i,m,v),Yv(),!1}if(sn)return l=ea.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=v,m!==qb&&(i=Error(r(422),{cause:m}),Pd(Qo(i,f)))):(m!==qb&&(l=Error(r(423),{cause:m}),Pd(Qo(l,f))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,m=Qo(m,f),v=Cv(i.stateNode,m,v),nv(i,v),Gn!==4&&(Gn=2)),!1;var _=Error(r(520),{cause:m});if(_=Qo(_,f),tf===null?tf=[_]:tf.push(_),Gn!==4&&(Gn=2),l===null)return!0;m=Qo(m,f),f=l;do{switch(f.tag){case 3:return f.flags|=65536,i=v&-v,f.lanes|=i,i=Cv(f.stateNode,m,i),nv(f,i),!1;case 1:if(l=f.type,_=f.stateNode,(f.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Es===null||!Es.has(_))))return f.flags|=65536,v&=-v,f.lanes|=v,v=n2(v),r2(v,i,f,m),nv(f,v),!1}f=f.return}while(f!==null);return!1}var o2=Error(r(461)),wr=!1;function Mr(i,l,f,m){l.child=i===null?YA(l,null,f,m):Ic(l,i.child,f,m)}function a2(i,l,f,m,v){f=f.render;var _=l.ref;if("ref"in m){var L={};for(var j in m)j!=="ref"&&(L[j]=m[j])}else L=m;return pl(l),m=sv(i,l,f,L,_,v),j=lv(),i!==null&&!wr?(cv(i,l,v),ki(i,l,v)):(sn&&j&&Vb(l),l.flags|=1,Mr(i,l,m,v),l.child)}function i2(i,l,f,m,v){if(i===null){var _=f.type;return typeof _=="function"&&!Hb(_)&&_.defaultProps===void 0&&f.compare===null?(l.tag=15,l.type=_,s2(i,l,_,m,v)):(i=Qh(f.type,null,m,l,l.mode,v),i.ref=l.ref,i.return=l,l.child=i)}if(_=i.child,!Ov(i,v)){var L=_.memoizedProps;if(f=f.compare,f=f!==null?f:Rd,f(L,m)&&i.ref===l.ref)return ki(i,l,v)}return l.flags|=1,i=xi(_,m),i.ref=l.ref,i.return=l,l.child=i}function s2(i,l,f,m,v){if(i!==null){var _=i.memoizedProps;if(Rd(_,m)&&i.ref===l.ref)if(wr=!1,l.pendingProps=m=_,Ov(i,v))(i.flags&131072)!==0&&(wr=!0);else return l.lanes=i.lanes,ki(i,l,v)}return _v(i,l,f,m,v)}function l2(i,l,f){var m=l.pendingProps,v=m.children,_=i!==null?i.memoizedState:null;if(m.mode==="hidden"){if((l.flags&128)!==0){if(m=_!==null?_.baseLanes|f:f,i!==null){for(v=l.child=i.child,_=0;v!==null;)_=_|v.lanes|v.childLanes,v=v.sibling;l.childLanes=_&~m}else l.childLanes=0,l.child=null;return c2(i,l,m,f)}if((f&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&tm(l,_!==null?_.cachePool:null),_!==null?sA(l,_):ov(),KA(l);else return l.lanes=l.childLanes=536870912,c2(i,l,_!==null?_.baseLanes|f:f,f)}else _!==null?(tm(l,_.cachePool),sA(l,_),hs(),l.memoizedState=null):(i!==null&&tm(l,null),ov(),hs());return Mr(i,l,v,f),l.child}function c2(i,l,f,m){var v=Zb();return v=v===null?null:{parent:Er._currentValue,pool:v},l.memoizedState={baseLanes:f,cachePool:v},i!==null&&tm(l,null),ov(),KA(l),i!==null&&Ld(i,l,m,!0),null}function bm(i,l){var f=l.ref;if(f===null)i!==null&&i.ref!==null&&(l.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(i===null||i.ref!==f)&&(l.flags|=4194816)}}function _v(i,l,f,m,v){return pl(l),f=sv(i,l,f,m,void 0,v),m=lv(),i!==null&&!wr?(cv(i,l,v),ki(i,l,v)):(sn&&m&&Vb(l),l.flags|=1,Mr(i,l,f,v),l.child)}function u2(i,l,f,m,v,_){return pl(l),l.updateQueue=null,f=cA(l,m,f,v),lA(i),m=lv(),i!==null&&!wr?(cv(i,l,_),ki(i,l,_)):(sn&&m&&Vb(l),l.flags|=1,Mr(i,l,f,_),l.child)}function d2(i,l,f,m,v){if(pl(l),l.stateNode===null){var _=xc,L=f.contextType;typeof L=="object"&&L!==null&&(_=Vr(L)),_=new f(m,_),l.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=Sv,l.stateNode=_,_._reactInternals=l,_=l.stateNode,_.props=m,_.state=l.memoizedState,_.refs={},ev(l),L=f.contextType,_.context=typeof L=="object"&&L!==null?Vr(L):xc,_.state=l.memoizedState,L=f.getDerivedStateFromProps,typeof L=="function"&&(Tv(l,f,L,m),_.state=l.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(L=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),L!==_.state&&Sv.enqueueReplaceState(_,_.state,null),zd(l,m,_,v),Hd(),_.state=l.memoizedState),typeof _.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(i===null){_=l.stateNode;var j=l.memoizedProps,X=gl(f,j);_.props=X;var fe=_.context,Ae=f.contextType;L=xc,typeof Ae=="object"&&Ae!==null&&(L=Vr(Ae));var Re=f.getDerivedStateFromProps;Ae=typeof Re=="function"||typeof _.getSnapshotBeforeUpdate=="function",j=l.pendingProps!==j,Ae||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(j||fe!==L)&&XA(l,_,m,L),cs=!1;var pe=l.memoizedState;_.state=pe,zd(l,m,_,v),Hd(),fe=l.memoizedState,j||pe!==fe||cs?(typeof Re=="function"&&(Tv(l,f,Re,m),fe=l.memoizedState),(X=cs||QA(l,f,X,m,pe,fe,L))?(Ae||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(l.flags|=4194308)):(typeof _.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=fe),_.props=m,_.state=fe,_.context=L,m=X):(typeof _.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{_=l.stateNode,tv(i,l),L=l.memoizedProps,Ae=gl(f,L),_.props=Ae,Re=l.pendingProps,pe=_.context,fe=f.contextType,X=xc,typeof fe=="object"&&fe!==null&&(X=Vr(fe)),j=f.getDerivedStateFromProps,(fe=typeof j=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(L!==Re||pe!==X)&&XA(l,_,m,X),cs=!1,pe=l.memoizedState,_.state=pe,zd(l,m,_,v),Hd();var he=l.memoizedState;L!==Re||pe!==he||cs||i!==null&&i.dependencies!==null&&Jh(i.dependencies)?(typeof j=="function"&&(Tv(l,f,j,m),he=l.memoizedState),(Ae=cs||QA(l,f,Ae,m,pe,he,X)||i!==null&&i.dependencies!==null&&Jh(i.dependencies))?(fe||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(m,he,X),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(m,he,X)),typeof _.componentDidUpdate=="function"&&(l.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof _.componentDidUpdate!="function"||L===i.memoizedProps&&pe===i.memoizedState||(l.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&pe===i.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=he),_.props=m,_.state=he,_.context=X,m=Ae):(typeof _.componentDidUpdate!="function"||L===i.memoizedProps&&pe===i.memoizedState||(l.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&pe===i.memoizedState||(l.flags|=1024),m=!1)}return _=m,bm(i,l),m=(l.flags&128)!==0,_||m?(_=l.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:_.render(),l.flags|=1,i!==null&&m?(l.child=Ic(l,i.child,null,v),l.child=Ic(l,null,f,v)):Mr(i,l,f,v),l.memoizedState=_.state,i=l.child):i=ki(i,l,v),i}function f2(i,l,f,m){return Nd(),l.flags|=256,Mr(i,l,f,m),l.child}var Av={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wv(i){return{baseLanes:i,cachePool:J_()}}function kv(i,l,f){return i=i!==null?i.childLanes&~f:0,l&&(i|=ta),i}function p2(i,l,f){var m=l.pendingProps,v=!1,_=(l.flags&128)!==0,L;if((L=_)||(L=i!==null&&i.memoizedState===null?!1:(xr.current&2)!==0),L&&(v=!0,l.flags&=-129),L=(l.flags&32)!==0,l.flags&=-33,i===null){if(sn){if(v?ps(l):hs(),sn){var j=Vn,X;if(X=j){e:{for(X=j,j=Ga;X.nodeType!==8;){if(!j){j=null;break e}if(X=Ia(X.nextSibling),X===null){j=null;break e}}j=X}j!==null?(l.memoizedState={dehydrated:j,treeContext:ll!==null?{id:Ti,overflow:Si}:null,retryLane:536870912,hydrationErrors:null},X=Ao(18,null,null,0),X.stateNode=j,X.return=l,l.child=X,eo=l,Vn=null,X=!0):X=!1}X||dl(l)}if(j=l.memoizedState,j!==null&&(j=j.dehydrated,j!==null))return d1(j)?l.lanes=32:l.lanes=536870912,null;wi(l)}return j=m.children,m=m.fallback,v?(hs(),v=l.mode,j=vm({mode:"hidden",children:j},v),m=sl(m,v,f,null),j.return=l,m.return=l,j.sibling=m,l.child=j,v=l.child,v.memoizedState=wv(f),v.childLanes=kv(i,L,f),l.memoizedState=Av,m):(ps(l),Dv(l,j))}if(X=i.memoizedState,X!==null&&(j=X.dehydrated,j!==null)){if(_)l.flags&256?(ps(l),l.flags&=-257,l=Rv(i,l,f)):l.memoizedState!==null?(hs(),l.child=i.child,l.flags|=128,l=null):(hs(),v=m.fallback,j=l.mode,m=vm({mode:"visible",children:m.children},j),v=sl(v,j,f,null),v.flags|=2,m.return=l,v.return=l,m.sibling=v,l.child=m,Ic(l,i.child,null,f),m=l.child,m.memoizedState=wv(f),m.childLanes=kv(i,L,f),l.memoizedState=Av,l=v);else if(ps(l),d1(j)){if(L=j.nextSibling&&j.nextSibling.dataset,L)var fe=L.dgst;L=fe,m=Error(r(419)),m.stack="",m.digest=L,Pd({value:m,source:null,stack:null}),l=Rv(i,l,f)}else if(wr||Ld(i,l,f,!1),L=(f&i.childLanes)!==0,wr||L){if(L=kn,L!==null&&(m=f&-f,m=(m&42)!==0?1:Lr(m),m=(m&(L.suspendedLanes|f))!==0?0:m,m!==0&&m!==X.retryLane))throw X.retryLane=m,Ec(i,m),Io(L,i,m),o2;j.data==="$?"||Yv(),l=Rv(i,l,f)}else j.data==="$?"?(l.flags|=192,l.child=i.child,l=null):(i=X.treeContext,Vn=Ia(j.nextSibling),eo=l,sn=!0,ul=null,Ga=!1,i!==null&&(Zo[Jo++]=Ti,Zo[Jo++]=Si,Zo[Jo++]=ll,Ti=i.id,Si=i.overflow,ll=l),l=Dv(l,m.children),l.flags|=4096);return l}return v?(hs(),v=m.fallback,j=l.mode,X=i.child,fe=X.sibling,m=xi(X,{mode:"hidden",children:m.children}),m.subtreeFlags=X.subtreeFlags&65011712,fe!==null?v=xi(fe,v):(v=sl(v,j,f,null),v.flags|=2),v.return=l,m.return=l,m.sibling=v,l.child=m,m=v,v=l.child,j=i.child.memoizedState,j===null?j=wv(f):(X=j.cachePool,X!==null?(fe=Er._currentValue,X=X.parent!==fe?{parent:fe,pool:fe}:X):X=J_(),j={baseLanes:j.baseLanes|f,cachePool:X}),v.memoizedState=j,v.childLanes=kv(i,L,f),l.memoizedState=Av,m):(ps(l),f=i.child,i=f.sibling,f=xi(f,{mode:"visible",children:m.children}),f.return=l,f.sibling=null,i!==null&&(L=l.deletions,L===null?(l.deletions=[i],l.flags|=16):L.push(i)),l.child=f,l.memoizedState=null,f)}function Dv(i,l){return l=vm({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function vm(i,l){return i=Ao(22,i,null,l),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Rv(i,l,f){return Ic(l,i.child,null,f),i=Dv(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function h2(i,l,f){i.lanes|=l;var m=i.alternate;m!==null&&(m.lanes|=l),Yb(i.return,l,f)}function Iv(i,l,f,m,v){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:v}:(_.isBackwards=l,_.rendering=null,_.renderingStartTime=0,_.last=m,_.tail=f,_.tailMode=v)}function m2(i,l,f){var m=l.pendingProps,v=m.revealOrder,_=m.tail;if(Mr(i,l,m.children,f),m=xr.current,(m&2)!==0)m=m&1|2,l.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&h2(i,f,l);else if(i.tag===19)h2(i,f,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}switch(P(xr,m),v){case"forwards":for(f=l.child,v=null;f!==null;)i=f.alternate,i!==null&&mm(i)===null&&(v=f),f=f.sibling;f=v,f===null?(v=l.child,l.child=null):(v=f.sibling,f.sibling=null),Iv(l,!1,v,f,_);break;case"backwards":for(f=null,v=l.child,l.child=null;v!==null;){if(i=v.alternate,i!==null&&mm(i)===null){l.child=v;break}i=v.sibling,v.sibling=f,f=v,v=i}Iv(l,!0,f,null,_);break;case"together":Iv(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function ki(i,l,f){if(i!==null&&(l.dependencies=i.dependencies),vs|=l.lanes,(f&l.childLanes)===0)if(i!==null){if(Ld(i,l,f,!1),(f&l.childLanes)===0)return null}else return null;if(i!==null&&l.child!==i.child)throw Error(r(153));if(l.child!==null){for(i=l.child,f=xi(i,i.pendingProps),l.child=f,f.return=l;i.sibling!==null;)i=i.sibling,f=f.sibling=xi(i,i.pendingProps),f.return=l;f.sibling=null}return l.child}function Ov(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&Jh(i)))}function _7(i,l,f){switch(l.tag){case 3:ye(l,l.stateNode.containerInfo),ls(l,Er,i.memoizedState.cache),Nd();break;case 27:case 5:Le(l);break;case 4:ye(l,l.stateNode.containerInfo);break;case 10:ls(l,l.type,l.memoizedProps.value);break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(ps(l),l.flags|=128,null):(f&l.child.childLanes)!==0?p2(i,l,f):(ps(l),i=ki(i,l,f),i!==null?i.sibling:null);ps(l);break;case 19:var v=(i.flags&128)!==0;if(m=(f&l.childLanes)!==0,m||(Ld(i,l,f,!1),m=(f&l.childLanes)!==0),v){if(m)return m2(i,l,f);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),P(xr,xr.current),m)break;return null;case 22:case 23:return l.lanes=0,l2(i,l,f);case 24:ls(l,Er,i.memoizedState.cache)}return ki(i,l,f)}function g2(i,l,f){if(i!==null)if(i.memoizedProps!==l.pendingProps)wr=!0;else{if(!Ov(i,f)&&(l.flags&128)===0)return wr=!1,_7(i,l,f);wr=(i.flags&131072)!==0}else wr=!1,sn&&(l.flags&1048576)!==0&&q_(l,Zh,l.index);switch(l.lanes=0,l.tag){case 16:e:{i=l.pendingProps;var m=l.elementType,v=m._init;if(m=v(m._payload),l.type=m,typeof m=="function")Hb(m)?(i=gl(m,i),l.tag=1,l=d2(null,l,m,i,f)):(l.tag=0,l=_v(null,l,m,i,f));else{if(m!=null){if(v=m.$$typeof,v===R){l.tag=11,l=a2(null,l,m,i,f);break e}else if(v===F){l.tag=14,l=i2(null,l,m,i,f);break e}}throw l=W(m)||m,Error(r(306,l,""))}}return l;case 0:return _v(i,l,l.type,l.pendingProps,f);case 1:return m=l.type,v=gl(m,l.pendingProps),d2(i,l,m,v,f);case 3:e:{if(ye(l,l.stateNode.containerInfo),i===null)throw Error(r(387));m=l.pendingProps;var _=l.memoizedState;v=_.element,tv(i,l),zd(l,m,null,f);var L=l.memoizedState;if(m=L.cache,ls(l,Er,m),m!==_.cache&&Kb(l,[Er],f,!0),Hd(),m=L.element,_.isDehydrated)if(_={element:m,isDehydrated:!1,cache:L.cache},l.updateQueue.baseState=_,l.memoizedState=_,l.flags&256){l=f2(i,l,m,f);break e}else if(m!==v){v=Qo(Error(r(424)),l),Pd(v),l=f2(i,l,m,f);break e}else{switch(i=l.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Vn=Ia(i.firstChild),eo=l,sn=!0,ul=null,Ga=!0,f=YA(l,null,m,f),l.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Nd(),m===v){l=ki(i,l,f);break e}Mr(i,l,m,f)}l=l.child}return l;case 26:return bm(i,l),i===null?(f=Ew(l.type,null,l.pendingProps,null))?l.memoizedState=f:sn||(f=l.type,i=l.pendingProps,m=Nm(oe.current).createElement(f),m[be]=l,m[we]=i,Br(m,f,i),on(m),l.stateNode=m):l.memoizedState=Ew(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return Le(l),i===null&&sn&&(m=l.stateNode=yw(l.type,l.pendingProps,oe.current),eo=l,Ga=!0,v=Vn,Ss(l.type)?(f1=v,Vn=Ia(m.firstChild)):Vn=v),Mr(i,l,l.pendingProps.children,f),bm(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&sn&&((v=m=Vn)&&(m=J7(m,l.type,l.pendingProps,Ga),m!==null?(l.stateNode=m,eo=l,Vn=Ia(m.firstChild),Ga=!1,v=!0):v=!1),v||dl(l)),Le(l),v=l.type,_=l.pendingProps,L=i!==null?i.memoizedProps:null,m=_.children,l1(v,_)?m=null:L!==null&&l1(v,L)&&(l.flags|=32),l.memoizedState!==null&&(v=sv(i,l,y7,null,null,f),df._currentValue=v),bm(i,l),Mr(i,l,m,f),l.child;case 6:return i===null&&sn&&((i=f=Vn)&&(f=eF(f,l.pendingProps,Ga),f!==null?(l.stateNode=f,eo=l,Vn=null,i=!0):i=!1),i||dl(l)),null;case 13:return p2(i,l,f);case 4:return ye(l,l.stateNode.containerInfo),m=l.pendingProps,i===null?l.child=Ic(l,null,m,f):Mr(i,l,m,f),l.child;case 11:return a2(i,l,l.type,l.pendingProps,f);case 7:return Mr(i,l,l.pendingProps,f),l.child;case 8:return Mr(i,l,l.pendingProps.children,f),l.child;case 12:return Mr(i,l,l.pendingProps.children,f),l.child;case 10:return m=l.pendingProps,ls(l,l.type,m.value),Mr(i,l,m.children,f),l.child;case 9:return v=l.type._context,m=l.pendingProps.children,pl(l),v=Vr(v),m=m(v),l.flags|=1,Mr(i,l,m,f),l.child;case 14:return i2(i,l,l.type,l.pendingProps,f);case 15:return s2(i,l,l.type,l.pendingProps,f);case 19:return m2(i,l,f);case 31:return m=l.pendingProps,f=l.mode,m={mode:m.mode,children:m.children},i===null?(f=vm(m,f),f.ref=l.ref,l.child=f,f.return=l,l=f):(f=xi(i.child,m),f.ref=l.ref,l.child=f,f.return=l,l=f),l;case 22:return l2(i,l,f);case 24:return pl(l),m=Vr(Er),i===null?(v=Zb(),v===null&&(v=kn,_=Qb(),v.pooledCache=_,_.refCount++,_!==null&&(v.pooledCacheLanes|=f),v=_),l.memoizedState={parent:m,cache:v},ev(l),ls(l,Er,v)):((i.lanes&f)!==0&&(tv(i,l),zd(l,null,null,f),Hd()),v=i.memoizedState,_=l.memoizedState,v.parent!==m?(v={parent:m,cache:m},l.memoizedState=v,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=v),ls(l,Er,m)):(m=_.cache,ls(l,Er,m),m!==v.cache&&Kb(l,[Er],f,!0))),Mr(i,l,l.pendingProps.children,f),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Di(i){i.flags|=4}function y2(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!_w(l)){if(l=ea.current,l!==null&&((tn&4194048)===tn?qa!==null:(tn&62914560)!==tn&&(tn&536870912)===0||l!==qa))throw jd=Jb,eA;i.flags|=8192}}function Em(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?Pr():536870912,i.lanes|=l,Lc|=l)}function Kd(i,l){if(!sn)switch(i.tailMode){case"hidden":l=i.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?i.tail=null:f.sibling=null;break;case"collapsed":f=i.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function zn(i){var l=i.alternate!==null&&i.alternate.child===i.child,f=0,m=0;if(l)for(var v=i.child;v!==null;)f|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)f|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=m,i.childLanes=f,l}function A7(i,l,f){var m=l.pendingProps;switch(Gb(l),l.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zn(l),null;case 1:return zn(l),null;case 3:return f=l.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),_i(Er),Ve(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(i===null||i.child===null)&&(Od(l)?Di(l):i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,K_())),zn(l),null;case 26:return f=l.memoizedState,i===null?(Di(l),f!==null?(zn(l),y2(l,f)):(zn(l),l.flags&=-16777217)):f?f!==i.memoizedState?(Di(l),zn(l),y2(l,f)):(zn(l),l.flags&=-16777217):(i.memoizedProps!==m&&Di(l),zn(l),l.flags&=-16777217),null;case 27:Oe(l),f=oe.current;var v=l.type;if(i!==null&&l.stateNode!=null)i.memoizedProps!==m&&Di(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return zn(l),null}i=re.current,Od(l)?W_(l):(i=yw(v,m,f),l.stateNode=i,Di(l))}return zn(l),null;case 5:if(Oe(l),f=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==m&&Di(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return zn(l),null}if(i=re.current,Od(l))W_(l);else{switch(v=Nm(oe.current),i){case 1:i=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:i=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":i=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":i=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":i=v.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof m.is=="string"?v.createElement("select",{is:m.is}):v.createElement("select"),m.multiple?i.multiple=!0:m.size&&(i.size=m.size);break;default:i=typeof m.is=="string"?v.createElement(f,{is:m.is}):v.createElement(f)}}i[be]=l,i[we]=m;e:for(v=l.child;v!==null;){if(v.tag===5||v.tag===6)i.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===l)break e;for(;v.sibling===null;){if(v.return===null||v.return===l)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}l.stateNode=i;e:switch(Br(i,f,m),f){case"button":case"input":case"select":case"textarea":i=!!m.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Di(l)}}return zn(l),l.flags&=-16777217,null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==m&&Di(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(i=oe.current,Od(l)){if(i=l.stateNode,f=l.memoizedProps,m=null,v=eo,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}i[be]=l,i=!!(i.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||uw(i.nodeValue,f)),i||dl(l)}else i=Nm(i).createTextNode(m),i[be]=l,l.stateNode=i}return zn(l),null;case 13:if(m=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Od(l),m!==null&&m.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=l.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[be]=l}else Nd(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;zn(l),v=!1}else v=K_(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return l.flags&256?(wi(l),l):(wi(l),null)}if(wi(l),(l.flags&128)!==0)return l.lanes=f,l;if(f=m!==null,i=i!==null&&i.memoizedState!==null,f){m=l.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool);var _=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(_=m.memoizedState.cachePool.pool),_!==v&&(m.flags|=2048)}return f!==i&&f&&(l.child.flags|=8192),Em(l,l.updateQueue),zn(l),null;case 4:return Ve(),i===null&&r1(l.stateNode.containerInfo),zn(l),null;case 10:return _i(l.type),zn(l),null;case 19:if(ee(xr),v=l.memoizedState,v===null)return zn(l),null;if(m=(l.flags&128)!==0,_=v.rendering,_===null)if(m)Kd(v,!1);else{if(Gn!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(_=mm(i),_!==null){for(l.flags|=128,Kd(v,!1),i=_.updateQueue,l.updateQueue=i,Em(l,i),l.subtreeFlags=0,i=f,f=l.child;f!==null;)G_(f,i),f=f.sibling;return P(xr,xr.current&1|2),l.child}i=i.sibling}v.tail!==null&&Be()>Sm&&(l.flags|=128,m=!0,Kd(v,!1),l.lanes=4194304)}else{if(!m)if(i=mm(_),i!==null){if(l.flags|=128,m=!0,i=i.updateQueue,l.updateQueue=i,Em(l,i),Kd(v,!0),v.tail===null&&v.tailMode==="hidden"&&!_.alternate&&!sn)return zn(l),null}else 2*Be()-v.renderingStartTime>Sm&&f!==536870912&&(l.flags|=128,m=!0,Kd(v,!1),l.lanes=4194304);v.isBackwards?(_.sibling=l.child,l.child=_):(i=v.last,i!==null?i.sibling=_:l.child=_,v.last=_)}return v.tail!==null?(l=v.tail,v.rendering=l,v.tail=l.sibling,v.renderingStartTime=Be(),l.sibling=null,i=xr.current,P(xr,m?i&1|2:i&1),l):(zn(l),null);case 22:case 23:return wi(l),av(),m=l.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(f&536870912)!==0&&(l.flags&128)===0&&(zn(l),l.subtreeFlags&6&&(l.flags|=8192)):zn(l),f=l.updateQueue,f!==null&&Em(l,f.retryQueue),f=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048),i!==null&&ee(hl),null;case 24:return f=null,i!==null&&(f=i.memoizedState.cache),l.memoizedState.cache!==f&&(l.flags|=2048),_i(Er),zn(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function w7(i,l){switch(Gb(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return _i(Er),Ve(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return Oe(l),null;case 13:if(wi(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Nd()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return ee(xr),null;case 4:return Ve(),null;case 10:return _i(l.type),null;case 22:case 23:return wi(l),av(),i!==null&&ee(hl),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return _i(Er),null;case 25:return null;default:return null}}function b2(i,l){switch(Gb(l),l.tag){case 3:_i(Er),Ve();break;case 26:case 27:case 5:Oe(l);break;case 4:Ve();break;case 13:wi(l);break;case 19:ee(xr);break;case 10:_i(l.type);break;case 22:case 23:wi(l),av(),i!==null&&ee(hl);break;case 24:_i(Er)}}function Qd(i,l){try{var f=l.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var v=m.next;f=v;do{if((f.tag&i)===i){m=void 0;var _=f.create,L=f.inst;m=_(),L.destroy=m}f=f.next}while(f!==v)}}catch(j){Tn(l,l.return,j)}}function ms(i,l,f){try{var m=l.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var _=v.next;m=_;do{if((m.tag&i)===i){var L=m.inst,j=L.destroy;if(j!==void 0){L.destroy=void 0,v=l;var X=f,fe=j;try{fe()}catch(Ae){Tn(v,X,Ae)}}}m=m.next}while(m!==_)}}catch(Ae){Tn(l,l.return,Ae)}}function v2(i){var l=i.updateQueue;if(l!==null){var f=i.stateNode;try{iA(l,f)}catch(m){Tn(i,i.return,m)}}}function E2(i,l,f){f.props=gl(i.type,i.memoizedProps),f.state=i.memoizedState;try{f.componentWillUnmount()}catch(m){Tn(i,l,m)}}function Xd(i,l){try{var f=i.ref;if(f!==null){switch(i.tag){case 26:case 27:case 5:var m=i.stateNode;break;case 30:m=i.stateNode;break;default:m=i.stateNode}typeof f=="function"?i.refCleanup=f(m):f.current=m}}catch(v){Tn(i,l,v)}}function Wa(i,l){var f=i.ref,m=i.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(v){Tn(i,l,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(v){Tn(i,l,v)}else f.current=null}function x2(i){var l=i.type,f=i.memoizedProps,m=i.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":f.autoFocus&&m.focus();break e;case"img":f.src?m.src=f.src:f.srcSet&&(m.srcset=f.srcSet)}}catch(v){Tn(i,i.return,v)}}function Nv(i,l,f){try{var m=i.stateNode;Y7(m,i.type,f,l),m[we]=l}catch(v){Tn(i,i.return,v)}}function T2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Ss(i.type)||i.tag===4}function Pv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||T2(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Ss(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Lv(i,l,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,l?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(i,l):(l=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,l.appendChild(i),f=f._reactRootContainer,f!=null||l.onclick!==null||(l.onclick=Om));else if(m!==4&&(m===27&&Ss(i.type)&&(f=i.stateNode,l=null),i=i.child,i!==null))for(Lv(i,l,f),i=i.sibling;i!==null;)Lv(i,l,f),i=i.sibling}function xm(i,l,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,l?f.insertBefore(i,l):f.appendChild(i);else if(m!==4&&(m===27&&Ss(i.type)&&(f=i.stateNode),i=i.child,i!==null))for(xm(i,l,f),i=i.sibling;i!==null;)xm(i,l,f),i=i.sibling}function S2(i){var l=i.stateNode,f=i.memoizedProps;try{for(var m=i.type,v=l.attributes;v.length;)l.removeAttributeNode(v[0]);Br(l,m,f),l[be]=i,l[we]=f}catch(_){Tn(i,i.return,_)}}var Ri=!1,Zn=!1,Mv=!1,C2=typeof WeakSet=="function"?WeakSet:Set,kr=null;function k7(i,l){if(i=i.containerInfo,i1=jm,i=L_(i),Pb(i)){if("selectionStart"in i)var f={start:i.selectionStart,end:i.selectionEnd};else e:{f=(f=i.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var v=m.anchorOffset,_=m.focusNode;m=m.focusOffset;try{f.nodeType,_.nodeType}catch{f=null;break e}var L=0,j=-1,X=-1,fe=0,Ae=0,Re=i,pe=null;t:for(;;){for(var he;Re!==f||v!==0&&Re.nodeType!==3||(j=L+v),Re!==_||m!==0&&Re.nodeType!==3||(X=L+m),Re.nodeType===3&&(L+=Re.nodeValue.length),(he=Re.firstChild)!==null;)pe=Re,Re=he;for(;;){if(Re===i)break t;if(pe===f&&++fe===v&&(j=L),pe===_&&++Ae===m&&(X=L),(he=Re.nextSibling)!==null)break;Re=pe,pe=Re.parentNode}Re=he}f=j===-1||X===-1?null:{start:j,end:X}}else f=null}f=f||{start:0,end:0}}else f=null;for(s1={focusedElem:i,selectionRange:f},jm=!1,kr=l;kr!==null;)if(l=kr,i=l.child,(l.subtreeFlags&1024)!==0&&i!==null)i.return=l,kr=i;else for(;kr!==null;){switch(l=kr,_=l.alternate,i=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,f=l,v=_.memoizedProps,_=_.memoizedState,m=f.stateNode;try{var wt=gl(f.type,v,f.elementType===f.type);i=m.getSnapshotBeforeUpdate(wt,_),m.__reactInternalSnapshotBeforeUpdate=i}catch(xt){Tn(f,f.return,xt)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,f=i.nodeType,f===9)u1(i);else if(f===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":u1(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=l.sibling,i!==null){i.return=l.return,kr=i;break}kr=l.return}}function _2(i,l,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:gs(i,f),m&4&&Qd(5,f);break;case 1:if(gs(i,f),m&4)if(i=f.stateNode,l===null)try{i.componentDidMount()}catch(L){Tn(f,f.return,L)}else{var v=gl(f.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(v,l,i.__reactInternalSnapshotBeforeUpdate)}catch(L){Tn(f,f.return,L)}}m&64&&v2(f),m&512&&Xd(f,f.return);break;case 3:if(gs(i,f),m&64&&(i=f.updateQueue,i!==null)){if(l=null,f.child!==null)switch(f.child.tag){case 27:case 5:l=f.child.stateNode;break;case 1:l=f.child.stateNode}try{iA(i,l)}catch(L){Tn(f,f.return,L)}}break;case 27:l===null&&m&4&&S2(f);case 26:case 5:gs(i,f),l===null&&m&4&&x2(f),m&512&&Xd(f,f.return);break;case 12:gs(i,f);break;case 13:gs(i,f),m&4&&k2(i,f),m&64&&(i=f.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(f=F7.bind(null,f),tF(i,f))));break;case 22:if(m=f.memoizedState!==null||Ri,!m){l=l!==null&&l.memoizedState!==null||Zn,v=Ri;var _=Zn;Ri=m,(Zn=l)&&!_?ys(i,f,(f.subtreeFlags&8772)!==0):gs(i,f),Ri=v,Zn=_}break;case 30:break;default:gs(i,f)}}function A2(i){var l=i.alternate;l!==null&&(i.alternate=null,A2(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&At(l)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Ln=null,co=!1;function Ii(i,l,f){for(f=f.child;f!==null;)w2(i,l,f),f=f.sibling}function w2(i,l,f){if(ge&&typeof ge.onCommitFiberUnmount=="function")try{ge.onCommitFiberUnmount(ue,f)}catch{}switch(f.tag){case 26:Zn||Wa(f,l),Ii(i,l,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:Zn||Wa(f,l);var m=Ln,v=co;Ss(f.type)&&(Ln=f.stateNode,co=!1),Ii(i,l,f),sf(f.stateNode),Ln=m,co=v;break;case 5:Zn||Wa(f,l);case 6:if(m=Ln,v=co,Ln=null,Ii(i,l,f),Ln=m,co=v,Ln!==null)if(co)try{(Ln.nodeType===9?Ln.body:Ln.nodeName==="HTML"?Ln.ownerDocument.body:Ln).removeChild(f.stateNode)}catch(_){Tn(f,l,_)}else try{Ln.removeChild(f.stateNode)}catch(_){Tn(f,l,_)}break;case 18:Ln!==null&&(co?(i=Ln,mw(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,f.stateNode),mf(i)):mw(Ln,f.stateNode));break;case 4:m=Ln,v=co,Ln=f.stateNode.containerInfo,co=!0,Ii(i,l,f),Ln=m,co=v;break;case 0:case 11:case 14:case 15:Zn||ms(2,f,l),Zn||ms(4,f,l),Ii(i,l,f);break;case 1:Zn||(Wa(f,l),m=f.stateNode,typeof m.componentWillUnmount=="function"&&E2(f,l,m)),Ii(i,l,f);break;case 21:Ii(i,l,f);break;case 22:Zn=(m=Zn)||f.memoizedState!==null,Ii(i,l,f),Zn=m;break;default:Ii(i,l,f)}}function k2(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{mf(i)}catch(f){Tn(l,l.return,f)}}function D7(i){switch(i.tag){case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new C2),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new C2),l;default:throw Error(r(435,i.tag))}}function Fv(i,l){var f=D7(i);l.forEach(function(m){var v=B7.bind(null,i,m);f.has(m)||(f.add(m),m.then(v,v))})}function wo(i,l){var f=l.deletions;if(f!==null)for(var m=0;m<f.length;m++){var v=f[m],_=i,L=l,j=L;e:for(;j!==null;){switch(j.tag){case 27:if(Ss(j.type)){Ln=j.stateNode,co=!1;break e}break;case 5:Ln=j.stateNode,co=!1;break e;case 3:case 4:Ln=j.stateNode.containerInfo,co=!0;break e}j=j.return}if(Ln===null)throw Error(r(160));w2(_,L,v),Ln=null,co=!1,_=v.alternate,_!==null&&(_.return=null),v.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)D2(l,i),l=l.sibling}var Ra=null;function D2(i,l){var f=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:wo(l,i),ko(i),m&4&&(ms(3,i,i.return),Qd(3,i),ms(5,i,i.return));break;case 1:wo(l,i),ko(i),m&512&&(Zn||f===null||Wa(f,f.return)),m&64&&Ri&&(i=i.updateQueue,i!==null&&(m=i.callbacks,m!==null&&(f=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:var v=Ra;if(wo(l,i),ko(i),m&512&&(Zn||f===null||Wa(f,f.return)),m&4){var _=f!==null?f.memoizedState:null;if(m=i.memoizedState,f===null)if(m===null)if(i.stateNode===null){e:{m=i.type,f=i.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":_=v.getElementsByTagName("title")[0],(!_||_[bt]||_[be]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=v.createElement(m),v.head.insertBefore(_,v.querySelector("head > title"))),Br(_,m,f),_[be]=i,on(_),m=_;break e;case"link":var L=Sw("link","href",v).get(m+(f.href||""));if(L){for(var j=0;j<L.length;j++)if(_=L[j],_.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&_.getAttribute("rel")===(f.rel==null?null:f.rel)&&_.getAttribute("title")===(f.title==null?null:f.title)&&_.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){L.splice(j,1);break t}}_=v.createElement(m),Br(_,m,f),v.head.appendChild(_);break;case"meta":if(L=Sw("meta","content",v).get(m+(f.content||""))){for(j=0;j<L.length;j++)if(_=L[j],_.getAttribute("content")===(f.content==null?null:""+f.content)&&_.getAttribute("name")===(f.name==null?null:f.name)&&_.getAttribute("property")===(f.property==null?null:f.property)&&_.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&_.getAttribute("charset")===(f.charSet==null?null:f.charSet)){L.splice(j,1);break t}}_=v.createElement(m),Br(_,m,f),v.head.appendChild(_);break;default:throw Error(r(468,m))}_[be]=i,on(_),m=_}i.stateNode=m}else Cw(v,i.type,i.stateNode);else i.stateNode=Tw(v,m,i.memoizedProps);else _!==m?(_===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):_.count--,m===null?Cw(v,i.type,i.stateNode):Tw(v,m,i.memoizedProps)):m===null&&i.stateNode!==null&&Nv(i,i.memoizedProps,f.memoizedProps)}break;case 27:wo(l,i),ko(i),m&512&&(Zn||f===null||Wa(f,f.return)),f!==null&&m&4&&Nv(i,i.memoizedProps,f.memoizedProps);break;case 5:if(wo(l,i),ko(i),m&512&&(Zn||f===null||Wa(f,f.return)),i.flags&32){v=i.stateNode;try{pc(v,"")}catch(he){Tn(i,i.return,he)}}m&4&&i.stateNode!=null&&(v=i.memoizedProps,Nv(i,v,f!==null?f.memoizedProps:v)),m&1024&&(Mv=!0);break;case 6:if(wo(l,i),ko(i),m&4){if(i.stateNode===null)throw Error(r(162));m=i.memoizedProps,f=i.stateNode;try{f.nodeValue=m}catch(he){Tn(i,i.return,he)}}break;case 3:if(Mm=null,v=Ra,Ra=Pm(l.containerInfo),wo(l,i),Ra=v,ko(i),m&4&&f!==null&&f.memoizedState.isDehydrated)try{mf(l.containerInfo)}catch(he){Tn(i,i.return,he)}Mv&&(Mv=!1,R2(i));break;case 4:m=Ra,Ra=Pm(i.stateNode.containerInfo),wo(l,i),ko(i),Ra=m;break;case 12:wo(l,i),ko(i);break;case 13:wo(l,i),ko(i),i.child.flags&8192&&i.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&($v=Be()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Fv(i,m)));break;case 22:v=i.memoizedState!==null;var X=f!==null&&f.memoizedState!==null,fe=Ri,Ae=Zn;if(Ri=fe||v,Zn=Ae||X,wo(l,i),Zn=Ae,Ri=fe,ko(i),m&8192)e:for(l=i.stateNode,l._visibility=v?l._visibility&-2:l._visibility|1,v&&(f===null||X||Ri||Zn||yl(i)),f=null,l=i;;){if(l.tag===5||l.tag===26){if(f===null){X=f=l;try{if(_=X.stateNode,v)L=_.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{j=X.stateNode;var Re=X.memoizedProps.style,pe=Re!=null&&Re.hasOwnProperty("display")?Re.display:null;j.style.display=pe==null||typeof pe=="boolean"?"":(""+pe).trim()}}catch(he){Tn(X,X.return,he)}}}else if(l.tag===6){if(f===null){X=l;try{X.stateNode.nodeValue=v?"":X.memoizedProps}catch(he){Tn(X,X.return,he)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===i)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break e;for(;l.sibling===null;){if(l.return===null||l.return===i)break e;f===l&&(f=null),l=l.return}f===l&&(f=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=i.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,Fv(i,f))));break;case 19:wo(l,i),ko(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Fv(i,m)));break;case 30:break;case 21:break;default:wo(l,i),ko(i)}}function ko(i){var l=i.flags;if(l&2){try{for(var f,m=i.return;m!==null;){if(T2(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var v=f.stateNode,_=Pv(i);xm(i,_,v);break;case 5:var L=f.stateNode;f.flags&32&&(pc(L,""),f.flags&=-33);var j=Pv(i);xm(i,j,L);break;case 3:case 4:var X=f.stateNode.containerInfo,fe=Pv(i);Lv(i,fe,X);break;default:throw Error(r(161))}}catch(Ae){Tn(i,i.return,Ae)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function R2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;R2(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),i=i.sibling}}function gs(i,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)_2(i,l.alternate,l),l=l.sibling}function yl(i){for(i=i.child;i!==null;){var l=i;switch(l.tag){case 0:case 11:case 14:case 15:ms(4,l,l.return),yl(l);break;case 1:Wa(l,l.return);var f=l.stateNode;typeof f.componentWillUnmount=="function"&&E2(l,l.return,f),yl(l);break;case 27:sf(l.stateNode);case 26:case 5:Wa(l,l.return),yl(l);break;case 22:l.memoizedState===null&&yl(l);break;case 30:yl(l);break;default:yl(l)}i=i.sibling}}function ys(i,l,f){for(f=f&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,v=i,_=l,L=_.flags;switch(_.tag){case 0:case 11:case 15:ys(v,_,f),Qd(4,_);break;case 1:if(ys(v,_,f),m=_,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(fe){Tn(m,m.return,fe)}if(m=_,v=m.updateQueue,v!==null){var j=m.stateNode;try{var X=v.shared.hiddenCallbacks;if(X!==null)for(v.shared.hiddenCallbacks=null,v=0;v<X.length;v++)aA(X[v],j)}catch(fe){Tn(m,m.return,fe)}}f&&L&64&&v2(_),Xd(_,_.return);break;case 27:S2(_);case 26:case 5:ys(v,_,f),f&&m===null&&L&4&&x2(_),Xd(_,_.return);break;case 12:ys(v,_,f);break;case 13:ys(v,_,f),f&&L&4&&k2(v,_);break;case 22:_.memoizedState===null&&ys(v,_,f),Xd(_,_.return);break;case 30:break;default:ys(v,_,f)}l=l.sibling}}function Bv(i,l){var f=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==f&&(i!=null&&i.refCount++,f!=null&&Md(f))}function jv(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Md(i))}function Ya(i,l,f,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)I2(i,l,f,m),l=l.sibling}function I2(i,l,f,m){var v=l.flags;switch(l.tag){case 0:case 11:case 15:Ya(i,l,f,m),v&2048&&Qd(9,l);break;case 1:Ya(i,l,f,m);break;case 3:Ya(i,l,f,m),v&2048&&(i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Md(i)));break;case 12:if(v&2048){Ya(i,l,f,m),i=l.stateNode;try{var _=l.memoizedProps,L=_.id,j=_.onPostCommit;typeof j=="function"&&j(L,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(X){Tn(l,l.return,X)}}else Ya(i,l,f,m);break;case 13:Ya(i,l,f,m);break;case 23:break;case 22:_=l.stateNode,L=l.alternate,l.memoizedState!==null?_._visibility&2?Ya(i,l,f,m):Zd(i,l):_._visibility&2?Ya(i,l,f,m):(_._visibility|=2,Oc(i,l,f,m,(l.subtreeFlags&10256)!==0)),v&2048&&Bv(L,l);break;case 24:Ya(i,l,f,m),v&2048&&jv(l.alternate,l);break;default:Ya(i,l,f,m)}}function Oc(i,l,f,m,v){for(v=v&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var _=i,L=l,j=f,X=m,fe=L.flags;switch(L.tag){case 0:case 11:case 15:Oc(_,L,j,X,v),Qd(8,L);break;case 23:break;case 22:var Ae=L.stateNode;L.memoizedState!==null?Ae._visibility&2?Oc(_,L,j,X,v):Zd(_,L):(Ae._visibility|=2,Oc(_,L,j,X,v)),v&&fe&2048&&Bv(L.alternate,L);break;case 24:Oc(_,L,j,X,v),v&&fe&2048&&jv(L.alternate,L);break;default:Oc(_,L,j,X,v)}l=l.sibling}}function Zd(i,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var f=i,m=l,v=m.flags;switch(m.tag){case 22:Zd(f,m),v&2048&&Bv(m.alternate,m);break;case 24:Zd(f,m),v&2048&&jv(m.alternate,m);break;default:Zd(f,m)}l=l.sibling}}var Jd=8192;function Nc(i){if(i.subtreeFlags&Jd)for(i=i.child;i!==null;)O2(i),i=i.sibling}function O2(i){switch(i.tag){case 26:Nc(i),i.flags&Jd&&i.memoizedState!==null&&hF(Ra,i.memoizedState,i.memoizedProps);break;case 5:Nc(i);break;case 3:case 4:var l=Ra;Ra=Pm(i.stateNode.containerInfo),Nc(i),Ra=l;break;case 22:i.memoizedState===null&&(l=i.alternate,l!==null&&l.memoizedState!==null?(l=Jd,Jd=16777216,Nc(i),Jd=l):Nc(i));break;default:Nc(i)}}function N2(i){var l=i.alternate;if(l!==null&&(i=l.child,i!==null)){l.child=null;do l=i.sibling,i.sibling=null,i=l;while(i!==null)}}function ef(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var m=l[f];kr=m,L2(m,i)}N2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)P2(i),i=i.sibling}function P2(i){switch(i.tag){case 0:case 11:case 15:ef(i),i.flags&2048&&ms(9,i,i.return);break;case 3:ef(i);break;case 12:ef(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,Tm(i)):ef(i);break;default:ef(i)}}function Tm(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var f=0;f<l.length;f++){var m=l[f];kr=m,L2(m,i)}N2(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:ms(8,l,l.return),Tm(l);break;case 22:f=l.stateNode,f._visibility&2&&(f._visibility&=-3,Tm(l));break;default:Tm(l)}i=i.sibling}}function L2(i,l){for(;kr!==null;){var f=kr;switch(f.tag){case 0:case 11:case 15:ms(8,f,l);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Md(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,kr=m;else e:for(f=i;kr!==null;){m=kr;var v=m.sibling,_=m.return;if(A2(m),m===f){kr=null;break e}if(v!==null){v.return=_,kr=v;break e}kr=_}}}var R7={getCacheForType:function(i){var l=Vr(Er),f=l.data.get(i);return f===void 0&&(f=i(),l.data.set(i,f)),f}},I7=typeof WeakMap=="function"?WeakMap:Map,fn=0,kn=null,Vt=null,tn=0,pn=0,Do=null,bs=!1,Pc=!1,Uv=!1,Oi=0,Gn=0,vs=0,bl=0,Hv=0,ta=0,Lc=0,tf=null,uo=null,zv=!1,$v=0,Sm=1/0,Cm=null,Es=null,Fr=0,xs=null,Mc=null,Fc=0,Vv=0,Gv=null,M2=null,nf=0,qv=null;function Ro(){if((fn&2)!==0&&tn!==0)return tn&-tn;if(B.T!==null){var i=Cc;return i!==0?i:Jv()}return te()}function F2(){ta===0&&(ta=(tn&536870912)===0||sn?mn():536870912);var i=ea.current;return i!==null&&(i.flags|=32),ta}function Io(i,l,f){(i===kn&&(pn===2||pn===9)||i.cancelPendingCommit!==null)&&(Bc(i,0),Ts(i,tn,ta,!1)),$n(i,f),((fn&2)===0||i!==kn)&&(i===kn&&((fn&2)===0&&(bl|=f),Gn===4&&Ts(i,tn,ta,!1)),Ka(i))}function B2(i,l,f){if((fn&6)!==0)throw Error(r(327));var m=!f&&(l&124)===0&&(l&i.expiredLanes)===0||ht(i,l),v=m?P7(i,l):Kv(i,l,!0),_=m;do{if(v===0){Pc&&!m&&Ts(i,l,0,!1);break}else{if(f=i.current.alternate,_&&!O7(f)){v=Kv(i,l,!1),_=!1;continue}if(v===2){if(_=l,i.errorRecoveryDisabledLanes&_)var L=0;else L=i.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){l=L;e:{var j=i;v=tf;var X=j.current.memoizedState.isDehydrated;if(X&&(Bc(j,L).flags|=256),L=Kv(j,L,!1),L!==2){if(Uv&&!X){j.errorRecoveryDisabledLanes|=_,bl|=_,v=4;break e}_=uo,uo=v,_!==null&&(uo===null?uo=_:uo.push.apply(uo,_))}v=L}if(_=!1,v!==2)continue}}if(v===1){Bc(i,0),Ts(i,l,0,!0);break}e:{switch(m=i,_=v,_){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Ts(m,l,ta,!bs);break e;case 2:uo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(v=$v+300-Be(),10<v)){if(Ts(m,l,ta,!bs),Se(m,0,!0)!==0)break e;m.timeoutHandle=pw(j2.bind(null,m,f,uo,Cm,zv,l,ta,bl,Lc,bs,_,2,-0,0),v);break e}j2(m,f,uo,Cm,zv,l,ta,bl,Lc,bs,_,0,-0,0)}}break}while(!0);Ka(i)}function j2(i,l,f,m,v,_,L,j,X,fe,Ae,Re,pe,he){if(i.timeoutHandle=-1,Re=l.subtreeFlags,(Re&8192||(Re&16785408)===16785408)&&(uf={stylesheets:null,count:0,unsuspend:pF},O2(l),Re=mF(),Re!==null)){i.cancelPendingCommit=Re(q2.bind(null,i,l,_,f,m,v,L,j,X,Ae,1,pe,he)),Ts(i,_,L,!fe);return}q2(i,l,_,f,m,v,L,j,X)}function O7(i){for(var l=i;;){var f=l.tag;if((f===0||f===11||f===15)&&l.flags&16384&&(f=l.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var v=f[m],_=v.getSnapshot;v=v.value;try{if(!_o(_(),v))return!1}catch{return!1}}if(f=l.child,l.subtreeFlags&16384&&f!==null)f.return=l,l=f;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Ts(i,l,f,m){l&=~Hv,l&=~bl,i.suspendedLanes|=l,i.pingedLanes&=~l,m&&(i.warmLanes|=l),m=i.expirationTimes;for(var v=l;0<v;){var _=31-Xe(v),L=1<<_;m[_]=-1,v&=~L}f!==0&&oo(i,f,l)}function _m(){return(fn&6)===0?(rf(0),!1):!0}function Wv(){if(Vt!==null){if(pn===0)var i=Vt.return;else i=Vt,Ci=fl=null,uv(i),Rc=null,Wd=0,i=Vt;for(;i!==null;)b2(i.alternate,i),i=i.return;Vt=null}}function Bc(i,l){var f=i.timeoutHandle;f!==-1&&(i.timeoutHandle=-1,Q7(f)),f=i.cancelPendingCommit,f!==null&&(i.cancelPendingCommit=null,f()),Wv(),kn=i,Vt=f=xi(i.current,null),tn=l,pn=0,Do=null,bs=!1,Pc=ht(i,l),Uv=!1,Lc=ta=Hv=bl=vs=Gn=0,uo=tf=null,zv=!1,(l&8)!==0&&(l|=l&32);var m=i.entangledLanes;if(m!==0)for(i=i.entanglements,m&=l;0<m;){var v=31-Xe(m),_=1<<v;l|=i[v],m&=~_}return Oi=l,Wh(),f}function U2(i,l){Bt=null,B.H=fm,l===Bd||l===nm?(l=rA(),pn=3):l===eA?(l=rA(),pn=4):pn=l===o2?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Do=l,Vt===null&&(Gn=1,ym(i,Qo(l,i.current)))}function H2(){var i=B.H;return B.H=fm,i===null?fm:i}function z2(){var i=B.A;return B.A=R7,i}function Yv(){Gn=4,bs||(tn&4194048)!==tn&&ea.current!==null||(Pc=!0),(vs&134217727)===0&&(bl&134217727)===0||kn===null||Ts(kn,tn,ta,!1)}function Kv(i,l,f){var m=fn;fn|=2;var v=H2(),_=z2();(kn!==i||tn!==l)&&(Cm=null,Bc(i,l)),l=!1;var L=Gn;e:do try{if(pn!==0&&Vt!==null){var j=Vt,X=Do;switch(pn){case 8:Wv(),L=6;break e;case 3:case 2:case 9:case 6:ea.current===null&&(l=!0);var fe=pn;if(pn=0,Do=null,jc(i,j,X,fe),f&&Pc){L=0;break e}break;default:fe=pn,pn=0,Do=null,jc(i,j,X,fe)}}N7(),L=Gn;break}catch(Ae){U2(i,Ae)}while(!0);return l&&i.shellSuspendCounter++,Ci=fl=null,fn=m,B.H=v,B.A=_,Vt===null&&(kn=null,tn=0,Wh()),L}function N7(){for(;Vt!==null;)$2(Vt)}function P7(i,l){var f=fn;fn|=2;var m=H2(),v=z2();kn!==i||tn!==l?(Cm=null,Sm=Be()+500,Bc(i,l)):Pc=ht(i,l);e:do try{if(pn!==0&&Vt!==null){l=Vt;var _=Do;t:switch(pn){case 1:pn=0,Do=null,jc(i,l,_,1);break;case 2:case 9:if(tA(_)){pn=0,Do=null,V2(l);break}l=function(){pn!==2&&pn!==9||kn!==i||(pn=7),Ka(i)},_.then(l,l);break e;case 3:pn=7;break e;case 4:pn=5;break e;case 7:tA(_)?(pn=0,Do=null,V2(l)):(pn=0,Do=null,jc(i,l,_,7));break;case 5:var L=null;switch(Vt.tag){case 26:L=Vt.memoizedState;case 5:case 27:var j=Vt;if(!L||_w(L)){pn=0,Do=null;var X=j.sibling;if(X!==null)Vt=X;else{var fe=j.return;fe!==null?(Vt=fe,Am(fe)):Vt=null}break t}}pn=0,Do=null,jc(i,l,_,5);break;case 6:pn=0,Do=null,jc(i,l,_,6);break;case 8:Wv(),Gn=6;break e;default:throw Error(r(462))}}L7();break}catch(Ae){U2(i,Ae)}while(!0);return Ci=fl=null,B.H=m,B.A=v,fn=f,Vt!==null?0:(kn=null,tn=0,Wh(),Gn)}function L7(){for(;Vt!==null&&!gt();)$2(Vt)}function $2(i){var l=g2(i.alternate,i,Oi);i.memoizedProps=i.pendingProps,l===null?Am(i):Vt=l}function V2(i){var l=i,f=l.alternate;switch(l.tag){case 15:case 0:l=u2(f,l,l.pendingProps,l.type,void 0,tn);break;case 11:l=u2(f,l,l.pendingProps,l.type.render,l.ref,tn);break;case 5:uv(l);default:b2(f,l),l=Vt=G_(l,Oi),l=g2(f,l,Oi)}i.memoizedProps=i.pendingProps,l===null?Am(i):Vt=l}function jc(i,l,f,m){Ci=fl=null,uv(l),Rc=null,Wd=0;var v=l.return;try{if(C7(i,v,l,f,tn)){Gn=1,ym(i,Qo(f,i.current)),Vt=null;return}}catch(_){if(v!==null)throw Vt=v,_;Gn=1,ym(i,Qo(f,i.current)),Vt=null;return}l.flags&32768?(sn||m===1?i=!0:Pc||(tn&536870912)!==0?i=!1:(bs=i=!0,(m===2||m===9||m===3||m===6)&&(m=ea.current,m!==null&&m.tag===13&&(m.flags|=16384))),G2(l,i)):Am(l)}function Am(i){var l=i;do{if((l.flags&32768)!==0){G2(l,bs);return}i=l.return;var f=A7(l.alternate,l,Oi);if(f!==null){Vt=f;return}if(l=l.sibling,l!==null){Vt=l;return}Vt=l=i}while(l!==null);Gn===0&&(Gn=5)}function G2(i,l){do{var f=w7(i.alternate,i);if(f!==null){f.flags&=32767,Vt=f;return}if(f=i.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!l&&(i=i.sibling,i!==null)){Vt=i;return}Vt=i=f}while(i!==null);Gn=6,Vt=null}function q2(i,l,f,m,v,_,L,j,X){i.cancelPendingCommit=null;do wm();while(Fr!==0);if((fn&6)!==0)throw Error(r(327));if(l!==null){if(l===i.current)throw Error(r(177));if(_=l.lanes|l.childLanes,_|=jb,sr(i,f,_,L,j,X),i===kn&&(Vt=kn=null,tn=0),Mc=l,xs=i,Fc=f,Vv=_,Gv=v,M2=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,j7(je,function(){return X2(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=B.T,B.T=null,v=J.p,J.p=2,L=fn,fn|=4;try{k7(i,l,f)}finally{fn=L,J.p=v,B.T=m}}Fr=1,W2(),Y2(),K2()}}function W2(){if(Fr===1){Fr=0;var i=xs,l=Mc,f=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||f){f=B.T,B.T=null;var m=J.p;J.p=2;var v=fn;fn|=4;try{D2(l,i);var _=s1,L=L_(i.containerInfo),j=_.focusedElem,X=_.selectionRange;if(L!==j&&j&&j.ownerDocument&&P_(j.ownerDocument.documentElement,j)){if(X!==null&&Pb(j)){var fe=X.start,Ae=X.end;if(Ae===void 0&&(Ae=fe),"selectionStart"in j)j.selectionStart=fe,j.selectionEnd=Math.min(Ae,j.value.length);else{var Re=j.ownerDocument||document,pe=Re&&Re.defaultView||window;if(pe.getSelection){var he=pe.getSelection(),wt=j.textContent.length,xt=Math.min(X.start,wt),bn=X.end===void 0?xt:Math.min(X.end,wt);!he.extend&&xt>bn&&(L=bn,bn=xt,xt=L);var le=N_(j,xt),se=N_(j,bn);if(le&&se&&(he.rangeCount!==1||he.anchorNode!==le.node||he.anchorOffset!==le.offset||he.focusNode!==se.node||he.focusOffset!==se.offset)){var ce=Re.createRange();ce.setStart(le.node,le.offset),he.removeAllRanges(),xt>bn?(he.addRange(ce),he.extend(se.node,se.offset)):(ce.setEnd(se.node,se.offset),he.addRange(ce))}}}}for(Re=[],he=j;he=he.parentNode;)he.nodeType===1&&Re.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<Re.length;j++){var ke=Re[j];ke.element.scrollLeft=ke.left,ke.element.scrollTop=ke.top}}jm=!!i1,s1=i1=null}finally{fn=v,J.p=m,B.T=f}}i.current=l,Fr=2}}function Y2(){if(Fr===2){Fr=0;var i=xs,l=Mc,f=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||f){f=B.T,B.T=null;var m=J.p;J.p=2;var v=fn;fn|=4;try{_2(i,l.alternate,l)}finally{fn=v,J.p=m,B.T=f}}Fr=3}}function K2(){if(Fr===4||Fr===3){Fr=0,Ct();var i=xs,l=Mc,f=Fc,m=M2;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Fr=5:(Fr=0,Mc=xs=null,Q2(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(Es=null),yt(f),l=l.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(ue,l,void 0,(l.current.flags&128)===128)}catch{}if(m!==null){l=B.T,v=J.p,J.p=2,B.T=null;try{for(var _=i.onRecoverableError,L=0;L<m.length;L++){var j=m[L];_(j.value,{componentStack:j.stack})}}finally{B.T=l,J.p=v}}(Fc&3)!==0&&wm(),Ka(i),v=i.pendingLanes,(f&4194090)!==0&&(v&42)!==0?i===qv?nf++:(nf=0,qv=i):nf=0,rf(0)}}function Q2(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,Md(l)))}function wm(i){return W2(),Y2(),K2(),X2()}function X2(){if(Fr!==5)return!1;var i=xs,l=Vv;Vv=0;var f=yt(Fc),m=B.T,v=J.p;try{J.p=32>f?32:f,B.T=null,f=Gv,Gv=null;var _=xs,L=Fc;if(Fr=0,Mc=xs=null,Fc=0,(fn&6)!==0)throw Error(r(331));var j=fn;if(fn|=4,P2(_.current),I2(_,_.current,L,f),fn=j,rf(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(ue,_)}catch{}return!0}finally{J.p=v,B.T=m,Q2(i,l)}}function Z2(i,l,f){l=Qo(f,l),l=Cv(i.stateNode,l,2),i=ds(i,l,2),i!==null&&($n(i,2),Ka(i))}function Tn(i,l,f){if(i.tag===3)Z2(i,i,f);else for(;l!==null;){if(l.tag===3){Z2(l,i,f);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Es===null||!Es.has(m))){i=Qo(f,i),f=n2(2),m=ds(l,f,2),m!==null&&(r2(f,m,l,i),$n(m,2),Ka(m));break}}l=l.return}}function Qv(i,l,f){var m=i.pingCache;if(m===null){m=i.pingCache=new I7;var v=new Set;m.set(l,v)}else v=m.get(l),v===void 0&&(v=new Set,m.set(l,v));v.has(f)||(Uv=!0,v.add(f),i=M7.bind(null,i,l,f),l.then(i,i))}function M7(i,l,f){var m=i.pingCache;m!==null&&m.delete(l),i.pingedLanes|=i.suspendedLanes&f,i.warmLanes&=~f,kn===i&&(tn&f)===f&&(Gn===4||Gn===3&&(tn&62914560)===tn&&300>Be()-$v?(fn&2)===0&&Bc(i,0):Hv|=f,Lc===tn&&(Lc=0)),Ka(i)}function J2(i,l){l===0&&(l=Pr()),i=Ec(i,l),i!==null&&($n(i,l),Ka(i))}function F7(i){var l=i.memoizedState,f=0;l!==null&&(f=l.retryLane),J2(i,f)}function B7(i,l){var f=0;switch(i.tag){case 13:var m=i.stateNode,v=i.memoizedState;v!==null&&(f=v.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),J2(i,f)}function j7(i,l){return nt(i,l)}var km=null,Uc=null,Xv=!1,Dm=!1,Zv=!1,vl=0;function Ka(i){i!==Uc&&i.next===null&&(Uc===null?km=Uc=i:Uc=Uc.next=i),Dm=!0,Xv||(Xv=!0,H7())}function rf(i,l){if(!Zv&&Dm){Zv=!0;do for(var f=!1,m=km;m!==null;){if(i!==0){var v=m.pendingLanes;if(v===0)var _=0;else{var L=m.suspendedLanes,j=m.pingedLanes;_=(1<<31-Xe(42|i)+1)-1,_&=v&~(L&~j),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(f=!0,rw(m,_))}else _=tn,_=Se(m,m===kn?_:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(_&3)===0||ht(m,_)||(f=!0,rw(m,_));m=m.next}while(f);Zv=!1}}function U7(){ew()}function ew(){Dm=Xv=!1;var i=0;vl!==0&&(K7()&&(i=vl),vl=0);for(var l=Be(),f=null,m=km;m!==null;){var v=m.next,_=tw(m,l);_===0?(m.next=null,f===null?km=v:f.next=v,v===null&&(Uc=f)):(f=m,(i!==0||(_&3)!==0)&&(Dm=!0)),m=v}rf(i)}function tw(i,l){for(var f=i.suspendedLanes,m=i.pingedLanes,v=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var L=31-Xe(_),j=1<<L,X=v[L];X===-1?((j&f)===0||(j&m)!==0)&&(v[L]=rt(j,l)):X<=l&&(i.expiredLanes|=j),_&=~j}if(l=kn,f=tn,f=Se(i,i===l?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m=i.callbackNode,f===0||i===l&&(pn===2||pn===9)||i.cancelPendingCommit!==null)return m!==null&&m!==null&&De(m),i.callbackNode=null,i.callbackPriority=0;if((f&3)===0||ht(i,f)){if(l=f&-f,l===i.callbackPriority)return l;switch(m!==null&&De(m),yt(f)){case 2:case 8:f=lt;break;case 32:f=je;break;case 268435456:f=Jt;break;default:f=je}return m=nw.bind(null,i),f=nt(f,m),i.callbackPriority=l,i.callbackNode=f,l}return m!==null&&m!==null&&De(m),i.callbackPriority=2,i.callbackNode=null,2}function nw(i,l){if(Fr!==0&&Fr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var f=i.callbackNode;if(wm()&&i.callbackNode!==f)return null;var m=tn;return m=Se(i,i===kn?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:(B2(i,m,l),tw(i,Be()),i.callbackNode!=null&&i.callbackNode===f?nw.bind(null,i):null)}function rw(i,l){if(wm())return null;B2(i,l,!0)}function H7(){X7(function(){(fn&6)!==0?nt(it,U7):ew()})}function Jv(){return vl===0&&(vl=mn()),vl}function ow(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Uh(""+i)}function aw(i,l){var f=l.ownerDocument.createElement("input");return f.name=l.name,f.value=l.value,i.id&&f.setAttribute("form",i.id),l.parentNode.insertBefore(f,l),i=new FormData(i),f.parentNode.removeChild(f),i}function z7(i,l,f,m,v){if(l==="submit"&&f&&f.stateNode===v){var _=ow((v[we]||null).action),L=m.submitter;L&&(l=(l=L[we]||null)?ow(l.formAction):L.getAttribute("formAction"),l!==null&&(_=l,L=null));var j=new Vh("action","action",null,m,v);i.push({event:j,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(vl!==0){var X=L?aw(v,L):new FormData(v);vv(f,{pending:!0,data:X,method:v.method,action:_},null,X)}}else typeof _=="function"&&(j.preventDefault(),X=L?aw(v,L):new FormData(v),vv(f,{pending:!0,data:X,method:v.method,action:_},_,X))},currentTarget:v}]})}}for(var e1=0;e1<Bb.length;e1++){var t1=Bb[e1],$7=t1.toLowerCase(),V7=t1[0].toUpperCase()+t1.slice(1);Da($7,"on"+V7)}Da(B_,"onAnimationEnd"),Da(j_,"onAnimationIteration"),Da(U_,"onAnimationStart"),Da("dblclick","onDoubleClick"),Da("focusin","onFocus"),Da("focusout","onBlur"),Da(s7,"onTransitionRun"),Da(l7,"onTransitionStart"),Da(c7,"onTransitionCancel"),Da(H_,"onTransitionEnd"),Wo("onMouseEnter",["mouseout","mouseover"]),Wo("onMouseLeave",["mouseout","mouseover"]),Wo("onPointerEnter",["pointerout","pointerover"]),Wo("onPointerLeave",["pointerout","pointerover"]),Jr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var of="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(" "),G7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(of));function iw(i,l){l=(l&4)!==0;for(var f=0;f<i.length;f++){var m=i[f],v=m.event;m=m.listeners;e:{var _=void 0;if(l)for(var L=m.length-1;0<=L;L--){var j=m[L],X=j.instance,fe=j.currentTarget;if(j=j.listener,X!==_&&v.isPropagationStopped())break e;_=j,v.currentTarget=fe;try{_(v)}catch(Ae){gm(Ae)}v.currentTarget=null,_=X}else for(L=0;L<m.length;L++){if(j=m[L],X=j.instance,fe=j.currentTarget,j=j.listener,X!==_&&v.isPropagationStopped())break e;_=j,v.currentTarget=fe;try{_(v)}catch(Ae){gm(Ae)}v.currentTarget=null,_=X}}}}function Gt(i,l){var f=l[ot];f===void 0&&(f=l[ot]=new Set);var m=i+"__bubble";f.has(m)||(sw(l,i,2,!1),f.add(m))}function n1(i,l,f){var m=0;l&&(m|=4),sw(f,i,m,l)}var Rm="_reactListening"+Math.random().toString(36).slice(2);function r1(i){if(!i[Rm]){i[Rm]=!0,Qt.forEach(function(f){f!=="selectionchange"&&(G7.has(f)||n1(f,!1,i),n1(f,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[Rm]||(l[Rm]=!0,n1("selectionchange",!1,l))}}function sw(i,l,f,m){switch(Iw(l)){case 2:var v=bF;break;case 8:v=vF;break;default:v=y1}f=v.bind(null,l,f,i),v=void 0,!_b||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(v=!0),m?v!==void 0?i.addEventListener(l,f,{capture:!0,passive:v}):i.addEventListener(l,f,!0):v!==void 0?i.addEventListener(l,f,{passive:v}):i.addEventListener(l,f,!1)}function o1(i,l,f,m,v){var _=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var L=m.tag;if(L===3||L===4){var j=m.stateNode.containerInfo;if(j===v)break;if(L===4)for(L=m.return;L!==null;){var X=L.tag;if((X===3||X===4)&&L.stateNode.containerInfo===v)return;L=L.return}for(;j!==null;){if(L=kt(j),L===null)return;if(X=L.tag,X===5||X===6||X===26||X===27){m=_=L;continue e}j=j.parentNode}}m=m.return}h_(function(){var fe=_,Ae=Sb(f),Re=[];e:{var pe=z_.get(i);if(pe!==void 0){var he=Vh,wt=i;switch(i){case"keypress":if(zh(f)===0)break e;case"keydown":case"keyup":he=j8;break;case"focusin":wt="focus",he=Db;break;case"focusout":wt="blur",he=Db;break;case"beforeblur":case"afterblur":he=Db;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=y_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=w8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=z8;break;case B_:case j_:case U_:he=R8;break;case H_:he=V8;break;case"scroll":case"scrollend":he=_8;break;case"wheel":he=q8;break;case"copy":case"cut":case"paste":he=O8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=v_;break;case"toggle":case"beforetoggle":he=Y8}var xt=(l&4)!==0,bn=!xt&&(i==="scroll"||i==="scrollend"),le=xt?pe!==null?pe+"Capture":null:pe;xt=[];for(var se=fe,ce;se!==null;){var ke=se;if(ce=ke.stateNode,ke=ke.tag,ke!==5&&ke!==26&&ke!==27||ce===null||le===null||(ke=Sd(se,le),ke!=null&&xt.push(af(se,ke,ce))),bn)break;se=se.return}0<xt.length&&(pe=new he(pe,wt,null,f,Ae),Re.push({event:pe,listeners:xt}))}}if((l&7)===0){e:{if(pe=i==="mouseover"||i==="pointerover",he=i==="mouseout"||i==="pointerout",pe&&f!==Tb&&(wt=f.relatedTarget||f.fromElement)&&(kt(wt)||wt[qe]))break e;if((he||pe)&&(pe=Ae.window===Ae?Ae:(pe=Ae.ownerDocument)?pe.defaultView||pe.parentWindow:window,he?(wt=f.relatedTarget||f.toElement,he=fe,wt=wt?kt(wt):null,wt!==null&&(bn=a(wt),xt=wt.tag,wt!==bn||xt!==5&&xt!==27&&xt!==6)&&(wt=null)):(he=null,wt=fe),he!==wt)){if(xt=y_,ke="onMouseLeave",le="onMouseEnter",se="mouse",(i==="pointerout"||i==="pointerover")&&(xt=v_,ke="onPointerLeave",le="onPointerEnter",se="pointer"),bn=he==null?pe:On(he),ce=wt==null?pe:On(wt),pe=new xt(ke,se+"leave",he,f,Ae),pe.target=bn,pe.relatedTarget=ce,ke=null,kt(Ae)===fe&&(xt=new xt(le,se+"enter",wt,f,Ae),xt.target=ce,xt.relatedTarget=bn,ke=xt),bn=ke,he&&wt)t:{for(xt=he,le=wt,se=0,ce=xt;ce;ce=Hc(ce))se++;for(ce=0,ke=le;ke;ke=Hc(ke))ce++;for(;0<se-ce;)xt=Hc(xt),se--;for(;0<ce-se;)le=Hc(le),ce--;for(;se--;){if(xt===le||le!==null&&xt===le.alternate)break t;xt=Hc(xt),le=Hc(le)}xt=null}else xt=null;he!==null&&lw(Re,pe,he,xt,!1),wt!==null&&bn!==null&&lw(Re,bn,wt,xt,!0)}}e:{if(pe=fe?On(fe):window,he=pe.nodeName&&pe.nodeName.toLowerCase(),he==="select"||he==="input"&&pe.type==="file")var tt=w_;else if(__(pe))if(k_)tt=o7;else{tt=n7;var zt=t7}else he=pe.nodeName,!he||he.toLowerCase()!=="input"||pe.type!=="checkbox"&&pe.type!=="radio"?fe&&xb(fe.elementType)&&(tt=w_):tt=r7;if(tt&&(tt=tt(i,fe))){A_(Re,tt,f,Ae);break e}zt&&zt(i,pe,fe),i==="focusout"&&fe&&pe.type==="number"&&fe.memoizedProps.value!=null&&Eb(pe,"number",pe.value)}switch(zt=fe?On(fe):window,i){case"focusin":(__(zt)||zt.contentEditable==="true")&&(yc=zt,Lb=fe,Id=null);break;case"focusout":Id=Lb=yc=null;break;case"mousedown":Mb=!0;break;case"contextmenu":case"mouseup":case"dragend":Mb=!1,M_(Re,f,Ae);break;case"selectionchange":if(i7)break;case"keydown":case"keyup":M_(Re,f,Ae)}var pt;if(Ib)e:{switch(i){case"compositionstart":var Tt="onCompositionStart";break e;case"compositionend":Tt="onCompositionEnd";break e;case"compositionupdate":Tt="onCompositionUpdate";break e}Tt=void 0}else gc?S_(i,f)&&(Tt="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(Tt="onCompositionStart");Tt&&(E_&&f.locale!=="ko"&&(gc||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&gc&&(pt=m_()):(ss=Ae,Ab="value"in ss?ss.value:ss.textContent,gc=!0)),zt=Im(fe,Tt),0<zt.length&&(Tt=new b_(Tt,i,null,f,Ae),Re.push({event:Tt,listeners:zt}),pt?Tt.data=pt:(pt=C_(f),pt!==null&&(Tt.data=pt)))),(pt=Q8?X8(i,f):Z8(i,f))&&(Tt=Im(fe,"onBeforeInput"),0<Tt.length&&(zt=new b_("onBeforeInput","beforeinput",null,f,Ae),Re.push({event:zt,listeners:Tt}),zt.data=pt)),z7(Re,i,fe,f,Ae)}iw(Re,l)})}function af(i,l,f){return{instance:i,listener:l,currentTarget:f}}function Im(i,l){for(var f=l+"Capture",m=[];i!==null;){var v=i,_=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||_===null||(v=Sd(i,f),v!=null&&m.unshift(af(i,v,_)),v=Sd(i,l),v!=null&&m.push(af(i,v,_))),i.tag===3)return m;i=i.return}return[]}function Hc(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function lw(i,l,f,m,v){for(var _=l._reactName,L=[];f!==null&&f!==m;){var j=f,X=j.alternate,fe=j.stateNode;if(j=j.tag,X!==null&&X===m)break;j!==5&&j!==26&&j!==27||fe===null||(X=fe,v?(fe=Sd(f,_),fe!=null&&L.unshift(af(f,fe,X))):v||(fe=Sd(f,_),fe!=null&&L.push(af(f,fe,X)))),f=f.return}L.length!==0&&i.push({event:l,listeners:L})}var q7=/\r\n?/g,W7=/\u0000|\uFFFD/g;function cw(i){return(typeof i=="string"?i:""+i).replace(q7,`
|
|
50
|
+
`).replace(W7,"")}function uw(i,l){return l=cw(l),cw(i)===l}function Om(){}function yn(i,l,f,m,v,_){switch(f){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||pc(i,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&pc(i,""+m);break;case"className":vi(i,"class",m);break;case"tabIndex":vi(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(i,f,m);break;case"style":f_(i,m,_);break;case"data":if(l!=="object"){vi(i,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||f!=="href")){i.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Uh(""+m),i.setAttribute(f,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(f,"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 _=="function"&&(f==="formAction"?(l!=="input"&&yn(i,l,"name",v.name,v,null),yn(i,l,"formEncType",v.formEncType,v,null),yn(i,l,"formMethod",v.formMethod,v,null),yn(i,l,"formTarget",v.formTarget,v,null)):(yn(i,l,"encType",v.encType,v,null),yn(i,l,"method",v.method,v,null),yn(i,l,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Uh(""+m),i.setAttribute(f,m);break;case"onClick":m!=null&&(i.onclick=Om);break;case"onScroll":m!=null&&Gt("scroll",i);break;case"onScrollEnd":m!=null&&Gt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=f}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}f=Uh(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(f,""+m):i.removeAttribute(f);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":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(f,""):i.removeAttribute(f);break;case"capture":case"download":m===!0?i.setAttribute(f,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(f,m):i.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(f,m):i.removeAttribute(f);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(f):i.setAttribute(f,m);break;case"popover":Gt("beforetoggle",i),Gt("toggle",i),Yo(i,"popover",m);break;case"xlinkActuate":Ht(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Ht(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Ht(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Ht(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Ht(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Ht(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Ht(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Ht(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Ht(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Yo(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=S8.get(f)||f,Yo(i,f,m))}}function a1(i,l,f,m,v,_){switch(f){case"style":f_(i,m,_);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(f=m.__html,f!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=f}}break;case"children":typeof m=="string"?pc(i,m):(typeof m=="number"||typeof m=="bigint")&&pc(i,""+m);break;case"onScroll":m!=null&&Gt("scroll",i);break;case"onScrollEnd":m!=null&&Gt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=Om);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rs.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(v=f.endsWith("Capture"),l=f.slice(2,v?f.length-7:void 0),_=i[we]||null,_=_!=null?_[f]:null,typeof _=="function"&&i.removeEventListener(l,_,v),typeof m=="function")){typeof _!="function"&&_!==null&&(f in i?i[f]=null:i.hasAttribute(f)&&i.removeAttribute(f)),i.addEventListener(l,m,v);break e}f in i?i[f]=m:m===!0?i.setAttribute(f,""):Yo(i,f,m)}}}function Br(i,l,f){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Gt("error",i),Gt("load",i);var m=!1,v=!1,_;for(_ in f)if(f.hasOwnProperty(_)){var L=f[_];if(L!=null)switch(_){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:yn(i,l,_,L,f,null)}}v&&yn(i,l,"srcSet",f.srcSet,f,null),m&&yn(i,l,"src",f.src,f,null);return;case"input":Gt("invalid",i);var j=_=L=v=null,X=null,fe=null;for(m in f)if(f.hasOwnProperty(m)){var Ae=f[m];if(Ae!=null)switch(m){case"name":v=Ae;break;case"type":L=Ae;break;case"checked":X=Ae;break;case"defaultChecked":fe=Ae;break;case"value":_=Ae;break;case"defaultValue":j=Ae;break;case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(r(137,l));break;default:yn(i,l,m,Ae,f,null)}}l_(i,_,j,X,fe,L,v,!1),Bh(i);return;case"select":Gt("invalid",i),m=L=_=null;for(v in f)if(f.hasOwnProperty(v)&&(j=f[v],j!=null))switch(v){case"value":_=j;break;case"defaultValue":L=j;break;case"multiple":m=j;default:yn(i,l,v,j,f,null)}l=_,f=L,i.multiple=!!m,l!=null?fc(i,!!m,l,!1):f!=null&&fc(i,!!m,f,!0);return;case"textarea":Gt("invalid",i),_=v=m=null;for(L in f)if(f.hasOwnProperty(L)&&(j=f[L],j!=null))switch(L){case"value":m=j;break;case"defaultValue":v=j;break;case"children":_=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:yn(i,l,L,j,f,null)}u_(i,m,v,_),Bh(i);return;case"option":for(X in f)if(f.hasOwnProperty(X)&&(m=f[X],m!=null))switch(X){case"selected":i.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:yn(i,l,X,m,f,null)}return;case"dialog":Gt("beforetoggle",i),Gt("toggle",i),Gt("cancel",i),Gt("close",i);break;case"iframe":case"object":Gt("load",i);break;case"video":case"audio":for(m=0;m<of.length;m++)Gt(of[m],i);break;case"image":Gt("error",i),Gt("load",i);break;case"details":Gt("toggle",i);break;case"embed":case"source":case"link":Gt("error",i),Gt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(fe in f)if(f.hasOwnProperty(fe)&&(m=f[fe],m!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:yn(i,l,fe,m,f,null)}return;default:if(xb(l)){for(Ae in f)f.hasOwnProperty(Ae)&&(m=f[Ae],m!==void 0&&a1(i,l,Ae,m,f,void 0));return}}for(j in f)f.hasOwnProperty(j)&&(m=f[j],m!=null&&yn(i,l,j,m,f,null))}function Y7(i,l,f,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,_=null,L=null,j=null,X=null,fe=null,Ae=null;for(he in f){var Re=f[he];if(f.hasOwnProperty(he)&&Re!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":X=Re;default:m.hasOwnProperty(he)||yn(i,l,he,null,m,Re)}}for(var pe in m){var he=m[pe];if(Re=f[pe],m.hasOwnProperty(pe)&&(he!=null||Re!=null))switch(pe){case"type":_=he;break;case"name":v=he;break;case"checked":fe=he;break;case"defaultChecked":Ae=he;break;case"value":L=he;break;case"defaultValue":j=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,l));break;default:he!==Re&&yn(i,l,pe,he,m,Re)}}vb(i,L,j,X,fe,Ae,_,v);return;case"select":he=L=j=pe=null;for(_ in f)if(X=f[_],f.hasOwnProperty(_)&&X!=null)switch(_){case"value":break;case"multiple":he=X;default:m.hasOwnProperty(_)||yn(i,l,_,null,m,X)}for(v in m)if(_=m[v],X=f[v],m.hasOwnProperty(v)&&(_!=null||X!=null))switch(v){case"value":pe=_;break;case"defaultValue":j=_;break;case"multiple":L=_;default:_!==X&&yn(i,l,v,_,m,X)}l=j,f=L,m=he,pe!=null?fc(i,!!f,pe,!1):!!m!=!!f&&(l!=null?fc(i,!!f,l,!0):fc(i,!!f,f?[]:"",!1));return;case"textarea":he=pe=null;for(j in f)if(v=f[j],f.hasOwnProperty(j)&&v!=null&&!m.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:yn(i,l,j,null,m,v)}for(L in m)if(v=m[L],_=f[L],m.hasOwnProperty(L)&&(v!=null||_!=null))switch(L){case"value":pe=v;break;case"defaultValue":he=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==_&&yn(i,l,L,v,m,_)}c_(i,pe,he);return;case"option":for(var wt in f)if(pe=f[wt],f.hasOwnProperty(wt)&&pe!=null&&!m.hasOwnProperty(wt))switch(wt){case"selected":i.selected=!1;break;default:yn(i,l,wt,null,m,pe)}for(X in m)if(pe=m[X],he=f[X],m.hasOwnProperty(X)&&pe!==he&&(pe!=null||he!=null))switch(X){case"selected":i.selected=pe&&typeof pe!="function"&&typeof pe!="symbol";break;default:yn(i,l,X,pe,m,he)}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 xt in f)pe=f[xt],f.hasOwnProperty(xt)&&pe!=null&&!m.hasOwnProperty(xt)&&yn(i,l,xt,null,m,pe);for(fe in m)if(pe=m[fe],he=f[fe],m.hasOwnProperty(fe)&&pe!==he&&(pe!=null||he!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,l));break;default:yn(i,l,fe,pe,m,he)}return;default:if(xb(l)){for(var bn in f)pe=f[bn],f.hasOwnProperty(bn)&&pe!==void 0&&!m.hasOwnProperty(bn)&&a1(i,l,bn,void 0,m,pe);for(Ae in m)pe=m[Ae],he=f[Ae],!m.hasOwnProperty(Ae)||pe===he||pe===void 0&&he===void 0||a1(i,l,Ae,pe,m,he);return}}for(var le in f)pe=f[le],f.hasOwnProperty(le)&&pe!=null&&!m.hasOwnProperty(le)&&yn(i,l,le,null,m,pe);for(Re in m)pe=m[Re],he=f[Re],!m.hasOwnProperty(Re)||pe===he||pe==null&&he==null||yn(i,l,Re,pe,m,he)}var i1=null,s1=null;function Nm(i){return i.nodeType===9?i:i.ownerDocument}function dw(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fw(i,l){if(i===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&l==="foreignObject"?0:i}function l1(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var c1=null;function K7(){var i=window.event;return i&&i.type==="popstate"?i===c1?!1:(c1=i,!0):(c1=null,!1)}var pw=typeof setTimeout=="function"?setTimeout:void 0,Q7=typeof clearTimeout=="function"?clearTimeout:void 0,hw=typeof Promise=="function"?Promise:void 0,X7=typeof queueMicrotask=="function"?queueMicrotask:typeof hw<"u"?function(i){return hw.resolve(null).then(i).catch(Z7)}:pw;function Z7(i){setTimeout(function(){throw i})}function Ss(i){return i==="head"}function mw(i,l){var f=l,m=0,v=0;do{var _=f.nextSibling;if(i.removeChild(f),_&&_.nodeType===8)if(f=_.data,f==="/$"){if(0<m&&8>m){f=m;var L=i.ownerDocument;if(f&1&&sf(L.documentElement),f&2&&sf(L.body),f&4)for(f=L.head,sf(f),L=f.firstChild;L;){var j=L.nextSibling,X=L.nodeName;L[bt]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&L.rel.toLowerCase()==="stylesheet"||f.removeChild(L),L=j}}if(v===0){i.removeChild(_),mf(l);return}v--}else f==="$"||f==="$?"||f==="$!"?v++:m=f.charCodeAt(0)-48;else m=0;f=_}while(f);mf(l)}function u1(i){var l=i.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var f=l;switch(l=l.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":u1(f),At(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}i.removeChild(f)}}function J7(i,l,f,m){for(;i.nodeType===1;){var v=f;if(i.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[bt])switch(l){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(l==="input"&&i.type==="hidden"){var _=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=Ia(i.nextSibling),i===null)break}return null}function eF(i,l,f){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!f||(i=Ia(i.nextSibling),i===null))return null;return i}function d1(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function tF(i,l){var f=i.ownerDocument;if(i.data!=="$?"||f.readyState==="complete")l();else{var m=function(){l(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function Ia(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return i}var f1=null;function gw(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(l===0)return i;l--}else f==="/$"&&l++}i=i.previousSibling}return null}function yw(i,l,f){switch(l=Nm(f),i){case"html":if(i=l.documentElement,!i)throw Error(r(452));return i;case"head":if(i=l.head,!i)throw Error(r(453));return i;case"body":if(i=l.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function sf(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);At(i)}var na=new Map,bw=new Set;function Pm(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ni=J.d;J.d={f:nF,r:rF,D:oF,C:aF,L:iF,m:sF,X:cF,S:lF,M:uF};function nF(){var i=Ni.f(),l=_m();return i||l}function rF(i){var l=rn(i);l!==null&&l.tag===5&&l.type==="form"?BA(l):Ni.r(i)}var zc=typeof document>"u"?null:document;function vw(i,l,f){var m=zc;if(m&&typeof l=="string"&&l){var v=Ko(l);v='link[rel="'+i+'"][href="'+v+'"]',typeof f=="string"&&(v+='[crossorigin="'+f+'"]'),bw.has(v)||(bw.add(v),i={rel:i,crossOrigin:f,href:l},m.querySelector(v)===null&&(l=m.createElement("link"),Br(l,"link",i),on(l),m.head.appendChild(l)))}}function oF(i){Ni.D(i),vw("dns-prefetch",i,null)}function aF(i,l){Ni.C(i,l),vw("preconnect",i,l)}function iF(i,l,f){Ni.L(i,l,f);var m=zc;if(m&&i&&l){var v='link[rel="preload"][as="'+Ko(l)+'"]';l==="image"&&f&&f.imageSrcSet?(v+='[imagesrcset="'+Ko(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(v+='[imagesizes="'+Ko(f.imageSizes)+'"]')):v+='[href="'+Ko(i)+'"]';var _=v;switch(l){case"style":_=$c(i);break;case"script":_=Vc(i)}na.has(_)||(i=p({rel:"preload",href:l==="image"&&f&&f.imageSrcSet?void 0:i,as:l},f),na.set(_,i),m.querySelector(v)!==null||l==="style"&&m.querySelector(lf(_))||l==="script"&&m.querySelector(cf(_))||(l=m.createElement("link"),Br(l,"link",i),on(l),m.head.appendChild(l)))}}function sF(i,l){Ni.m(i,l);var f=zc;if(f&&i){var m=l&&typeof l.as=="string"?l.as:"script",v='link[rel="modulepreload"][as="'+Ko(m)+'"][href="'+Ko(i)+'"]',_=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Vc(i)}if(!na.has(_)&&(i=p({rel:"modulepreload",href:i},l),na.set(_,i),f.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(cf(_)))return}m=f.createElement("link"),Br(m,"link",i),on(m),f.head.appendChild(m)}}}function lF(i,l,f){Ni.S(i,l,f);var m=zc;if(m&&i){var v=Hn(m).hoistableStyles,_=$c(i);l=l||"default";var L=v.get(_);if(!L){var j={loading:0,preload:null};if(L=m.querySelector(lf(_)))j.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":l},f),(f=na.get(_))&&p1(i,f);var X=L=m.createElement("link");on(X),Br(X,"link",i),X._p=new Promise(function(fe,Ae){X.onload=fe,X.onerror=Ae}),X.addEventListener("load",function(){j.loading|=1}),X.addEventListener("error",function(){j.loading|=2}),j.loading|=4,Lm(L,l,m)}L={type:"stylesheet",instance:L,count:1,state:j},v.set(_,L)}}}function cF(i,l){Ni.X(i,l);var f=zc;if(f&&i){var m=Hn(f).hoistableScripts,v=Vc(i),_=m.get(v);_||(_=f.querySelector(cf(v)),_||(i=p({src:i,async:!0},l),(l=na.get(v))&&h1(i,l),_=f.createElement("script"),on(_),Br(_,"link",i),f.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(v,_))}}function uF(i,l){Ni.M(i,l);var f=zc;if(f&&i){var m=Hn(f).hoistableScripts,v=Vc(i),_=m.get(v);_||(_=f.querySelector(cf(v)),_||(i=p({src:i,async:!0,type:"module"},l),(l=na.get(v))&&h1(i,l),_=f.createElement("script"),on(_),Br(_,"link",i),f.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(v,_))}}function Ew(i,l,f,m){var v=(v=oe.current)?Pm(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(l=$c(f.href),f=Hn(v).hoistableStyles,m=f.get(l),m||(m={type:"style",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){i=$c(f.href);var _=Hn(v).hoistableStyles,L=_.get(i);if(L||(v=v.ownerDocument||v,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,L),(_=v.querySelector(lf(i)))&&!_._p&&(L.instance=_,L.state.loading=5),na.has(i)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},na.set(i,f),_||dF(v,i,f,L.state))),l&&m===null)throw Error(r(528,""));return L}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=f.async,f=f.src,typeof f=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Vc(f),f=Hn(v).hoistableScripts,m=f.get(l),m||(m={type:"script",instance:null,count:0,state:null},f.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function $c(i){return'href="'+Ko(i)+'"'}function lf(i){return'link[rel="stylesheet"]['+i+"]"}function xw(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function dF(i,l,f,m){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=i.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),Br(l,"link",f),on(l),i.head.appendChild(l))}function Vc(i){return'[src="'+Ko(i)+'"]'}function cf(i){return"script[async]"+i}function Tw(i,l,f){if(l.count++,l.instance===null)switch(l.type){case"style":var m=i.querySelector('style[data-href~="'+Ko(f.href)+'"]');if(m)return l.instance=m,on(m),m;var v=p({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),on(m),Br(m,"style",v),Lm(m,f.precedence,i),l.instance=m;case"stylesheet":v=$c(f.href);var _=i.querySelector(lf(v));if(_)return l.state.loading|=4,l.instance=_,on(_),_;m=xw(f),(v=na.get(v))&&p1(m,v),_=(i.ownerDocument||i).createElement("link"),on(_);var L=_;return L._p=new Promise(function(j,X){L.onload=j,L.onerror=X}),Br(_,"link",m),l.state.loading|=4,Lm(_,f.precedence,i),l.instance=_;case"script":return _=Vc(f.src),(v=i.querySelector(cf(_)))?(l.instance=v,on(v),v):(m=f,(v=na.get(_))&&(m=p({},f),h1(m,v)),i=i.ownerDocument||i,v=i.createElement("script"),on(v),Br(v,"link",m),i.head.appendChild(v),l.instance=v);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,Lm(m,f.precedence,i));return l.instance}function Lm(i,l,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,_=v,L=0;L<m.length;L++){var j=m[L];if(j.dataset.precedence===l)_=j;else if(_!==v)break}_?_.parentNode.insertBefore(i,_.nextSibling):(l=f.nodeType===9?f.head:f,l.insertBefore(i,l.firstChild))}function p1(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function h1(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var Mm=null;function Sw(i,l,f){if(Mm===null){var m=new Map,v=Mm=new Map;v.set(f,m)}else v=Mm,m=v.get(f),m||(m=new Map,v.set(f,m));if(m.has(i))return m;for(m.set(i,null),f=f.getElementsByTagName(i),v=0;v<f.length;v++){var _=f[v];if(!(_[bt]||_[be]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var L=_.getAttribute(l)||"";L=i+L;var j=m.get(L);j?j.push(_):m.set(L,[_])}}return m}function Cw(i,l,f){i=i.ownerDocument||i,i.head.insertBefore(f,l==="title"?i.querySelector("head > title"):null)}function fF(i,l,f){if(f===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function _w(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var uf=null;function pF(){}function hF(i,l,f){if(uf===null)throw Error(r(475));var m=uf;if(l.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var v=$c(f.href),_=i.querySelector(lf(v));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=Fm.bind(m),i.then(m,m)),l.state.loading|=4,l.instance=_,on(_);return}_=i.ownerDocument||i,f=xw(f),(v=na.get(v))&&p1(f,v),_=_.createElement("link"),on(_);var L=_;L._p=new Promise(function(j,X){L.onload=j,L.onerror=X}),Br(_,"link",f),l.instance=_}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(m.count++,l=Fm.bind(m),i.addEventListener("load",l),i.addEventListener("error",l))}}function mF(){if(uf===null)throw Error(r(475));var i=uf;return i.stylesheets&&i.count===0&&m1(i,i.stylesheets),0<i.count?function(l){var f=setTimeout(function(){if(i.stylesheets&&m1(i,i.stylesheets),i.unsuspend){var m=i.unsuspend;i.unsuspend=null,m()}},6e4);return i.unsuspend=l,function(){i.unsuspend=null,clearTimeout(f)}}:null}function Fm(){if(this.count--,this.count===0){if(this.stylesheets)m1(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Bm=null;function m1(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Bm=new Map,l.forEach(gF,i),Bm=null,Fm.call(i))}function gF(i,l){if(!(l.state.loading&4)){var f=Bm.get(i);if(f)var m=f.get(null);else{f=new Map,Bm.set(i,f);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<v.length;_++){var L=v[_];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(f.set(L.dataset.precedence,L),m=L)}m&&f.set(null,m)}v=l.instance,L=v.getAttribute("data-precedence"),_=f.get(L)||m,_===m&&f.set(null,v),f.set(L,v),this.count++,m=Fm.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),_?_.parentNode.insertBefore(v,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),l.state.loading|=4}}var df={$$typeof:k,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function yF(i,l,f,m,v,_,L,j){this.tag=1,this.containerInfo=i,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=vr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vr(0),this.hiddenUpdates=vr(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=_,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Aw(i,l,f,m,v,_,L,j,X,fe,Ae,Re){return i=new yF(i,l,f,L,j,X,fe,Re),l=1,_===!0&&(l|=24),_=Ao(3,null,null,l),i.current=_,_.stateNode=i,l=Qb(),l.refCount++,i.pooledCache=l,l.refCount++,_.memoizedState={element:m,isDehydrated:f,cache:l},ev(_),i}function ww(i){return i?(i=xc,i):xc}function kw(i,l,f,m,v,_){v=ww(v),m.context===null?m.context=v:m.pendingContext=v,m=us(l),m.payload={element:f},_=_===void 0?null:_,_!==null&&(m.callback=_),f=ds(i,m,l),f!==null&&(Io(f,i,l),Ud(f,i,l))}function Dw(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<l?f:l}}function g1(i,l){Dw(i,l),(i=i.alternate)&&Dw(i,l)}function Rw(i){if(i.tag===13){var l=Ec(i,67108864);l!==null&&Io(l,i,67108864),g1(i,67108864)}}var jm=!0;function bF(i,l,f,m){var v=B.T;B.T=null;var _=J.p;try{J.p=2,y1(i,l,f,m)}finally{J.p=_,B.T=v}}function vF(i,l,f,m){var v=B.T;B.T=null;var _=J.p;try{J.p=8,y1(i,l,f,m)}finally{J.p=_,B.T=v}}function y1(i,l,f,m){if(jm){var v=b1(m);if(v===null)o1(i,l,m,Um,f),Ow(i,m);else if(xF(v,i,l,f,m))m.stopPropagation();else if(Ow(i,m),l&4&&-1<EF.indexOf(i)){for(;v!==null;){var _=rn(v);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var L=Ee(_.pendingLanes);if(L!==0){var j=_;for(j.pendingLanes|=2,j.entangledLanes|=2;L;){var X=1<<31-Xe(L);j.entanglements[1]|=X,L&=~X}Ka(_),(fn&6)===0&&(Sm=Be()+500,rf(0))}}break;case 13:j=Ec(_,2),j!==null&&Io(j,_,2),_m(),g1(_,2)}if(_=b1(m),_===null&&o1(i,l,m,Um,f),_===v)break;v=_}v!==null&&m.stopPropagation()}else o1(i,l,m,null,f)}}function b1(i){return i=Sb(i),v1(i)}var Um=null;function v1(i){if(Um=null,i=kt(i),i!==null){var l=a(i);if(l===null)i=null;else{var f=l.tag;if(f===13){if(i=s(l),i!==null)return i;i=null}else if(f===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return Um=i,null}function Iw(i){switch(i){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(mt()){case it:return 2;case lt:return 8;case je:case Pe:return 32;case Jt:return 268435456;default:return 32}default:return 32}}var E1=!1,Cs=null,_s=null,As=null,ff=new Map,pf=new Map,ws=[],EF="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 Ow(i,l){switch(i){case"focusin":case"focusout":Cs=null;break;case"dragenter":case"dragleave":_s=null;break;case"mouseover":case"mouseout":As=null;break;case"pointerover":case"pointerout":ff.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":pf.delete(l.pointerId)}}function hf(i,l,f,m,v,_){return i===null||i.nativeEvent!==_?(i={blockedOn:l,domEventName:f,eventSystemFlags:m,nativeEvent:_,targetContainers:[v]},l!==null&&(l=rn(l),l!==null&&Rw(l)),i):(i.eventSystemFlags|=m,l=i.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),i)}function xF(i,l,f,m,v){switch(l){case"focusin":return Cs=hf(Cs,i,l,f,m,v),!0;case"dragenter":return _s=hf(_s,i,l,f,m,v),!0;case"mouseover":return As=hf(As,i,l,f,m,v),!0;case"pointerover":var _=v.pointerId;return ff.set(_,hf(ff.get(_)||null,i,l,f,m,v)),!0;case"gotpointercapture":return _=v.pointerId,pf.set(_,hf(pf.get(_)||null,i,l,f,m,v)),!0}return!1}function Nw(i){var l=kt(i.target);if(l!==null){var f=a(l);if(f!==null){if(l=f.tag,l===13){if(l=s(f),l!==null){i.blockedOn=l,Z(i.priority,function(){if(f.tag===13){var m=Ro();m=Lr(m);var v=Ec(f,m);v!==null&&Io(v,f,m),g1(f,m)}});return}}else if(l===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Hm(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var f=b1(i.nativeEvent);if(f===null){f=i.nativeEvent;var m=new f.constructor(f.type,f);Tb=m,f.target.dispatchEvent(m),Tb=null}else return l=rn(f),l!==null&&Rw(l),i.blockedOn=f,!1;l.shift()}return!0}function Pw(i,l,f){Hm(i)&&f.delete(l)}function TF(){E1=!1,Cs!==null&&Hm(Cs)&&(Cs=null),_s!==null&&Hm(_s)&&(_s=null),As!==null&&Hm(As)&&(As=null),ff.forEach(Pw),pf.forEach(Pw)}function zm(i,l){i.blockedOn===l&&(i.blockedOn=null,E1||(E1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,TF)))}var $m=null;function Lw(i){$m!==i&&($m=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$m===i&&($m=null);for(var l=0;l<i.length;l+=3){var f=i[l],m=i[l+1],v=i[l+2];if(typeof m!="function"){if(v1(m||f)===null)continue;break}var _=rn(f);_!==null&&(i.splice(l,3),l-=3,vv(_,{pending:!0,data:v,method:f.method,action:m},m,v))}}))}function mf(i){function l(X){return zm(X,i)}Cs!==null&&zm(Cs,i),_s!==null&&zm(_s,i),As!==null&&zm(As,i),ff.forEach(l),pf.forEach(l);for(var f=0;f<ws.length;f++){var m=ws[f];m.blockedOn===i&&(m.blockedOn=null)}for(;0<ws.length&&(f=ws[0],f.blockedOn===null);)Nw(f),f.blockedOn===null&&ws.shift();if(f=(i.ownerDocument||i).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var v=f[m],_=f[m+1],L=v[we]||null;if(typeof _=="function")L||Lw(f);else if(L){var j=null;if(_&&_.hasAttribute("formAction")){if(v=_,L=_[we]||null)j=L.formAction;else if(v1(v)!==null)continue}else j=L.action;typeof j=="function"?f[m+1]=j:(f.splice(m,3),m-=3),Lw(f)}}}function x1(i){this._internalRoot=i}Vm.prototype.render=x1.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(r(409));var f=l.current,m=Ro();kw(f,m,i,l,null,null)},Vm.prototype.unmount=x1.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;kw(i.current,2,null,i,null,null),_m(),l[qe]=null}};function Vm(i){this._internalRoot=i}Vm.prototype.unstable_scheduleHydration=function(i){if(i){var l=te();i={blockedOn:null,target:i,priority:l};for(var f=0;f<ws.length&&l!==0&&l<ws[f].priority;f++);ws.splice(f,0,i),f===0&&Nw(i)}};var Mw=t.version;if(Mw!=="19.1.0")throw Error(r(527,Mw,"19.1.0"));J.findDOMNode=function(i){var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=u(l),i=i!==null?d(i):null,i=i===null?null:i.stateNode,i};var SF={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gm.isDisabled&&Gm.supportsFiber)try{ue=Gm.inject(SF),ge=Gm}catch{}}return yf.createRoot=function(i,l){if(!o(i))throw Error(r(299));var f=!1,m="",v=ZA,_=JA,L=e2,j=null;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(_=l.onCaughtError),l.onRecoverableError!==void 0&&(L=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(j=l.unstable_transitionCallbacks)),l=Aw(i,1,!1,null,null,f,m,v,_,L,j,null),i[qe]=l.current,r1(i),new x1(l)},yf.hydrateRoot=function(i,l,f){if(!o(i))throw Error(r(299));var m=!1,v="",_=ZA,L=JA,j=e2,X=null,fe=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(v=f.identifierPrefix),f.onUncaughtError!==void 0&&(_=f.onUncaughtError),f.onCaughtError!==void 0&&(L=f.onCaughtError),f.onRecoverableError!==void 0&&(j=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(X=f.unstable_transitionCallbacks),f.formState!==void 0&&(fe=f.formState)),l=Aw(i,1,!0,l,f??null,m,v,_,L,j,X,fe),l.context=ww(null),f=l.current,m=Ro(),m=Lr(m),v=us(m),v.callback=null,ds(f,v,m),f=m,l.current.lanes=f,$n(l,f),Ka(l),i[qe]=l.current,r1(i),new Vm(l)},yf.version="19.1.0",yf}var qw;function NF(){if(qw)return C1.exports;qw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),C1.exports=OF(),C1.exports}var PF=NF(),bf={},Ww;function LF(){if(Ww)return bf;Ww=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.parse=s,bf.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function s(g,y){const b=new a,x=g.length;if(x<2)return b;const S=y?.decode||p;let T=0;do{const D=g.indexOf("=",T);if(D===-1)break;const k=g.indexOf(";",T),R=k===-1?x:k;if(D>R){T=g.lastIndexOf(";",D-1)+1;continue}const I=c(g,T,D),O=u(g,D,I),F=g.slice(I,O);if(b[F]===void 0){let U=c(g,D+1,R),H=u(g,R,U);const C=S(g.slice(U,H));b[F]=C}T=R+1}while(T<x);return b}function c(g,y,b){do{const x=g.charCodeAt(y);if(x!==32&&x!==9)return y}while(++y<b);return b}function u(g,y,b){for(;y>b;){const x=g.charCodeAt(--y);if(x!==32&&x!==9)return y+1}return b}function d(g,y,b){const x=b?.encode||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const S=x(y);if(!t.test(S))throw new TypeError(`argument val is invalid: ${y}`);let T=g+"="+S;if(!b)return T;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);T+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);T+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);T+="; Path="+b.path}if(b.expires){if(!h(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);T+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(T+="; HttpOnly"),b.secure&&(T+="; Secure"),b.partitioned&&(T+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return T}function p(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function h(g){return o.call(g)==="[object Date]"}return bf}LF();/**
|
|
51
|
+
* react-router v7.6.2
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var AN=e=>{throw TypeError(e)},MF=(e,t,n)=>t.has(e)||AN("Cannot "+n),k1=(e,t,n)=>(MF(e,t,"read from private field"),n?n.call(e):t.get(e)),FF=(e,t,n)=>t.has(e)?AN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Yw="popstate";function BF(e={}){function t(r,o){let{pathname:a,search:s,hash:c}=r.location;return wp("",{pathname:a,search:s,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:qs(o)}return UF(t,n,null,e)}function Wt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function br(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jF(){return Math.random().toString(36).substring(2,10)}function Kw(e,t){return{usr:e.state,key:e.key,idx:t}}function wp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Xs(t):t,state:n,key:t&&t.key||r||jF()}}function qs({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Xs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function UF(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,c="POP",u=null,d=p();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function p(){return(s.state||{idx:null}).idx}function h(){c="POP";let S=p(),T=S==null?null:S-d;d=S,u&&u({action:c,location:x.location,delta:T})}function g(S,T){c="PUSH";let D=wp(x.location,S,T);d=p()+1;let k=Kw(D,d),R=x.createHref(D);try{s.pushState(k,"",R)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(R)}a&&u&&u({action:c,location:x.location,delta:1})}function y(S,T){c="REPLACE";let D=wp(x.location,S,T);d=p();let k=Kw(D,d),R=x.createHref(D);s.replaceState(k,"",R),a&&u&&u({action:c,location:x.location,delta:0})}function b(S){return wN(S)}let x={get action(){return c},get location(){return e(o,s)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Yw,h),u=S,()=>{o.removeEventListener(Yw,h),u=null}},createHref(S){return t(o,S)},createURL:b,encodeLocation(S){let T=b(S);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:g,replace:y,go(S){return s.go(S)}};return x}function wN(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Wt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:qs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var qf,Qw=class{constructor(e){if(FF(this,qf,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(k1(this,qf).has(e))return k1(this,qf).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){k1(this,qf).set(e,t)}};qf=new WeakMap;var HF=new Set(["lazy","caseSensitive","path","id","index","children"]);function zF(e){return HF.has(e)}var $F=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function VF(e){return $F.has(e)}function GF(e){return e.index===!0}function Xg(e,t,n=[],r={}){return e.map((o,a)=>{let s=[...n,String(a)],c=typeof o.id=="string"?o.id:s.join("-");if(Wt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Wt(!r[c],`Found a route id collision on id "${c}". Route id's must be globally unique within Data Router usages`),GF(o)){let u={...o,...t(o),id:c};return r[c]=u,u}else{let u={...o,...t(o),id:c,children:void 0};return r[c]=u,o.children&&(u.children=Xg(o.children,t,s,r)),u}})}function Fs(e,t,n="/"){return Tg(e,t,n,!1)}function Tg(e,t,n,r){let o=typeof t=="string"?Xs(t):t,a=va(o.pathname||"/",n);if(a==null)return null;let s=kN(e);WF(s);let c=null;for(let u=0;c==null&&u<s.length;++u){let d=o9(a);c=n9(s[u],d,r)}return c}function qF(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function kN(e,t=[],n=[],r=""){let o=(a,s,c)=>{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};u.relativePath.startsWith("/")&&(Wt(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=li([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&(Wt(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),kN(a.children,t,p,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:e9(d,a.index),routesMeta:p})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))o(a,s);else for(let c of DN(a.path))o(a,s,c)}),t}function DN(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let s=DN(r.join("/")),c=[];return c.push(...s.map(u=>u===""?a:[a,u].join("/"))),o&&c.push(...s),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function WF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:t9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var YF=/^:[\w-]+$/,KF=3,QF=2,XF=1,ZF=10,JF=-2,Xw=e=>e==="*";function e9(e,t){let n=e.split("/"),r=n.length;return n.some(Xw)&&(r+=JF),t&&(r+=QF),n.filter(o=>!Xw(o)).reduce((o,a)=>o+(YF.test(a)?KF:a===""?XF:ZF),r)}function t9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function n9(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let c=0;c<r.length;++c){let u=r[c],d=c===r.length-1,p=a==="/"?t:t.slice(a.length)||"/",h=Zg({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p),g=u.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=Zg({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!h)return null;Object.assign(o,h.params),s.push({params:o,pathname:li([a,h.pathname]),pathnameBase:s9(li([a,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(a=li([a,h.pathnameBase]))}return s}function Zg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=r9(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:h},g)=>{if(p==="*"){let b=c[g]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const y=c[g];return h&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:s,pattern:e}}function r9(e,t=!1,n=!0){br(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,u)=>(r.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function o9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return br(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function va(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function a9(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Xs(e):e;return{pathname:n?n.startsWith("/")?n:i9(n,t):t,search:l9(r),hash:c9(o)}}function i9(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function D1(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function RN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function RT(e){let t=RN(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function IT(e,t,n,r=!1){let o;typeof e=="string"?o=Xs(e):(o={...e},Wt(!o.pathname||!o.pathname.includes("?"),D1("?","pathname","search",o)),Wt(!o.pathname||!o.pathname.includes("#"),D1("#","pathname","hash",o)),Wt(!o.search||!o.search.includes("#"),D1("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,c;if(s==null)c=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),h-=1;o.pathname=g.join("/")}c=h>=0?t[h]:"/"}let u=a9(o,c),d=s&&s!=="/"&&s.endsWith("/"),p=(a||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}var li=e=>e.join("/").replace(/\/\/+/g,"/"),s9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),l9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Jg=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function kp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var IN=["POST","PUT","PATCH","DELETE"],u9=new Set(IN),d9=["GET",...IN],f9=new Set(d9),p9=new Set([301,302,303,307,308]),h9=new Set([307,308]),R1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},m9={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},OT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,g9=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ON="remix-router-transitions",NN=Symbol("ResetLoaderData");function y9(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Wt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||g9,a={},s=Xg(e.routes,o,void 0,a),c,u=e.basename||"/",d=e.dataStrategy||T9,p={unstable_middleware:!1,...e.future},h=null,g=new Set,y=null,b=null,x=null,S=e.hydrationData!=null,T=Fs(s,e.history.location,u),D=!1,k=null,R;if(T==null&&!e.patchRoutesOnNavigation){let te=ia(404,{pathname:e.history.location.pathname}),{matches:Z,route:ie}=ck(s);R=!0,T=Z,k={[ie.id]:te}}else if(T&&!e.hydrationData&&oo(T,s,e.history.location.pathname).active&&(T=null),T)if(T.some(te=>te.route.lazy))R=!1;else if(!T.some(te=>te.route.loader))R=!0;else{let te=e.hydrationData?e.hydrationData.loaderData:null,Z=e.hydrationData?e.hydrationData.errors:null;if(Z){let ie=T.findIndex(be=>Z[be.route.id]!==void 0);R=T.slice(0,ie+1).every(be=>!QE(be.route,te,Z))}else R=T.every(ie=>!QE(ie.route,te,Z))}else{R=!1,T=[];let te=oo(null,s,e.history.location.pathname);te.active&&te.matches&&(D=!0,T=te.matches)}let I,O={historyAction:e.history.action,location:e.history.location,matches:T,initialized:R,navigation:R1,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map},F="POP",U=!1,H,C=!1,M=new Map,V=null,z=!1,W=!1,Y=new Set,B=new Map,J=0,ae=-1,ne=new Map,N=new Set,K=new Map,ee=new Map,P=new Set,re=new Map,me,oe=null;function ve(){if(h=e.history.listen(({action:te,location:Z,delta:ie})=>{if(me){me(),me=void 0;return}br(re.size===0||ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let be=rt({currentLocation:O.location,nextLocation:Z,historyAction:te});if(be&&ie!=null){let we=new Promise(qe=>{me=qe});e.history.go(ie*-1),ht(be,{state:"blocked",location:Z,proceed(){ht(be,{state:"proceeding",proceed:void 0,reset:void 0,location:Z}),we.then(()=>e.history.go(ie))},reset(){let qe=new Map(O.blockers);qe.set(be,vf),Le({blockers:qe})}});return}return De(te,Z)}),n){N9(t,M);let te=()=>P9(t,M);t.addEventListener("pagehide",te),V=()=>t.removeEventListener("pagehide",te)}return O.initialized||De("POP",O.location,{initialHydration:!0}),I}function ye(){h&&h(),V&&V(),g.clear(),H&&H.abort(),O.fetchers.forEach((te,Z)=>Xe(Z)),O.blockers.forEach((te,Z)=>Se(Z))}function Ve(te){return g.add(te),()=>g.delete(te)}function Le(te,Z={}){O={...O,...te};let ie=[],be=[];O.fetchers.forEach((we,qe)=>{we.state==="idle"&&(P.has(qe)?ie.push(qe):be.push(qe))}),P.forEach(we=>{!O.fetchers.has(we)&&!B.has(we)&&ie.push(we)}),[...g].forEach(we=>we(O,{deletedFetchers:ie,viewTransitionOpts:Z.viewTransitionOpts,flushSync:Z.flushSync===!0})),ie.forEach(we=>Xe(we)),be.forEach(we=>O.fetchers.delete(we))}function Oe(te,Z,{flushSync:ie}={}){let be=O.actionData!=null&&O.navigation.formMethod!=null&&Lo(O.navigation.formMethod)&&O.navigation.state==="loading"&&te.state?._isRedirect!==!0,we;Z.actionData?Object.keys(Z.actionData).length>0?we=Z.actionData:we=null:be?we=O.actionData:we=null;let qe=Z.loaderData?sk(O.loaderData,Z.loaderData,Z.matches||[],Z.errors):O.loaderData,ot=O.blockers;ot.size>0&&(ot=new Map(ot),ot.forEach((et,bt)=>ot.set(bt,vf)));let Ze=U===!0||O.navigation.formMethod!=null&&Lo(O.navigation.formMethod)&&te.state?._isRedirect!==!0;c&&(s=c,c=void 0),z||F==="POP"||(F==="PUSH"?e.history.push(te,te.state):F==="REPLACE"&&e.history.replace(te,te.state));let st;if(F==="POP"){let et=M.get(O.location.pathname);et&&et.has(te.pathname)?st={currentLocation:O.location,nextLocation:te}:M.has(te.pathname)&&(st={currentLocation:te,nextLocation:O.location})}else if(C){let et=M.get(O.location.pathname);et?et.add(te.pathname):(et=new Set([te.pathname]),M.set(O.location.pathname,et)),st={currentLocation:O.location,nextLocation:te}}Le({...Z,actionData:we,loaderData:qe,historyAction:F,location:te,initialized:!0,navigation:R1,revalidation:"idle",restoreScrollPosition:sr(te,Z.matches||O.matches),preventScrollReset:Ze,blockers:ot},{viewTransitionOpts:st,flushSync:ie===!0}),F="POP",U=!1,C=!1,z=!1,W=!1,oe?.resolve(),oe=null}async function Qe(te,Z){if(typeof te=="number"){e.history.go(te);return}let ie=KE(O.location,O.matches,u,te,Z?.fromRouteId,Z?.relative),{path:be,submission:we,error:qe}=Zw(!1,ie,Z),ot=O.location,Ze=wp(O.location,be,Z&&Z.state);Ze={...Ze,...e.history.encodeLocation(Ze)};let st=Z&&Z.replace!=null?Z.replace:void 0,et="PUSH";st===!0?et="REPLACE":st===!1||we!=null&&Lo(we.formMethod)&&we.formAction===O.location.pathname+O.location.search&&(et="REPLACE");let bt=Z&&"preventScrollReset"in Z?Z.preventScrollReset===!0:void 0,At=(Z&&Z.flushSync)===!0,kt=rt({currentLocation:ot,nextLocation:Ze,historyAction:et});if(kt){ht(kt,{state:"blocked",location:Ze,proceed(){ht(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ze}),Qe(te,Z)},reset(){let rn=new Map(O.blockers);rn.set(kt,vf),Le({blockers:rn})}});return}await De(et,Ze,{submission:we,pendingError:qe,preventScrollReset:bt,replace:Z&&Z.replace,enableViewTransition:Z&&Z.viewTransition,flushSync:At})}function nt(){oe||(oe=L9()),_t(),Le({revalidation:"loading"});let te=oe.promise;return O.navigation.state==="submitting"?te:O.navigation.state==="idle"?(De(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),te):(De(F||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:C===!0}),te)}async function De(te,Z,ie){H&&H.abort(),H=null,F=te,z=(ie&&ie.startUninterruptedRevalidation)===!0,$n(O.location,O.matches),U=(ie&&ie.preventScrollReset)===!0,C=(ie&&ie.enableViewTransition)===!0;let be=c||s,we=ie&&ie.overrideNavigation,qe=ie?.initialHydration&&O.matches&&O.matches.length>0&&!D?O.matches:Fs(be,Z,u),ot=(ie&&ie.flushSync)===!0;if(qe&&O.initialized&&!W&&k9(O.location,Z)&&!(ie&&ie.submission&&Lo(ie.submission.formMethod))){Oe(Z,{matches:qe},{flushSync:ot});return}let Ze=oo(qe,be,Z.pathname);if(Ze.active&&Ze.matches&&(qe=Ze.matches),!qe){let{error:Hn,notFoundMatches:on,route:Qt}=mn(Z.pathname);Oe(Z,{matches:on,loaderData:{},errors:{[Qt.id]:Hn}},{flushSync:ot});return}H=new AbortController;let st=lu(e.history,Z,H.signal,ie&&ie.submission),et=new Qw(e.unstable_getContext?await e.unstable_getContext():void 0),bt;if(ie&&ie.pendingError)bt=[kl(qe).route.id,{type:"error",error:ie.pendingError}];else if(ie&&ie.submission&&Lo(ie.submission.formMethod)){let Hn=await gt(st,Z,ie.submission,qe,et,Ze.active,ie&&ie.initialHydration===!0,{replace:ie.replace,flushSync:ot});if(Hn.shortCircuited)return;if(Hn.pendingActionResult){let[on,Qt]=Hn.pendingActionResult;if(Po(Qt)&&kp(Qt.error)&&Qt.error.status===404){H=null,Oe(Z,{matches:Hn.matches,loaderData:{},errors:{[on]:Qt.error}});return}}qe=Hn.matches||qe,bt=Hn.pendingActionResult,we=I1(Z,ie.submission),ot=!1,Ze.active=!1,st=lu(e.history,st.url,st.signal)}let{shortCircuited:At,matches:kt,loaderData:rn,errors:On}=await Ct(st,Z,qe,et,Ze.active,we,ie&&ie.submission,ie&&ie.fetcherSubmission,ie&&ie.replace,ie&&ie.initialHydration===!0,ot,bt);At||(H=null,Oe(Z,{matches:kt||qe,...lk(bt),loaderData:rn,errors:On}))}async function gt(te,Z,ie,be,we,qe,ot,Ze={}){_t();let st=I9(Z,ie);if(Le({navigation:st},{flushSync:Ze.flushSync===!0}),qe){let At=await xn(be,Z.pathname,te.signal);if(At.type==="aborted")return{shortCircuited:!0};if(At.type==="error"){let kt=kl(At.partialMatches).route.id;return{matches:At.partialMatches,pendingActionResult:[kt,{type:"error",error:At.error}]}}else if(At.matches)be=At.matches;else{let{notFoundMatches:kt,error:rn,route:On}=mn(Z.pathname);return{matches:kt,pendingActionResult:[On.id,{type:"error",error:rn}]}}}let et,bt=Wf(be,Z);if(!bt.route.action&&!bt.route.lazy)et={type:"error",error:ia(405,{method:te.method,pathname:Z.pathname,routeId:bt.route.id})};else{let At=bu(o,a,te,be,bt,ot?[]:r,we),kt=await Jt(te,At,we,null);if(et=kt[bt.route.id],!et){for(let rn of be)if(kt[rn.route.id]){et=kt[rn.route.id];break}}if(te.signal.aborted)return{shortCircuited:!0}}if(Il(et)){let At;return Ze&&Ze.replace!=null?At=Ze.replace:At=ok(et.response.headers.get("Location"),new URL(te.url),u)===O.location.pathname+O.location.search,await Pe(te,et,!0,{submission:ie,replace:At}),{shortCircuited:!0}}if(Po(et)){let At=kl(be,bt.route.id);return(Ze&&Ze.replace)!==!0&&(F="PUSH"),{matches:be,pendingActionResult:[At.route.id,et,bt.route.id]}}return{matches:be,pendingActionResult:[bt.route.id,et]}}async function Ct(te,Z,ie,be,we,qe,ot,Ze,st,et,bt,At){let kt=qe||I1(Z,ot),rn=ot||Ze||dk(kt),On=!z&&!et;if(we){if(On){let $r=Be(At);Le({navigation:kt,...$r!==void 0?{actionData:$r}:{}},{flushSync:bt})}let Ht=await xn(ie,Z.pathname,te.signal);if(Ht.type==="aborted")return{shortCircuited:!0};if(Ht.type==="error"){let $r=kl(Ht.partialMatches).route.id;return{matches:Ht.partialMatches,loaderData:{},errors:{[$r]:Ht.error}}}else if(Ht.matches)ie=Ht.matches;else{let{error:$r,notFoundMatches:wa,route:ka}=mn(Z.pathname);return{matches:wa,loaderData:{},errors:{[ka.id]:$r}}}}let Hn=c||s,{dsMatches:on,revalidatingFetchers:Qt}=Jw(te,be,o,a,e.history,O,ie,rn,Z,et?[]:r,et===!0,W,Y,P,K,N,Hn,u,e.patchRoutesOnNavigation!=null,At);if(ae=++J,!e.dataStrategy&&!on.some(Ht=>Ht.shouldLoad)&&Qt.length===0){let Ht=Ut();return Oe(Z,{matches:ie,loaderData:{},errors:At&&Po(At[1])?{[At[0]]:At[1].error}:null,...lk(At),...Ht?{fetchers:new Map(O.fetchers)}:{}},{flushSync:bt}),{shortCircuited:!0}}if(On){let Ht={};if(!we){Ht.navigation=kt;let $r=Be(At);$r!==void 0&&(Ht.actionData=$r)}Qt.length>0&&(Ht.fetchers=mt(Qt)),Le(Ht,{flushSync:bt})}Qt.forEach(Ht=>{Je(Ht.key),Ht.controller&&B.set(Ht.key,Ht.controller)});let rs=()=>Qt.forEach(Ht=>Je(Ht.key));H&&H.signal.addEventListener("abort",rs);let{loaderResults:Jr,fetcherResults:Wo}=await Mt(on,Qt,te,be);if(te.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",rs),Qt.forEach(Ht=>B.delete(Ht.key));let ao=qm(Jr);if(ao)return await Pe(te,ao.result,!0,{replace:st}),{shortCircuited:!0};if(ao=qm(Wo),ao)return N.add(ao.key),await Pe(te,ao.result,!0,{replace:st}),{shortCircuited:!0};let{loaderData:os,errors:as}=ik(O,ie,Jr,At,Qt,Wo);et&&O.errors&&(as={...O.errors,...as});let xd=Ut(),Yo=Ke(ae),vi=xd||Yo||Qt.length>0;return{matches:ie,loaderData:os,errors:as,...vi?{fetchers:new Map(O.fetchers)}:{}}}function Be(te){if(te&&!Po(te[1]))return{[te[0]]:te[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function mt(te){return te.forEach(Z=>{let ie=O.fetchers.get(Z.key),be=Ef(void 0,ie?ie.data:void 0);O.fetchers.set(Z.key,be)}),new Map(O.fetchers)}async function it(te,Z,ie,be){Je(te);let we=(be&&be.flushSync)===!0,qe=c||s,ot=KE(O.location,O.matches,u,ie,Z,be?.relative),Ze=Fs(qe,ot,u),st=oo(Ze,qe,ot);if(st.active&&st.matches&&(Ze=st.matches),!Ze){ge(te,Z,ia(404,{pathname:ot}),{flushSync:we});return}let{path:et,submission:bt,error:At}=Zw(!0,ot,be);if(At){ge(te,Z,At,{flushSync:we});return}let kt=Wf(Ze,et),rn=new Qw(e.unstable_getContext?await e.unstable_getContext():void 0),On=(be&&be.preventScrollReset)===!0;if(bt&&Lo(bt.formMethod)){await lt(te,Z,et,kt,Ze,rn,st.active,we,On,bt);return}K.set(te,{routeId:Z,path:et}),await je(te,Z,et,kt,Ze,rn,st.active,we,On,bt)}async function lt(te,Z,ie,be,we,qe,ot,Ze,st,et){_t(),K.delete(te);function bt(Pn){if(!Pn.route.action&&!Pn.route.lazy){let is=ia(405,{method:et.formMethod,pathname:ie,routeId:Z});return ge(te,Z,is,{flushSync:Ze}),!0}return!1}if(!ot&&bt(be))return;let At=O.fetchers.get(te);ue(te,O9(et,At),{flushSync:Ze});let kt=new AbortController,rn=lu(e.history,ie,kt.signal,et);if(ot){let Pn=await xn(we,ie,rn.signal,te);if(Pn.type==="aborted")return;if(Pn.type==="error"){ge(te,Z,Pn.error,{flushSync:Ze});return}else if(Pn.matches){if(we=Pn.matches,be=Wf(we,ie),bt(be))return}else{ge(te,Z,ia(404,{pathname:ie}),{flushSync:Ze});return}}B.set(te,kt);let On=J,Hn=bu(o,a,rn,we,be,r,qe),Qt=(await Jt(rn,Hn,qe,te))[be.route.id];if(rn.signal.aborted){B.get(te)===kt&&B.delete(te);return}if(P.has(te)){if(Il(Qt)||Po(Qt)){ue(te,Ps(void 0));return}}else{if(Il(Qt))if(B.delete(te),ae>On){ue(te,Ps(void 0));return}else return N.add(te),ue(te,Ef(et)),Pe(rn,Qt,!1,{fetcherSubmission:et,preventScrollReset:st});if(Po(Qt)){ge(te,Z,Qt.error);return}}let rs=O.navigation.location||O.location,Jr=lu(e.history,rs,kt.signal),Wo=c||s,ao=O.navigation.state!=="idle"?Fs(Wo,O.navigation.location,u):O.matches;Wt(ao,"Didn't find any matches after fetcher action");let os=++J;ne.set(te,os);let as=Ef(et,Qt.data);O.fetchers.set(te,as);let{dsMatches:xd,revalidatingFetchers:Yo}=Jw(Jr,qe,o,a,e.history,O,ao,et,rs,r,!1,W,Y,P,K,N,Wo,u,e.patchRoutesOnNavigation!=null,[be.route.id,Qt]);Yo.filter(Pn=>Pn.key!==te).forEach(Pn=>{let is=Pn.key,Td=O.fetchers.get(is),io=Ef(void 0,Td?Td.data:void 0);O.fetchers.set(is,io),Je(is),Pn.controller&&B.set(is,Pn.controller)}),Le({fetchers:new Map(O.fetchers)});let vi=()=>Yo.forEach(Pn=>Je(Pn.key));kt.signal.addEventListener("abort",vi);let{loaderResults:Ht,fetcherResults:$r}=await Mt(xd,Yo,Jr,qe);if(kt.signal.aborted)return;if(kt.signal.removeEventListener("abort",vi),ne.delete(te),B.delete(te),Yo.forEach(Pn=>B.delete(Pn.key)),O.fetchers.has(te)){let Pn=Ps(Qt.data);O.fetchers.set(te,Pn)}let wa=qm(Ht);if(wa)return Pe(Jr,wa.result,!1,{preventScrollReset:st});if(wa=qm($r),wa)return N.add(wa.key),Pe(Jr,wa.result,!1,{preventScrollReset:st});let{loaderData:ka,errors:rl}=ik(O,ao,Ht,void 0,Yo,$r);Ke(os),O.navigation.state==="loading"&&os>ae?(Wt(F,"Expected pending action"),H&&H.abort(),Oe(O.navigation.location,{matches:ao,loaderData:ka,errors:rl,fetchers:new Map(O.fetchers)})):(Le({errors:rl,loaderData:sk(O.loaderData,ka,ao,rl),fetchers:new Map(O.fetchers)}),W=!1)}async function je(te,Z,ie,be,we,qe,ot,Ze,st,et){let bt=O.fetchers.get(te);ue(te,Ef(et,bt?bt.data:void 0),{flushSync:Ze});let At=new AbortController,kt=lu(e.history,ie,At.signal);if(ot){let Qt=await xn(we,ie,kt.signal,te);if(Qt.type==="aborted")return;if(Qt.type==="error"){ge(te,Z,Qt.error,{flushSync:Ze});return}else if(Qt.matches)we=Qt.matches,be=Wf(we,ie);else{ge(te,Z,ia(404,{pathname:ie}),{flushSync:Ze});return}}B.set(te,At);let rn=J,On=bu(o,a,kt,we,be,r,qe),on=(await Jt(kt,On,qe,te))[be.route.id];if(B.get(te)===At&&B.delete(te),!kt.signal.aborted){if(P.has(te)){ue(te,Ps(void 0));return}if(Il(on))if(ae>rn){ue(te,Ps(void 0));return}else{N.add(te),await Pe(kt,on,!1,{preventScrollReset:st});return}if(Po(on)){ge(te,Z,on.error);return}ue(te,Ps(on.data))}}async function Pe(te,Z,ie,{submission:be,fetcherSubmission:we,preventScrollReset:qe,replace:ot}={}){Z.response.headers.has("X-Remix-Revalidate")&&(W=!0);let Ze=Z.response.headers.get("Location");Wt(Ze,"Expected a Location header on the redirect Response"),Ze=ok(Ze,new URL(te.url),u);let st=wp(O.location,Ze,{_isRedirect:!0});if(n){let On=!1;if(Z.response.headers.has("X-Remix-Reload-Document"))On=!0;else if(OT.test(Ze)){const Hn=wN(Ze,!0);On=Hn.origin!==t.location.origin||va(Hn.pathname,u)==null}if(On){ot?t.location.replace(Ze):t.location.assign(Ze);return}}H=null;let et=ot===!0||Z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:bt,formAction:At,formEncType:kt}=O.navigation;!be&&!we&&bt&&At&&kt&&(be=dk(O.navigation));let rn=be||we;if(h9.has(Z.response.status)&&rn&&Lo(rn.formMethod))await De(et,st,{submission:{...rn,formAction:Ze},preventScrollReset:qe||U,enableViewTransition:ie?C:void 0});else{let On=I1(st,be);await De(et,st,{overrideNavigation:On,fetcherSubmission:we,preventScrollReset:qe||U,enableViewTransition:ie?C:void 0})}}async function Jt(te,Z,ie,be){let we,qe={};try{we=await S9(d,te,Z,be,ie,!1)}catch(ot){return Z.filter(Ze=>Ze.shouldLoad).forEach(Ze=>{qe[Ze.route.id]={type:"error",error:ot}}),qe}if(te.signal.aborted)return qe;for(let[ot,Ze]of Object.entries(we))if(D9(Ze)){let st=Ze.result;qe[ot]={type:"redirect",response:A9(st,te,ot,Z,u)}}else qe[ot]=await _9(Ze);return qe}async function Mt(te,Z,ie,be){let we=Jt(ie,te,be,null),qe=Promise.all(Z.map(async st=>{if(st.matches&&st.match&&st.request&&st.controller){let bt=(await Jt(st.request,st.matches,be,st.key))[st.match.route.id];return{[st.key]:bt}}else return Promise.resolve({[st.key]:{type:"error",error:ia(404,{pathname:st.path})}})})),ot=await we,Ze=(await qe).reduce((st,et)=>Object.assign(st,et),{});return{loaderResults:ot,fetcherResults:Ze}}function _t(){W=!0,K.forEach((te,Z)=>{B.has(Z)&&Y.add(Z),Je(Z)})}function ue(te,Z,ie={}){O.fetchers.set(te,Z),Le({fetchers:new Map(O.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ge(te,Z,ie,be={}){let we=kl(O.matches,Z);Xe(te),Le({errors:{[we.route.id]:ie},fetchers:new Map(O.fetchers)},{flushSync:(be&&be.flushSync)===!0})}function Ue(te){return ee.set(te,(ee.get(te)||0)+1),P.has(te)&&P.delete(te),O.fetchers.get(te)||m9}function Xe(te){let Z=O.fetchers.get(te);B.has(te)&&!(Z&&Z.state==="loading"&&ne.has(te))&&Je(te),K.delete(te),ne.delete(te),N.delete(te),P.delete(te),Y.delete(te),O.fetchers.delete(te)}function Et(te){let Z=(ee.get(te)||0)-1;Z<=0?(ee.delete(te),P.add(te)):ee.set(te,Z),Le({fetchers:new Map(O.fetchers)})}function Je(te){let Z=B.get(te);Z&&(Z.abort(),B.delete(te))}function en(te){for(let Z of te){let ie=Ue(Z),be=Ps(ie.data);O.fetchers.set(Z,be)}}function Ut(){let te=[],Z=!1;for(let ie of N){let be=O.fetchers.get(ie);Wt(be,`Expected fetcher: ${ie}`),be.state==="loading"&&(N.delete(ie),te.push(ie),Z=!0)}return en(te),Z}function Ke(te){let Z=[];for(let[ie,be]of ne)if(be<te){let we=O.fetchers.get(ie);Wt(we,`Expected fetcher: ${ie}`),we.state==="loading"&&(Je(ie),ne.delete(ie),Z.push(ie))}return en(Z),Z.length>0}function Ee(te,Z){let ie=O.blockers.get(te)||vf;return re.get(te)!==Z&&re.set(te,Z),ie}function Se(te){O.blockers.delete(te),re.delete(te)}function ht(te,Z){let ie=O.blockers.get(te)||vf;Wt(ie.state==="unblocked"&&Z.state==="blocked"||ie.state==="blocked"&&Z.state==="blocked"||ie.state==="blocked"&&Z.state==="proceeding"||ie.state==="blocked"&&Z.state==="unblocked"||ie.state==="proceeding"&&Z.state==="unblocked",`Invalid blocker state transition: ${ie.state} -> ${Z.state}`);let be=new Map(O.blockers);be.set(te,Z),Le({blockers:be})}function rt({currentLocation:te,nextLocation:Z,historyAction:ie}){if(re.size===0)return;re.size>1&&br(!1,"A router only supports one blocker at a time");let be=Array.from(re.entries()),[we,qe]=be[be.length-1],ot=O.blockers.get(we);if(!(ot&&ot.state==="proceeding")&&qe({currentLocation:te,nextLocation:Z,historyAction:ie}))return we}function mn(te){let Z=ia(404,{pathname:te}),ie=c||s,{matches:be,route:we}=ck(ie);return{notFoundMatches:be,route:we,error:Z}}function Pr(te,Z,ie){if(y=te,x=Z,b=ie||null,!S&&O.navigation===R1){S=!0;let be=sr(O.location,O.matches);be!=null&&Le({restoreScrollPosition:be})}return()=>{y=null,x=null,b=null}}function vr(te,Z){return b&&b(te,Z.map(be=>qF(be,O.loaderData)))||te.key}function $n(te,Z){if(y&&x){let ie=vr(te,Z);y[ie]=x()}}function sr(te,Z){if(y){let ie=vr(te,Z),be=y[ie];if(typeof be=="number")return be}return null}function oo(te,Z,ie){if(e.patchRoutesOnNavigation)if(te){if(Object.keys(te[0].params).length>0)return{active:!0,matches:Tg(Z,ie,u,!0)}}else return{active:!0,matches:Tg(Z,ie,u,!0)||[]};return{active:!1,matches:null}}async function xn(te,Z,ie,be){if(!e.patchRoutesOnNavigation)return{type:"success",matches:te};let we=te;for(;;){let qe=c==null,ot=c||s,Ze=a;try{await e.patchRoutesOnNavigation({signal:ie,path:Z,matches:we,fetcherKey:be,patch:(bt,At)=>{ie.aborted||ek(bt,At,ot,Ze,o)}})}catch(bt){return{type:"error",error:bt,partialMatches:we}}finally{qe&&!ie.aborted&&(s=[...s])}if(ie.aborted)return{type:"aborted"};let st=Fs(ot,Z,u);if(st)return{type:"success",matches:st};let et=Tg(ot,Z,u,!0);if(!et||we.length===et.length&&we.every((bt,At)=>bt.route.id===et[At].route.id))return{type:"success",matches:null};we=et}}function Lr(te){a={},c=Xg(te,o,void 0,a)}function yt(te,Z){let ie=c==null;ek(te,Z,c||s,a,o),ie&&(s=[...s],Le({}))}return I={get basename(){return u},get future(){return p},get state(){return O},get routes(){return s},get window(){return t},initialize:ve,subscribe:Ve,enableScrollRestoration:Pr,navigate:Qe,fetch:it,revalidate:nt,createHref:te=>e.history.createHref(te),encodeLocation:te=>e.history.encodeLocation(te),getFetcher:Ue,deleteFetcher:Et,dispose:ye,getBlocker:Ee,deleteBlocker:Se,patchRoutes:yt,_internalFetchControllers:B,_internalSetRoutes:Lr},I}function b9(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function KE(e,t,n,r,o,a){let s,c;if(o){s=[];for(let d of t)if(s.push(d),d.route.id===o){c=d;break}}else s=t,c=t[t.length-1];let u=IT(r||".",RT(s),va(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&c){let d=NT(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let p=new URLSearchParams(u.search),h=p.getAll("index");p.delete("index"),h.filter(y=>y).forEach(y=>p.append("index",y));let g=p.toString();u.search=g?`?${g}`:""}}return n!=="/"&&(u.pathname=u.pathname==="/"?n:li([n,u.pathname])),qs(u)}function Zw(e,t,n){if(!n||!b9(n))return{path:t};if(n.formMethod&&!R9(n.formMethod))return{path:t,error:ia(405,{method:n.formMethod})};let r=()=>({path:t,error:ia(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=jN(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Lo(a))return r();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,[y,b])=>`${g}${y}=${b}
|
|
60
|
+
`,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!Lo(a))return r();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return r()}}}Wt(typeof FormData=="function","FormData is not available in this environment");let c,u;if(n.formData)c=ZE(n.formData),u=n.formData;else if(n.body instanceof FormData)c=ZE(n.body),u=n.body;else if(n.body instanceof URLSearchParams)c=n.body,u=ak(c);else if(n.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(n.body),u=ak(c)}catch{return r()}let d={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Lo(d.formMethod))return{path:t,submission:d};let p=Xs(t);return e&&p.search&&NT(p.search)&&c.append("index",""),p.search=`?${c}`,{path:qs(p),submission:d}}function Jw(e,t,n,r,o,a,s,c,u,d,p,h,g,y,b,x,S,T,D,k){let R=k?Po(k[1])?k[1].error:k[1].data:void 0,I=o.createURL(a.location),O=o.createURL(u),F;if(p&&a.errors){let z=Object.keys(a.errors)[0];F=s.findIndex(W=>W.route.id===z)}else if(k&&Po(k[1])){let z=k[0];F=s.findIndex(W=>W.route.id===z)-1}let U=k?k[1].statusCode:void 0,H=U&&U>=400,C={currentUrl:I,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:s[0].params,...c,actionResult:R,actionStatus:U},M=s.map((z,W)=>{let{route:Y}=z,B=null;if(F!=null&&W>F?B=!1:Y.lazy?B=!0:Y.loader==null?B=!1:p?B=QE(Y,a.loaderData,a.errors):v9(a.loaderData,a.matches[W],z)&&(B=!0),B!==null)return XE(n,r,e,z,d,t,B);let J=H?!1:h||I.pathname+I.search===O.pathname+O.search||I.search!==O.search||E9(a.matches[W],z),ae={...C,defaultShouldRevalidate:J},ne=ey(z,ae);return XE(n,r,e,z,d,t,ne,ae)}),V=[];return b.forEach((z,W)=>{if(p||!s.some(ee=>ee.route.id===z.routeId)||y.has(W))return;let Y=a.fetchers.get(W),B=Y&&Y.state!=="idle"&&Y.data===void 0,J=Fs(S,z.path,T);if(!J){if(D&&B)return;V.push({key:W,routeId:z.routeId,path:z.path,matches:null,match:null,request:null,controller:null});return}if(x.has(W))return;let ae=Wf(J,z.path),ne=new AbortController,N=lu(o,z.path,ne.signal),K=null;if(g.has(W))g.delete(W),K=bu(n,r,N,J,ae,d,t);else if(B)h&&(K=bu(n,r,N,J,ae,d,t));else{let ee={...C,defaultShouldRevalidate:H?!1:h};ey(ae,ee)&&(K=bu(n,r,N,J,ae,d,t,ee))}K&&V.push({key:W,routeId:z.routeId,path:z.path,matches:K,match:ae,request:N,controller:ne})}),{dsMatches:M,revalidatingFetchers:V}}function QE(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function v9(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function E9(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ey(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function ek(e,t,n,r,o){let a;if(e){let u=r[e];Wt(u,`No route found to patch children into: routeId = ${e}`),u.children||(u.children=[]),a=u.children}else a=n;let s=t.filter(u=>!a.some(d=>PN(u,d))),c=Xg(s,o,[e||"_","patch",String(a?.length||"0")],r);a.push(...c)}function PN(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>t.children?.some(o=>PN(n,o))):!1}var tk=new WeakMap,LN=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(Wt(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let s=tk.get(o);s||(s={},tk.set(o,s));let c=s[e];if(c)return c;let u=(async()=>{let d=zF(e),h=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)br(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(h)br(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let g=await a();g!=null&&(Object.assign(o,{[e]:g}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(g=>g===void 0)&&(o.lazy=void 0))})();return s[e]=u,u},nk=new WeakMap;function x9(e,t,n,r,o){let a=n[e.id];if(Wt(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=nk.get(a);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{Wt(typeof e.lazy=="function","No lazy route function found");let g=await e.lazy(),y={};for(let b in g){let x=g[b];if(x===void 0)continue;let S=VF(b),D=a[b]!==void 0&&b!=="hasErrorBoundary";S?br(!S,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?br(!D,`Route "${a.id}" has a static property "${b}" defined but its lazy function is also returning a value for this property. The lazy route property "${b}" will be ignored.`):y[b]=x}Object.assign(a,y),Object.assign(a,{...r(a),lazy:void 0})})();return nk.set(a,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let s=Object.keys(e.lazy),c=[],u;for(let p of s){if(o&&o.includes(p))continue;let h=LN({key:p,route:e,manifest:n,mapRouteProperties:r});h&&(c.push(h),p===t&&(u=h))}let d=c.length>0?Promise.all(c).then(()=>{}):void 0;return d?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function rk(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{n[t[a].route.id]=o}),n}async function T9(e){return e.matches.some(t=>t.route.unstable_middleware)?MN(e,!1,()=>rk(e),(t,n)=>({[n]:{type:"error",result:t}})):rk(e)}async function MN(e,t,n,r){let{matches:o,request:a,params:s,context:c}=e,u={handlerResult:void 0};try{let d=o.flatMap(h=>h.route.unstable_middleware?h.route.unstable_middleware.map(g=>[h.route.id,g]):[]),p=await FN({request:a,params:s,context:c},d,t,u,n);return t?p:u.handlerResult}catch(d){if(!u.middlewareError)throw d;let p=await r(u.middlewareError.error,u.middlewareError.routeId);return u.handlerResult?Object.assign(u.handlerResult,p):p}}async function FN(e,t,n,r,o,a=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason?s.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${s.method} ${s.url}`);let c=t[a];if(!c)return r.handlerResult=await o(),r.handlerResult;let[u,d]=c,p=!1,h,g=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await FN(e,t,n,r,o,a+1)};try{let y=await d({request:e.request,params:e.params,context:e.context},g);return p?y===void 0?h:y:g()}catch(y){throw r.middlewareError?r.middlewareError.error!==y&&(r.middlewareError={routeId:u,error:y}):r.middlewareError={routeId:u,error:y},y}}function BN(e,t,n,r,o){let a=LN({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=x9(r.route,Lo(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function XE(e,t,n,r,o,a,s,c=null){let u=!1,d=BN(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:s,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return u=!0,c?typeof p=="boolean"?ey(r,{...c,defaultShouldRevalidate:p}):ey(r,c):s},resolve(p){return u||s||p&&n.method==="GET"&&(r.route.lazy||r.route.loader)?C9({request:n,match:r,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:p,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function bu(e,t,n,r,o,a,s,c=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:BN(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:XE(e,t,n,u,a,s,!0,c))}async function S9(e,t,n,r,o,a){n.some(d=>d._lazyPromises?.middleware)&&await Promise.all(n.map(d=>d._lazyPromises?.middleware));let s={request:t,params:n[0].params,context:o,matches:n},u=await e({...s,fetcherKey:r,unstable_runClientMiddleware:d=>{let p=s;return MN(p,!1,()=>d({...p,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(h,g)=>({[g]:{type:"error",result:h}}))}});try{await Promise.all(n.flatMap(d=>[d._lazyPromises?.handler,d._lazyPromises?.route]))}catch{}return u}async function C9({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let s,c,u=Lo(e.method),d=u?"action":"loader",p=h=>{let g,y=new Promise((S,T)=>g=T);c=()=>g(),e.signal.addEventListener("abort",c);let b=S=>typeof h!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):h({request:e,params:t.params,context:a},...S!==void 0?[S]:[]),x=(async()=>{try{return{type:"data",result:await(o?o(T=>b(T)):b())}}catch(S){return{type:"error",result:S}}})();return Promise.race([x,y])};try{let h=u?t.route.action:t.route.loader;if(n||r)if(h){let g,[y]=await Promise.all([p(h).catch(b=>{g=b}),n,r]);if(g!==void 0)throw g;s=y}else{await n;let g=u?t.route.action:t.route.loader;if(g)[s]=await Promise.all([p(g),r]);else if(d==="action"){let y=new URL(e.url),b=y.pathname+y.search;throw ia(405,{method:e.method,pathname:b,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(h)s=await p(h);else{let g=new URL(e.url),y=g.pathname+g.search;throw ia(404,{pathname:y})}}catch(h){return{type:"error",result:h}}finally{c&&e.signal.removeEventListener("abort",c)}return s}async function _9(e){let{result:t,type:n}=e;if(UN(t)){let r;try{let o=t.headers.get("Content-Type");o&&/\bapplication\/json\b/.test(o)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(o){return{type:"error",error:o}}return n==="error"?{type:"error",error:new Jg(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?uk(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Jg(t.init?.status||500,void 0,t.data),statusCode:kp(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:kp(t)?t.status:void 0}:uk(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function A9(e,t,n,r,o){let a=e.headers.get("Location");if(Wt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!OT.test(a)){let s=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=KE(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}function ok(e,t,n){if(OT.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=va(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function lu(e,t,n,r){let o=e.createURL(jN(t)).toString(),a={signal:n};if(r&&Lo(r.formMethod)){let{formMethod:s,formEncType:c}=r;a.method=s.toUpperCase(),c==="application/json"?(a.headers=new Headers({"Content-Type":c}),a.body=JSON.stringify(r.json)):c==="text/plain"?a.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?a.body=ZE(r.formData):a.body=r.formData}return new Request(o,a)}function ZE(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function ak(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function w9(e,t,n,r=!1,o=!1){let a={},s=null,c,u=!1,d={},p=n&&Po(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let g=h.route.id,y=t[g];if(Wt(!Il(y),"Cannot handle redirect results in processLoaderData"),Po(y)){let b=y.error;if(p!==void 0&&(b=p,p=void 0),s=s||{},o)s[g]=b;else{let x=kl(e,g);s[x.route.id]==null&&(s[x.route.id]=b)}r||(a[g]=NN),u||(u=!0,c=kp(y.error)?y.error.status:500),y.headers&&(d[g]=y.headers)}else a[g]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(c=y.statusCode),y.headers&&(d[g]=y.headers)}),p!==void 0&&n&&(s={[n[0]]:p},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:s,statusCode:c||200,loaderHeaders:d}}function ik(e,t,n,r,o,a){let{loaderData:s,errors:c}=w9(t,n,r);return o.filter(u=>!u.matches||u.matches.some(d=>d.shouldLoad)).forEach(u=>{let{key:d,match:p,controller:h}=u,g=a[d];if(Wt(g,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Po(g)){let y=kl(e.matches,p?.route.id);c&&c[y.route.id]||(c={...c,[y.route.id]:g.error}),e.fetchers.delete(d)}else if(Il(g))Wt(!1,"Unhandled fetcher revalidation redirect");else{let y=Ps(g.data);e.fetchers.set(d,y)}}),{loaderData:s,errors:c}}function sk(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==NN).reduce((a,[s,c])=>(a[s]=c,a),{});for(let a of n){let s=a.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&a.route.loader&&(o[s]=e[s]),r&&r.hasOwnProperty(s))break}return o}function lk(e){return e?Po(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function kl(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ck(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ia(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let s="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(s="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(c="Unable to encode submission body")):e===403?(s="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",c=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new Jg(e||500,s,new Error(c),!0)}function qm(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Il(o))return{key:r,result:o}}}function jN(e){let t=typeof e=="string"?Xs(e):e;return qs({...t,hash:""})}function k9(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function D9(e){return UN(e.result)&&p9.has(e.result.status)}function Po(e){return e.type==="error"}function Il(e){return(e&&e.type)==="redirect"}function uk(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function UN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function R9(e){return f9.has(e.toUpperCase())}function Lo(e){return u9.has(e.toUpperCase())}function NT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Wf(e,t){let n=typeof t=="string"?Xs(t).search:t.search;if(e[e.length-1].route.index&&NT(n||""))return e[e.length-1];let r=RN(e);return r[r.length-1]}function dk(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function I1(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function I9(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ef(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function O9(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ps(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function N9(e,t){try{let n=e.sessionStorage.getItem(ON);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function P9(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(ON,JSON.stringify(n))}catch(r){br(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function L9(){let e,t,n=new Promise((r,o)=>{e=async a=>{r(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var ac=w.createContext(null);ac.displayName="DataRouter";var ch=w.createContext(null);ch.displayName="DataRouterState";var PT=w.createContext({isTransitioning:!1});PT.displayName="ViewTransition";var HN=w.createContext(new Map);HN.displayName="Fetchers";var M9=w.createContext(null);M9.displayName="Await";var hi=w.createContext(null);hi.displayName="Navigation";var Ky=w.createContext(null);Ky.displayName="Location";var Ha=w.createContext({outlet:null,matches:[],isDataRoute:!1});Ha.displayName="Route";var LT=w.createContext(null);LT.displayName="RouteError";function F9(e,{relative:t}={}){Wt(uh(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(hi),{hash:o,pathname:a,search:s}=dh(e,{relative:t}),c=a;return n!=="/"&&(c=a==="/"?n:li([n,a])),r.createHref({pathname:c,search:s,hash:o})}function uh(){return w.useContext(Ky)!=null}function ic(){return Wt(uh(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Ky).location}var zN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $N(e){w.useContext(hi).static||w.useLayoutEffect(e)}function MT(){let{isDataRoute:e}=w.useContext(Ha);return e?X9():B9()}function B9(){Wt(uh(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(ac),{basename:t,navigator:n}=w.useContext(hi),{matches:r}=w.useContext(Ha),{pathname:o}=ic(),a=JSON.stringify(RT(r)),s=w.useRef(!1);return $N(()=>{s.current=!0}),w.useCallback((u,d={})=>{if(br(s.current,zN),!s.current)return;if(typeof u=="number"){n.go(u);return}let p=IT(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:li([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,a,o,e])}var j9=w.createContext(null);function U9(e){let t=w.useContext(Ha).outlet;return t&&w.createElement(j9.Provider,{value:e},t)}function sc(){let{matches:e}=w.useContext(Ha),t=e[e.length-1];return t?t.params:{}}function dh(e,{relative:t}={}){let{matches:n}=w.useContext(Ha),{pathname:r}=ic(),o=JSON.stringify(RT(n));return w.useMemo(()=>IT(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function H9(e,t,n,r){Wt(uh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(hi),{matches:a}=w.useContext(Ha),s=a[a.length-1],c=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",p=s&&s.route;{let T=p&&p.path||"";GN(u,!p||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
61
|
+
|
|
62
|
+
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let h=ic(),g;g=h;let y=g.pathname||"/",b=y;if(d!=="/"){let T=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(T.length).join("/")}let x=Fs(e,{pathname:b});return br(p||x!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),br(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),q9(x&&x.map(T=>Object.assign({},T,{params:Object.assign({},c,T.params),pathname:li([d,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?d:li([d,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),a,n,r)}function z9(){let e=VN(),t=kp(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:a},"ErrorBoundary")," or"," ",w.createElement("code",{style:a},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,s)}var $9=w.createElement(z9,null),V9=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?w.createElement(Ha.Provider,{value:this.props.routeContext},w.createElement(LT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function G9({routeContext:e,match:t,children:n}){let r=w.useContext(ac);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Ha.Provider,{value:e},n)}function q9(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n?.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&a?.[d.route.id]!==void 0);Wt(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let s=!1,c=-1;if(n)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=n,g=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){s=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,p)=>{let h,g=!1,y=null,b=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||$9,s&&(c<0&&p===0?(GN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):c===p&&(g=!0,b=d.route.hydrateFallbackElement||null)));let x=t.concat(o.slice(0,p+1)),S=()=>{let T;return h?T=y:g?T=b:d.route.Component?T=w.createElement(d.route.Component,null):d.route.element?T=d.route.element:T=u,w.createElement(G9,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:T})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?w.createElement(V9,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}function FT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function W9(e){let t=w.useContext(ac);return Wt(t,FT(e)),t}function Y9(e){let t=w.useContext(ch);return Wt(t,FT(e)),t}function K9(e){let t=w.useContext(Ha);return Wt(t,FT(e)),t}function BT(e){let t=K9(e),n=t.matches[t.matches.length-1];return Wt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Q9(){return BT("useRouteId")}function VN(){let e=w.useContext(LT),t=Y9("useRouteError"),n=BT("useRouteError");return e!==void 0?e:t.errors?.[n]}function X9(){let{router:e}=W9("useNavigate"),t=BT("useNavigate"),n=w.useRef(!1);return $N(()=>{n.current=!0}),w.useCallback(async(o,a={})=>{br(n.current,zN),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var fk={};function GN(e,t,n){!t&&!fk[e]&&(fk[e]=!0,br(!1,n))}var pk={};function hk(e,t){!e&&!pk[t]&&(pk[t]=!0,console.warn(t))}function Z9(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&br(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:w.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&br(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&br(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var J9=["HydrateFallback","hydrateFallbackElement"],eB=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function tB({router:e,flushSync:t}){let[n,r]=w.useState(e.state),[o,a]=w.useState(),[s,c]=w.useState({isTransitioning:!1}),[u,d]=w.useState(),[p,h]=w.useState(),[g,y]=w.useState(),b=w.useRef(new Map),x=w.useCallback((k,{deletedFetchers:R,flushSync:I,viewTransitionOpts:O})=>{k.fetchers.forEach((U,H)=>{U.data!==void 0&&b.current.set(H,U.data)}),R.forEach(U=>b.current.delete(U)),hk(I===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let F=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(hk(O==null||F,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!O||!F){t&&I?t(()=>r(k)):w.startTransition(()=>r(k));return}if(t&&I){t(()=>{p&&(u&&u.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let U=e.window.document.startViewTransition(()=>{t(()=>r(k))});U.finished.finally(()=>{t(()=>{d(void 0),h(void 0),a(void 0),c({isTransitioning:!1})})}),t(()=>h(U));return}p?(u&&u.resolve(),p.skipTransition(),y({state:k,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(k),c({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[e.window,t,p,u]);w.useLayoutEffect(()=>e.subscribe(x),[e,x]),w.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new eB)},[s]),w.useEffect(()=>{if(u&&o&&e.window){let k=o,R=u.promise,I=e.window.document.startViewTransition(async()=>{w.startTransition(()=>r(k)),await R});I.finished.finally(()=>{d(void 0),h(void 0),a(void 0),c({isTransitioning:!1})}),h(I)}},[o,u,e.window]),w.useEffect(()=>{u&&o&&n.location.key===o.location.key&&u.resolve()},[u,p,n.location,o]),w.useEffect(()=>{!s.isTransitioning&&g&&(a(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[s.isTransitioning,g]);let S=w.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:k=>e.navigate(k),push:(k,R,I)=>e.navigate(k,{state:R,preventScrollReset:I?.preventScrollReset}),replace:(k,R,I)=>e.navigate(k,{replace:!0,state:R,preventScrollReset:I?.preventScrollReset})}),[e]),T=e.basename||"/",D=w.useMemo(()=>({router:e,navigator:S,static:!1,basename:T}),[e,S,T]);return w.createElement(w.Fragment,null,w.createElement(ac.Provider,{value:D},w.createElement(ch.Provider,{value:n},w.createElement(HN.Provider,{value:b.current},w.createElement(PT.Provider,{value:s},w.createElement(aB,{basename:T,location:n.location,navigationType:n.historyAction,navigator:S},w.createElement(nB,{routes:e.routes,future:e.future,state:n})))))),null)}var nB=w.memo(rB);function rB({routes:e,future:t,state:n}){return H9(e,void 0,n,t)}function oB(e){return U9(e.context)}function aB({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){Wt(!uh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:s,navigator:o,static:a,future:{}}),[s,o,a]);typeof n=="string"&&(n=Xs(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:g="default"}=n,y=w.useMemo(()=>{let b=va(u,s);return b==null?null:{location:{pathname:b,search:d,hash:p,state:h,key:g},navigationType:r}},[s,u,d,p,h,g,r]);return br(y!=null,`<Router basename="${s}"> is not able to match the URL "${u}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:w.createElement(hi.Provider,{value:c},w.createElement(Ky.Provider,{children:t,value:y}))}var Sg="get",Cg="application/x-www-form-urlencoded";function Qy(e){return e!=null&&typeof e.tagName=="string"}function iB(e){return Qy(e)&&e.tagName.toLowerCase()==="button"}function sB(e){return Qy(e)&&e.tagName.toLowerCase()==="form"}function lB(e){return Qy(e)&&e.tagName.toLowerCase()==="input"}function cB(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uB(e,t){return e.button===0&&(!t||t==="_self")&&!cB(e)}var Wm=null;function dB(){if(Wm===null)try{new FormData(document.createElement("form"),0),Wm=!1}catch{Wm=!0}return Wm}var fB=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function O1(e){return e!=null&&!fB.has(e)?(br(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cg}"`),null):e}function pB(e,t){let n,r,o,a,s;if(sB(e)){let c=e.getAttribute("action");r=c?va(c,t):null,n=e.getAttribute("method")||Sg,o=O1(e.getAttribute("enctype"))||Cg,a=new FormData(e)}else if(iB(e)||lB(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||c.getAttribute("action");if(r=u?va(u,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Sg,o=O1(e.getAttribute("formenctype"))||O1(c.getAttribute("enctype"))||Cg,a=new FormData(c,e),!dB()){let{name:d,type:p,value:h}=e;if(p==="image"){let g=d?`${d}.`:"";a.append(`${g}x`,"0"),a.append(`${g}y`,"0")}else d&&a.append(d,h)}}else{if(Qy(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Sg,r=null,o=Cg,s=e}return a&&o==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:s}}function jT(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function hB(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mB(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function gB(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await hB(a,n);return s.links?s.links():[]}return[]}));return EB(r.flat(1).filter(mB).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function mk(e,t,n,r,o,a){let s=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,c=(u,d)=>n[d].pathname!==u.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==u.params["*"];return a==="assets"?t.filter((u,d)=>s(u,d)||c(u,d)):a==="data"?t.filter((u,d)=>{let p=r.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(s(u,d)||c(u,d))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function yB(e,t,{includeHydrateFallback:n}={}){return bB(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function bB(e){return[...new Set(e)]}function vB(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function EB(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(vB(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var xB=new Set([100,101,204,205]);function TB(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&va(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function qN(){let e=w.useContext(ac);return jT(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function SB(){let e=w.useContext(ch);return jT(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var UT=w.createContext(void 0);UT.displayName="FrameworkContext";function WN(){let e=w.useContext(UT);return jT(e,"You must render this element inside a <HydratedRouter> element"),e}function CB(e,t){let n=w.useContext(UT),[r,o]=w.useState(!1),[a,s]=w.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,g=w.useRef(null);w.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=T=>{T.forEach(D=>{s(D.isIntersecting)})},S=new IntersectionObserver(x,{threshold:.5});return g.current&&S.observe(g.current),()=>{S.disconnect()}}},[e]),w.useEffect(()=>{if(r){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[r]);let y=()=>{o(!0)},b=()=>{o(!1),s(!1)};return n?e!=="intent"?[a,g,{}]:[a,g,{onFocus:xf(c,y),onBlur:xf(u,b),onMouseEnter:xf(d,y),onMouseLeave:xf(p,b),onTouchStart:xf(h,y)}]:[!1,g,{}]}function xf(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _B({page:e,...t}){let{router:n}=qN(),r=w.useMemo(()=>Fs(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(wB,{page:e,matches:r,...t}):null}function AB(e){let{manifest:t,routeModules:n}=WN(),[r,o]=w.useState([]);return w.useEffect(()=>{let a=!1;return gB(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function wB({page:e,matches:t,...n}){let r=ic(),{manifest:o,routeModules:a}=WN(),{basename:s}=qN(),{loaderData:c,matches:u}=SB(),d=w.useMemo(()=>mk(e,t,u,o,r,"data"),[e,t,u,o,r]),p=w.useMemo(()=>mk(e,t,u,o,r,"assets"),[e,t,u,o,r]),h=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,x=!1;if(t.forEach(T=>{let D=o.routes[T.route.id];!D||!D.hasLoader||(!d.some(k=>k.route.id===T.route.id)&&T.route.id in c&&a[T.route.id]?.shouldRevalidate||D.hasClientLoader?x=!0:b.add(T.route.id))}),b.size===0)return[];let S=TB(e,s);return x&&b.size>0&&S.searchParams.set("_routes",t.filter(T=>b.has(T.route.id)).map(T=>T.route.id).join(",")),[S.pathname+S.search]},[s,c,r,o,d,t,e,a]),g=w.useMemo(()=>yB(p,o),[p,o]),y=AB(p);return w.createElement(w.Fragment,null,h.map(b=>w.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),g.map(b=>w.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),y.map(({key:b,link:x})=>w.createElement("link",{key:b,...x})))}function kB(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var YN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{YN&&(window.__reactRouterVersion="7.6.2")}catch{}function DB(e,t){return y9({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:BF({window:t?.window}),hydrationData:RB(),routes:e,mapRouteProperties:Z9,hydrationRouteProperties:J9,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function RB(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:IB(e.errors)}),e}function IB(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Jg(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let s=new a(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}var KN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,QN=w.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,state:c,target:u,to:d,preventScrollReset:p,viewTransition:h,...g},y){let{basename:b}=w.useContext(hi),x=typeof d=="string"&&KN.test(d),S,T=!1;if(typeof d=="string"&&x&&(S=d,YN))try{let H=new URL(window.location.href),C=d.startsWith("//")?new URL(H.protocol+d):new URL(d),M=va(C.pathname,b);C.origin===H.origin&&M!=null?d=M+C.search+C.hash:T=!0}catch{br(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=F9(d,{relative:o}),[k,R,I]=CB(r,g),O=LB(d,{replace:s,state:c,target:u,preventScrollReset:p,relative:o,viewTransition:h});function F(H){t&&t(H),H.defaultPrevented||O(H)}let U=w.createElement("a",{...g,...I,href:S||D,onClick:T||a?t:F,ref:kB(y,R),target:u,"data-discover":!x&&n==="render"?"true":void 0});return k&&!x?w.createElement(w.Fragment,null,U,w.createElement(_B,{page:D})):U});QN.displayName="Link";var OB=w.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:c,children:u,...d},p){let h=dh(s,{relative:d.relative}),g=ic(),y=w.useContext(ch),{navigator:b,basename:x}=w.useContext(hi),S=y!=null&&UB(h)&&c===!0,T=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,D=g.pathname,k=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(D=D.toLowerCase(),k=k?k.toLowerCase():null,T=T.toLowerCase()),k&&x&&(k=va(k,x)||k);const R=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let I=D===T||!o&&D.startsWith(T)&&D.charAt(R)==="/",O=k!=null&&(k===T||!o&&k.startsWith(T)&&k.charAt(T.length)==="/"),F={isActive:I,isPending:O,isTransitioning:S},U=I?t:void 0,H;typeof r=="function"?H=r(F):H=[r,I?"active":null,O?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let C=typeof a=="function"?a(F):a;return w.createElement(QN,{...d,"aria-current":U,className:H,ref:p,style:C,to:s,viewTransition:c},typeof u=="function"?u(F):u)});OB.displayName="NavLink";var NB=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=Sg,action:c,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...g},y)=>{let b=BB(),x=jB(c,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",T=typeof c=="string"&&KN.test(c),D=k=>{if(u&&u(k),k.defaultPrevented)return;k.preventDefault();let R=k.nativeEvent.submitter,I=R?.getAttribute("formmethod")||s;b(R||k.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:o,state:a,relative:d,preventScrollReset:p,viewTransition:h})};return w.createElement("form",{ref:y,method:S,action:x,onSubmit:r?u:D,...g,"data-discover":!T&&e==="render"?"true":void 0})});NB.displayName="Form";function PB(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function XN(e){let t=w.useContext(ac);return Wt(t,PB(e)),t}function LB(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s}={}){let c=MT(),u=ic(),d=dh(e,{relative:a});return w.useCallback(p=>{if(uB(p,t)){p.preventDefault();let h=n!==void 0?n:qs(u)===qs(d);c(e,{replace:h,state:r,preventScrollReset:o,relative:a,viewTransition:s})}},[u,c,d,n,r,t,e,o,a,s])}var MB=0,FB=()=>`__${String(++MB)}__`;function BB(){let{router:e}=XN("useSubmit"),{basename:t}=w.useContext(hi),n=Q9();return w.useCallback(async(r,o={})=>{let{action:a,method:s,encType:c,formData:u,body:d}=pB(r,t);if(o.navigate===!1){let p=o.fetcherKey||FB();await e.fetch(p,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function jB(e,{relative:t}={}){let{basename:n}=w.useContext(hi),r=w.useContext(Ha);Wt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...dh(e||".",{relative:t})},s=ic();if(e==null){a.search=s.search;let c=new URLSearchParams(a.search),u=c.getAll("index");if(u.some(p=>p==="")){c.delete("index"),u.filter(h=>h).forEach(h=>c.append("index",h));let p=c.toString();a.search=p?`?${p}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:li([n,a.pathname])),qs(a)}function UB(e,t={}){let n=w.useContext(PT);Wt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=XN("useViewTransitionState"),o=dh(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=va(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=va(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Zg(o.pathname,s)!=null||Zg(o.pathname,a)!=null}[...xB];var Xy=_N();const Bs=CN(Xy);/**
|
|
63
|
+
* react-router v7.6.2
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Remix Software Inc.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
69
|
+
*
|
|
70
|
+
* @license MIT
|
|
71
|
+
*/function HB(e){return w.createElement(tB,{flushSync:Xy.flushSync,...e})}const zB="modulepreload",$B=function(e){return"/"+e},gk={},G=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");o=s(n.map(d=>{if(d=$B(d),d in gk)return;gk[d]=!0;const p=d.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":zB,p||(g.as="script"),g.crossOrigin="",g.href=d,u&&g.setAttribute("nonce",u),document.head.appendChild(g),p)return new Promise((y,b)=>{g.addEventListener("load",y),g.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return o.then(s=>{for(const c of s||[])c.status==="rejected"&&a(c.reason);return t().catch(a)})};function Xi(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function JE(){return JE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JE.apply(null,arguments)}function VB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function GB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var qB=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(GB(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=VB(o);try{a.insertRule(r,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),qr="-ms-",ty="-moz-",ln="-webkit-",ZN="comm",HT="rule",zT="decl",WB="@import",JN="@keyframes",YB="@layer",KB=Math.abs,Zy=String.fromCharCode,QB=Object.assign;function XB(e,t){return jr(e,0)^45?(((t<<2^jr(e,0))<<2^jr(e,1))<<2^jr(e,2))<<2^jr(e,3):0}function e3(e){return e.trim()}function ZB(e,t){return(e=t.exec(e))?e[0]:e}function cn(e,t,n){return e.replace(t,n)}function ex(e,t){return e.indexOf(t)}function jr(e,t){return e.charCodeAt(t)|0}function Dp(e,t,n){return e.slice(t,n)}function oi(e){return e.length}function $T(e){return e.length}function Ym(e,t){return t.push(e),e}function JB(e,t){return e.map(t).join("")}var Jy=1,Iu=1,t3=0,Eo=0,yr=0,Wu="";function e0(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Jy,column:Iu,length:s,return:""}}function Tf(e,t){return QB(e0("",null,null,"",null,null,0),e,{length:-e.length},t)}function ej(){return yr}function tj(){return yr=Eo>0?jr(Wu,--Eo):0,Iu--,yr===10&&(Iu=1,Jy--),yr}function jo(){return yr=Eo<t3?jr(Wu,Eo++):0,Iu++,yr===10&&(Iu=1,Jy++),yr}function ci(){return jr(Wu,Eo)}function _g(){return Eo}function fh(e,t){return Dp(Wu,e,t)}function Rp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function n3(e){return Jy=Iu=1,t3=oi(Wu=e),Eo=0,[]}function r3(e){return Wu="",e}function Ag(e){return e3(fh(Eo-1,tx(e===91?e+2:e===40?e+1:e)))}function nj(e){for(;(yr=ci())&&yr<33;)jo();return Rp(e)>2||Rp(yr)>3?"":" "}function rj(e,t){for(;--t&&jo()&&!(yr<48||yr>102||yr>57&&yr<65||yr>70&&yr<97););return fh(e,_g()+(t<6&&ci()==32&&jo()==32))}function tx(e){for(;jo();)switch(yr){case e:return Eo;case 34:case 39:e!==34&&e!==39&&tx(yr);break;case 40:e===41&&tx(e);break;case 92:jo();break}return Eo}function oj(e,t){for(;jo()&&e+yr!==57;)if(e+yr===84&&ci()===47)break;return"/*"+fh(t,Eo-1)+"*"+Zy(e===47?e:jo())}function aj(e){for(;!Rp(ci());)jo();return fh(e,Eo)}function ij(e){return r3(wg("",null,null,null,[""],e=n3(e),0,[0],e))}function wg(e,t,n,r,o,a,s,c,u){for(var d=0,p=0,h=s,g=0,y=0,b=0,x=1,S=1,T=1,D=0,k="",R=o,I=a,O=r,F=k;S;)switch(b=D,D=jo()){case 40:if(b!=108&&jr(F,h-1)==58){ex(F+=cn(Ag(D),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:F+=Ag(D);break;case 9:case 10:case 13:case 32:F+=nj(b);break;case 92:F+=rj(_g()-1,7);continue;case 47:switch(ci()){case 42:case 47:Ym(sj(oj(jo(),_g()),t,n),u);break;default:F+="/"}break;case 123*x:c[d++]=oi(F)*T;case 125*x:case 59:case 0:switch(D){case 0:case 125:S=0;case 59+p:T==-1&&(F=cn(F,/\f/g,"")),y>0&&oi(F)-h&&Ym(y>32?bk(F+";",r,n,h-1):bk(cn(F," ","")+";",r,n,h-2),u);break;case 59:F+=";";default:if(Ym(O=yk(F,t,n,d,p,o,c,k,R=[],I=[],h),a),D===123)if(p===0)wg(F,t,O,O,R,a,h,c,I);else switch(g===99&&jr(F,3)===110?100:g){case 100:case 108:case 109:case 115:wg(e,O,O,r&&Ym(yk(e,O,O,0,0,o,c,k,o,R=[],h),I),o,I,h,c,r?R:I);break;default:wg(F,O,O,O,[""],I,0,c,I)}}d=p=y=0,x=T=1,k=F="",h=s;break;case 58:h=1+oi(F),y=b;default:if(x<1){if(D==123)--x;else if(D==125&&x++==0&&tj()==125)continue}switch(F+=Zy(D),D*x){case 38:T=p>0?1:(F+="\f",-1);break;case 44:c[d++]=(oi(F)-1)*T,T=1;break;case 64:ci()===45&&(F+=Ag(jo())),g=ci(),p=h=oi(k=F+=aj(_g())),D++;break;case 45:b===45&&oi(F)==2&&(x=0)}}return a}function yk(e,t,n,r,o,a,s,c,u,d,p){for(var h=o-1,g=o===0?a:[""],y=$T(g),b=0,x=0,S=0;b<r;++b)for(var T=0,D=Dp(e,h+1,h=KB(x=s[b])),k=e;T<y;++T)(k=e3(x>0?g[T]+" "+D:cn(D,/&\f/g,g[T])))&&(u[S++]=k);return e0(e,t,n,o===0?HT:c,u,d,p)}function sj(e,t,n){return e0(e,t,n,ZN,Zy(ej()),Dp(e,2,-2),0)}function bk(e,t,n,r){return e0(e,t,n,zT,Dp(e,0,r),Dp(e,r+1,-1),r)}function vu(e,t){for(var n="",r=$T(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function lj(e,t,n,r){switch(e.type){case YB:if(e.children.length)break;case WB:case zT:return e.return=e.return||e.value;case ZN:return"";case JN:return e.return=e.value+"{"+vu(e.children,r)+"}";case HT:e.value=e.props.join(",")}return oi(n=vu(e.children,r))?e.return=e.value+"{"+n+"}":""}function cj(e){var t=$T(e);return function(n,r,o,a){for(var s="",c=0;c<t;c++)s+=e[c](n,r,o,a)||"";return s}}function uj(e){return function(t){t.root||(t=t.return)&&e(t)}}function o3(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var dj=function(t,n,r){for(var o=0,a=0;o=a,a=ci(),o===38&&a===12&&(n[r]=1),!Rp(a);)jo();return fh(t,Eo)},fj=function(t,n){var r=-1,o=44;do switch(Rp(o)){case 0:o===38&&ci()===12&&(n[r]=1),t[r]+=dj(Eo-1,n,r);break;case 2:t[r]+=Ag(o);break;case 4:if(o===44){t[++r]=ci()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Zy(o)}while(o=jo());return t},pj=function(t,n){return r3(fj(n3(t),n))},vk=new WeakMap,hj=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!vk.get(r))&&!o){vk.set(t,!0);for(var a=[],s=pj(n,a),c=r.props,u=0,d=0;u<s.length;u++)for(var p=0;p<c.length;p++,d++)t.props[d]=a[u]?s[u].replace(/&\f/g,c[p]):c[p]+" "+s[u]}}},mj=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function a3(e,t){switch(XB(e,t)){case 5103:return ln+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ln+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ln+e+ty+e+qr+e+e;case 6828:case 4268:return ln+e+qr+e+e;case 6165:return ln+e+qr+"flex-"+e+e;case 5187:return ln+e+cn(e,/(\w+).+(:[^]+)/,ln+"box-$1$2"+qr+"flex-$1$2")+e;case 5443:return ln+e+qr+"flex-item-"+cn(e,/flex-|-self/,"")+e;case 4675:return ln+e+qr+"flex-line-pack"+cn(e,/align-content|flex-|-self/,"")+e;case 5548:return ln+e+qr+cn(e,"shrink","negative")+e;case 5292:return ln+e+qr+cn(e,"basis","preferred-size")+e;case 6060:return ln+"box-"+cn(e,"-grow","")+ln+e+qr+cn(e,"grow","positive")+e;case 4554:return ln+cn(e,/([^-])(transform)/g,"$1"+ln+"$2")+e;case 6187:return cn(cn(cn(e,/(zoom-|grab)/,ln+"$1"),/(image-set)/,ln+"$1"),e,"")+e;case 5495:case 3959:return cn(e,/(image-set\([^]*)/,ln+"$1$`$1");case 4968:return cn(cn(e,/(.+:)(flex-)?(.*)/,ln+"box-pack:$3"+qr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ln+e+e;case 4095:case 3583:case 4068:case 2532:return cn(e,/(.+)-inline(.+)/,ln+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oi(e)-1-t>6)switch(jr(e,t+1)){case 109:if(jr(e,t+4)!==45)break;case 102:return cn(e,/(.+:)(.+)-([^]+)/,"$1"+ln+"$2-$3$1"+ty+(jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ex(e,"stretch")?a3(cn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jr(e,t+1)!==115)break;case 6444:switch(jr(e,oi(e)-3-(~ex(e,"!important")&&10))){case 107:return cn(e,":",":"+ln)+e;case 101:return cn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ln+(jr(e,14)===45?"inline-":"")+"box$3$1"+ln+"$2$3$1"+qr+"$2box$3")+e}break;case 5936:switch(jr(e,t+11)){case 114:return ln+e+qr+cn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ln+e+qr+cn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ln+e+qr+cn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ln+e+qr+e+e}return e}var gj=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case zT:t.return=a3(t.value,t.length);break;case JN:return vu([Tf(t,{value:cn(t.value,"@","@"+ln)})],o);case HT:if(t.length)return JB(t.props,function(a){switch(ZB(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vu([Tf(t,{props:[cn(a,/:(read-\w+)/,":"+ty+"$1")]})],o);case"::placeholder":return vu([Tf(t,{props:[cn(a,/:(plac\w+)/,":"+ln+"input-$1")]}),Tf(t,{props:[cn(a,/:(plac\w+)/,":"+ty+"$1")]}),Tf(t,{props:[cn(a,/:(plac\w+)/,qr+"input-$1")]})],o)}return""})}},yj=[gj],bj=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||yj,a={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),T=1;T<S.length;T++)a[S[T]]=!0;c.push(x)});var u,d=[hj,mj];{var p,h=[lj,uj(function(x){p.insert(x)})],g=cj(d.concat(o,h)),y=function(S){return vu(ij(S),g)};u=function(S,T,D,k){p=D,y(S?S+"{"+T.styles+"}":T.styles),k&&(b.inserted[T.name]=!0)}}var b={key:n,sheet:new qB({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:u};return b.sheet.hydrate(c),b},N1={exports:{}},un={};/** @license React v16.13.1
|
|
72
|
+
* react-is.production.min.js
|
|
73
|
+
*
|
|
74
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the MIT license found in the
|
|
77
|
+
* LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/var Ek;function vj(){if(Ek)return un;Ek=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function k(I){if(typeof I=="object"&&I!==null){var O=I.$$typeof;switch(O){case t:switch(I=I.type,I){case u:case d:case r:case a:case o:case h:return I;default:switch(I=I&&I.$$typeof,I){case c:case p:case b:case y:case s:return I;default:return O}}case n:return O}}}function R(I){return k(I)===d}return un.AsyncMode=u,un.ConcurrentMode=d,un.ContextConsumer=c,un.ContextProvider=s,un.Element=t,un.ForwardRef=p,un.Fragment=r,un.Lazy=b,un.Memo=y,un.Portal=n,un.Profiler=a,un.StrictMode=o,un.Suspense=h,un.isAsyncMode=function(I){return R(I)||k(I)===u},un.isConcurrentMode=R,un.isContextConsumer=function(I){return k(I)===c},un.isContextProvider=function(I){return k(I)===s},un.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},un.isForwardRef=function(I){return k(I)===p},un.isFragment=function(I){return k(I)===r},un.isLazy=function(I){return k(I)===b},un.isMemo=function(I){return k(I)===y},un.isPortal=function(I){return k(I)===n},un.isProfiler=function(I){return k(I)===a},un.isStrictMode=function(I){return k(I)===o},un.isSuspense=function(I){return k(I)===h},un.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===d||I===a||I===o||I===h||I===g||typeof I=="object"&&I!==null&&(I.$$typeof===b||I.$$typeof===y||I.$$typeof===s||I.$$typeof===c||I.$$typeof===p||I.$$typeof===S||I.$$typeof===T||I.$$typeof===D||I.$$typeof===x)},un.typeOf=k,un}var xk;function Ej(){return xk||(xk=1,N1.exports=vj()),N1.exports}var P1,Tk;function xj(){if(Tk)return P1;Tk=1;var e=Ej(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=o;function s(b){return e.isMemo(b)?o:a[b.$$typeof]||t}var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;function y(b,x,S){if(typeof x!="string"){if(g){var T=h(x);T&&T!==g&&y(b,T,S)}var D=u(x);d&&(D=D.concat(d(x)));for(var k=s(b),R=s(x),I=0;I<D.length;++I){var O=D[I];if(!n[O]&&!(S&&S[O])&&!(R&&R[O])&&!(k&&k[O])){var F=p(x,O);try{c(b,O,F)}catch{}}}}return b}return P1=y,P1}xj();var Tj=!0;function i3(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var VT=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Tj===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},GT=function(t,n,r){VT(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Sj(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_j=/[A-Z]|^ms/g,Aj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s3=function(t){return t.charCodeAt(1)===45},Sk=function(t){return t!=null&&typeof t!="boolean"},L1=o3(function(e){return s3(e)?e:e.replace(_j,"-$&").toLowerCase()}),Ck=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Aj,function(r,o,a){return ai={name:o,styles:a,next:ai},o})}return Cj[t]!==1&&!s3(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ip(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ai={name:o.name,styles:o.styles,next:ai},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)ai={name:s.name,styles:s.styles,next:ai},s=s.next;var c=a.styles+";";return c}return wj(e,t,n)}case"function":{if(e!==void 0){var u=ai,d=n(e);return ai=u,Ip(e,t,d)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function wj(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ip(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?r+=a+"{"+t[c]+"}":Sk(c)&&(r+=L1(a)+":"+Ck(a,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)Sk(s[u])&&(r+=L1(a)+":"+Ck(a,s[u])+";");else{var d=Ip(e,t,s);switch(a){case"animation":case"animationName":{r+=L1(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var _k=/label:\s*([^\s;{]+)\s*(;|$)/g,ai;function ph(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ai=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Ip(n,t,a);else{var s=a;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=Ip(n,t,e[c]),r){var u=a;o+=u[c]}_k.lastIndex=0;for(var d="",p;(p=_k.exec(o))!==null;)d+="-"+p[1];var h=Sj(o)+d;return{name:h,styles:o,next:ai}}var kj=function(t){return t()},l3=YE.useInsertionEffect?YE.useInsertionEffect:!1,c3=l3||kj,Ak=l3||w.useLayoutEffect,u3=w.createContext(typeof HTMLElement<"u"?bj({key:"css"}):null);u3.Provider;var qT=function(t){return w.forwardRef(function(n,r){var o=w.useContext(u3);return t(n,o,r)})},Yu=w.createContext({}),WT={}.hasOwnProperty,nx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dj=function(t,n){var r={};for(var o in n)WT.call(n,o)&&(r[o]=n[o]);return r[nx]=t,r},Rj=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return VT(n,r,o),c3(function(){return GT(n,r,o)}),null},Ij=qT(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[nx],a=[r],s="";typeof e.className=="string"?s=i3(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=ph(a,void 0,w.useContext(Yu));s+=t.key+"-"+c.name;var u={};for(var d in e)WT.call(e,d)&&d!=="css"&&d!==nx&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),w.createElement(w.Fragment,null,w.createElement(Rj,{cache:t,serialized:c,isStringTag:typeof o=="string"}),w.createElement(o,u))}),Oj=Ij,wk=function(t,n){var r=arguments;if(n==null||!WT.call(n,"css"))return w.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=Oj,a[1]=Dj(t,n);for(var s=2;s<o;s++)a[s]=r[s];return w.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(wk||(wk={}));var Nj=qT(function(e,t){var n=e.styles,r=ph([n],void 0,w.useContext(Yu)),o=w.useRef();return Ak(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",a),s.hydrate([u])),o.current=[s,c],function(){s.flush()}},[t]),Ak(function(){var a=o.current,s=a[0],c=a[1];if(c){a[1]=!1;return}if(r.next!==void 0&>(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function YT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ph(t)}function Zs(){var e=YT.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Pj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Lj=o3(function(e){return Pj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Mj=Lj,Fj=function(t){return t!=="theme"},kk=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Mj:Fj},Dk=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Bj=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return VT(n,r,o),c3(function(){return GT(n,r,o)}),null},jj=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var c=Dk(t,n,r),u=c||kk(o),d=!u("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var g=p[0];h.push(g[0]);for(var y=p.length,b=1;b<y;b++)h.push(p[b],g[b])}var x=qT(function(S,T,D){var k=d&&S.as||o,R="",I=[],O=S;if(S.theme==null){O={};for(var F in S)O[F]=S[F];O.theme=w.useContext(Yu)}typeof S.className=="string"?R=i3(T.registered,I,S.className):S.className!=null&&(R=S.className+" ");var U=ph(h.concat(I),T.registered,O);R+=T.key+"-"+U.name,s!==void 0&&(R+=" "+s);var H=d&&c===void 0?kk(k):u,C={};for(var M in S)d&&M==="as"||H(M)&&(C[M]=S[M]);return C.className=R,D&&(C.ref=D),w.createElement(w.Fragment,null,w.createElement(Bj,{cache:T,serialized:U,isStringTag:typeof k=="string"}),w.createElement(k,C))});return x.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=h,x.__emotion_forwardProp=c,Object.defineProperty(x,"toString",{value:function(){return"."+s}}),x.withComponent=function(S,T){var D=e(S,JE({},n,T,{shouldForwardProp:Dk(x,T,!0)}));return D.apply(void 0,h)},x}},Uj=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ny=jj.bind(null);Uj.forEach(function(e){ny[e]=ny(e)});function Hj(e){return e==null||Object.keys(e).length===0}function d3(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Hj(o)?n:o):t;return E.jsx(Nj,{styles:r})}function f3(e,t){return ny(e,t)}function zj(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Rk=[];function Ik(e){return Rk[0]=e,ph(Rk)}var M1={exports:{}},vn={};/**
|
|
79
|
+
* @license React
|
|
80
|
+
* react-is.production.js
|
|
81
|
+
*
|
|
82
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the MIT license found in the
|
|
85
|
+
* LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/var Ok;function $j(){if(Ok)return vn;Ok=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case o:case r:case u:case d:case g:return x;default:switch(x=x&&x.$$typeof,x){case s:case c:case h:case p:return x;case a:return x;default:return S}}case t:return S}}}return vn.ContextConsumer=a,vn.ContextProvider=s,vn.Element=e,vn.ForwardRef=c,vn.Fragment=n,vn.Lazy=h,vn.Memo=p,vn.Portal=t,vn.Profiler=o,vn.StrictMode=r,vn.Suspense=u,vn.SuspenseList=d,vn.isContextConsumer=function(x){return b(x)===a},vn.isContextProvider=function(x){return b(x)===s},vn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},vn.isForwardRef=function(x){return b(x)===c},vn.isFragment=function(x){return b(x)===n},vn.isLazy=function(x){return b(x)===h},vn.isMemo=function(x){return b(x)===p},vn.isPortal=function(x){return b(x)===t},vn.isProfiler=function(x){return b(x)===o},vn.isStrictMode=function(x){return b(x)===r},vn.isSuspense=function(x){return b(x)===u},vn.isSuspenseList=function(x){return b(x)===d},vn.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===u||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===p||x.$$typeof===s||x.$$typeof===a||x.$$typeof===c||x.$$typeof===y||x.getModuleId!==void 0)},vn.typeOf=b,vn}var Nk;function Vj(){return Nk||(Nk=1,M1.exports=$j()),M1.exports}var p3=Vj();function si(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function h3(e){if(w.isValidElement(e)||p3.isValidElementType(e)||!si(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=h3(e[n])}),t}function Nr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return si(e)&&si(t)&&Object.keys(t).forEach(o=>{w.isValidElement(t[o])||p3.isValidElementType(t[o])?r[o]=t[o]:si(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&si(e[o])?r[o]=Nr(e[o],t[o],n):n.clone?r[o]=si(t[o])?h3(t[o]):t[o]:r[o]=t[o]}),r}const Gj=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function qj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Gj(t),s=Object.keys(a);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,y){const b=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):c(g)}function h(g){const y=s.indexOf(g);return y===0?c(s[1]):y===s.length-1?u(s[y]):d(g,s[s.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:c,down:u,between:d,only:p,not:h,unit:n,...o}}function Wj(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function Yj(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Kj(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function Qj(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...c)=>t(e.breakpoints.up(...c),s),a.down=(...c)=>t(e.breakpoints.down(...c),s),a.between=(...c)=>t(e.breakpoints.between(...c),s),a.only=(...c)=>t(e.breakpoints.only(...c),s),a.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const Xj={borderRadius:4};function rp(e,t){return t?Nr(e,t,{clone:!1}):e}const t0={xs:0,sm:600,md:900,lg:1200,xl:1536},Pk={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${t0[e]}px)`},Zj={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:t0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Fa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||Pk;return t.reduce((s,c,u)=>(s[a.up(a.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const a=r.breakpoints||Pk;return Object.keys(t).reduce((s,c)=>{if(Yj(a.keys,c)){const u=Kj(r.containerQueries?r:Zj,c);u&&(s[u]=n(t[c],c))}else if(Object.keys(a.values||t0).includes(c)){const u=a.up(c);s[u]=n(t[c],c)}else{const u=c;s[u]=t[u]}return s},{})}return n(t)}function m3(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function g3(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Jj(e,...t){const n=m3(e),r=[n,...t].reduce((o,a)=>Nr(o,a),{});return g3(Object.keys(n),r)}function eU(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function F1({values:e,breakpoints:t,base:n}){const r=n||eU(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,c,u)=>(Array.isArray(e)?(s[c]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(s[c]=e[c]!=null?e[c]:e[a],a=c):s[c]=e,s),{})}function Fe(e){if(typeof e!="string")throw new Error(Xi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function n0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ry(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=n0(e,n)||r,t&&(o=t(o,r,e)),o}function ar(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=n0(u,r)||{};return Fa(s,c,h=>{let g=ry(d,o,h);return h===g&&typeof h=="string"&&(g=ry(d,o,`${t}${h==="default"?"":Fe(h)}`,h)),n===!1?g:{[n]:g}})};return a.propTypes={},a.filterProps=[t],a}function tU(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const nU={m:"margin",p:"padding"},rU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oU=tU(e=>{if(e.length>2)if(Lk[e])e=Lk[e];else return[e];const[t,n]=e.split(""),r=nU[t],o=rU[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),KT=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],QT=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...KT,...QT];function hh(e,t,n,r){const o=n0(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),c=o[s];return a>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:()=>{}}function r0(e){return hh(e,"spacing",8)}function Wl(e,t){return typeof t=="string"||t==null?t:e(t)}function aU(e,t){return n=>e.reduce((r,o)=>(r[o]=Wl(t,n),r),{})}function iU(e,t,n,r){if(!t.includes(n))return null;const o=oU(n),a=aU(o,r),s=e[n];return Fa(e,s,a)}function y3(e,t){const n=r0(e.theme);return Object.keys(e).map(r=>iU(e,t,r,n)).reduce(rp,{})}function qn(e){return y3(e,KT)}qn.propTypes={};qn.filterProps=KT;function Wn(e){return y3(e,QT)}Wn.propTypes={};Wn.filterProps=QT;function XT(e=8,t=r0({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function o0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?rp(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ua(e){return typeof e!="number"?e:`${e}px solid`}function Sa(e,t){return ar({prop:e,themeKey:"borders",transform:t})}const sU=Sa("border",ua),lU=Sa("borderTop",ua),cU=Sa("borderRight",ua),uU=Sa("borderBottom",ua),dU=Sa("borderLeft",ua),fU=Sa("borderColor"),pU=Sa("borderTopColor"),hU=Sa("borderRightColor"),mU=Sa("borderBottomColor"),gU=Sa("borderLeftColor"),yU=Sa("outline",ua),bU=Sa("outlineColor"),a0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=hh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Wl(t,r)});return Fa(e,e.borderRadius,n)}return null};a0.propTypes={};a0.filterProps=["borderRadius"];o0(sU,lU,cU,uU,dU,fU,pU,hU,mU,gU,a0,yU,bU);const i0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=hh(e.theme,"spacing",8),n=r=>({gap:Wl(t,r)});return Fa(e,e.gap,n)}return null};i0.propTypes={};i0.filterProps=["gap"];const s0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=hh(e.theme,"spacing",8),n=r=>({columnGap:Wl(t,r)});return Fa(e,e.columnGap,n)}return null};s0.propTypes={};s0.filterProps=["columnGap"];const l0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=hh(e.theme,"spacing",8),n=r=>({rowGap:Wl(t,r)});return Fa(e,e.rowGap,n)}return null};l0.propTypes={};l0.filterProps=["rowGap"];const vU=ar({prop:"gridColumn"}),EU=ar({prop:"gridRow"}),xU=ar({prop:"gridAutoFlow"}),TU=ar({prop:"gridAutoColumns"}),SU=ar({prop:"gridAutoRows"}),CU=ar({prop:"gridTemplateColumns"}),_U=ar({prop:"gridTemplateRows"}),AU=ar({prop:"gridTemplateAreas"}),wU=ar({prop:"gridArea"});o0(i0,s0,l0,vU,EU,xU,TU,SU,CU,_U,AU,wU);function Eu(e,t){return t==="grey"?t:e}const kU=ar({prop:"color",themeKey:"palette",transform:Eu}),DU=ar({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Eu}),RU=ar({prop:"backgroundColor",themeKey:"palette",transform:Eu});o0(kU,DU,RU);function Mo(e){return e<=1&&e!==0?`${e*100}%`:e}const IU=ar({prop:"width",transform:Mo}),ZT=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||t0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Mo(n)}};return Fa(e,e.maxWidth,t)}return null};ZT.filterProps=["maxWidth"];const OU=ar({prop:"minWidth",transform:Mo}),NU=ar({prop:"height",transform:Mo}),PU=ar({prop:"maxHeight",transform:Mo}),LU=ar({prop:"minHeight",transform:Mo});ar({prop:"size",cssProperty:"width",transform:Mo});ar({prop:"size",cssProperty:"height",transform:Mo});const MU=ar({prop:"boxSizing"});o0(IU,ZT,OU,NU,PU,LU,MU);const mh={border:{themeKey:"borders",transform:ua},borderTop:{themeKey:"borders",transform:ua},borderRight:{themeKey:"borders",transform:ua},borderBottom:{themeKey:"borders",transform:ua},borderLeft:{themeKey:"borders",transform:ua},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ua},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:a0},color:{themeKey:"palette",transform:Eu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Eu},backgroundColor:{themeKey:"palette",transform:Eu},p:{style:Wn},pt:{style:Wn},pr:{style:Wn},pb:{style:Wn},pl:{style:Wn},px:{style:Wn},py:{style:Wn},padding:{style:Wn},paddingTop:{style:Wn},paddingRight:{style:Wn},paddingBottom:{style:Wn},paddingLeft:{style:Wn},paddingX:{style:Wn},paddingY:{style:Wn},paddingInline:{style:Wn},paddingInlineStart:{style:Wn},paddingInlineEnd:{style:Wn},paddingBlock:{style:Wn},paddingBlockStart:{style:Wn},paddingBlockEnd:{style:Wn},m:{style:qn},mt:{style:qn},mr:{style:qn},mb:{style:qn},ml:{style:qn},mx:{style:qn},my:{style:qn},margin:{style:qn},marginTop:{style:qn},marginRight:{style:qn},marginBottom:{style:qn},marginLeft:{style:qn},marginX:{style:qn},marginY:{style:qn},marginInline:{style:qn},marginInlineStart:{style:qn},marginInlineEnd:{style:qn},marginBlock:{style:qn},marginBlockStart:{style:qn},marginBlockEnd:{style:qn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:i0},rowGap:{style:l0},columnGap:{style:s0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mo},maxWidth:{style:ZT},minWidth:{transform:Mo},height:{transform:Mo},maxHeight:{transform:Mo},minHeight:{transform:Mo},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function FU(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function BU(e,t){return typeof e=="function"?e(t):e}function jU(){function e(n,r,o,a){const s={[n]:r,theme:o},c=a[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=n0(o,d)||{};return h?h(s):Fa(s,r,b=>{let x=ry(g,p,b);return b===x&&typeof b=="string"&&(x=ry(g,p,`${n}${b==="default"?"":Fe(b)}`,b)),u===!1?x:{[u]:x}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??mh;function s(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=m3(o.breakpoints),p=Object.keys(d);let h=d;return Object.keys(u).forEach(g=>{const y=BU(u[g],o);if(y!=null)if(typeof y=="object")if(a[g])h=rp(h,e(g,y,o,a));else{const b=Fa({theme:o},y,x=>({[g]:x}));FU(b,y)?h[g]=t({sx:y,theme:o}):h=rp(h,b)}else h=rp(h,e(g,y,o,a))}),Wj(o,g3(p,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const Ws=jU();Ws.filterProps=["sx"];function UU(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Ku(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,c=qj(n),u=XT(o);let d=Nr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Xj,...a}},s);return d=Qj(d),d.applyStyles=UU,d=t.reduce((p,h)=>Nr(p,h),d),d.unstable_sxConfig={...mh,...s?.unstable_sxConfig},d.unstable_sx=function(h){return Ws({sx:h,theme:this})},d}function HU(e){return Object.keys(e).length===0}function b3(e=null){const t=w.useContext(Yu);return!t||HU(t)?e:t}const zU=Ku();function Qu(e=zU){return b3(e)}function $U({styles:e,themeId:t,defaultTheme:n={}}){const r=Qu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return E.jsx(d3,{styles:o})}const VU=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??mh;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function c0(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=VU(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const c=t(...s);return si(c)?{...r,...c}:r}:a={...r,...t},{...o,sx:a}}const Mk=e=>e,GU=()=>{let e=Mk;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Mk}}},JT=GU();function v3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=v3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function We(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=v3(e))&&(r&&(r+=" "),r+=t);return r}function E3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=f3("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Ws);return w.forwardRef(function(u,d){const p=Qu(n),{className:h,component:g="div",...y}=c0(u);return E.jsx(a,{as:g,ref:d,className:We(h,o?o(r):r),theme:t&&p[t]||p,...y})})}const qU={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ct(e,t,n="Mui"){const r=qU[t];return r?`${n}-${r}`:`${JT.generate(e)}-${t}`}function ut(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ct(e,o,n)}),r}const WU=ut("MuiBox",["root"]),x3=E3({defaultClassName:WU.root,generateClassName:JT.generate});function T3(e){const{variants:t,...n}=e,r={variants:t,style:Ik(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ik(o.style))}),r}const YU=Ku();function kg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function KU(e){return e?(t,n)=>n[e]:null}function QU(e,t,n){e.theme=ZU(e.theme)?n:e.theme[t]||e.theme}function Dg(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Dg(e,r));if(Array.isArray(n?.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...a}=n;r=a}return S3(e,n.variants,[r])}return n?.isProcessed?n.style:n}function S3(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(a.style(r))):n.push(a.style)}return n}function C3(e={}){const{themeId:t,defaultTheme:n=YU,rootShouldForwardProp:r=kg,slotShouldForwardProp:o=kg}=e;function a(c){QU(c,t,n)}return(c,u={})=>{zj(c,I=>I.filter(O=>O!==Ws));const{name:d,slot:p,skipVariantsResolver:h,skipSx:g,overridesResolver:y=KU(eH(p)),...b}=u,x=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,S=g||!1;let T=kg;p==="Root"||p==="root"?T=r:p?T=o:JU(c)&&(T=void 0);const D=f3(c,{shouldForwardProp:T,label:XU(),...b}),k=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(F){return Dg(F,I)};if(si(I)){const O=T3(I);return O.variants?function(U){return Dg(U,O)}:O.style}return I},R=(...I)=>{const O=[],F=I.map(k),U=[];if(O.push(a),d&&y&&U.push(function(V){const W=V.theme.components?.[d]?.styleOverrides;if(!W)return null;const Y={};for(const B in W)Y[B]=Dg(V,W[B]);return y(V,Y)}),d&&!x&&U.push(function(V){const W=V.theme?.components?.[d]?.variants;return W?S3(V,W):null}),S||U.push(Ws),Array.isArray(F[0])){const M=F.shift(),V=new Array(O.length).fill(""),z=new Array(U.length).fill("");let W;W=[...V,...M,...z],W.raw=[...V,...M.raw,...z],O.unshift(W)}const H=[...O,...F,...U],C=D(...H);return c.muiName&&(C.muiName=c.muiName),C};return D.withConfig&&(R.withConfig=D.withConfig),R}}function XU(e,t){return void 0}function ZU(e){for(const t in e)return!1;return!0}function JU(e){return typeof e=="string"&&e.charCodeAt(0)>96}function eH(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const eS=C3();function Op(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],s=t[o];if(!s)n[o]=a||{};else if(!a)n[o]=s;else{n[o]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;n[o][u]=Op(a[u],s[u])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function tH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Op(t.components[n].defaultProps,r)}function tS({props:e,name:t,defaultTheme:n,themeId:r}){let o=Qu(n);return r&&(o=o[r]||o),tH({theme:o,name:t,props:e})}const Ea=typeof window<"u"?w.useLayoutEffect:w.useEffect;function nH(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function nS(e,t=0,n=1){return nH(e,t,n)}function rH(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ys(e){if(e.type)return e;if(e.charAt(0)==="#")return Ys(rH(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Xi(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Xi(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const oH=e=>{const t=Ys(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Yf=(e,t)=>{try{return oH(e)}catch{return e}};function u0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function _3(e){e=Ys(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),u0({type:c,values:u})}function rx(e){e=Ys(e);let t=e.type==="hsl"||e.type==="hsla"?Ys(_3(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function aH(e,t){const n=rx(e),r=rx(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ft(e,t){return e=Ys(e),t=nS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,u0(e)}function Km(e,t,n){try{return Ft(e,t)}catch{return e}}function d0(e,t){if(e=Ys(e),t=nS(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u0(e)}function Sn(e,t,n){try{return d0(e,t)}catch{return e}}function f0(e,t){if(e=Ys(e),t=nS(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u0(e)}function Cn(e,t,n){try{return f0(e,t)}catch{return e}}function ox(e,t=.15){return rx(e)>.5?d0(e,t):f0(e,t)}function Qm(e,t,n){try{return ox(e,t)}catch{return e}}const A3=w.createContext(null);function rS(){return w.useContext(A3)}const iH=typeof Symbol=="function"&&Symbol.for,sH=iH?Symbol.for("mui.nested"):"__THEME_NESTED__";function lH(e,t){return typeof t=="function"?t(e):{...e,...t}}function cH(e){const{children:t,theme:n}=e,r=rS(),o=w.useMemo(()=>{const a=r===null?{...n}:lH(r,n);return a!=null&&(a[sH]=r!==null),a},[n,r]);return E.jsx(A3.Provider,{value:o,children:t})}const w3=w.createContext();function uH({value:e,...t}){return E.jsx(w3.Provider,{value:e??!0,...t})}const gh=()=>w.useContext(w3)??!1,k3=w.createContext(void 0);function dH({value:e,children:t}){return E.jsx(k3.Provider,{value:e,children:t})}function fH(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Op(o.defaultProps,r):!o.styleOverrides&&!o.variants?Op(o,r):r}function pH({props:e,name:t}){const n=w.useContext(k3);return fH({props:e,name:t,theme:{components:n}})}const Fk={};function Bk(e,t,n,r=!1){return w.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),s=e?{...t,[e]:a}:a;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function D3(e){const{children:t,theme:n,themeId:r}=e,o=b3(Fk),a=rS()||Fk,s=Bk(r,o,n),c=Bk(r,a,n,!0),u=(r?s[r]:s).direction==="rtl";return E.jsx(cH,{theme:c,children:E.jsx(Yu.Provider,{value:s,children:E.jsx(uH,{value:u,children:E.jsx(dH,{value:r?s[r].components:s.components,children:t})})})})}const jk={theme:void 0};function R3(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(jk.theme=o.theme,a=T3(e(jk)),t=a,n=o.theme),a}}const oS="mode",aS="color-scheme",hH="data-color-scheme";function mH(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=oS,colorSchemeStorageKey:a=aS,attribute:s=hH,colorSchemeNode:c="document.documentElement",nonce:u}=e||{};let d="",p=s;if(s==="class"&&(p=".%s"),s==="data"&&(p="[data-%s]"),p.startsWith(".")){const g=p.substring(1);d+=`${c}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
|
|
87
|
+
${c}.classList.add('${g}'.replace('%s', colorScheme));`}const h=p.match(/\[([^\]]+)\]/);if(h){const[g,y]=h[1].split("=");y||(d+=`${c}.removeAttribute('${g}'.replace('%s', light));
|
|
88
|
+
${c}.removeAttribute('${g}'.replace('%s', dark));`),d+=`
|
|
89
|
+
${c}.setAttribute('${g}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else d+=`${c}.setAttribute('${p}', colorScheme);`;return E.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
90
|
+
try {
|
|
91
|
+
let colorScheme = '';
|
|
92
|
+
const mode = localStorage.getItem('${o}') || '${t}';
|
|
93
|
+
const dark = localStorage.getItem('${a}-dark') || '${r}';
|
|
94
|
+
const light = localStorage.getItem('${a}-light') || '${n}';
|
|
95
|
+
if (mode === 'system') {
|
|
96
|
+
// handle system mode
|
|
97
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
98
|
+
if (mql.matches) {
|
|
99
|
+
colorScheme = dark
|
|
100
|
+
} else {
|
|
101
|
+
colorScheme = light
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (mode === 'light') {
|
|
105
|
+
colorScheme = light;
|
|
106
|
+
}
|
|
107
|
+
if (mode === 'dark') {
|
|
108
|
+
colorScheme = dark;
|
|
109
|
+
}
|
|
110
|
+
if (colorScheme) {
|
|
111
|
+
${d}
|
|
112
|
+
}
|
|
113
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function gH(){}const yH=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return gH;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function B1(){}function Uk(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function I3(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function bH(e){return I3(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function vH(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=oS,colorSchemeStorageKey:s=aS,storageWindow:c=typeof window>"u"?void 0:window,storageManager:u=yH,noSsr:d=!1}=e,p=o.join(","),h=o.length>1,g=w.useMemo(()=>u?.({key:a,storageWindow:c}),[u,a,c]),y=w.useMemo(()=>u?.({key:`${s}-light`,storageWindow:c}),[u,s,c]),b=w.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:c}),[u,s,c]),[x,S]=w.useState(()=>{const U=g?.get(t)||t,H=y?.get(n)||n,C=b?.get(r)||r;return{mode:U,systemMode:Uk(U),lightColorScheme:H,darkColorScheme:C}}),[T,D]=w.useState(d||!h);w.useEffect(()=>{D(!0)},[]);const k=bH(x),R=w.useCallback(U=>{S(H=>{if(U===H.mode)return H;const C=U??t;return g?.set(C),{...H,mode:C,systemMode:Uk(C)}})},[g,t]),I=w.useCallback(U=>{U?typeof U=="string"?U&&!p.includes(U)?console.error(`\`${U}\` does not exist in \`theme.colorSchemes\`.`):S(H=>{const C={...H};return I3(H,M=>{M==="light"&&(y?.set(U),C.lightColorScheme=U),M==="dark"&&(b?.set(U),C.darkColorScheme=U)}),C}):S(H=>{const C={...H},M=U.light===null?n:U.light,V=U.dark===null?r:U.dark;return M&&(p.includes(M)?(C.lightColorScheme=M,y?.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),V&&(p.includes(V)?(C.darkColorScheme=V,b?.set(V)):console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`)),C}):S(H=>(y?.set(n),b?.set(r),{...H,lightColorScheme:n,darkColorScheme:r}))},[p,y,b,n,r]),O=w.useCallback(U=>{x.mode==="system"&&S(H=>{const C=U?.matches?"dark":"light";return H.systemMode===C?H:{...H,systemMode:C}})},[x.mode]),F=w.useRef(O);return F.current=O,w.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const U=(...C)=>F.current(...C),H=window.matchMedia("(prefers-color-scheme: dark)");return H.addListener(U),U(H),()=>{H.removeListener(U)}},[h]),w.useEffect(()=>{if(h){const U=g?.subscribe(M=>{(!M||["light","dark","system"].includes(M))&&R(M||t)})||B1,H=y?.subscribe(M=>{(!M||p.match(M))&&I({light:M})})||B1,C=b?.subscribe(M=>{(!M||p.match(M))&&I({dark:M})})||B1;return()=>{U(),H(),C()}}},[I,R,p,t,c,h,g,y,b]),{...x,mode:T?x.mode:void 0,systemMode:T?x.systemMode:void 0,colorScheme:T?k:void 0,setMode:R,setColorScheme:I}}const EH="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function xH(e){const{themeId:t,theme:n={},modeStorageKey:r=oS,colorSchemeStorageKey:o=aS,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:c}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=w.createContext(void 0),p=()=>w.useContext(d)||u,h={},g={};function y(T){const{children:D,theme:k,modeStorageKey:R=r,colorSchemeStorageKey:I=o,disableTransitionOnChange:O=a,storageManager:F,storageWindow:U=typeof window>"u"?void 0:window,documentNode:H=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:M=!1,disableStyleSheetGeneration:V=!1,defaultMode:z="system",forceThemeRerender:W=!1,noSsr:Y}=T,B=w.useRef(!1),J=rS(),ae=w.useContext(d),ne=!!ae&&!M,N=w.useMemo(()=>k||(typeof n=="function"?n():n),[k]),K=N[t],ee=K||N,{colorSchemes:P=h,components:re=g,cssVarPrefix:me}=ee,oe=Object.keys(P).filter(ue=>!!P[ue]).join(","),ve=w.useMemo(()=>oe.split(","),[oe]),ye=typeof s=="string"?s:s.light,Ve=typeof s=="string"?s:s.dark,Le=P[ye]&&P[Ve]?z:P[ee.defaultColorScheme]?.palette?.mode||ee.palette?.mode,{mode:Oe,setMode:Qe,systemMode:nt,lightColorScheme:De,darkColorScheme:gt,colorScheme:Ct,setColorScheme:Be}=vH({supportedColorSchemes:ve,defaultLightColorScheme:ye,defaultDarkColorScheme:Ve,modeStorageKey:R,colorSchemeStorageKey:I,defaultMode:Le,storageManager:F,storageWindow:U,noSsr:Y});let mt=Oe,it=Ct;ne&&(mt=ae.mode,it=ae.colorScheme);let lt=it||ee.defaultColorScheme;ee.vars&&!W&&(lt=ee.defaultColorScheme);const je=w.useMemo(()=>{const ue=ee.generateThemeVars?.()||ee.vars,ge={...ee,components:re,colorSchemes:P,cssVarPrefix:me,vars:ue};if(typeof ge.generateSpacing=="function"&&(ge.spacing=ge.generateSpacing()),lt){const Ue=P[lt];Ue&&typeof Ue=="object"&&Object.keys(Ue).forEach(Xe=>{Ue[Xe]&&typeof Ue[Xe]=="object"?ge[Xe]={...ge[Xe],...Ue[Xe]}:ge[Xe]=Ue[Xe]})}return c?c(ge):ge},[ee,lt,re,P,me]),Pe=ee.colorSchemeSelector;Ea(()=>{if(it&&C&&Pe&&Pe!=="media"){const ue=Pe;let ge=Pe;if(ue==="class"&&(ge=".%s"),ue==="data"&&(ge="[data-%s]"),ue?.startsWith("data-")&&!ue.includes("%s")&&(ge=`[${ue}="%s"]`),ge.startsWith("."))C.classList.remove(...ve.map(Ue=>ge.substring(1).replace("%s",Ue))),C.classList.add(ge.substring(1).replace("%s",it));else{const Ue=ge.replace("%s",it).match(/\[([^\]]+)\]/);if(Ue){const[Xe,Et]=Ue[1].split("=");Et||ve.forEach(Je=>{C.removeAttribute(Xe.replace(it,Je))}),C.setAttribute(Xe,Et?Et.replace(/"|'/g,""):"")}else C.setAttribute(ge,it)}}},[it,Pe,C,ve]),w.useEffect(()=>{let ue;if(O&&B.current&&H){const ge=H.createElement("style");ge.appendChild(H.createTextNode(EH)),H.head.appendChild(ge),window.getComputedStyle(H.body),ue=setTimeout(()=>{H.head.removeChild(ge)},1)}return()=>{clearTimeout(ue)}},[it,O,H]),w.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const Jt=w.useMemo(()=>({allColorSchemes:ve,colorScheme:it,darkColorScheme:gt,lightColorScheme:De,mode:mt,setColorScheme:Be,setMode:Qe,systemMode:nt}),[ve,it,gt,De,mt,Be,Qe,nt,je.colorSchemeSelector]);let Mt=!0;(V||ee.cssVariables===!1||ne&&J?.cssVarPrefix===me)&&(Mt=!1);const _t=E.jsxs(w.Fragment,{children:[E.jsx(D3,{themeId:K?t:void 0,theme:je,children:D}),Mt&&E.jsx(d3,{styles:je.generateStyleSheets?.()||[]})]});return ne?_t:E.jsx(d.Provider,{value:Jt,children:_t})}const b=typeof s=="string"?s:s.light,x=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:p,getInitColorSchemeScript:T=>mH({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:x,modeStorageKey:r,...T})}}function O3(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Hk=(e,t,n,r=[])=>{let o=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},TH=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...a,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,c],Array.isArray(u)?[...s,c]:s):t([...a,c],u,s))})}r(e)},SH=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function j1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return TH(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=SH(c,u);Object.assign(o,{[p]:h}),Hk(a,c,`var(${p})`,d),Hk(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function CH(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=j1(u,t);let g=h;const y={},{[c]:b,...x}=a;if(Object.entries(x||{}).forEach(([k,R])=>{const{vars:I,css:O,varsWithDefaults:F}=j1(R,t);g=Nr(g,F),y[k]={css:O,vars:I}}),b){const{css:k,vars:R,varsWithDefaults:I}=j1(b,t);g=Nr(g,I),y[c]={css:k,vars:R}}function S(k,R){let I=o;if(o==="class"&&(I=".%s"),o==="data"&&(I="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(I=`[${o}="%s"]`),k){if(I==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${a[k]?.palette?.mode||k})`]:{":root":R}};if(I)return e.defaultColorScheme===k?`:root, ${I.replace("%s",String(k))}`:I.replace("%s",String(k))}return":root"}return{vars:g,generateThemeVars:()=>{let k={...d};return Object.entries(y).forEach(([,{vars:R}])=>{k=Nr(k,R)}),k},generateStyleSheets:()=>{const k=[],R=e.defaultColorScheme||"light";function I(U,H){Object.keys(H).length&&k.push(typeof U=="string"?{[U]:{...H}}:U)}I(n(void 0,{...p}),p);const{[R]:O,...F}=y;if(O){const{css:U}=O,H=a[R]?.palette?.mode,C=!r&&H?{colorScheme:H,...U}:{...U};I(n(R,{...C}),C)}return Object.entries(F).forEach(([U,{css:H}])=>{const C=a[U]?.palette?.mode,M=!r&&C?{colorScheme:C,...H}:{...H};I(n(U,{...M}),M)}),k}}}function _H(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function dt(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",c=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}const AH=Ku(),wH=eS("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Fe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),kH=e=>tS({props:e,name:"MuiContainer",defaultTheme:AH}),DH=(e,t)=>{const n=u=>ct(t,u),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,c={root:["root",s&&`maxWidth${Fe(String(s))}`,o&&"fixed",a&&"disableGutters"]};return dt(c,n,r)};function RH(e={}){const{createStyledComponent:t=wH,useThemeProps:n=kH,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:c})=>c.fixed&&Object.keys(s.breakpoints.values).reduce((u,d)=>{const p=d,h=s.breakpoints.values[p];return h!==0&&(u[s.breakpoints.up(p)]={maxWidth:`${h}${s.breakpoints.unit}`}),u},{}),({theme:s,ownerState:c})=>({...c.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[s.breakpoints.up(c.maxWidth)]:{maxWidth:`${s.breakpoints.values[c.maxWidth]}${s.breakpoints.unit}`}}}));return w.forwardRef(function(c,u){const d=n(c),{className:p,component:h="div",disableGutters:g=!1,fixed:y=!1,maxWidth:b="lg",classes:x,...S}=d,T={...d,component:h,disableGutters:g,fixed:y,maxWidth:b},D=DH(T,r);return E.jsx(o,{as:h,ownerState:T,className:We(D.root,p),ref:u,...S})})}function op(e,t){return w.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const IH=(e,t)=>e.filter(n=>t.includes(n)),Xu=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{n((s,c)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,c):s[e.up(e.keys[a])]=c)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:IH(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((c,u)=>{r===a?Object.assign(c,u):c[e.up(a)]=u},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function oy(e){return`--Grid-${e}Spacing`}function p0(e){return`--Grid-parent-${e}Spacing`}const zk="--Grid-columns",xu="--Grid-parent-columns",OH=({theme:e,ownerState:t})=>{const n={};return Xu(e.breakpoints,t.size,(r,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${xu}) - (var(${xu}) - ${o}) * (var(${p0("column")}) / var(${xu})))`}),r(n,a)}),n},NH=({theme:e,ownerState:t})=>{const n={};return Xu(e.breakpoints,t.offset,(r,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${xu}) + var(${p0("column")}) * ${o} / var(${xu}))`}),r(n,a)}),n},PH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[zk]:12};return Xu(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[zk]:a,"> *":{[xu]:a}})}),n},LH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Xu(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[oy("row")]:a,"> *":{[p0("row")]:a}})}),n},MH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Xu(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[oy("column")]:a,"> *":{[p0("column")]:a}})}),n},FH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Xu(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},BH=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${oy("row")}) var(${oy("column")})`}}),jH=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},UH=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,a])=>{n(a)&&r.push(`spacing-${o}-${String(a)}`)}),r}return[]},HH=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function zH(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const $H=Ku(),VH=eS("div",{name:"MuiGrid",slot:"Root"});function GH(e){return tS({props:e,name:"MuiGrid",defaultTheme:$H})}function qH(e={}){const{createStyledComponent:t=VH,useThemeProps:n=GH,useTheme:r=Qu,componentName:o="MuiGrid"}=e,a=(d,p)=>{const{container:h,direction:g,spacing:y,wrap:b,size:x}=d,S={root:["root",h&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...HH(g),...jH(x),...h?UH(y,p.breakpoints.keys[0]):[]]};return dt(S,T=>ct(o,T),{})};function s(d,p,h=()=>!0){const g={};return d===null||(Array.isArray(d)?d.forEach((y,b)=>{y!==null&&h(y)&&p.keys[b]&&(g[p.keys[b]]=y)}):typeof d=="object"?Object.keys(d).forEach(y=>{const b=d[y];b!=null&&h(b)&&(g[y]=b)}):g[p.keys[0]]=d),g}const c=t(PH,MH,LH,OH,FH,BH,NH),u=w.forwardRef(function(p,h){const g=r(),y=n(p),b=c0(y);zH(b,g.breakpoints);const{className:x,children:S,columns:T=12,container:D=!1,component:k="div",direction:R="row",wrap:I="wrap",size:O={},offset:F={},spacing:U=0,rowSpacing:H=U,columnSpacing:C=U,unstable_level:M=0,...V}=b,z=s(O,g.breakpoints,K=>K!==!1),W=s(F,g.breakpoints),Y=p.columns??(M?void 0:T),B=p.spacing??(M?void 0:U),J=p.rowSpacing??p.spacing??(M?void 0:H),ae=p.columnSpacing??p.spacing??(M?void 0:C),ne={...b,level:M,columns:Y,container:D,direction:R,wrap:I,spacing:B,rowSpacing:J,columnSpacing:ae,size:z,offset:W},N=a(ne,g);return E.jsx(c,{ref:h,as:k,ownerState:ne,className:We(N.root,x),...V,children:w.Children.map(S,K=>w.isValidElement(K)&&op(K,["Grid"])&&D&&K.props.container?w.cloneElement(K,{unstable_level:K.props?.unstable_level??M+1}):K)})});return u.muiName="Grid",u}const WH=Ku(),YH=eS("div",{name:"MuiStack",slot:"Root"});function KH(e){return tS({props:e,name:"MuiStack",defaultTheme:WH})}function QH(e,t){const n=w.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a<n.length-1&&r.push(w.cloneElement(t,{key:`separator-${a}`})),r),[])}const XH=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ZH=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Fa({theme:t},F1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=r0(t),o=Object.keys(t.breakpoints.values).reduce((u,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(u[d]=!0),u),{}),a=F1({values:e.direction,base:o}),s=F1({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,d,p)=>{if(!a[u]){const g=d>0?a[p[d-1]]:"column";a[u]=g}}),n=Nr(n,Fa({theme:t},s,(u,d)=>e.useFlexGap?{gap:Wl(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${XH(d?a[d]:e.direction)}`]:Wl(r,u)}}))}return n=Jj(t.breakpoints,n),n};function iS(e={}){const{createStyledComponent:t=YH,useThemeProps:n=KH,componentName:r="MuiStack"}=e,o=()=>dt({root:["root"]},u=>ct(r,u),{}),a=t(ZH);return w.forwardRef(function(u,d){const p=n(u),h=c0(p),{component:g="div",direction:y="column",spacing:b=0,divider:x,children:S,className:T,useFlexGap:D=!1,...k}=h,R={direction:y,spacing:b,useFlexGap:D},I=o();return E.jsx(a,{as:g,ownerState:R,ref:d,className:We(I.root,T),...k,children:x?QH(S,x):S})})}const $k=iS(),Np={black:"#000",white:"#fff"},Gc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},qc={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Wc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Kc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Sf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},JH={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ui="$$material";function N3(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Np.white,default:Np.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ez=N3();function P3(){return{text:{primary:Np.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Np.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Vk=P3();function Gk(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=f0(e.main,o):t==="dark"&&(e.dark=d0(e.main,a)))}function tz(e="light"){return e==="dark"?{main:Wc[200],light:Wc[50],dark:Wc[400]}:{main:Wc[700],light:Wc[400],dark:Wc[800]}}function nz(e="light"){return e==="dark"?{main:qc[200],light:qc[50],dark:qc[400]}:{main:qc[500],light:qc[300],dark:qc[700]}}function rz(e="light"){return e==="dark"?{main:Gc[500],light:Gc[300],dark:Gc[700]}:{main:Gc[700],light:Gc[400],dark:Gc[800]}}function oz(e="light"){return e==="dark"?{main:Yc[400],light:Yc[300],dark:Yc[700]}:{main:Yc[700],light:Yc[500],dark:Yc[900]}}function az(e="light"){return e==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:Kc[800],light:Kc[500],dark:Kc[900]}}function iz(e="light"){return e==="dark"?{main:Sf[400],light:Sf[300],dark:Sf[700]}:{main:"#ed6c02",light:Sf[500],dark:Sf[900]}}function sS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||tz(t),s=e.secondary||nz(t),c=e.error||rz(t),u=e.info||oz(t),d=e.success||az(t),p=e.warning||iz(t);function h(x){return aH(x,Vk.text.primary)>=n?Vk.text.primary:ez.text.primary}const g=({color:x,name:S,mainShade:T=500,lightShade:D=300,darkShade:k=700})=>{if(x={...x},!x.main&&x[T]&&(x.main=x[T]),!x.hasOwnProperty("main"))throw new Error(Xi(11,S?` (${S})`:"",T));if(typeof x.main!="string")throw new Error(Xi(12,S?` (${S})`:"",JSON.stringify(x.main)));return Gk(x,"light",D,r),Gk(x,"dark",k,r),x.contrastText||(x.contrastText=h(x.main)),x};let y;return t==="light"?y=N3():t==="dark"&&(y=P3()),Nr({common:{...Np},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:JH,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},o)}function sz(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function lz(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function cz(e){return Math.round(e*1e5)/1e5}const qk={textTransform:"uppercase"},Wk='"Roboto", "Helvetica", "Arial", sans-serif';function L3(e,t){const{fontFamily:n=Wk,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,g=r/14,y=p||(S=>`${S/u*g}rem`),b=(S,T,D,k,R)=>({fontFamily:n,fontWeight:S,fontSize:y(T),lineHeight:D,...n===Wk?{letterSpacing:`${cz(k/T)}em`}:{},...R,...d}),x={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,qk),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,qk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nr({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c,...x},h,{clone:!1})}const uz=.2,dz=.14,fz=.12;function Mn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${uz})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${dz})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fz})`].join(",")}const pz=["none",Mn(0,2,1,-1,0,1,1,0,0,1,3,0),Mn(0,3,1,-2,0,2,2,0,0,1,5,0),Mn(0,3,3,-2,0,3,4,0,0,1,8,0),Mn(0,2,4,-1,0,4,5,0,0,1,10,0),Mn(0,3,5,-1,0,5,8,0,0,1,14,0),Mn(0,3,5,-1,0,6,10,0,0,1,18,0),Mn(0,4,5,-2,0,7,10,1,0,2,16,1),Mn(0,5,5,-3,0,8,10,1,0,3,14,2),Mn(0,5,6,-3,0,9,12,1,0,3,16,2),Mn(0,6,6,-3,0,10,14,1,0,4,18,3),Mn(0,6,7,-4,0,11,15,1,0,4,20,3),Mn(0,7,8,-4,0,12,17,2,0,5,22,4),Mn(0,7,8,-4,0,13,19,2,0,5,24,4),Mn(0,7,9,-4,0,14,21,2,0,5,26,4),Mn(0,8,9,-5,0,15,22,2,0,6,28,5),Mn(0,8,10,-5,0,16,24,2,0,6,30,5),Mn(0,8,11,-5,0,17,26,2,0,6,32,5),Mn(0,9,11,-5,0,18,28,2,0,7,34,6),Mn(0,9,12,-6,0,19,29,2,0,7,36,6),Mn(0,10,13,-6,0,20,31,3,0,8,38,7),Mn(0,10,13,-6,0,21,33,3,0,8,40,7),Mn(0,10,14,-6,0,22,35,3,0,8,42,7),Mn(0,11,14,-7,0,23,36,3,0,9,44,8),Mn(0,11,15,-7,0,24,38,3,0,9,46,8)],hz={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},M3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Yk(e){return`${Math.round(e)}ms`}function mz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function gz(e){const t={...hz,...e.easing},n={...M3,...e.duration};return{getAutoHeightDuration:mz,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=a;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof s=="string"?s:Yk(s)} ${c} ${typeof u=="string"?u:Yk(u)}`).join(",")},...e,easing:t,duration:n}}const yz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function bz(e){return si(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function F3(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,c]=o[a];!bz(c)||s.startsWith("unstable_")?delete r[s]:si(c)&&(r[s]={...c},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
114
|
+
|
|
115
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
116
|
+
|
|
117
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
118
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
119
|
+
|
|
120
|
+
export default theme;`}function ax(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:c={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Xi(20));const p=sS(a),h=Ku(e);let g=Nr(h,{mixins:lz(h.breakpoints,r),palette:p,shadows:pz.slice(),typography:L3(p,c),transitions:gz(s),zIndex:{...yz}});return g=Nr(g,d),g=t.reduce((y,b)=>Nr(y,b),g),g.unstable_sxConfig={...mh,...d?.unstable_sxConfig},g.unstable_sx=function(b){return Ws({sx:b,theme:this})},g.toRuntimeSource=F3,g}function ix(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const vz=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ix(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function B3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function j3(e){return e==="dark"?vz:[]}function Ez(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=sS(t);return{palette:a,opacity:{...B3(a.mode),...n},overlays:r||j3(a.mode),...o}}function xz(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Tz=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Sz=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Tz(e.cssVarPrefix).forEach(c=>{s[c]=n[c],delete n[c]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function Cz(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Ce(e,t,n){!e[t]&&n&&(e[t]=n)}function Kf(e){return typeof e!="string"||!e.startsWith("hsl")?e:_3(e)}function Pi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Yf(Kf(e[t])))}function _z(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Qa=e=>{try{return e()}catch{}},Az=(e="mui")=>O3(e);function U1(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Ez({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...s}=ax({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...B3(o),...t?.opacity},overlays:t?.overlays||j3(o)},s}function wz(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=xz,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),g=Az(a),{[h]:y,light:b,dark:x,...S}=n,T={...S};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Xi(21,h));const k=U1(T,D,d,h);b&&!T.light&&U1(T,b,void 0,"light"),x&&!T.dark&&U1(T,x,void 0,"dark");let R={defaultColorScheme:h,...k,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:T,font:{...sz(k.typography),...k.font},spacing:_z(d.spacing)};Object.keys(R.colorSchemes).forEach(H=>{const C=R.colorSchemes[H].palette,M=V=>{const z=V.split("-"),W=z[1],Y=z[2];return g(V,C[W][Y])};if(C.mode==="light"&&(Ce(C.common,"background","#fff"),Ce(C.common,"onBackground","#000")),C.mode==="dark"&&(Ce(C.common,"background","#000"),Ce(C.common,"onBackground","#fff")),Cz(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){Ce(C.Alert,"errorColor",Sn(C.error.light,.6)),Ce(C.Alert,"infoColor",Sn(C.info.light,.6)),Ce(C.Alert,"successColor",Sn(C.success.light,.6)),Ce(C.Alert,"warningColor",Sn(C.warning.light,.6)),Ce(C.Alert,"errorFilledBg",M("palette-error-main")),Ce(C.Alert,"infoFilledBg",M("palette-info-main")),Ce(C.Alert,"successFilledBg",M("palette-success-main")),Ce(C.Alert,"warningFilledBg",M("palette-warning-main")),Ce(C.Alert,"errorFilledColor",Qa(()=>C.getContrastText(C.error.main))),Ce(C.Alert,"infoFilledColor",Qa(()=>C.getContrastText(C.info.main))),Ce(C.Alert,"successFilledColor",Qa(()=>C.getContrastText(C.success.main))),Ce(C.Alert,"warningFilledColor",Qa(()=>C.getContrastText(C.warning.main))),Ce(C.Alert,"errorStandardBg",Cn(C.error.light,.9)),Ce(C.Alert,"infoStandardBg",Cn(C.info.light,.9)),Ce(C.Alert,"successStandardBg",Cn(C.success.light,.9)),Ce(C.Alert,"warningStandardBg",Cn(C.warning.light,.9)),Ce(C.Alert,"errorIconColor",M("palette-error-main")),Ce(C.Alert,"infoIconColor",M("palette-info-main")),Ce(C.Alert,"successIconColor",M("palette-success-main")),Ce(C.Alert,"warningIconColor",M("palette-warning-main")),Ce(C.AppBar,"defaultBg",M("palette-grey-100")),Ce(C.Avatar,"defaultBg",M("palette-grey-400")),Ce(C.Button,"inheritContainedBg",M("palette-grey-300")),Ce(C.Button,"inheritContainedHoverBg",M("palette-grey-A100")),Ce(C.Chip,"defaultBorder",M("palette-grey-400")),Ce(C.Chip,"defaultAvatarColor",M("palette-grey-700")),Ce(C.Chip,"defaultIconColor",M("palette-grey-700")),Ce(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ce(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ce(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ce(C.LinearProgress,"primaryBg",Cn(C.primary.main,.62)),Ce(C.LinearProgress,"secondaryBg",Cn(C.secondary.main,.62)),Ce(C.LinearProgress,"errorBg",Cn(C.error.main,.62)),Ce(C.LinearProgress,"infoBg",Cn(C.info.main,.62)),Ce(C.LinearProgress,"successBg",Cn(C.success.main,.62)),Ce(C.LinearProgress,"warningBg",Cn(C.warning.main,.62)),Ce(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),Ce(C.Slider,"primaryTrack",Cn(C.primary.main,.62)),Ce(C.Slider,"secondaryTrack",Cn(C.secondary.main,.62)),Ce(C.Slider,"errorTrack",Cn(C.error.main,.62)),Ce(C.Slider,"infoTrack",Cn(C.info.main,.62)),Ce(C.Slider,"successTrack",Cn(C.success.main,.62)),Ce(C.Slider,"warningTrack",Cn(C.warning.main,.62));const V=Qm(C.background.default,.8);Ce(C.SnackbarContent,"bg",V),Ce(C.SnackbarContent,"color",Qa(()=>C.getContrastText(V))),Ce(C.SpeedDialAction,"fabHoverBg",Qm(C.background.paper,.15)),Ce(C.StepConnector,"border",M("palette-grey-400")),Ce(C.StepContent,"border",M("palette-grey-400")),Ce(C.Switch,"defaultColor",M("palette-common-white")),Ce(C.Switch,"defaultDisabledColor",M("palette-grey-100")),Ce(C.Switch,"primaryDisabledColor",Cn(C.primary.main,.62)),Ce(C.Switch,"secondaryDisabledColor",Cn(C.secondary.main,.62)),Ce(C.Switch,"errorDisabledColor",Cn(C.error.main,.62)),Ce(C.Switch,"infoDisabledColor",Cn(C.info.main,.62)),Ce(C.Switch,"successDisabledColor",Cn(C.success.main,.62)),Ce(C.Switch,"warningDisabledColor",Cn(C.warning.main,.62)),Ce(C.TableCell,"border",Cn(Km(C.divider,1),.88)),Ce(C.Tooltip,"bg",Km(C.grey[700],.92))}if(C.mode==="dark"){Ce(C.Alert,"errorColor",Cn(C.error.light,.6)),Ce(C.Alert,"infoColor",Cn(C.info.light,.6)),Ce(C.Alert,"successColor",Cn(C.success.light,.6)),Ce(C.Alert,"warningColor",Cn(C.warning.light,.6)),Ce(C.Alert,"errorFilledBg",M("palette-error-dark")),Ce(C.Alert,"infoFilledBg",M("palette-info-dark")),Ce(C.Alert,"successFilledBg",M("palette-success-dark")),Ce(C.Alert,"warningFilledBg",M("palette-warning-dark")),Ce(C.Alert,"errorFilledColor",Qa(()=>C.getContrastText(C.error.dark))),Ce(C.Alert,"infoFilledColor",Qa(()=>C.getContrastText(C.info.dark))),Ce(C.Alert,"successFilledColor",Qa(()=>C.getContrastText(C.success.dark))),Ce(C.Alert,"warningFilledColor",Qa(()=>C.getContrastText(C.warning.dark))),Ce(C.Alert,"errorStandardBg",Sn(C.error.light,.9)),Ce(C.Alert,"infoStandardBg",Sn(C.info.light,.9)),Ce(C.Alert,"successStandardBg",Sn(C.success.light,.9)),Ce(C.Alert,"warningStandardBg",Sn(C.warning.light,.9)),Ce(C.Alert,"errorIconColor",M("palette-error-main")),Ce(C.Alert,"infoIconColor",M("palette-info-main")),Ce(C.Alert,"successIconColor",M("palette-success-main")),Ce(C.Alert,"warningIconColor",M("palette-warning-main")),Ce(C.AppBar,"defaultBg",M("palette-grey-900")),Ce(C.AppBar,"darkBg",M("palette-background-paper")),Ce(C.AppBar,"darkColor",M("palette-text-primary")),Ce(C.Avatar,"defaultBg",M("palette-grey-600")),Ce(C.Button,"inheritContainedBg",M("palette-grey-800")),Ce(C.Button,"inheritContainedHoverBg",M("palette-grey-700")),Ce(C.Chip,"defaultBorder",M("palette-grey-700")),Ce(C.Chip,"defaultAvatarColor",M("palette-grey-300")),Ce(C.Chip,"defaultIconColor",M("palette-grey-300")),Ce(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ce(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ce(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ce(C.LinearProgress,"primaryBg",Sn(C.primary.main,.5)),Ce(C.LinearProgress,"secondaryBg",Sn(C.secondary.main,.5)),Ce(C.LinearProgress,"errorBg",Sn(C.error.main,.5)),Ce(C.LinearProgress,"infoBg",Sn(C.info.main,.5)),Ce(C.LinearProgress,"successBg",Sn(C.success.main,.5)),Ce(C.LinearProgress,"warningBg",Sn(C.warning.main,.5)),Ce(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),Ce(C.Slider,"primaryTrack",Sn(C.primary.main,.5)),Ce(C.Slider,"secondaryTrack",Sn(C.secondary.main,.5)),Ce(C.Slider,"errorTrack",Sn(C.error.main,.5)),Ce(C.Slider,"infoTrack",Sn(C.info.main,.5)),Ce(C.Slider,"successTrack",Sn(C.success.main,.5)),Ce(C.Slider,"warningTrack",Sn(C.warning.main,.5));const V=Qm(C.background.default,.98);Ce(C.SnackbarContent,"bg",V),Ce(C.SnackbarContent,"color",Qa(()=>C.getContrastText(V))),Ce(C.SpeedDialAction,"fabHoverBg",Qm(C.background.paper,.15)),Ce(C.StepConnector,"border",M("palette-grey-600")),Ce(C.StepContent,"border",M("palette-grey-600")),Ce(C.Switch,"defaultColor",M("palette-grey-300")),Ce(C.Switch,"defaultDisabledColor",M("palette-grey-600")),Ce(C.Switch,"primaryDisabledColor",Sn(C.primary.main,.55)),Ce(C.Switch,"secondaryDisabledColor",Sn(C.secondary.main,.55)),Ce(C.Switch,"errorDisabledColor",Sn(C.error.main,.55)),Ce(C.Switch,"infoDisabledColor",Sn(C.info.main,.55)),Ce(C.Switch,"successDisabledColor",Sn(C.success.main,.55)),Ce(C.Switch,"warningDisabledColor",Sn(C.warning.main,.55)),Ce(C.TableCell,"border",Sn(Km(C.divider,1),.68)),Ce(C.Tooltip,"bg",Km(C.grey[700],.92))}Pi(C.background,"default"),Pi(C.background,"paper"),Pi(C.common,"background"),Pi(C.common,"onBackground"),Pi(C,"divider"),Object.keys(C).forEach(V=>{const z=C[V];V!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&Ce(C[V],"mainChannel",Yf(Kf(z.main))),z.light&&Ce(C[V],"lightChannel",Yf(Kf(z.light))),z.dark&&Ce(C[V],"darkChannel",Yf(Kf(z.dark))),z.contrastText&&Ce(C[V],"contrastTextChannel",Yf(Kf(z.contrastText))),V==="text"&&(Pi(C[V],"primary"),Pi(C[V],"secondary")),V==="action"&&(z.active&&Pi(C[V],"active"),z.selected&&Pi(C[V],"selected")))})}),R=t.reduce((H,C)=>Nr(H,C),R);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Sz(R)},{vars:O,generateThemeVars:F,generateStyleSheets:U}=CH(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([H,C])=>{R[H]=C}),R.generateThemeVars=F,R.generateStyleSheets=U,R.generateSpacing=function(){return XT(d.spacing,r0(this))},R.getColorSchemeSelector=_H(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...mh,...d?.unstable_sxConfig},R.unstable_sx=function(C){return Ws({sx:C,theme:this})},R.toRuntimeSource=F3,R}function Kk(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:sS({...n===!0?{}:n.palette,mode:t})})}function h0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,c=a||"light",u=o?.[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ax(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=ax({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},Kk(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},Kk(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),wz({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const lS=h0();function Js(){const e=Qu(lS);return e[ui]||e}function U3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vo=e=>U3(e)&&e!=="classes",Ie=C3({themeId:ui,defaultTheme:lS,rootShouldForwardProp:Vo});function kz({theme:e,...t}){const n=ui in e?e[ui]:void 0;return E.jsx(D3,{...t,themeId:n?ui:void 0,theme:n||e})}const Xm={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Dz}=xH({themeId:ui,theme:()=>h0({cssVariables:!0}),colorSchemeStorageKey:Xm.colorSchemeStorageKey,modeStorageKey:Xm.modeStorageKey,defaultColorScheme:{light:Xm.defaultLightColorScheme,dark:Xm.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:L3(e.palette,e.typography)};return t.unstable_sx=function(r){return Ws({sx:r,theme:this})},t}}),Rz=Dz;function Iz({theme:e,...t}){const n=w.useMemo(()=>{if(typeof e=="function")return e;const r=ui in e?e[ui]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?E.jsx(kz,{theme:n,...t}):E.jsx(Rz,{theme:e,...t})}function Qk(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Oz(e){return E.jsx($U,{...e,defaultTheme:lS,themeId:ui})}function cS(e){return function(n){return E.jsx(Oz,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Nz(){return c0}const Rt=R3;function ft(e){return pH(e)}function Pz(e){return ct("MuiSvgIcon",e)}ut("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lz=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return dt(o,Pz,r)},Mz=Ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(Rt(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),sx=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:g="0 0 24 24",...y}=r,b=w.isValidElement(o)&&o.type==="svg",x={...r,color:s,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:b},S={};p||(S.viewBox=g);const T=Lz(x);return E.jsxs(Mz,{as:c,className:We(T.root,a),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...S,...y,...b&&o.props,ownerState:x,children:[b?o.props.children:o,h?E.jsx("title",{children:h}):null]})});sx.muiName="SvgIcon";function mi(e,t){function n(r,o){return E.jsx(sx,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=sx.muiName,w.memo(w.forwardRef(n))}function m0(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function xo(e){return e&&e.ownerDocument||document}function Ba(e){return xo(e).defaultView||window}function Xk(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Zk=0;function Fz(e){const[t,n]=w.useState(e),r=e||t;return w.useEffect(()=>{t==null&&(Zk+=1,n(`mui-${Zk}`))},[t]),r}const Bz={...YE},Jk=Bz.useId;function Zu(e){if(Jk!==void 0){const t=Jk();return e??t}return Fz(e)}function lx(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=w.useRef(t!==void 0),[s,c]=w.useState(n),u=a?t:s,d=w.useCallback(p=>{a||c(p)},[]);return[u,d]}function ga(e){const t=w.useRef(e);return Ea(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function or(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function jz(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Uz(e,t){if(!e)return t;function n(s,c){const u={};return Object.keys(c).forEach(d=>{jz(d,c[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),c[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const c=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...c}):e,d=We(s?.className,c?.className,u?.className),p=n(u,c);return{...c,...u,...p,...!!d&&{className:d},...c?.style&&u?.style&&{style:{...c.style,...u.style}},...c?.sx&&u?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=We(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cx.apply(null,arguments)}function H3(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ux(e,t){return ux=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ux(e,t)}function z3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ux(e,t)}const eD={disabled:!1},ay=$e.createContext(null);var Hz=function(t){return t.scrollTop},Qf="unmounted",Sl="exited",Cl="entering",cu="entered",dx="exiting",za=function(e){z3(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,c=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?c?(u=Sl,a.appearStatus=Cl):u=cu:r.unmountOnExit||r.mountOnEnter?u=Qf:u=Sl,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===Qf?{status:Sl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Cl&&s!==cu&&(a=Cl):(s===Cl||s===cu)&&(a=dx)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,c;return a=s=c=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,c=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:c}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Cl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Bs.findDOMNode(this);s&&Hz(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sl&&this.setState({status:Qf})},n.performEnter=function(o){var a=this,s=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[Bs.findDOMNode(this),c],d=u[0],p=u[1],h=this.getTimeouts(),g=c?h.appear:h.enter;if(!o&&!s||eD.disabled){this.safeSetState({status:cu},function(){a.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:Cl},function(){a.props.onEntering(d,p),a.onTransitionEnd(g,function(){a.safeSetState({status:cu},function(){a.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),c=this.props.nodeRef?void 0:Bs.findDOMNode(this);if(!a||eD.disabled){this.safeSetState({status:Sl},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:dx},function(){o.props.onExiting(c),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Sl},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,s=!0;return this.nextCallback=function(c){s&&(s=!1,a.nextCallback=null,o(c))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Bs.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!s||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=u[0],p=u[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Qf)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=H3(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $e.createElement(ay.Provider,{value:null},typeof s=="function"?s(o,c):$e.cloneElement($e.Children.only(s),c))},t}($e.Component);za.contextType=ay;za.propTypes={};function Qc(){}za.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qc,onEntering:Qc,onEntered:Qc,onExit:Qc,onExiting:Qc,onExited:Qc};za.UNMOUNTED=Qf;za.EXITED=Sl;za.ENTERING=Cl;za.ENTERED=cu;za.EXITING=dx;function zz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uS(e,t){var n=function(a){return t&&w.isValidElement(a)?t(a):a},r=Object.create(null);return e&&w.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function $z(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s,c={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];c[r[u][s]]=n(d)}c[u]=n(u)}for(s=0;s<o.length;s++)c[o[s]]=n(o[s]);return c}function Ol(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Vz(e,t){return uS(e.children,function(n){return w.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ol(n,"appear",e),enter:Ol(n,"enter",e),exit:Ol(n,"exit",e)})})}function Gz(e,t,n){var r=uS(e.children),o=$z(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(w.isValidElement(s)){var c=a in t,u=a in r,d=t[a],p=w.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[a]=w.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ol(s,"exit",e),enter:Ol(s,"enter",e)}):!u&&c&&!p?o[a]=w.cloneElement(s,{in:!1}):u&&c&&w.isValidElement(d)&&(o[a]=w.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Ol(s,"exit",e),enter:Ol(s,"enter",e)}))}}),o}var qz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Wz={component:"div",childFactory:function(t){return t}},dS=function(e){z3(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(zz(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var s=a.children,c=a.handleExited,u=a.firstRender;return{children:u?Vz(o,c):Gz(o,s,c),firstRender:!1}},n.handleExited=function(o,a){var s=uS(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(c){var u=cx({},c.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,c=H3(o,["component","childFactory"]),u=this.state.contextValue,d=qz(this.state.children).map(s);return delete c.appear,delete c.enter,delete c.exit,a===null?$e.createElement(ay.Provider,{value:u},d):$e.createElement(ay.Provider,{value:u},$e.createElement(a,c,d))},t}($e.Component);dS.propTypes={};dS.defaultProps=Wz;const tD={};function $3(e,t){const n=w.useRef(tD);return n.current===tD&&(n.current=e(t)),n}const Yz=[];function Kz(e){w.useEffect(e,Yz)}class g0{static create(){return new g0}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Nl(){const e=$3(g0.create).current;return Kz(e.disposeEffect),e}const V3=e=>e.scrollTop;function Ou(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Qz(e){return ct("MuiCollapse",e)}ut("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Xz=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return dt(r,Qz,n)},Zz=Ie("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Rt(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Jz=Ie("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),e$=Ie("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),La=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:s,collapsedSize:c="0px",component:u,easing:d,in:p,onEnter:h,onEntered:g,onEntering:y,onExit:b,onExited:x,onExiting:S,orientation:T="vertical",style:D,timeout:k=M3.standard,TransitionComponent:R=za,...I}=r,O={...r,orientation:T,collapsedSize:c},F=Xz(O),U=Js(),H=Nl(),C=w.useRef(null),M=w.useRef(),V=typeof c=="number"?`${c}px`:c,z=T==="horizontal",W=z?"width":"height",Y=w.useRef(null),B=or(n,Y),J=oe=>ve=>{if(oe){const ye=Y.current;ve===void 0?oe(ye):oe(ye,ve)}},ae=()=>C.current?C.current[z?"clientWidth":"clientHeight"]:0,ne=J((oe,ve)=>{C.current&&z&&(C.current.style.position="absolute"),oe.style[W]=V,h&&h(oe,ve)}),N=J((oe,ve)=>{const ye=ae();C.current&&z&&(C.current.style.position="");const{duration:Ve,easing:Le}=Ou({style:D,timeout:k,easing:d},{mode:"enter"});if(k==="auto"){const Oe=U.transitions.getAutoHeightDuration(ye);oe.style.transitionDuration=`${Oe}ms`,M.current=Oe}else oe.style.transitionDuration=typeof Ve=="string"?Ve:`${Ve}ms`;oe.style[W]=`${ye}px`,oe.style.transitionTimingFunction=Le,y&&y(oe,ve)}),K=J((oe,ve)=>{oe.style[W]="auto",g&&g(oe,ve)}),ee=J(oe=>{oe.style[W]=`${ae()}px`,b&&b(oe)}),P=J(x),re=J(oe=>{const ve=ae(),{duration:ye,easing:Ve}=Ou({style:D,timeout:k,easing:d},{mode:"exit"});if(k==="auto"){const Le=U.transitions.getAutoHeightDuration(ve);oe.style.transitionDuration=`${Le}ms`,M.current=Le}else oe.style.transitionDuration=typeof ye=="string"?ye:`${ye}ms`;oe.style[W]=V,oe.style.transitionTimingFunction=Ve,S&&S(oe)}),me=oe=>{k==="auto"&&H.start(M.current||0,oe),o&&o(Y.current,oe)};return E.jsx(R,{in:p,onEnter:ne,onEntered:K,onEntering:N,onExit:ee,onExited:P,onExiting:re,addEndListener:me,nodeRef:Y,timeout:k==="auto"?null:k,...I,children:(oe,{ownerState:ve,...ye})=>E.jsx(Zz,{as:u,className:We(F.root,s,{entered:F.entered,exited:!p&&V==="0px"&&F.hidden}[oe]),style:{[z?"minWidth":"minHeight"]:V,...D},ref:B,ownerState:{...O,state:oe},...ye,children:E.jsx(Jz,{ownerState:{...O,state:oe},className:F.wrapper,ref:C,children:E.jsx(e$,{ownerState:{...O,state:oe},className:F.wrapperInner,children:a})})})})});La&&(La.muiSupportAuto=!0);function t$(e){return ct("MuiPaper",e)}ut("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const n$=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return dt(a,t$,o)},r$=Ie("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Rt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ju=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPaper"}),o=Js(),{className:a,component:s="div",elevation:c=1,square:u=!1,variant:d="elevation",...p}=r,h={...r,component:s,elevation:c,square:u,variant:d},g=n$(h);return E.jsx(r$,{as:s,ownerState:h,className:We(g.root,a),ref:n,...p,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ft("#fff",ix(c))}, ${Ft("#fff",ix(c))})`}},...p.style}})});function o$(e){return typeof e=="string"}function G3(e,t,n){return e===void 0||o$(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function q3(e,t,n){return typeof e=="function"?e(t,n):e}function W3(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function nD(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Y3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=We(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const s=W3({...o,...r}),c=nD(r),u=nD(o),d=t(s),p=We(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...c};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function Kt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:c=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...g}=a,y=p[e]||r,b=q3(h[e],o),{props:{component:x,...S},internalRef:T}=Y3({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),D=or(T,b?.ref,t.ref),k=e==="root"?x||d:x,R=G3(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...S,...k&&!c&&{as:k},...k&&c&&{component:k},ref:D},o);return[y,R]}function iy(e){try{return e.matches(":focus-visible")}catch{}return!1}class sy{static create(){return new sy}static use(){const t=$3(sy.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=i$(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function a$(){return sy.use()}function i$(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function s$(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:c,onExited:u,timeout:d}=e,[p,h]=w.useState(!1),g=We(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=We(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),w.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,c,d]),E.jsx("span",{className:g,style:y,children:E.jsx("span",{className:b})})}const la=ut("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fx=550,l$=80,c$=Zs`
|
|
121
|
+
0% {
|
|
122
|
+
transform: scale(0);
|
|
123
|
+
opacity: 0.1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
100% {
|
|
127
|
+
transform: scale(1);
|
|
128
|
+
opacity: 0.3;
|
|
129
|
+
}
|
|
130
|
+
`,u$=Zs`
|
|
131
|
+
0% {
|
|
132
|
+
opacity: 1;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
100% {
|
|
136
|
+
opacity: 0;
|
|
137
|
+
}
|
|
138
|
+
`,d$=Zs`
|
|
139
|
+
0% {
|
|
140
|
+
transform: scale(1);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
50% {
|
|
144
|
+
transform: scale(0.92);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
100% {
|
|
148
|
+
transform: scale(1);
|
|
149
|
+
}
|
|
150
|
+
`,f$=Ie("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),p$=Ie(s$,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
151
|
+
opacity: 0;
|
|
152
|
+
position: absolute;
|
|
153
|
+
|
|
154
|
+
&.${la.rippleVisible} {
|
|
155
|
+
opacity: 0.3;
|
|
156
|
+
transform: scale(1);
|
|
157
|
+
animation-name: ${c$};
|
|
158
|
+
animation-duration: ${fx}ms;
|
|
159
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.${la.ripplePulsate} {
|
|
163
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
& .${la.child} {
|
|
167
|
+
opacity: 1;
|
|
168
|
+
display: block;
|
|
169
|
+
width: 100%;
|
|
170
|
+
height: 100%;
|
|
171
|
+
border-radius: 50%;
|
|
172
|
+
background-color: currentColor;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
& .${la.childLeaving} {
|
|
176
|
+
opacity: 0;
|
|
177
|
+
animation-name: ${u$};
|
|
178
|
+
animation-duration: ${fx}ms;
|
|
179
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
& .${la.childPulsate} {
|
|
183
|
+
position: absolute;
|
|
184
|
+
/* @noflip */
|
|
185
|
+
left: 0px;
|
|
186
|
+
top: 0;
|
|
187
|
+
animation-name: ${d$};
|
|
188
|
+
animation-duration: 2500ms;
|
|
189
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
190
|
+
animation-iteration-count: infinite;
|
|
191
|
+
animation-delay: 200ms;
|
|
192
|
+
}
|
|
193
|
+
`,h$=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...c}=r,[u,d]=w.useState([]),p=w.useRef(0),h=w.useRef(null);w.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const g=w.useRef(!1),y=Nl(),b=w.useRef(null),x=w.useRef(null),S=w.useCallback(R=>{const{pulsate:I,rippleX:O,rippleY:F,rippleSize:U,cb:H}=R;d(C=>[...C,E.jsx(p$,{classes:{ripple:We(a.ripple,la.ripple),rippleVisible:We(a.rippleVisible,la.rippleVisible),ripplePulsate:We(a.ripplePulsate,la.ripplePulsate),child:We(a.child,la.child),childLeaving:We(a.childLeaving,la.childLeaving),childPulsate:We(a.childPulsate,la.childPulsate)},timeout:fx,pulsate:I,rippleX:O,rippleY:F,rippleSize:U},p.current)]),p.current+=1,h.current=H},[a]),T=w.useCallback((R={},I={},O=()=>{})=>{const{pulsate:F=!1,center:U=o||I.pulsate,fakeElement:H=!1}=I;if(R?.type==="mousedown"&&g.current){g.current=!1;return}R?.type==="touchstart"&&(g.current=!0);const C=H?null:x.current,M=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,z,W;if(U||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)V=Math.round(M.width/2),z=Math.round(M.height/2);else{const{clientX:Y,clientY:B}=R.touches&&R.touches.length>0?R.touches[0]:R;V=Math.round(Y-M.left),z=Math.round(B-M.top)}if(U)W=Math.sqrt((2*M.width**2+M.height**2)/3),W%2===0&&(W+=1);else{const Y=Math.max(Math.abs((C?C.clientWidth:0)-V),V)*2+2,B=Math.max(Math.abs((C?C.clientHeight:0)-z),z)*2+2;W=Math.sqrt(Y**2+B**2)}R?.touches?b.current===null&&(b.current=()=>{S({pulsate:F,rippleX:V,rippleY:z,rippleSize:W,cb:O})},y.start(l$,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:F,rippleX:V,rippleY:z,rippleSize:W,cb:O})},[o,S,y]),D=w.useCallback(()=>{T({},{pulsate:!0})},[T]),k=w.useCallback((R,I)=>{if(y.clear(),R?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{k(R,I)});return}b.current=null,d(O=>O.length>0?O.slice(1):O),h.current=I},[y]);return w.useImperativeHandle(n,()=>({pulsate:D,start:T,stop:k}),[D,T,k]),E.jsx(f$,{className:We(la.root,a.root,s),ref:x,...c,children:E.jsx(dS,{component:null,exit:!0,children:u})})});function m$(e){return ct("MuiButtonBase",e)}const g$=ut("MuiButtonBase",["root","disabled","focusVisible"]),y$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=dt({root:["root",t&&"disabled",n&&"focusVisible"]},m$,o);return n&&r&&(s.root+=` ${r}`),s},b$=Ie("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${g$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ks=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:c,component:u="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:g=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:x,onClick:S,onContextMenu:T,onDragLeave:D,onFocus:k,onFocusVisible:R,onKeyDown:I,onKeyUp:O,onMouseDown:F,onMouseLeave:U,onMouseUp:H,onTouchEnd:C,onTouchMove:M,onTouchStart:V,tabIndex:z=0,TouchRippleProps:W,touchRippleRef:Y,type:B,...J}=r,ae=w.useRef(null),ne=a$(),N=or(ne.ref,Y),[K,ee]=w.useState(!1);d&&K&&ee(!1),w.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),ae.current.focus()}}),[]);const P=ne.shouldMount&&!p&&!d;w.useEffect(()=>{K&&g&&!p&&ne.pulsate()},[p,g,K,ne]);const re=Li(ne,"start",F,h),me=Li(ne,"stop",T,h),oe=Li(ne,"stop",D,h),ve=Li(ne,"stop",H,h),ye=Li(ne,"stop",Pe=>{K&&Pe.preventDefault(),U&&U(Pe)},h),Ve=Li(ne,"start",V,h),Le=Li(ne,"stop",C,h),Oe=Li(ne,"stop",M,h),Qe=Li(ne,"stop",Pe=>{iy(Pe.target)||ee(!1),x&&x(Pe)},!1),nt=ga(Pe=>{ae.current||(ae.current=Pe.currentTarget),iy(Pe.target)&&(ee(!0),R&&R(Pe)),k&&k(Pe)}),De=()=>{const Pe=ae.current;return u&&u!=="button"&&!(Pe.tagName==="A"&&Pe.href)},gt=ga(Pe=>{g&&!Pe.repeat&&K&&Pe.key===" "&&ne.stop(Pe,()=>{ne.start(Pe)}),Pe.target===Pe.currentTarget&&De()&&Pe.key===" "&&Pe.preventDefault(),I&&I(Pe),Pe.target===Pe.currentTarget&&De()&&Pe.key==="Enter"&&!d&&(Pe.preventDefault(),S&&S(Pe))}),Ct=ga(Pe=>{g&&Pe.key===" "&&K&&!Pe.defaultPrevented&&ne.stop(Pe,()=>{ne.pulsate(Pe)}),O&&O(Pe),S&&Pe.target===Pe.currentTarget&&De()&&Pe.key===" "&&!Pe.defaultPrevented&&S(Pe)});let Be=u;Be==="button"&&(J.href||J.to)&&(Be=b);const mt={};Be==="button"?(mt.type=B===void 0?"button":B,mt.disabled=d):(!J.href&&!J.to&&(mt.role="button"),d&&(mt["aria-disabled"]=d));const it=or(n,ae),lt={...r,centerRipple:a,component:u,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:g,tabIndex:z,focusVisible:K},je=y$(lt);return E.jsxs(b$,{as:Be,className:We(je.root,c),ownerState:lt,onBlur:Qe,onClick:S,onContextMenu:me,onFocus:nt,onKeyDown:gt,onKeyUp:Ct,onMouseDown:re,onMouseLeave:ye,onMouseUp:ve,onDragLeave:oe,onTouchEnd:Le,onTouchMove:Oe,onTouchStart:Ve,ref:it,tabIndex:d?-1:z,type:B,...mt,...J,children:[s,P?E.jsx(h$,{ref:N,center:a,...W}):null]})});function Li(e,t,n,r=!1){return ga(o=>(n&&n(o),r||e[t](o),!0))}function v$(e){return typeof e.main=="string"}function E$(e,t=[]){if(!v$(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function mo(e=[]){return([,t])=>t&&E$(t,e)}function x$(e){return ct("MuiCircularProgress",e)}ut("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ds=44,px=Zs`
|
|
194
|
+
0% {
|
|
195
|
+
transform: rotate(0deg);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
100% {
|
|
199
|
+
transform: rotate(360deg);
|
|
200
|
+
}
|
|
201
|
+
`,hx=Zs`
|
|
202
|
+
0% {
|
|
203
|
+
stroke-dasharray: 1px, 200px;
|
|
204
|
+
stroke-dashoffset: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
50% {
|
|
208
|
+
stroke-dasharray: 100px, 200px;
|
|
209
|
+
stroke-dashoffset: -15px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
100% {
|
|
213
|
+
stroke-dasharray: 1px, 200px;
|
|
214
|
+
stroke-dashoffset: -126px;
|
|
215
|
+
}
|
|
216
|
+
`,T$=typeof px!="string"?YT`
|
|
217
|
+
animation: ${px} 1.4s linear infinite;
|
|
218
|
+
`:null,S$=typeof hx!="string"?YT`
|
|
219
|
+
animation: ${hx} 1.4s ease-in-out infinite;
|
|
220
|
+
`:null,C$=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${Fe(r)}`],svg:["svg"],circle:["circle",`circle${Fe(n)}`,o&&"circleDisableShrink"]};return dt(a,x$,t)},_$=Ie("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Fe(n.color)}`]]}})(Rt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:T$||{animation:`${px} 1.4s linear infinite`}},...Object.entries(e.palette).filter(mo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),A$=Ie("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),w$=Ie("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Fe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Rt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:S$||{animation:`${hx} 1.4s ease-in-out infinite`}}]}))),fS=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:h="indeterminate",...g}=r,y={...r,color:a,disableShrink:s,size:c,thickness:d,value:p,variant:h},b=C$(y),x={},S={},T={};if(h==="determinate"){const D=2*Math.PI*((Ds-d)/2);x.strokeDasharray=D.toFixed(3),T["aria-valuenow"]=Math.round(p),x.strokeDashoffset=`${((100-p)/100*D).toFixed(3)}px`,S.transform="rotate(-90deg)"}return E.jsx(_$,{className:We(b.root,o),style:{width:c,height:c,...S,...u},ownerState:y,ref:n,role:"progressbar",...T,...g,children:E.jsx(A$,{className:b.svg,ownerState:y,viewBox:`${Ds/2} ${Ds/2} ${Ds} ${Ds}`,children:E.jsx(w$,{className:b.circle,style:x,ownerState:y,cx:Ds,cy:Ds,r:(Ds-d)/2,fill:"none",strokeWidth:d})})})});function k$(e){return ct("MuiIconButton",e)}const rD=ut("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),D$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:s}=e,c={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Fe(r)}`,o&&`edge${Fe(o)}`,`size${Fe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return dt(c,k$,t)},R$=Ie(Ks,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(Rt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ft(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Rt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(mo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(mo()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ft((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${rD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${rD.loading}`]:{color:"transparent"}}))),I$=Ie("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Jn=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:c="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium",id:h,loading:g=null,loadingIndicator:y,...b}=r,x=Zu(h),S=y??E.jsx(fS,{"aria-labelledby":x,color:"inherit",size:16}),T={...r,edge:o,color:c,disabled:u,disableFocusRipple:d,loading:g,loadingIndicator:S,size:p},D=D$(T);return E.jsxs(R$,{id:g?x:h,className:We(D.root,s),centerRipple:!0,focusRipple:!d,disabled:u||g,ref:n,...b,ownerState:T,children:[typeof g=="boolean"&&E.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:E.jsx(I$,{className:D.loadingIndicator,ownerState:T,children:g&&S})}),a]})});function O$(e){return ct("MuiTypography",e)}const oD=ut("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),N$={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},P$=Nz(),L$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,c={root:["root",a,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return dt(c,O$,s)},M$=Ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Rt(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(mo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Fe(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),aD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ye=w.forwardRef(function(t,n){const{color:r,...o}=ft({props:t,name:"MuiTypography"}),a=!N$[r],s=P$({...o,...a&&{color:r}}),{align:c="inherit",className:u,component:d,gutterBottom:p=!1,noWrap:h=!1,paragraph:g=!1,variant:y="body1",variantMapping:b=aD,...x}=s,S={...s,align:c,color:r,className:u,component:d,gutterBottom:p,noWrap:h,paragraph:g,variant:y,variantMapping:b},T=d||(g?"p":b[y]||aD[y])||"span",D=L$(S);return E.jsx(M$,{as:T,ref:n,className:We(D.root,u),...x,ownerState:S,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...x.style}})});function F$(e){return ct("MuiAppBar",e)}ut("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const B$=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return dt(o,F$,r)},iD=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,j$=Ie(Ju,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(Rt(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(mo(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?iD(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?iD(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),U$=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:s=!1,position:c="fixed",...u}=r,d={...r,color:a,position:c,enableColorOnDark:s},p=B$(d);return E.jsx(j$,{square:!0,component:"header",ownerState:d,elevation:4,className:We(p.root,o,c==="fixed"&&"mui-fixed"),ref:n,...u})});var go="top",xa="bottom",Ta="right",yo="left",pS="auto",yh=[go,xa,Ta,yo],Nu="start",Pp="end",H$="clippingParents",K3="viewport",Cf="popper",z$="reference",sD=yh.reduce(function(e,t){return e.concat([t+"-"+Nu,t+"-"+Pp])},[]),Q3=[].concat(yh,[pS]).reduce(function(e,t){return e.concat([t,t+"-"+Nu,t+"-"+Pp])},[]),$$="beforeRead",V$="read",G$="afterRead",q$="beforeMain",W$="main",Y$="afterMain",K$="beforeWrite",Q$="write",X$="afterWrite",Z$=[$$,V$,G$,q$,W$,Y$,K$,Q$,X$];function fi(e){return e?(e.nodeName||"").toLowerCase():null}function zo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yl(e){var t=zo(e).Element;return e instanceof t||e instanceof Element}function ya(e){var t=zo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hS(e){if(typeof ShadowRoot>"u")return!1;var t=zo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function J$(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!ya(a)||!fi(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var c=o[s];c===!1?a.removeAttribute(s):a.setAttribute(s,c===!0?"":c)}))})}function eV(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=s.reduce(function(u,d){return u[d]="",u},{});!ya(o)||!fi(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const tV={name:"applyStyles",enabled:!0,phase:"write",fn:J$,effect:eV,requires:["computeStyles"]};function di(e){return e.split("-")[0]}var Ul=Math.max,ly=Math.min,Pu=Math.round;function mx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function X3(){return!/^((?!chrome|android).)*safari/i.test(mx())}function Lu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ya(e)&&(o=e.offsetWidth>0&&Pu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Pu(r.height)/e.offsetHeight||1);var s=Yl(e)?zo(e):window,c=s.visualViewport,u=!X3()&&n,d=(r.left+(u&&c?c.offsetLeft:0))/o,p=(r.top+(u&&c?c.offsetTop:0))/a,h=r.width/o,g=r.height/a;return{width:h,height:g,top:p,right:d+h,bottom:p+g,left:d,x:d,y:p}}function mS(e){var t=Lu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Z3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zi(e){return zo(e).getComputedStyle(e)}function nV(e){return["table","td","th"].indexOf(fi(e))>=0}function el(e){return((Yl(e)?e.ownerDocument:e.document)||window.document).documentElement}function y0(e){return fi(e)==="html"?e:e.assignedSlot||e.parentNode||(hS(e)?e.host:null)||el(e)}function lD(e){return!ya(e)||Zi(e).position==="fixed"?null:e.offsetParent}function rV(e){var t=/firefox/i.test(mx()),n=/Trident/i.test(mx());if(n&&ya(e)){var r=Zi(e);if(r.position==="fixed")return null}var o=y0(e);for(hS(o)&&(o=o.host);ya(o)&&["html","body"].indexOf(fi(o))<0;){var a=Zi(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function bh(e){for(var t=zo(e),n=lD(e);n&&nV(n)&&Zi(n).position==="static";)n=lD(n);return n&&(fi(n)==="html"||fi(n)==="body"&&Zi(n).position==="static")?t:n||rV(e)||t}function gS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ap(e,t,n){return Ul(e,ly(t,n))}function oV(e,t,n){var r=ap(e,t,n);return r>n?n:r}function J3(){return{top:0,right:0,bottom:0,left:0}}function e5(e){return Object.assign({},J3(),e)}function t5(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,e5(typeof t!="number"?t:t5(t,yh))};function iV(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,c=di(n.placement),u=gS(c),d=[yo,Ta].indexOf(c)>=0,p=d?"height":"width";if(!(!a||!s)){var h=aV(o.padding,n),g=mS(a),y=u==="y"?go:yo,b=u==="y"?xa:Ta,x=n.rects.reference[p]+n.rects.reference[u]-s[u]-n.rects.popper[p],S=s[u]-n.rects.reference[u],T=bh(a),D=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,k=x/2-S/2,R=h[y],I=D-g[p]-h[b],O=D/2-g[p]/2+k,F=ap(R,O,I),U=u;n.modifiersData[r]=(t={},t[U]=F,t.centerOffset=F-O,t)}}function sV(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Z3(t.elements.popper,o)&&(t.elements.arrow=o))}const lV={name:"arrow",enabled:!0,phase:"main",fn:iV,effect:sV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mu(e){return e.split("-")[1]}var cV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Pu(n*o)/o||0,y:Pu(r*o)/o||0}}function cD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=s.x,y=g===void 0?0:g,b=s.y,x=b===void 0?0:b,S=typeof p=="function"?p({x:y,y:x}):{x:y,y:x};y=S.x,x=S.y;var T=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),k=yo,R=go,I=window;if(d){var O=bh(n),F="clientHeight",U="clientWidth";if(O===zo(n)&&(O=el(n),Zi(O).position!=="static"&&c==="absolute"&&(F="scrollHeight",U="scrollWidth")),O=O,o===go||(o===yo||o===Ta)&&a===Pp){R=xa;var H=h&&O===I&&I.visualViewport?I.visualViewport.height:O[F];x-=H-r.height,x*=u?1:-1}if(o===yo||(o===go||o===xa)&&a===Pp){k=Ta;var C=h&&O===I&&I.visualViewport?I.visualViewport.width:O[U];y-=C-r.width,y*=u?1:-1}}var M=Object.assign({position:c},d&&cV),V=p===!0?uV({x:y,y:x},zo(n)):{x:y,y:x};if(y=V.x,x=V.y,u){var z;return Object.assign({},M,(z={},z[R]=D?"0":"",z[k]=T?"0":"",z.transform=(I.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",z))}return Object.assign({},M,(t={},t[R]=D?x+"px":"",t[k]=T?y+"px":"",t.transform="",t))}function dV(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:di(t.placement),variation:Mu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,cD(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,cD(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dV,data:{}};var Zm={passive:!0};function pV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,c=s===void 0?!0:s,u=zo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",n.update,Zm)}),c&&u.addEventListener("resize",n.update,Zm),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Zm)}),c&&u.removeEventListener("resize",n.update,Zm)}}const hV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pV,data:{}};var mV={left:"right",right:"left",bottom:"top",top:"bottom"};function Rg(e){return e.replace(/left|right|bottom|top/g,function(t){return mV[t]})}var gV={start:"end",end:"start"};function uD(e){return e.replace(/start|end/g,function(t){return gV[t]})}function yS(e){var t=zo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function bS(e){return Lu(el(e)).left+yS(e).scrollLeft}function yV(e,t){var n=zo(e),r=el(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,u=0;if(o){a=o.width,s=o.height;var d=X3();(d||!d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:c+bS(e),y:u}}function bV(e){var t,n=el(e),r=yS(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ul(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ul(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+bS(e),u=-r.scrollTop;return Zi(o||n).direction==="rtl"&&(c+=Ul(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:c,y:u}}function vS(e){var t=Zi(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function n5(e){return["html","body","#document"].indexOf(fi(e))>=0?e.ownerDocument.body:ya(e)&&vS(e)?e:n5(y0(e))}function ip(e,t){var n;t===void 0&&(t=[]);var r=n5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=zo(r),s=o?[a].concat(a.visualViewport||[],vS(r)?r:[]):r,c=t.concat(s);return o?c:c.concat(ip(y0(s)))}function gx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vV(e,t){var n=Lu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function dD(e,t,n){return t===K3?gx(yV(e,n)):Yl(t)?vV(t,n):gx(bV(el(e)))}function EV(e){var t=ip(y0(e)),n=["absolute","fixed"].indexOf(Zi(e).position)>=0,r=n&&ya(e)?bh(e):e;return Yl(r)?t.filter(function(o){return Yl(o)&&Z3(o,r)&&fi(o)!=="body"}):[]}function xV(e,t,n,r){var o=t==="clippingParents"?EV(e):[].concat(t),a=[].concat(o,[n]),s=a[0],c=a.reduce(function(u,d){var p=dD(e,d,r);return u.top=Ul(p.top,u.top),u.right=ly(p.right,u.right),u.bottom=ly(p.bottom,u.bottom),u.left=Ul(p.left,u.left),u},dD(e,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function r5(e){var t=e.reference,n=e.element,r=e.placement,o=r?di(r):null,a=r?Mu(r):null,s=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case go:u={x:s,y:t.y-n.height};break;case xa:u={x:s,y:t.y+t.height};break;case Ta:u={x:t.x+t.width,y:c};break;case yo:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=o?gS(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case Nu:u[d]=u[d]-(t[p]/2-n[p]/2);break;case Pp:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function Lp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,c=n.boundary,u=c===void 0?H$:c,d=n.rootBoundary,p=d===void 0?K3:d,h=n.elementContext,g=h===void 0?Cf:h,y=n.altBoundary,b=y===void 0?!1:y,x=n.padding,S=x===void 0?0:x,T=e5(typeof S!="number"?S:t5(S,yh)),D=g===Cf?z$:Cf,k=e.rects.popper,R=e.elements[b?D:g],I=xV(Yl(R)?R:R.contextElement||el(e.elements.popper),u,p,s),O=Lu(e.elements.reference),F=r5({reference:O,element:k,placement:o}),U=gx(Object.assign({},k,F)),H=g===Cf?U:O,C={top:I.top-H.top+T.top,bottom:H.bottom-I.bottom+T.bottom,left:I.left-H.left+T.left,right:H.right-I.right+T.right},M=e.modifiersData.offset;if(g===Cf&&M){var V=M[o];Object.keys(C).forEach(function(z){var W=[Ta,xa].indexOf(z)>=0?1:-1,Y=[go,xa].indexOf(z)>=0?"y":"x";C[z]+=V[Y]*W})}return C}function TV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?Q3:u,p=Mu(r),h=p?c?sD:sD.filter(function(b){return Mu(b)===p}):yh,g=h.filter(function(b){return d.indexOf(b)>=0});g.length===0&&(g=h);var y=g.reduce(function(b,x){return b[x]=Lp(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[di(x)],b},{});return Object.keys(y).sort(function(b,x){return y[b]-y[x]})}function SV(e){if(di(e)===pS)return[];var t=Rg(e);return[uD(e),t,uD(t)]}function CV(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!0:s,u=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,x=n.allowedAutoPlacements,S=t.options.placement,T=di(S),D=T===S,k=u||(D||!b?[Rg(S)]:SV(S)),R=[S].concat(k).reduce(function(re,me){return re.concat(di(me)===pS?TV(t,{placement:me,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:x}):me)},[]),I=t.rects.reference,O=t.rects.popper,F=new Map,U=!0,H=R[0],C=0;C<R.length;C++){var M=R[C],V=di(M),z=Mu(M)===Nu,W=[go,xa].indexOf(V)>=0,Y=W?"width":"height",B=Lp(t,{placement:M,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),J=W?z?Ta:yo:z?xa:go;I[Y]>O[Y]&&(J=Rg(J));var ae=Rg(J),ne=[];if(a&&ne.push(B[V]<=0),c&&ne.push(B[J]<=0,B[ae]<=0),ne.every(function(re){return re})){H=M,U=!1;break}F.set(M,ne)}if(U)for(var N=b?3:1,K=function(me){var oe=R.find(function(ve){var ye=F.get(ve);if(ye)return ye.slice(0,me).every(function(Ve){return Ve})});if(oe)return H=oe,"break"},ee=N;ee>0;ee--){var P=K(ee);if(P==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const _V={name:"flip",enabled:!0,phase:"main",fn:CV,requiresIfExists:["offset"],data:{_skip:!1}};function fD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pD(e){return[go,Ta,xa,yo].some(function(t){return e[t]>=0})}function AV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=Lp(t,{elementContext:"reference"}),c=Lp(t,{altBoundary:!0}),u=fD(s,r),d=fD(c,o,a),p=pD(u),h=pD(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const wV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AV};function kV(e,t,n){var r=di(e),o=[yo,go].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],c=a[1];return s=s||0,c=(c||0)*o,[yo,Ta].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function DV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=Q3.reduce(function(p,h){return p[h]=kV(h,t.rects,a),p},{}),c=s[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const RV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:DV};function IV(e){var t=e.state,n=e.name;t.modifiersData[n]=r5({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const OV={name:"popperOffsets",enabled:!0,phase:"read",fn:IV,data:{}};function NV(e){return e==="x"?"y":"x"}function PV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!1:s,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,b=n.tetherOffset,x=b===void 0?0:b,S=Lp(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),T=di(t.placement),D=Mu(t.placement),k=!D,R=gS(T),I=NV(R),O=t.modifiersData.popperOffsets,F=t.rects.reference,U=t.rects.popper,H=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,C=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(O){if(a){var z,W=R==="y"?go:yo,Y=R==="y"?xa:Ta,B=R==="y"?"height":"width",J=O[R],ae=J+S[W],ne=J-S[Y],N=y?-U[B]/2:0,K=D===Nu?F[B]:U[B],ee=D===Nu?-U[B]:-F[B],P=t.elements.arrow,re=y&&P?mS(P):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:J3(),oe=me[W],ve=me[Y],ye=ap(0,F[B],re[B]),Ve=k?F[B]/2-N-ye-oe-C.mainAxis:K-ye-oe-C.mainAxis,Le=k?-F[B]/2+N+ye+ve+C.mainAxis:ee+ye+ve+C.mainAxis,Oe=t.elements.arrow&&bh(t.elements.arrow),Qe=Oe?R==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,nt=(z=M?.[R])!=null?z:0,De=J+Ve-nt-Qe,gt=J+Le-nt,Ct=ap(y?ly(ae,De):ae,J,y?Ul(ne,gt):ne);O[R]=Ct,V[R]=Ct-J}if(c){var Be,mt=R==="x"?go:yo,it=R==="x"?xa:Ta,lt=O[I],je=I==="y"?"height":"width",Pe=lt+S[mt],Jt=lt-S[it],Mt=[go,yo].indexOf(T)!==-1,_t=(Be=M?.[I])!=null?Be:0,ue=Mt?Pe:lt-F[je]-U[je]-_t+C.altAxis,ge=Mt?lt+F[je]+U[je]-_t-C.altAxis:Jt,Ue=y&&Mt?oV(ue,lt,ge):ap(y?ue:Pe,lt,y?ge:Jt);O[I]=Ue,V[I]=Ue-lt}t.modifiersData[r]=V}}const LV={name:"preventOverflow",enabled:!0,phase:"main",fn:PV,requiresIfExists:["offset"]};function MV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FV(e){return e===zo(e)||!ya(e)?yS(e):MV(e)}function BV(e){var t=e.getBoundingClientRect(),n=Pu(t.width)/e.offsetWidth||1,r=Pu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function jV(e,t,n){n===void 0&&(n=!1);var r=ya(t),o=ya(t)&&BV(t),a=el(t),s=Lu(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((fi(t)!=="body"||vS(a))&&(c=FV(t)),ya(t)?(u=Lu(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=bS(a))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function UV(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function HV(e){var t=UV(e);return Z$.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function zV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $V(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var hD={placement:"bottom",modifiers:[],strategy:"absolute"};function mD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function VV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?hD:o;return function(c,u,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},hD,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var D=typeof T=="function"?T(p.options):T;x(),p.options=Object.assign({},a,p.options,D),p.scrollParents={reference:Yl(c)?ip(c):c.contextElement?ip(c.contextElement):[],popper:ip(u)};var k=HV($V([].concat(r,p.options.modifiers)));return p.orderedModifiers=k.filter(function(R){return R.enabled}),b(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,D=T.reference,k=T.popper;if(mD(D,k)){p.rects={reference:jV(D,bh(k),p.options.strategy==="fixed"),popper:mS(k)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(C){return p.modifiersData[C.name]=Object.assign({},C.data)});for(var R=0;R<p.orderedModifiers.length;R++){if(p.reset===!0){p.reset=!1,R=-1;continue}var I=p.orderedModifiers[R],O=I.fn,F=I.options,U=F===void 0?{}:F,H=I.name;typeof O=="function"&&(p=O({state:p,options:U,name:H,instance:y})||p)}}}},update:zV(function(){return new Promise(function(S){y.forceUpdate(),S(p)})}),destroy:function(){x(),g=!0}};if(!mD(c,u))return y;y.setOptions(d).then(function(S){!g&&d.onFirstUpdate&&d.onFirstUpdate(S)});function b(){p.orderedModifiers.forEach(function(S){var T=S.name,D=S.options,k=D===void 0?{}:D,R=S.effect;if(typeof R=="function"){var I=R({state:p,name:T,instance:y,options:k}),O=function(){};h.push(I||O)}})}function x(){h.forEach(function(S){return S()}),h=[]}return y}}var GV=[hV,OV,fV,tV,RV,_V,LV,lV,wV],qV=VV({defaultModifiers:GV});function Kl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:q3(n,r),{props:c,internalRef:u}=Y3({...a,externalSlotProps:s}),d=or(u,s?.ref,e.additionalProps?.ref);return G3(t,{...c,ref:d},r)}function ed(e){return parseInt(w.version,10)>=19?e?.props?.ref||null:e?.ref||null}function WV(e){return typeof e=="function"?e():e}const o5=w.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,c]=w.useState(null),u=or(w.isValidElement(r)?ed(r):null,n);if(Ea(()=>{a||c(WV(o)||document.body)},[o,a]),Ea(()=>{if(s&&!a)return Xk(n,s),()=>{Xk(n,null)}},[n,s,a]),a){if(w.isValidElement(r)){const d={ref:u};return w.cloneElement(r,d)}return r}return s&&Xy.createPortal(r,s)});function YV(e){return ct("MuiPopper",e)}ut("MuiPopper",["root"]);function KV(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function yx(e){return typeof e=="function"?e():e}function QV(e){return e.nodeType!==void 0}const XV=e=>{const{classes:t}=e;return dt({root:["root"]},YV,t)},ZV={},JV=w.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:g={},slots:y={},TransitionProps:b,ownerState:x,...S}=t,T=w.useRef(null),D=or(T,n),k=w.useRef(null),R=or(k,h),I=w.useRef(R);Ea(()=>{I.current=R},[R]),w.useImperativeHandle(h,()=>k.current,[]);const O=KV(d,a),[F,U]=w.useState(O),[H,C]=w.useState(yx(r));w.useEffect(()=>{k.current&&k.current.forceUpdate()}),w.useEffect(()=>{r&&C(yx(r))},[r]),Ea(()=>{if(!H||!u)return;const Y=ae=>{U(ae.placement)};let B=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ae})=>{Y(ae)}}];c!=null&&(B=B.concat(c)),p&&p.modifiers!=null&&(B=B.concat(p.modifiers));const J=qV(H,T.current,{placement:O,...p,modifiers:B});return I.current(J),()=>{J.destroy(),I.current(null)}},[H,s,c,u,p,O]);const M={placement:F};b!==null&&(M.TransitionProps=b);const V=XV(t),z=y.root??"div",W=Kl({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:D},ownerState:t,className:V.root});return E.jsx(z,{...W,children:typeof o=="function"?o(M):o})}),eG=w.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:g=ZV,popperRef:y,style:b,transition:x=!1,slotProps:S={},slots:T={},...D}=t,[k,R]=w.useState(!0),I=()=>{R(!1)},O=()=>{R(!0)};if(!u&&!p&&(!x||k))return null;let F;if(a)F=a;else if(r){const C=yx(r);F=C&&QV(C)?xo(C).body:xo(null).body}const U=!p&&u&&(!x||k)?"none":void 0,H=x?{in:p,onEnter:I,onExited:O}:void 0;return E.jsx(o5,{disablePortal:c,container:F,children:E.jsx(JV,{anchorEl:r,direction:s,disablePortal:c,modifiers:d,ref:n,open:x?!k:p,placement:h,popperOptions:g,popperRef:y,slotProps:S,slots:T,...D,style:{position:"fixed",top:0,left:0,display:U,...b},TransitionProps:H,children:o})})}),tG=Ie(eG,{name:"MuiPopper",slot:"Root"})({}),a5=w.forwardRef(function(t,n){const r=gh(),o=ft({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:c,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:b,popperOptions:x,popperRef:S,transition:T,slots:D,slotProps:k,...R}=o,I=D?.root??c?.Root,O={anchorEl:a,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:b,popperOptions:x,popperRef:S,transition:T,...R};return E.jsx(tG,{as:s,direction:r?"rtl":"ltr",slots:{root:I},slotProps:k??u,...O,ref:n})}),nG=mi(E.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function rG(e){return ct("MuiChip",e)}const qt=ut("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),oG=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:c,variant:u}=e,d={root:["root",u,n&&"disabled",`size${Fe(r)}`,`color${Fe(o)}`,c&&"clickable",c&&`clickableColor${Fe(o)}`,s&&"deletable",s&&`deletableColor${Fe(o)}`,`${u}${Fe(o)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(o)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(o)}`,`deleteIcon${Fe(u)}Color${Fe(o)}`]};return dt(d,rG,t)},aG=Ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:c,variant:u}=n;return[{[`& .${qt.avatar}`]:t.avatar},{[`& .${qt.avatar}`]:t[`avatar${Fe(c)}`]},{[`& .${qt.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${qt.icon}`]:t.icon},{[`& .${qt.icon}`]:t[`icon${Fe(c)}`]},{[`& .${qt.icon}`]:t[`iconColor${Fe(o)}`]},{[`& .${qt.deleteIcon}`]:t.deleteIcon},{[`& .${qt.deleteIcon}`]:t[`deleteIcon${Fe(c)}`]},{[`& .${qt.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${qt.deleteIcon}`]:t[`deleteIcon${Fe(u)}Color${Fe(r)}`]},t.root,t[`size${Fe(c)}`],t[`color${Fe(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Fe(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[u],t[`${u}${Fe(r)}`]]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${qt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${qt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${qt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${qt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${qt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${qt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${qt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ft(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ft(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${qt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${qt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(mo(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${qt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Ft(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${qt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${qt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${qt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ft(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(mo(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${qt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ft(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${qt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ft(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(mo(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${qt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${qt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${qt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${qt.avatar}`]:{marginLeft:4},[`& .${qt.avatarSmall}`]:{marginLeft:2},[`& .${qt.icon}`]:{marginLeft:4},[`& .${qt.iconSmall}`]:{marginLeft:2},[`& .${qt.deleteIcon}`]:{marginRight:5},[`& .${qt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(mo()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Ft(e.palette[n].main,.7)}`,[`&.${qt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ft(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${qt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ft(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${qt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Ft(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),iG=Ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function gD(e){return e.key==="Backspace"||e.key==="Delete"}const Hl=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:c="default",component:u,deleteIcon:d,disabled:p=!1,icon:h,label:g,onClick:y,onDelete:b,onKeyDown:x,onKeyUp:S,size:T="medium",variant:D="filled",tabIndex:k,skipFocusWhenDisabled:R=!1,slots:I={},slotProps:O={},...F}=r,U=w.useRef(null),H=or(U,n),C=oe=>{oe.stopPropagation(),b&&b(oe)},M=oe=>{oe.currentTarget===oe.target&&gD(oe)&&oe.preventDefault(),x&&x(oe)},V=oe=>{oe.currentTarget===oe.target&&b&&gD(oe)&&b(oe),S&&S(oe)},z=s!==!1&&y?!0:s,W=z||b?Ks:u||"div",Y={...r,component:W,disabled:p,size:T,color:c,iconColor:w.isValidElement(h)&&h.props.color||c,onDelete:!!b,clickable:z,variant:D},B=oG(Y),J=W===Ks?{component:u||"div",focusVisibleClassName:B.focusVisible,...b&&{disableRipple:!0}}:{};let ae=null;b&&(ae=d&&w.isValidElement(d)?w.cloneElement(d,{className:We(d.props.className,B.deleteIcon),onClick:C}):E.jsx(nG,{className:B.deleteIcon,onClick:C}));let ne=null;o&&w.isValidElement(o)&&(ne=w.cloneElement(o,{className:We(B.avatar,o.props.className)}));let N=null;h&&w.isValidElement(h)&&(N=w.cloneElement(h,{className:We(B.icon,h.props.className)}));const K={slots:I,slotProps:O},[ee,P]=Kt("root",{elementType:aG,externalForwardedProps:{...K,...F},ownerState:Y,shouldForwardComponentProp:!0,ref:H,className:We(B.root,a),additionalProps:{disabled:z&&p?!0:void 0,tabIndex:R&&p?-1:k,...J},getSlotProps:oe=>({...oe,onClick:ve=>{oe.onClick?.(ve),y(ve)},onKeyDown:ve=>{oe.onKeyDown?.(ve),M(ve)},onKeyUp:ve=>{oe.onKeyUp?.(ve),V(ve)}})}),[re,me]=Kt("label",{elementType:iG,externalForwardedProps:K,ownerState:Y,className:B.label});return E.jsxs(ee,{as:W,...P,children:[ne||N,E.jsx(re,{...me,children:g}),ae]})});function Jm(e){return parseInt(e,10)||0}const sG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function lG(e){for(const t in e)return!1;return!0}function yD(e){return lG(e)||e.outerHeightStyle===0&&!e.overflowing}const cG=w.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:c,...u}=t,{current:d}=w.useRef(c!=null),p=w.useRef(null),h=or(n,p),g=w.useRef(null),y=w.useRef(null),b=w.useCallback(()=>{const k=p.current,R=y.current;if(!k||!R)return;const O=Ba(k).getComputedStyle(k);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=O.width,R.value=k.value||t.placeholder||"x",R.value.slice(-1)===`
|
|
221
|
+
`&&(R.value+=" ");const F=O.boxSizing,U=Jm(O.paddingBottom)+Jm(O.paddingTop),H=Jm(O.borderBottomWidth)+Jm(O.borderTopWidth),C=R.scrollHeight;R.value="x";const M=R.scrollHeight;let V=C;a&&(V=Math.max(Number(a)*M,V)),o&&(V=Math.min(Number(o)*M,V)),V=Math.max(V,M);const z=V+(F==="border-box"?U+H:0),W=Math.abs(V-C)<=1;return{outerHeightStyle:z,overflowing:W}},[o,a,t.placeholder]),x=ga(()=>{const k=p.current,R=b();if(!k||!R||yD(R))return!1;const I=R.outerHeightStyle;return g.current!=null&&g.current!==I}),S=w.useCallback(()=>{const k=p.current,R=b();if(!k||!R||yD(R))return;const I=R.outerHeightStyle;g.current!==I&&(g.current=I,k.style.height=`${I}px`),k.style.overflow=R.overflowing?"hidden":""},[b]),T=w.useRef(-1);Ea(()=>{const k=m0(S),R=p?.current;if(!R)return;const I=Ba(R);I.addEventListener("resize",k);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{x()&&(O.unobserve(R),cancelAnimationFrame(T.current),S(),T.current=requestAnimationFrame(()=>{O.observe(R)}))}),O.observe(R)),()=>{k.clear(),cancelAnimationFrame(T.current),I.removeEventListener("resize",k),O&&O.disconnect()}},[b,S,x]),Ea(()=>{S()});const D=k=>{d||S();const R=k.target,I=R.value.length,O=R.value.endsWith(`
|
|
222
|
+
`),F=R.selectionStart===I;O&&F&&R.setSelectionRange(I,I),r&&r(k)};return E.jsxs(w.Fragment,{children:[E.jsx("textarea",{value:c,onChange:D,ref:h,rows:a,style:s,...u}),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...sG.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Mp(e){return typeof e=="string"}function td({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const ES=w.createContext(void 0);function nd(){return w.useContext(ES)}function bD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cy(e,t=!1){return e&&(bD(e.value)&&e.value!==""||t&&bD(e.defaultValue)&&e.defaultValue!=="")}function uG(e){return e.startAdornment}function dG(e){return ct("MuiInputBase",e)}const Fu=ut("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var vD;const b0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},v0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},fG=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:c,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:g,startAdornment:y,type:b}=e,x={root:["root",`color${Fe(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",c&&"formControl",g&&g!=="medium"&&`size${Fe(g)}`,p&&"multiline",y&&"adornedStart",a&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return dt(x,dG,t)},E0=Ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:b0})(Rt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),x0=Ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:v0})(Rt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fu.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Fu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ED=cS({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xS=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:c,color:u,components:d={},componentsProps:p={},defaultValue:h,disabled:g,disableInjectingGlobalStyles:y,endAdornment:b,error:x,fullWidth:S=!1,id:T,inputComponent:D="input",inputProps:k={},inputRef:R,margin:I,maxRows:O,minRows:F,multiline:U=!1,name:H,onBlur:C,onChange:M,onClick:V,onFocus:z,onKeyDown:W,onKeyUp:Y,placeholder:B,readOnly:J,renderSuffix:ae,rows:ne,size:N,slotProps:K={},slots:ee={},startAdornment:P,type:re="text",value:me,...oe}=r,ve=k.value!=null?k.value:me,{current:ye}=w.useRef(ve!=null),Ve=w.useRef(),Le=w.useCallback(Je=>{},[]),Oe=or(Ve,R,k.ref,Le),[Qe,nt]=w.useState(!1),De=nd(),gt=td({props:r,muiFormControl:De,states:["color","disabled","error","hiddenLabel","size","required","filled"]});gt.focused=De?De.focused:Qe,w.useEffect(()=>{!De&&g&&Qe&&(nt(!1),C&&C())},[De,g,Qe,C]);const Ct=De&&De.onFilled,Be=De&&De.onEmpty,mt=w.useCallback(Je=>{cy(Je)?Ct&&Ct():Be&&Be()},[Ct,Be]);Ea(()=>{ye&&mt({value:ve})},[ve,mt,ye]);const it=Je=>{z&&z(Je),k.onFocus&&k.onFocus(Je),De&&De.onFocus?De.onFocus(Je):nt(!0)},lt=Je=>{C&&C(Je),k.onBlur&&k.onBlur(Je),De&&De.onBlur?De.onBlur(Je):nt(!1)},je=(Je,...en)=>{if(!ye){const Ut=Je.target||Ve.current;if(Ut==null)throw new Error(Xi(1));mt({value:Ut.value})}k.onChange&&k.onChange(Je,...en),M&&M(Je,...en)};w.useEffect(()=>{mt(Ve.current)},[]);const Pe=Je=>{Ve.current&&Je.currentTarget===Je.target&&Ve.current.focus(),V&&V(Je)};let Jt=D,Mt=k;U&&Jt==="input"&&(ne?Mt={type:void 0,minRows:ne,maxRows:ne,...Mt}:Mt={type:void 0,maxRows:O,minRows:F,...Mt},Jt=cG);const _t=Je=>{mt(Je.animationName==="mui-auto-fill-cancel"?Ve.current:{value:"x"})};w.useEffect(()=>{De&&De.setAdornedStart(!!P)},[De,P]);const ue={...r,color:gt.color||"primary",disabled:gt.disabled,endAdornment:b,error:gt.error,focused:gt.focused,formControl:De,fullWidth:S,hiddenLabel:gt.hiddenLabel,multiline:U,size:gt.size,startAdornment:P,type:re},ge=fG(ue),Ue=ee.root||d.Root||E0,Xe=K.root||p.root||{},Et=ee.input||d.Input||x0;return Mt={...Mt,...K.input??p.input},E.jsxs(w.Fragment,{children:[!y&&typeof ED=="function"&&(vD||(vD=E.jsx(ED,{}))),E.jsxs(Ue,{...Xe,ref:n,onClick:Pe,...oe,...!Mp(Ue)&&{ownerState:{...ue,...Xe.ownerState}},className:We(ge.root,Xe.className,c,J&&"MuiInputBase-readOnly"),children:[P,E.jsx(ES.Provider,{value:null,children:E.jsx(Et,{"aria-invalid":gt.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:gt.disabled,id:T,onAnimationStart:_t,name:H,placeholder:B,readOnly:J,required:gt.required,rows:ne,value:ve,onKeyDown:W,onKeyUp:Y,type:re,...Mt,...!Mp(Et)&&{as:Jt,ownerState:{...ue,...Mt.ownerState}},ref:Oe,className:We(ge.input,Mt.className,J&&"MuiInputBase-readOnly"),onBlur:lt,onChange:je,onFocus:it})}),b,ae?ae({...gt,startAdornment:P}):null]})]})});function pG(e){return ct("MuiInput",e)}const _f={...Fu,...ut("MuiInput",["root","underline","input"])};function hG(e){return ct("MuiOutlinedInput",e)}const Xa={...Fu,...ut("MuiOutlinedInput",["root","notchedOutline","input"])};function mG(e){return ct("MuiFilledInput",e)}const El={...Fu,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},gG=mi(E.jsx("path",{d:"M7 10l5 5 5-5z"})),yG={entering:{opacity:1},entered:{opacity:1}},bx=w.forwardRef(function(t,n){const r=Js(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:c,easing:u,in:d,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:x,style:S,timeout:T=o,TransitionComponent:D=za,...k}=t,R=w.useRef(null),I=or(R,ed(c),n),O=W=>Y=>{if(W){const B=R.current;Y===void 0?W(B):W(B,Y)}},F=O(g),U=O((W,Y)=>{V3(W);const B=Ou({style:S,timeout:T,easing:u},{mode:"enter"});W.style.webkitTransition=r.transitions.create("opacity",B),W.style.transition=r.transitions.create("opacity",B),p&&p(W,Y)}),H=O(h),C=O(x),M=O(W=>{const Y=Ou({style:S,timeout:T,easing:u},{mode:"exit"});W.style.webkitTransition=r.transitions.create("opacity",Y),W.style.transition=r.transitions.create("opacity",Y),y&&y(W)}),V=O(b),z=W=>{a&&a(R.current,W)};return E.jsx(D,{appear:s,in:d,nodeRef:R,onEnter:U,onEntered:H,onEntering:F,onExit:M,onExited:V,onExiting:C,addEndListener:z,timeout:T,...k,children:(W,{ownerState:Y,...B})=>w.cloneElement(c,{style:{opacity:0,visibility:W==="exited"&&!d?"hidden":void 0,...yG[W],...S,...c.props.style},ref:I,...B})})});function bG(e){return ct("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const vG=e=>{const{classes:t,invisible:n}=e;return dt({root:["root",n&&"invisible"]},bG,t)},EG=Ie("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),i5=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:c=!1,open:u,components:d={},componentsProps:p={},slotProps:h={},slots:g={},TransitionComponent:y,transitionDuration:b,...x}=r,S={...r,component:s,invisible:c},T=vG(S),D={transition:y,root:d.Root,...g},k={...p,...h},R={slots:D,slotProps:k},[I,O]=Kt("root",{elementType:EG,externalForwardedProps:R,className:We(T.root,a),ownerState:S}),[F,U]=Kt("transition",{elementType:bx,externalForwardedProps:R,ownerState:S});return E.jsx(F,{in:u,timeout:b,...x,...U,children:E.jsx(I,{"aria-hidden":!0,...O,classes:T,ref:n,children:o})})}),xG=ut("MuiBox",["root"]),TG=h0(),Zt=E3({themeId:ui,defaultTheme:TG,defaultClassName:xG.root,generateClassName:JT.generate}),SG=mi(E.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),CG=Ie(Ks)(Rt(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:ox(e.palette.grey[200],.12)}:{backgroundColor:ox(e.palette.grey[600],.12)}}}))),_G=Ie(SG)({width:24,height:16});function AG(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return E.jsx("li",{children:E.jsx(CG,{focusRipple:!0,...r,ownerState:o,children:E.jsx(_G,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function wG(e){return ct("MuiBreadcrumbs",e)}const kG=ut("MuiBreadcrumbs",["root","ol","li","separator"]),DG=e=>{const{classes:t}=e;return dt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},wG,t)},RG=Ie(Ye,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${kG.li}`]:t.li},t.root]})({}),IG=Ie("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),OG=Ie("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function NG(e,t,n,r){return e.reduce((o,a,s)=>(s<e.length-1?o=o.concat(a,E.jsx(OG,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):o.push(a),o),[])}const PG=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:s="nav",slots:c={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:h=1,maxItems:g=8,separator:y="/",...b}=r,[x,S]=w.useState(!1),T={...r,component:s,expanded:x,expandText:d,itemsAfterCollapse:p,itemsBeforeCollapse:h,maxItems:g,separator:y},D=DG(T),k=Kl({elementType:c.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:T}),R=w.useRef(null),I=F=>{const U=()=>{S(!0);const H=R.current.querySelector("a[href],button,[tabindex]");H&&H.focus()};return h+p>=F.length?F:[...F.slice(0,h),E.jsx(AG,{"aria-label":d,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:k},onClick:U},"ellipsis"),...F.slice(F.length-p,F.length)]},O=w.Children.toArray(o).filter(F=>w.isValidElement(F)).map((F,U)=>E.jsx("li",{className:D.li,children:F},`child-${U}`));return E.jsx(RG,{ref:n,component:s,color:"textSecondary",className:We(D.root,a),ownerState:T,...b,children:E.jsx(IG,{className:D.ol,ref:R,ownerState:T,children:NG(x||g&&O.length<=g?O:I(O),D.separator,y,T)})})});function LG(e){return ct("MuiButton",e)}const xl=ut("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),MG=w.createContext({}),FG=w.createContext(void 0),BG=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:c,classes:u}=e,d={root:["root",s&&"loading",a,`${a}${Fe(t)}`,`size${Fe(o)}`,`${a}Size${Fe(o)}`,`color${Fe(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Fe(c)}`],startIcon:["icon","startIcon",`iconSize${Fe(o)}`],endIcon:["icon","endIcon",`iconSize${Fe(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=dt(d,LG,u);return{...u,...p}},s5=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],jG=Ie(Ks,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${xl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${xl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${xl.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${xl.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(mo()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Ft(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ft(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ft(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ft(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ft(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${xl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xl.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${xl.loading}`]:{color:"transparent"}}}]}})),UG=Ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Fe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...s5]})),HG=Ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Fe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...s5]})),zG=Ie("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),xD=Ie("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ur=w.forwardRef(function(t,n){const r=w.useContext(MG),o=w.useContext(FG),a=Op(r,t),s=ft({props:a,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:p,disabled:h=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:S=!1,id:T,loading:D=null,loadingIndicator:k,loadingPosition:R="center",size:I="medium",startIcon:O,type:F,variant:U="text",...H}=s,C=Zu(T),M=k??E.jsx(fS,{"aria-labelledby":C,color:"inherit",size:16}),V={...s,color:u,component:d,disabled:h,disableElevation:g,disableFocusRipple:y,fullWidth:S,loading:D,loadingIndicator:M,loadingPosition:R,size:I,type:F,variant:U},z=BG(V),W=(O||D&&R==="start")&&E.jsx(UG,{className:z.startIcon,ownerState:V,children:O||E.jsx(xD,{className:z.loadingIconPlaceholder,ownerState:V})}),Y=(b||D&&R==="end")&&E.jsx(HG,{className:z.endIcon,ownerState:V,children:b||E.jsx(xD,{className:z.loadingIconPlaceholder,ownerState:V})}),B=o||"",J=typeof D=="boolean"?E.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:D&&E.jsx(zG,{className:z.loadingIndicator,ownerState:V,children:M})}):null;return E.jsxs(jG,{ownerState:V,className:We(r.className,z.root,p,B),component:d,disabled:h||D,focusRipple:!y,focusVisibleClassName:We(z.focusVisible,x),ref:n,type:F,id:D?C:T,...H,classes:z,children:[W,R!=="end"&&J,c,R==="end"&&J,Y]})});function $G(e){return ct("MuiCard",e)}ut("MuiCard",["root"]);const VG=e=>{const{classes:t}=e;return dt({root:["root"]},$G,t)},GG=Ie(Ju,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),fu=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,c={...r,raised:a},u=VG(c);return E.jsx(GG,{className:We(u.root,o),elevation:a?8:void 0,ref:n,ownerState:c,...s})});function qG(e){return ct("MuiCardActions",e)}ut("MuiCardActions",["root","spacing"]);const WG=e=>{const{classes:t,disableSpacing:n}=e;return dt({root:["root",!n&&"spacing"]},qG,t)},YG=Ie("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),T0=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a,...s}=r,c={...r,disableSpacing:o},u=WG(c);return E.jsx(YG,{className:We(u.root,a),ownerState:c,ref:n,...s})});function KG(e){return ct("MuiCardContent",e)}ut("MuiCardContent",["root"]);const QG=e=>{const{classes:t}=e;return dt({root:["root"]},KG,t)},XG=Ie("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),pu=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,c={...r,component:a},u=QG(c);return E.jsx(XG,{as:a,className:We(u.root,o),ownerState:c,ref:n,...s})});function ZG(e){return ct("MuiCardMedia",e)}ut("MuiCardMedia",["root","media","img"]);const JG=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return dt({root:["root",n&&"media",r&&"img"]},ZG,t)},eq=Ie("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),tq=["video","audio","picture","iframe","img"],nq=["picture","img"],rq=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:c,src:u,style:d,...p}=r,h=tq.includes(s),g=!h&&c?{backgroundImage:`url("${c}")`,...d}:d,y={...r,component:s,isMediaComponent:h,isImageComponent:nq.includes(s)},b=JG(y);return E.jsx(eq,{className:We(b.root,a),as:s,role:!h&&c?"img":void 0,ref:n,style:g,ownerState:y,src:h?c||u:void 0,...p,children:o})}),TS=RH({createStyledComponent:Ie("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Fe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ft({props:e,name:"MuiContainer"})}),vx=typeof cS({})=="function",oq=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),aq=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),l5=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const c=e.getColorSchemeSelector(a);c.startsWith("@")?n[c]={":root":{colorScheme:s.palette?.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let r={html:oq(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...aq(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Ig="mui-ecs",iq=e=>{const t=l5(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ig})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{const a=e.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${Ig}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${Ig}))`]:{colorScheme:o.palette?.mode}}}),t},sq=cS(vx?({theme:e,enableColorScheme:t})=>l5(e,t):({theme:e})=>iq(e));function lq(e){const t=ft({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return E.jsxs(w.Fragment,{children:[vx&&E.jsx(sq,{enableColorScheme:r}),!vx&&!r&&E.jsx("span",{className:Ig,style:{display:"none"}}),n]})}function c5(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function cq(e){const t=xo(e);return t.body===e?Ba(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function sp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function TD(e){return parseInt(Ba(e).getComputedStyle(e).paddingRight,10)||0}function uq(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function SD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const c=!a.includes(s),u=!uq(s);c&&u&&sp(s,o)})}function H1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function dq(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(cq(r)){const s=c5(Ba(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${TD(r)+s}px`;const c=xo(r).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${TD(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=xo(r).body;else{const s=r.parentElement,c=Ba(r);a=s?.nodeName==="HTML"&&c.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:c})=>{a?s.style.setProperty(c,a):s.style.removeProperty(c)})}}function fq(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pq{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&sp(t.modalRef,!1);const o=fq(n);SD(n,t.mount,t.modalRef,o,!0);const a=H1(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=H1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=dq(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=H1(this.containers,s=>s.modals.includes(t)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&sp(t.modalRef,n),SD(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&sp(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const hq=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mq(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function gq(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function yq(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gq(e))}function bq(e){const t=[],n=[];return Array.from(e.querySelectorAll(hq)).forEach((r,o)=>{const a=mq(r);a===-1||!yq(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function vq(){return!0}function Eq(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=bq,isEnabled:s=vq,open:c}=e,u=w.useRef(!1),d=w.useRef(null),p=w.useRef(null),h=w.useRef(null),g=w.useRef(null),y=w.useRef(!1),b=w.useRef(null),x=or(ed(t),b),S=w.useRef(null);w.useEffect(()=>{!c||!b.current||(y.current=!n)},[n,c]),w.useEffect(()=>{if(!c||!b.current)return;const k=xo(b.current);return b.current.contains(k.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),y.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[c]),w.useEffect(()=>{if(!c||!b.current)return;const k=xo(b.current),R=F=>{S.current=F,!(r||!s()||F.key!=="Tab")&&k.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},I=()=>{const F=b.current;if(F===null)return;if(!k.hasFocus()||!s()||u.current){u.current=!1;return}if(F.contains(k.activeElement)||r&&k.activeElement!==d.current&&k.activeElement!==p.current)return;if(k.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let U=[];if((k.activeElement===d.current||k.activeElement===p.current)&&(U=a(b.current)),U.length>0){const H=!!(S.current?.shiftKey&&S.current?.key==="Tab"),C=U[0],M=U[U.length-1];typeof C!="string"&&typeof M!="string"&&(H?M.focus():C.focus())}else F.focus()};k.addEventListener("focusin",I),k.addEventListener("keydown",R,!0);const O=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),k.removeEventListener("focusin",I),k.removeEventListener("keydown",R,!0)}},[n,r,o,s,c,a]);const T=k=>{h.current===null&&(h.current=k.relatedTarget),y.current=!0,g.current=k.target;const R=t.props.onFocus;R&&R(k)},D=k=>{h.current===null&&(h.current=k.relatedTarget),y.current=!0};return E.jsxs(w.Fragment,{children:[E.jsx("div",{tabIndex:c?0:-1,onFocus:D,ref:d,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:x,onFocus:T}),E.jsx("div",{tabIndex:c?0:-1,onFocus:D,ref:p,"data-testid":"sentinelEnd"})]})}function xq(e){return typeof e=="function"?e():e}function Tq(e){return e?e.props.hasOwnProperty("in"):!1}const CD=()=>{},eg=new pq;function Sq(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:c,onClose:u,open:d,rootRef:p}=e,h=w.useRef({}),g=w.useRef(null),y=w.useRef(null),b=or(y,p),[x,S]=w.useState(!d),T=Tq(c);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const k=()=>xo(g.current),R=()=>(h.current.modalRef=y.current,h.current.mount=g.current,h.current),I=()=>{eg.mount(R(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},O=ga(()=>{const Y=xq(t)||k().body;eg.add(R(),Y),y.current&&I()}),F=()=>eg.isTopModal(R()),U=ga(Y=>{g.current=Y,Y&&(d&&F()?I():y.current&&sp(y.current,D))}),H=w.useCallback(()=>{eg.remove(R(),D)},[D]);w.useEffect(()=>()=>{H()},[H]),w.useEffect(()=>{d?O():(!T||!o)&&H()},[d,H,T,o,O]);const C=Y=>B=>{Y.onKeyDown?.(B),!(B.key!=="Escape"||B.which===229||!F())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},M=Y=>B=>{Y.onClick?.(B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(Y={})=>{const B=W3(e);delete B.onTransitionEnter,delete B.onTransitionExited;const J={...B,...Y};return{role:"presentation",...J,onKeyDown:C(J),ref:b}},getBackdropProps:(Y={})=>{const B=Y;return{"aria-hidden":!0,...B,onClick:M(B),open:d}},getTransitionProps:()=>{const Y=()=>{S(!1),a&&a()},B=()=>{S(!0),s&&s(),o&&H()};return{onEnter:Qk(Y,c?.props.onEnter??CD),onExited:Qk(B,c?.props.onExited??CD)}},rootRef:b,portalRef:U,isTopModal:F,exited:x,hasTransition:T}}function Cq(e){return ct("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const _q=e=>{const{open:t,exited:n,classes:r}=e;return dt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cq,r)},Aq=Ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Rt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),wq=Ie(i5,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),u5=w.forwardRef(function(t,n){const r=ft({name:"MuiModal",props:t}),{BackdropComponent:o=wq,BackdropProps:a,classes:s,className:c,closeAfterTransition:u=!1,children:d,container:p,component:h,components:g={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:T=!1,disableRestoreFocus:D=!1,disableScrollLock:k=!1,hideBackdrop:R=!1,keepMounted:I=!1,onClose:O,onTransitionEnter:F,onTransitionExited:U,open:H,slotProps:C={},slots:M={},theme:V,...z}=r,W={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:T,disableRestoreFocus:D,disableScrollLock:k,hideBackdrop:R,keepMounted:I},{getRootProps:Y,getBackdropProps:B,getTransitionProps:J,portalRef:ae,isTopModal:ne,exited:N,hasTransition:K}=Sq({...W,rootRef:n}),ee={...W,exited:N},P=_q(ee),re={};if(d.props.tabIndex===void 0&&(re.tabIndex="-1"),K){const{onEnter:Le,onExited:Oe}=J();re.onEnter=Le,re.onExited=Oe}const me={slots:{root:g.Root,backdrop:g.Backdrop,...M},slotProps:{...y,...C}},[oe,ve]=Kt("root",{ref:n,elementType:Aq,externalForwardedProps:{...me,...z,component:h},getSlotProps:Y,ownerState:ee,className:We(c,P?.root,!ee.open&&ee.exited&&P?.hidden)}),[ye,Ve]=Kt("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:me,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Le=>B({...Le,onClick:Oe=>{Le?.onClick&&Le.onClick(Oe)}}),className:We(a?.className,P?.backdrop),ownerState:ee});return!I&&!H&&(!K||N)?null:E.jsx(o5,{ref:ae,container:p,disablePortal:T,children:E.jsxs(oe,{...ve,children:[!R&&o?E.jsx(ye,{...Ve}):null,E.jsx(Eq,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:ne,open:H,children:w.cloneElement(d,re)})]})})});function kq(e){return ct("MuiDialog",e)}const z1=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),d5=w.createContext({}),Dq=Ie(i5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Rq=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return dt(s,kq,t)},Iq=Ie(u5,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Oq=Ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Nq=Ie(Ju,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Rt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${z1.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${z1.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${z1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Fp=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDialog"}),o=Js(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":c,"aria-modal":u=!0,BackdropComponent:d,BackdropProps:p,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:b=!1,fullWidth:x=!1,maxWidth:S="sm",onClick:T,onClose:D,open:k,PaperComponent:R=Ju,PaperProps:I={},scroll:O="paper",slots:F={},slotProps:U={},TransitionComponent:H=bx,transitionDuration:C=a,TransitionProps:M,...V}=r,z={...r,disableEscapeKeyDown:y,fullScreen:b,fullWidth:x,maxWidth:S,scroll:O},W=Rq(z),Y=w.useRef(),B=nt=>{Y.current=nt.target===nt.currentTarget},J=nt=>{T&&T(nt),Y.current&&(Y.current=null,D&&D(nt,"backdropClick"))},ae=Zu(c),ne=w.useMemo(()=>({titleId:ae}),[ae]),N={transition:H,...F},K={transition:M,paper:I,backdrop:p,...U},ee={slots:N,slotProps:K},[P,re]=Kt("root",{elementType:Iq,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:z,className:We(W.root,g),ref:n}),[me,oe]=Kt("backdrop",{elementType:Dq,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:z}),[ve,ye]=Kt("paper",{elementType:Nq,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:z,className:We(W.paper,I.className)}),[Ve,Le]=Kt("container",{elementType:Oq,externalForwardedProps:ee,ownerState:z,className:W.container}),[Oe,Qe]=Kt("transition",{elementType:bx,externalForwardedProps:ee,ownerState:z,additionalProps:{appear:!0,in:k,timeout:C,role:"presentation"}});return E.jsx(P,{closeAfterTransition:!0,slots:{backdrop:me},slotProps:{backdrop:{transitionDuration:C,as:d,...oe}},disableEscapeKeyDown:y,onClose:D,open:k,onClick:J,...re,...V,children:E.jsx(Oe,{...Qe,children:E.jsx(Ve,{onMouseDown:B,...Le,children:E.jsx(ve,{as:R,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":ae,"aria-modal":u,...ye,children:E.jsx(d5.Provider,{value:ne,children:h})})})})})});function Pq(e){return ct("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const Lq=e=>{const{classes:t,disableSpacing:n}=e;return dt({root:["root",!n&&"spacing"]},Pq,t)},Mq=Ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),f5=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,c={...r,disableSpacing:a},u=Lq(c);return E.jsx(Mq,{className:We(u.root,o),ownerState:c,ref:n,...s})});function Fq(e){return ct("MuiDialogContent",e)}ut("MuiDialogContent",["root","dividers"]);function Bq(e){return ct("MuiDialogTitle",e)}const jq=ut("MuiDialogTitle",["root"]),Uq=e=>{const{classes:t,dividers:n}=e;return dt({root:["root",n&&"dividers"]},Fq,t)},Hq=Ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Rt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${jq.root} + &`]:{paddingTop:0}}}]}))),Bp=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,c={...r,dividers:a},u=Uq(c);return E.jsx(Hq,{className:We(u.root,o),ownerState:c,ref:n,...s})});function zq(e){return ct("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const $q=e=>{const{classes:t}=e,r=dt({root:["root"]},zq,t);return{...t,...r}},Vq=Ie(Ye,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Gq=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDialogContentText"}),{children:o,className:a,...s}=r,c=$q(s);return E.jsx(Vq,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:We(c.root,a),...r,classes:c})}),qq=e=>{const{classes:t}=e;return dt({root:["root"]},Bq,t)},Wq=Ie(Ye,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),jp=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,c=r,u=qq(c),{titleId:d=a}=w.useContext(d5);return E.jsx(Wq,{component:"h2",className:We(u.root,o),ownerState:c,ref:n,variant:"h6",id:a??d,...s})});function Yq(e){return ct("MuiDivider",e)}const _D=ut("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Kq=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:c,variant:u}=e;return dt({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",c==="right"&&s!=="vertical"&&"textAlignRight",c==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Yq,r)},Qq=Ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Rt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ft(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Xq=Ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Rt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Hr=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:c="horizontal",component:u=a||c==="vertical"?"div":"hr",flexItem:d=!1,light:p=!1,role:h=u!=="hr"?"separator":void 0,textAlign:g="center",variant:y="fullWidth",...b}=r,x={...r,absolute:o,component:u,flexItem:d,light:p,orientation:c,role:h,textAlign:g,variant:y},S=Kq(x);return E.jsx(Qq,{as:u,className:We(S.root,s),role:h,ref:n,ownerState:x,"aria-orientation":h==="separator"&&(u!=="hr"||c==="vertical")?c:void 0,...b,children:a?E.jsx(Xq,{className:S.wrapper,ownerState:x,children:a}):null})});Hr&&(Hr.muiSkipListHighlight=!0);const Zq=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:c}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Fe(a)}`,s&&"hiddenLabel",c&&"multiline"],input:["input"]},d=dt(u,mG,t);return{...t,...d}},Jq=Ie(E0,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...b0(e,t),!n.disableUnderline&&t.underline]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${El.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${El.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${El.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${El.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${El.disabled}, .${El.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${El.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(mo()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:c})=>s.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),eW=Ie(x0,{name:"MuiFilledInput",slot:"Input",overridesResolver:v0})(Rt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),SS=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:c=!1,hiddenLabel:u,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:g={},type:y="text",...b}=r,x={...r,disableUnderline:o,fullWidth:c,inputComponent:d,multiline:p,type:y},S=Zq(r),T={root:{ownerState:x},input:{ownerState:x}},D=h??s?Nr(T,h??s):T,k=g.root??a.Root??Jq,R=g.input??a.Input??eW;return E.jsx(xS,{slots:{root:k,input:R},slotProps:D,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:y,...b,classes:S})});SS.muiName="Input";function tW(e){return ct("MuiFormControl",e)}ut("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const nW=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return dt(o,tW,t)},rW=Ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Fe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),CS=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:c="div",disabled:u=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:g=!1,margin:y="none",required:b=!1,size:x="medium",variant:S="outlined",...T}=r,D={...r,color:s,component:c,disabled:u,error:d,fullWidth:h,hiddenLabel:g,margin:y,required:b,size:x,variant:S},k=nW(D),[R,I]=w.useState(()=>{let Y=!1;return o&&w.Children.forEach(o,B=>{if(!op(B,["Input","Select"]))return;const J=op(B,["Select"])?B.props.input:B;J&&uG(J.props)&&(Y=!0)}),Y}),[O,F]=w.useState(()=>{let Y=!1;return o&&w.Children.forEach(o,B=>{op(B,["Input","Select"])&&(cy(B.props,!0)||cy(B.props.inputProps,!0))&&(Y=!0)}),Y}),[U,H]=w.useState(!1);u&&U&&H(!1);const C=p!==void 0&&!u?p:U;let M;w.useRef(!1);const V=w.useCallback(()=>{F(!0)},[]),z=w.useCallback(()=>{F(!1)},[]),W=w.useMemo(()=>({adornedStart:R,setAdornedStart:I,color:s,disabled:u,error:d,filled:O,focused:C,fullWidth:h,hiddenLabel:g,size:x,onBlur:()=>{H(!1)},onFocus:()=>{H(!0)},onEmpty:z,onFilled:V,registerEffect:M,required:b,variant:S}),[R,s,u,d,O,C,h,g,M,z,V,b,x,S]);return E.jsx(ES.Provider,{value:W,children:E.jsx(rW,{as:c,ownerState:D,className:We(k.root,a),ref:n,...T,children:o})})});function oW(e){return ct("MuiFormHelperText",e)}const AD=ut("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var wD;const aW=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:c,required:u}=e,d={root:["root",o&&"disabled",a&&"error",r&&`size${Fe(r)}`,n&&"contained",c&&"focused",s&&"filled",u&&"required"]};return dt(d,oW,t)},iW=Ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${AD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${AD.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),sW=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:c,error:u,filled:d,focused:p,margin:h,required:g,variant:y,...b}=r,x=nd(),S=td({props:r,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),T={...r,component:s,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete T.ownerState;const D=aW(T);return E.jsx(iW,{as:s,className:We(D.root,a),ref:n,...b,ownerState:T,children:o===" "?wD||(wD=E.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function lW(e){return ct("MuiFormLabel",e)}const lp=ut("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cW=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:c}=e,u={root:["root",`color${Fe(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return dt(u,lW,t)},uW=Ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(mo()).map(([t])=>({props:{color:t},style:{[`&.${lp.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lp.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),dW=Ie("span",{name:"MuiFormLabel",slot:"Asterisk"})(Rt(({theme:e})=>({[`&.${lp.error}`]:{color:(e.vars||e).palette.error.main}}))),fW=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:c="label",disabled:u,error:d,filled:p,focused:h,required:g,...y}=r,b=nd(),x=td({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),S={...r,color:x.color||"primary",component:c,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},T=cW(S);return E.jsxs(uW,{as:c,ownerState:S,className:We(T.root,a),ref:n,...y,children:[o,x.required&&E.jsxs(dW,{ownerState:S,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})}),Tr=qH({createStyledComponent:Ie("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>ft({props:e,name:"MuiGrid"}),useTheme:Js});function Ex(e){return`scale(${e}, ${e**2})`}const pW={entering:{opacity:1,transform:Ex(1)},entered:{opacity:1,transform:"none"}},$1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),uy=w.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:y,style:b,timeout:x="auto",TransitionComponent:S=za,...T}=t,D=Nl(),k=w.useRef(),R=Js(),I=w.useRef(null),O=or(I,ed(a),n),F=Y=>B=>{if(Y){const J=I.current;B===void 0?Y(J):Y(J,B)}},U=F(p),H=F((Y,B)=>{V3(Y);const{duration:J,delay:ae,easing:ne}=Ou({style:b,timeout:x,easing:s},{mode:"enter"});let N;x==="auto"?(N=R.transitions.getAutoHeightDuration(Y.clientHeight),k.current=N):N=J,Y.style.transition=[R.transitions.create("opacity",{duration:N,delay:ae}),R.transitions.create("transform",{duration:$1?N:N*.666,delay:ae,easing:ne})].join(","),u&&u(Y,B)}),C=F(d),M=F(y),V=F(Y=>{const{duration:B,delay:J,easing:ae}=Ou({style:b,timeout:x,easing:s},{mode:"exit"});let ne;x==="auto"?(ne=R.transitions.getAutoHeightDuration(Y.clientHeight),k.current=ne):ne=B,Y.style.transition=[R.transitions.create("opacity",{duration:ne,delay:J}),R.transitions.create("transform",{duration:$1?ne:ne*.666,delay:$1?J:J||ne*.333,easing:ae})].join(","),Y.style.opacity=0,Y.style.transform=Ex(.75),h&&h(Y)}),z=F(g),W=Y=>{x==="auto"&&D.start(k.current||0,Y),r&&r(I.current,Y)};return E.jsx(S,{appear:o,in:c,nodeRef:I,onEnter:H,onEntered:C,onEntering:U,onExit:V,onExited:z,onExiting:M,addEndListener:W,timeout:x==="auto"?null:x,...T,children:(Y,{ownerState:B,...J})=>w.cloneElement(a,{style:{opacity:0,transform:Ex(.75),visibility:Y==="exited"&&!c?"hidden":void 0,...pW[Y],...b,...a.props.style},ref:O,...J})})});uy&&(uy.muiSupportAuto=!0);const hW=e=>{const{classes:t,disableUnderline:n}=e,o=dt({root:["root",!n&&"underline"],input:["input"]},pG,t);return{...t,...o}},mW=Ie(E0,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...b0(e,t),!n.disableUnderline&&t.underline]}})(Rt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_f.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_f.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_f.disabled}, .${_f.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_f.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(mo()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),gW=Ie(x0,{name:"MuiInput",slot:"Input",overridesResolver:v0})({}),_S=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:g="text",...y}=r,b=hW(r),S={root:{ownerState:{disableUnderline:o}}},T=p??s?Nr(p??s,S):S,D=h.root??a.Root??mW,k=h.input??a.Input??gW;return E.jsx(xS,{slots:{root:D,input:k},slotProps:T,fullWidth:c,inputComponent:u,multiline:d,ref:n,type:g,...y,classes:b})});_S.muiName="Input";function yW(e){return ct("MuiInputLabel",e)}ut("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const bW=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:c}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Fe(r)}`,s],asterisk:[c&&"asterisk"]},d=dt(u,yW,t);return{...t,...d}},vW=Ie(fW,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lp.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Rt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),EW=w.forwardRef(function(t,n){const r=ft({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:c,className:u,...d}=r,p=nd();let h=s;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const g=td({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),y={...r,disableAnimation:o,formControl:p,shrink:h,size:g.size,variant:g.variant,required:g.required,focused:g.focused},b=bW(y);return E.jsx(vW,{"data-shrink":h,ref:n,className:We(b.root,u),...d,ownerState:y,classes:b})}),Ki=w.createContext({});function xW(e){return ct("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const TW=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return dt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},xW,t)},SW=Ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),AS=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:c=!1,disablePadding:u=!1,subheader:d,...p}=r,h=w.useMemo(()=>({dense:c}),[c]),g={...r,component:s,dense:c,disablePadding:u},y=TW(g);return E.jsx(Ki.Provider,{value:h,children:E.jsxs(SW,{as:s,className:We(y.root,a),ref:n,ownerState:g,...p,children:[d,o]})})});function CW(e){return ct("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const _W=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function AW(e){return ct("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const wW=e=>{const{disableGutters:t,classes:n}=e;return dt({root:["root",t&&"disableGutters"]},AW,n)},kW=Ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),p5=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=r,s=w.useContext(Ki),c={...r,disableGutters:s.disableGutters},u=wW(c);return E.jsx(kW,{className:We(u.root,o),ownerState:c,ref:n,...a})});p5.muiName="ListItemSecondaryAction";const DW=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},RW=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:c}=e;return dt({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},CW,n)},IW=Ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:DW})(Rt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${_W.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),OW=Ie("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),hu=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:s,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h,...g}={},dense:y=!1,disableGutters:b=!1,disablePadding:x=!1,divider:S=!1,secondaryAction:T,slotProps:D={},slots:k={},...R}=r,I=w.useContext(Ki),O=w.useMemo(()=>({dense:y||I.dense||!1,alignItems:o,disableGutters:b}),[o,I.dense,y,b]),F=w.useRef(null),U=w.Children.toArray(a),H=U.length&&op(U[U.length-1],["ListItemSecondaryAction"]),C={...r,alignItems:o,dense:O.dense,disableGutters:b,disablePadding:x,divider:S,hasSecondaryAction:H},M=RW(C),V=or(F,n),z=k.root||u.Root||IW,W=D.root||d.root||{},Y={className:We(M.root,W.className,s),...R};let B=c||"li";return H?(B=!Y.component&&!c?"div":B,p==="li"&&(B==="li"?B="div":Y.component==="li"&&(Y.component="div")),E.jsx(Ki.Provider,{value:O,children:E.jsxs(OW,{as:p,className:We(M.container,h),ref:V,ownerState:C,...g,children:[E.jsx(z,{...W,...!Mp(z)&&{as:B,ownerState:{...C,...W.ownerState}},...Y,children:U}),U.pop()]})})):E.jsx(Ki.Provider,{value:O,children:E.jsxs(z,{...W,as:B,ref:V,...!Mp(z)&&{ownerState:{...C,...W.ownerState}},...Y,children:[U,T&&E.jsx(p5,{children:T})]})})});function NW(e){return ct("MuiListItemIcon",e)}const kD=ut("MuiListItemIcon",["root","alignItemsFlexStart"]),PW=e=>{const{alignItems:t,classes:n}=e;return dt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},NW,n)},LW=Ie("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Rt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),DD=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=w.useContext(Ki),c={...r,alignItems:s.alignItems},u=PW(c);return E.jsx(LW,{className:We(u.root,o),ownerState:c,ref:n,...a})});function MW(e){return ct("MuiListItemText",e)}const mu=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),FW=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return dt({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},MW,t)},BW=Ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mu.primary}`]:t.primary},{[`& .${mu.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${oD.root}:where(& .${mu.primary})`]:{display:"block"},[`.${oD.root}:where(& .${mu.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),zl=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:c=!1,primary:u,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h,slots:g={},slotProps:y={},...b}=r,{dense:x}=w.useContext(Ki);let S=u??o,T=p;const D={...r,disableTypography:s,inset:c,primary:!!S,secondary:!!T,dense:x},k=FW(D),R={slots:g,slotProps:{primary:d,secondary:h,...y}},[I,O]=Kt("root",{className:We(k.root,a),elementType:BW,externalForwardedProps:{...R,...b},ownerState:D,ref:n}),[F,U]=Kt("primary",{className:k.primary,elementType:Ye,externalForwardedProps:R,ownerState:D}),[H,C]=Kt("secondary",{className:k.secondary,elementType:Ye,externalForwardedProps:R,ownerState:D});return S!=null&&S.type!==Ye&&!s&&(S=E.jsx(F,{variant:x?"body2":"body1",component:U?.variant?void 0:"span",...U,children:S})),T!=null&&T.type!==Ye&&!s&&(T=E.jsx(H,{variant:"body2",color:"textSecondary",...C,children:T})),E.jsxs(I,{...O,children:[S,T]})});function V1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function RD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function h5(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Af(e,t,n,r,o,a){let s=!1,c=o(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(s)return!1;s=!0}const u=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!h5(c,a)||u)c=o(e,c,n);else return c.focus(),!0}return!1}const jW=w.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:c,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu",...g}=t,y=w.useRef(null),b=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ea(()=>{o&&y.current.focus()},[o]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,{direction:R})=>{const I=!y.current.style.width;if(k.clientHeight<y.current.clientHeight&&I){const O=`${c5(Ba(k))}px`;y.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=O,y.current.style.width=`calc(100% + ${O})`}return y.current}}),[]);const x=k=>{const R=y.current,I=k.key;if(k.ctrlKey||k.metaKey||k.altKey){p&&p(k);return}const F=xo(R).activeElement;if(I==="ArrowDown")k.preventDefault(),Af(R,F,d,u,V1);else if(I==="ArrowUp")k.preventDefault(),Af(R,F,d,u,RD);else if(I==="Home")k.preventDefault(),Af(R,null,d,u,V1);else if(I==="End")k.preventDefault(),Af(R,null,d,u,RD);else if(I.length===1){const U=b.current,H=I.toLowerCase(),C=performance.now();U.keys.length>0&&(C-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&H!==U.keys[0]&&(U.repeating=!1)),U.lastTime=C,U.keys.push(H);const M=F&&!U.repeating&&h5(F,U);U.previousKeyMatched&&(M||Af(R,F,!1,u,V1,U))?k.preventDefault():U.previousKeyMatched=!1}p&&p(k)},S=or(y,n);let T=-1;w.Children.forEach(s,(k,R)=>{if(!w.isValidElement(k)){T===R&&(T+=1,T>=s.length&&(T=-1));return}k.props.disabled||(h==="selectedMenu"&&k.props.selected||T===-1)&&(T=R),T===R&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const D=w.Children.map(s,(k,R)=>{if(R===T){const I={};return a&&(I.autoFocus=!0),k.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),w.cloneElement(k,I)}return k});return E.jsx(AS,{role:"menu",ref:S,className:c,onKeyDown:x,tabIndex:o?0:-1,...g,children:D})});function UW(e){return ct("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function ID(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function OD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ND(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function tg(e){return typeof e=="function"?e():e}const HW=e=>{const{classes:t}=e;return dt({root:["root"],paper:["paper"]},UW,t)},zW=Ie(u5,{name:"MuiPopover",slot:"Root"})({}),m5=Ie(Ju,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$W=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:h,elevation:g=8,marginThreshold:y=16,open:b,PaperProps:x={},slots:S={},slotProps:T={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:k,transitionDuration:R="auto",TransitionProps:I={},disableScrollLock:O=!1,...F}=r,U=w.useRef(),H={...r,anchorOrigin:s,anchorReference:u,elevation:g,marginThreshold:y,transformOrigin:D,TransitionComponent:k,transitionDuration:R,TransitionProps:I},C=HW(H),M=w.useCallback(()=>{if(u==="anchorPosition")return c;const Le=tg(a),Qe=(Le&&Le.nodeType===1?Le:xo(U.current).body).getBoundingClientRect();return{top:Qe.top+ID(Qe,s.vertical),left:Qe.left+OD(Qe,s.horizontal)}},[a,s.horizontal,s.vertical,c,u]),V=w.useCallback(Le=>({vertical:ID(Le,D.vertical),horizontal:OD(Le,D.horizontal)}),[D.horizontal,D.vertical]),z=w.useCallback(Le=>{const Oe={width:Le.offsetWidth,height:Le.offsetHeight},Qe=V(Oe);if(u==="none")return{top:null,left:null,transformOrigin:ND(Qe)};const nt=M();let De=nt.top-Qe.vertical,gt=nt.left-Qe.horizontal;const Ct=De+Oe.height,Be=gt+Oe.width,mt=Ba(tg(a)),it=mt.innerHeight-y,lt=mt.innerWidth-y;if(y!==null&&De<y){const je=De-y;De-=je,Qe.vertical+=je}else if(y!==null&&Ct>it){const je=Ct-it;De-=je,Qe.vertical+=je}if(y!==null&><y){const je=gt-y;gt-=je,Qe.horizontal+=je}else if(Be>lt){const je=Be-lt;gt-=je,Qe.horizontal+=je}return{top:`${Math.round(De)}px`,left:`${Math.round(gt)}px`,transformOrigin:ND(Qe)}},[a,u,M,V,y]),[W,Y]=w.useState(b),B=w.useCallback(()=>{const Le=U.current;if(!Le)return;const Oe=z(Le);Oe.top!==null&&Le.style.setProperty("top",Oe.top),Oe.left!==null&&(Le.style.left=Oe.left),Le.style.transformOrigin=Oe.transformOrigin,Y(!0)},[z]);w.useEffect(()=>(O&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[a,O,B]);const J=()=>{B()},ae=()=>{Y(!1)};w.useEffect(()=>{b&&B()}),w.useImperativeHandle(o,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),w.useEffect(()=>{if(!b)return;const Le=m0(()=>{B()}),Oe=Ba(tg(a));return Oe.addEventListener("resize",Le),()=>{Le.clear(),Oe.removeEventListener("resize",Le)}},[a,b,B]);let ne=R;const N={slots:{transition:k,...S},slotProps:{transition:I,paper:x,...T}},[K,ee]=Kt("transition",{elementType:uy,externalForwardedProps:N,ownerState:H,getSlotProps:Le=>({...Le,onEntering:(Oe,Qe)=>{Le.onEntering?.(Oe,Qe),J()},onExited:Oe=>{Le.onExited?.(Oe),ae()}}),additionalProps:{appear:!0,in:b}});R==="auto"&&!K.muiSupportAuto&&(ne=void 0);const P=h||(a?xo(tg(a)).body:void 0),[re,{slots:me,slotProps:oe,...ve}]=Kt("root",{ref:n,elementType:zW,externalForwardedProps:{...N,...F},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:Uz(typeof T.backdrop=="function"?T.backdrop(H):T.backdrop,{invisible:!0})},container:P,open:b},ownerState:H,className:We(C.root,p)}),[ye,Ve]=Kt("paper",{ref:U,className:C.paper,elementType:m5,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:W?void 0:{opacity:0}},ownerState:H});return E.jsx(re,{...ve,...!Mp(re)&&{slots:me,slotProps:oe,disableScrollLock:O},children:E.jsx(K,{...ee,timeout:ne,children:E.jsx(ye,{...Ve,children:d})})})});function VW(e){return ct("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const GW={vertical:"top",horizontal:"right"},qW={vertical:"top",horizontal:"left"},WW=e=>{const{classes:t}=e;return dt({root:["root"],paper:["paper"],list:["list"]},VW,t)},YW=Ie($W,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),KW=Ie(m5,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),QW=Ie(jW,{name:"MuiMenu",slot:"List"})({outline:0}),S0=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:b,...x}={},variant:S="selectedMenu",slots:T={},slotProps:D={},...k}=r,R=gh(),I={...r,autoFocus:o,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:h,transitionDuration:y,TransitionProps:x,variant:S},O=WW(I),F=o&&!c&&p,U=w.useRef(null),H=(ne,N)=>{U.current&&U.current.adjustStyleForScrollbar(ne,{direction:R?"rtl":"ltr"}),b&&b(ne,N)},C=ne=>{ne.key==="Tab"&&(ne.preventDefault(),d&&d(ne,"tabKeyDown"))};let M=-1;w.Children.map(a,(ne,N)=>{w.isValidElement(ne)&&(ne.props.disabled||(S==="selectedMenu"&&ne.props.selected||M===-1)&&(M=N))});const V={slots:T,slotProps:{list:u,transition:x,paper:h,...D}},z=Kl({elementType:T.root,externalSlotProps:D.root,ownerState:I,className:[O.root,s]}),[W,Y]=Kt("paper",{className:O.paper,elementType:KW,externalForwardedProps:V,shouldForwardComponentProp:!0,ownerState:I}),[B,J]=Kt("list",{className:We(O.list,u.className),elementType:QW,shouldForwardComponentProp:!0,externalForwardedProps:V,getSlotProps:ne=>({...ne,onKeyDown:N=>{C(N),ne.onKeyDown?.(N)}}),ownerState:I}),ae=typeof V.slotProps.transition=="function"?V.slotProps.transition(I):V.slotProps.transition;return E.jsx(YW,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?GW:qW,slots:{root:T.root,paper:W,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:z,paper:Y,backdrop:typeof D.backdrop=="function"?D.backdrop(I):D.backdrop,transition:{...ae,onEntering:(...ne)=>{H(...ne),ae?.onEntering?.(...ne)}}},open:p,ref:n,transitionDuration:y,ownerState:I,...k,classes:g,children:E.jsx(B,{actions:U,autoFocus:o&&(M===-1||c),autoFocusItem:F,variant:S,...J,children:a})})});function XW(e){return ct("MuiMenuItem",e)}const wf=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ZW=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},JW=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,u=dt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},XW,s);return{...s,...u}},eY=Ie(Ks,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ZW})(Rt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_D.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_D.inset}`]:{marginLeft:52},[`& .${mu.root}`]:{marginTop:0,marginBottom:0},[`& .${mu.inset}`]:{paddingLeft:36},[`& .${kD.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${kD.root} svg`]:{fontSize:"1.25rem"}}}]}))),Bu=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:c=!1,disableGutters:u=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:g,...y}=r,b=w.useContext(Ki),x=w.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),S=w.useRef(null);Ea(()=>{o&&S.current&&S.current.focus()},[o]);const T={...r,dense:x.dense,divider:c,disableGutters:u},D=JW(r),k=or(S,n);let R;return r.disabled||(R=h!==void 0?h:-1),E.jsx(Ki.Provider,{value:x,children:E.jsx(eY,{ref:k,role:p,tabIndex:R,component:a,focusVisibleClassName:We(D.focusVisible,d),className:We(D.root,g),...y,ownerState:T,classes:D})})});function tY(e){return ct("MuiNativeSelect",e)}const wS=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),nY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,c={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"]};return dt(c,tY,t)},g5=Ie("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${wS.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),rY=Ie(g5,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${wS.multiple}`]:t.multiple}]}})({}),y5=Ie("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${wS.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),oY=Ie(y5,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})({}),aY=w.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:c,variant:u="standard",...d}=t,p={...t,disabled:o,variant:u,error:a},h=nY(p);return E.jsxs(w.Fragment,{children:[E.jsx(rY,{ownerState:p,className:We(h.select,r),disabled:o,ref:c||n,...d}),t.multiple?null:E.jsx(oY,{as:s,ownerState:p,className:h.icon})]})});var PD;const iY=Ie("fieldset",{shouldForwardProp:Vo})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),sY=Ie("legend",{shouldForwardProp:Vo})(Rt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function lY(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,c=o!=null&&o!=="",u={...e,notched:a,withLabel:c};return E.jsx(iY,{"aria-hidden":!0,className:r,ownerState:u,...s,children:E.jsx(sY,{ownerState:u,children:c?E.jsx("span",{children:o}):PD||(PD=E.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const cY=e=>{const{classes:t}=e,r=dt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},hG,t);return{...t,...r}},uY=Ie(E0,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:b0})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Xa.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xa.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Xa.focused} .${Xa.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(mo()).map(([n])=>({props:{color:n},style:{[`&.${Xa.focused} .${Xa.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Xa.error} .${Xa.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xa.disabled} .${Xa.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),dY=Ie(lY,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),fY=Ie(x0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:v0})(Rt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),kS=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:c,multiline:u=!1,notched:d,slots:p={},slotProps:h={},type:g="text",...y}=r,b=cY(r),x=nd(),S=td({props:r,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:a,hiddenLabel:S.hiddenLabel,multiline:u,size:S.size,type:g},D=p.root??o.Root??uY,k=p.input??o.Input??fY,[R,I]=Kt("notchedOutline",{elementType:dY,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:p,slotProps:h},additionalProps:{label:c!=null&&c!==""&&S.required?E.jsxs(w.Fragment,{children:[c," ","*"]}):c}});return E.jsx(xS,{slots:{root:D,input:k},slotProps:h,renderSuffix:O=>E.jsx(R,{...I,notched:typeof d<"u"?d:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:g,...y,classes:{...b,notchedOutline:null}})});kS.muiName="Input";function b5(e){return ct("MuiSelect",e)}const kf=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var LD;const pY=Ie(g5,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${kf.select}`]:t.select},{[`&.${kf.select}`]:t[n.variant]},{[`&.${kf.error}`]:t.error},{[`&.${kf.multiple}`]:t.multiple}]}})({[`&.${kf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hY=Ie(y5,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})({}),mY=Ie("input",{shouldForwardProp:e=>U3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function MD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function gY(e){return e==null||typeof e=="string"&&!e.trim()}const yY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,c={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Fe(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return dt(c,b5,t)},bY=w.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:c,className:u,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:g,error:y=!1,IconComponent:b,inputRef:x,labelId:S,MenuProps:T={},multiple:D,name:k,onBlur:R,onChange:I,onClose:O,onFocus:F,onOpen:U,open:H,readOnly:C,renderValue:M,required:V,SelectDisplayProps:z={},tabIndex:W,type:Y,value:B,variant:J="standard",...ae}=t,[ne,N]=lx({controlled:B,default:p,name:"Select"}),[K,ee]=lx({controlled:H,default:d,name:"Select"}),P=w.useRef(null),re=w.useRef(null),[me,oe]=w.useState(null),{current:ve}=w.useRef(H!=null),[ye,Ve]=w.useState(),Le=or(n,x),Oe=w.useCallback(Ke=>{re.current=Ke,Ke&&oe(Ke)},[]),Qe=me?.parentNode;w.useImperativeHandle(Le,()=>({focus:()=>{re.current.focus()},node:P.current,value:ne}),[ne]),w.useEffect(()=>{d&&K&&me&&!ve&&(Ve(s?null:Qe.clientWidth),re.current.focus())},[me,s]),w.useEffect(()=>{a&&re.current.focus()},[a]),w.useEffect(()=>{if(!S)return;const Ke=xo(re.current).getElementById(S);if(Ke){const Ee=()=>{getSelection().isCollapsed&&re.current.focus()};return Ke.addEventListener("click",Ee),()=>{Ke.removeEventListener("click",Ee)}}},[S]);const nt=(Ke,Ee)=>{Ke?U&&U(Ee):O&&O(Ee),ve||(Ve(s?null:Qe.clientWidth),ee(Ke))},De=Ke=>{Ke.button===0&&(Ke.preventDefault(),re.current.focus(),nt(!0,Ke))},gt=Ke=>{nt(!1,Ke)},Ct=w.Children.toArray(c),Be=Ke=>{const Ee=Ct.find(Se=>Se.props.value===Ke.target.value);Ee!==void 0&&(N(Ee.props.value),I&&I(Ke,Ee))},mt=Ke=>Ee=>{let Se;if(Ee.currentTarget.hasAttribute("tabindex")){if(D){Se=Array.isArray(ne)?ne.slice():[];const ht=ne.indexOf(Ke.props.value);ht===-1?Se.push(Ke.props.value):Se.splice(ht,1)}else Se=Ke.props.value;if(Ke.props.onClick&&Ke.props.onClick(Ee),ne!==Se&&(N(Se),I)){const ht=Ee.nativeEvent||Ee,rt=new ht.constructor(ht.type,ht);Object.defineProperty(rt,"target",{writable:!0,value:{value:Se,name:k}}),I(rt,Ke)}D||nt(!1,Ee)}},it=Ke=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(Ke.key)&&(Ke.preventDefault(),nt(!0,Ke))},lt=me!==null&&K,je=Ke=>{!lt&&R&&(Object.defineProperty(Ke,"target",{writable:!0,value:{value:ne,name:k}}),R(Ke))};delete ae["aria-invalid"];let Pe,Jt;const Mt=[];let _t=!1;(cy({value:ne})||g)&&(M?Pe=M(ne):_t=!0);const ue=Ct.map(Ke=>{if(!w.isValidElement(Ke))return null;let Ee;if(D){if(!Array.isArray(ne))throw new Error(Xi(2));Ee=ne.some(Se=>MD(Se,Ke.props.value)),Ee&&_t&&Mt.push(Ke.props.children)}else Ee=MD(ne,Ke.props.value),Ee&&_t&&(Jt=Ke.props.children);return w.cloneElement(Ke,{"aria-selected":Ee?"true":"false",onClick:mt(Ke),onKeyUp:Se=>{Se.key===" "&&Se.preventDefault(),Ke.props.onKeyUp&&Ke.props.onKeyUp(Se)},role:"option",selected:Ee,value:void 0,"data-value":Ke.props.value})});_t&&(D?Mt.length===0?Pe=null:Pe=Mt.reduce((Ke,Ee,Se)=>(Ke.push(Ee),Se<Mt.length-1&&Ke.push(", "),Ke),[]):Pe=Jt);let ge=ye;!s&&ve&&me&&(ge=Qe.clientWidth);let Ue;typeof W<"u"?Ue=W:Ue=h?null:0;const Xe=z.id||(k?`mui-component-select-${k}`:void 0),Et={...t,variant:J,value:ne,open:lt,error:y},Je=yY(Et),en={...T.PaperProps,...T.slotProps?.paper},Ut=Zu();return E.jsxs(w.Fragment,{children:[E.jsx(pY,{as:"div",ref:Oe,tabIndex:Ue,role:"combobox","aria-controls":lt?Ut:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":lt?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[S,Xe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":V?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:it,onMouseDown:h||C?null:De,onBlur:je,onFocus:F,...z,ownerState:Et,className:We(z.className,Je.select,u),id:Xe,children:gY(Pe)?LD||(LD=E.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Pe}),E.jsx(mY,{"aria-invalid":y,value:Array.isArray(ne)?ne.join(","):ne,name:k,ref:P,"aria-hidden":!0,onChange:Be,tabIndex:-1,disabled:h,className:Je.nativeInput,autoFocus:a,required:V,...ae,ownerState:Et}),E.jsx(hY,{as:b,className:Je.icon,ownerState:Et}),E.jsx(S0,{id:`menu-${k||""}`,anchorEl:Qe,open:lt,onClose:gt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,slotProps:{...T.slotProps,list:{"aria-labelledby":S,role:"listbox","aria-multiselectable":D?"true":void 0,disableListWrap:!0,id:Ut,...T.MenuListProps},paper:{...en,style:{minWidth:ge,...en!=null?en.style:null}}},children:ue})]})}),vY=e=>{const{classes:t}=e,r=dt({root:["root"]},b5,t);return{...t,...r}},DS={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Vo(e)&&e!=="variant"},EY=Ie(_S,DS)(""),xY=Ie(kS,DS)(""),TY=Ie(SS,DS)(""),v5=w.forwardRef(function(t,n){const r=ft({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:c,defaultOpen:u=!1,displayEmpty:d=!1,IconComponent:p=gG,id:h,input:g,inputProps:y,label:b,labelId:x,MenuProps:S,multiple:T=!1,native:D=!1,onClose:k,onOpen:R,open:I,renderValue:O,SelectDisplayProps:F,variant:U="outlined",...H}=r,C=D?aY:bY,M=nd(),V=td({props:r,muiFormControl:M,states:["variant","error"]}),z=V.variant||U,W={...r,variant:z,classes:s},Y=vY(W),{root:B,...J}=Y,ae=g||{standard:E.jsx(EY,{ownerState:W}),outlined:E.jsx(xY,{label:b,ownerState:W}),filled:E.jsx(TY,{ownerState:W})}[z],ne=or(n,ed(ae));return E.jsx(w.Fragment,{children:w.cloneElement(ae,{inputComponent:C,inputProps:{children:a,error:V.error,IconComponent:p,variant:z,type:void 0,multiple:T,...D?{id:h}:{autoWidth:o,defaultOpen:u,displayEmpty:d,labelId:x,MenuProps:S,onClose:k,onOpen:R,open:I,renderValue:O,SelectDisplayProps:{id:h,...F}},...y,classes:y?Nr(J,y.classes):J,...g?g.props.inputProps:{}},...(T&&D||d)&&z==="outlined"?{notched:!0}:{},ref:ne,className:We(ae.props.className,c,Y.root),...!g&&{variant:z},...H})})});v5.muiName="Select";function SY(e){return ct("MuiTooltip",e)}const Qn=ut("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function CY(e){return Math.round(e*1e5)/1e5}const _Y=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Fe(a.split("-")[0])}`],arrow:["arrow"]};return dt(s,SY,t)},AY=Ie(a5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Rt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Qn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Qn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Qn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Qn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Qn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Qn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),wY=Ie("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Fe(n.placement.split("-")[0])}`]]}})(Rt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ft(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Qn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Qn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Qn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${CY(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Qn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Qn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Qn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Qn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Qn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Qn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Qn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),kY=Ie("span",{name:"MuiTooltip",slot:"Arrow"})(Rt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ft(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ng=!1;const FD=new g0;let Df={x:0,y:0};function rg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const er=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:c={},componentsProps:u={},describeChild:d=!1,disableFocusListener:p=!1,disableHoverListener:h=!1,disableInteractive:g=!1,disableTouchListener:y=!1,enterDelay:b=100,enterNextDelay:x=0,enterTouchDelay:S=700,followCursor:T=!1,id:D,leaveDelay:k=0,leaveTouchDelay:R=1500,onClose:I,onOpen:O,open:F,placement:U="bottom",PopperComponent:H,PopperProps:C={},slotProps:M={},slots:V={},title:z,TransitionComponent:W,TransitionProps:Y,...B}=r,J=w.isValidElement(a)?a:E.jsx("span",{children:a}),ae=Js(),ne=gh(),[N,K]=w.useState(),[ee,P]=w.useState(null),re=w.useRef(!1),me=g||T,oe=Nl(),ve=Nl(),ye=Nl(),Ve=Nl(),[Le,Oe]=lx({controlled:F,default:!1,name:"Tooltip",state:"open"});let Qe=Le;const nt=Zu(D),De=w.useRef(),gt=ga(()=>{De.current!==void 0&&(document.body.style.WebkitUserSelect=De.current,De.current=void 0),Ve.clear()});w.useEffect(()=>gt,[gt]);const Ct=yt=>{FD.clear(),ng=!0,Oe(!0),O&&!Qe&&O(yt)},Be=ga(yt=>{FD.start(800+k,()=>{ng=!1}),Oe(!1),I&&Qe&&I(yt),oe.start(ae.transitions.duration.shortest,()=>{re.current=!1})}),mt=yt=>{re.current&&yt.type!=="touchstart"||(N&&N.removeAttribute("title"),ve.clear(),ye.clear(),b||ng&&x?ve.start(ng?x:b,()=>{Ct(yt)}):Ct(yt))},it=yt=>{ve.clear(),ye.start(k,()=>{Be(yt)})},[,lt]=w.useState(!1),je=yt=>{iy(yt.target)||(lt(!1),it(yt))},Pe=yt=>{N||K(yt.currentTarget),iy(yt.target)&&(lt(!0),mt(yt))},Jt=yt=>{re.current=!0;const te=J.props;te.onTouchStart&&te.onTouchStart(yt)},Mt=yt=>{Jt(yt),ye.clear(),oe.clear(),gt(),De.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ve.start(S,()=>{document.body.style.WebkitUserSelect=De.current,mt(yt)})},_t=yt=>{J.props.onTouchEnd&&J.props.onTouchEnd(yt),gt(),ye.start(R,()=>{Be(yt)})};w.useEffect(()=>{if(!Qe)return;function yt(te){te.key==="Escape"&&Be(te)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[Be,Qe]);const ue=or(ed(J),K,n);!z&&z!==0&&(Qe=!1);const ge=w.useRef(),Ue=yt=>{const te=J.props;te.onMouseMove&&te.onMouseMove(yt),Df={x:yt.clientX,y:yt.clientY},ge.current&&ge.current.update()},Xe={},Et=typeof z=="string";d?(Xe.title=!Qe&&Et&&!h?z:null,Xe["aria-describedby"]=Qe?nt:null):(Xe["aria-label"]=Et?z:null,Xe["aria-labelledby"]=Qe&&!Et?nt:null);const Je={...Xe,...B,...J.props,className:We(B.className,J.props.className),onTouchStart:Jt,ref:ue,...T?{onMouseMove:Ue}:{}},en={};y||(Je.onTouchStart=Mt,Je.onTouchEnd=_t),h||(Je.onMouseOver=rg(mt,Je.onMouseOver),Je.onMouseLeave=rg(it,Je.onMouseLeave),me||(en.onMouseOver=mt,en.onMouseLeave=it)),p||(Je.onFocus=rg(Pe,Je.onFocus),Je.onBlur=rg(je,Je.onBlur),me||(en.onFocus=Pe,en.onBlur=je));const Ut={...r,isRtl:ne,arrow:o,disableInteractive:me,placement:U,PopperComponentProp:H,touch:re.current},Ke=typeof M.popper=="function"?M.popper(Ut):M.popper,Ee=w.useMemo(()=>{let yt=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return C.popperOptions?.modifiers&&(yt=yt.concat(C.popperOptions.modifiers)),Ke?.popperOptions?.modifiers&&(yt=yt.concat(Ke.popperOptions.modifiers)),{...C.popperOptions,...Ke?.popperOptions,modifiers:yt}},[ee,C.popperOptions,Ke?.popperOptions]),Se=_Y(Ut),ht=typeof M.transition=="function"?M.transition(Ut):M.transition,rt={slots:{popper:c.Popper,transition:c.Transition??W,tooltip:c.Tooltip,arrow:c.Arrow,...V},slotProps:{arrow:M.arrow??u.arrow,popper:{...C,...Ke??u.popper},tooltip:M.tooltip??u.tooltip,transition:{...Y,...ht??u.transition}}},[mn,Pr]=Kt("popper",{elementType:AY,externalForwardedProps:rt,ownerState:Ut,className:We(Se.popper,C?.className)}),[vr,$n]=Kt("transition",{elementType:uy,externalForwardedProps:rt,ownerState:Ut}),[sr,oo]=Kt("tooltip",{elementType:wY,className:Se.tooltip,externalForwardedProps:rt,ownerState:Ut}),[xn,Lr]=Kt("arrow",{elementType:kY,className:Se.arrow,externalForwardedProps:rt,ownerState:Ut,ref:P});return E.jsxs(w.Fragment,{children:[w.cloneElement(J,Je),E.jsx(mn,{as:H??a5,placement:U,anchorEl:T?{getBoundingClientRect:()=>({top:Df.y,left:Df.x,right:Df.x,bottom:Df.y,width:0,height:0})}:N,popperRef:ge,open:N?Qe:!1,id:nt,transition:!0,...en,...Pr,popperOptions:Ee,children:({TransitionProps:yt})=>E.jsx(vr,{timeout:ae.transitions.duration.shorter,...yt,...$n,children:E.jsxs(sr,{...oo,children:[z,o?E.jsx(xn,{...Lr}):null]})})})]})}),hn=iS({createStyledComponent:Ie("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ft({props:e,name:"MuiStack"})});function DY(e){return ct("MuiTab",e)}const ra=ut("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),RY=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:s,selected:c,disabled:u}=e,d={root:["root",a&&s&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",o&&"wrapped",c&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return dt(d,DY,t)},IY=Ie(Ks,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ra.iconWrapper}`]:t.iconWrapper},{[`& .${ra.icon}`]:t.icon}]}})(Rt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${ra.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${ra.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${ra.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${ra.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ra.selected}`]:{opacity:1},[`&.${ra.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ra.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ra.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ra.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ra.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),OY=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:c,icon:u,iconPosition:d="top",indicator:p,label:h,onChange:g,onClick:y,onFocus:b,selected:x,selectionFollowsFocus:S,textColor:T="inherit",value:D,wrapped:k=!1,...R}=r,I={...r,disabled:a,disableFocusRipple:s,selected:x,icon:!!u,iconPosition:d,label:!!h,fullWidth:c,textColor:T,wrapped:k},O=RY(I),F=u&&h&&w.isValidElement(u)?w.cloneElement(u,{className:We(O.icon,u.props.className)}):u,U=C=>{!x&&g&&g(C,D),y&&y(C)},H=C=>{S&&!x&&g&&g(C,D),b&&b(C)};return E.jsxs(IY,{focusRipple:!s,className:We(O.root,o),ref:n,role:"tab","aria-selected":x,disabled:a,onClick:U,onFocus:H,ownerState:I,tabIndex:x?0:-1,...R,children:[d==="top"||d==="start"?E.jsxs(w.Fragment,{children:[F,h]}):E.jsxs(w.Fragment,{children:[h,F]}),p]})}),E5=w.createContext();function NY(e){return ct("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const PY=e=>{const{classes:t,stickyHeader:n}=e;return dt({root:["root",n&&"stickyHeader"]},NY,t)},LY=Ie("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Rt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),BD="table",dy=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTable"}),{className:o,component:a=BD,padding:s="normal",size:c="medium",stickyHeader:u=!1,...d}=r,p={...r,component:a,padding:s,size:c,stickyHeader:u},h=PY(p),g=w.useMemo(()=>({padding:s,size:c,stickyHeader:u}),[s,c,u]);return E.jsx(E5.Provider,{value:g,children:E.jsx(LY,{as:a,role:a===BD?null:"table",ref:n,className:We(h.root,o),ownerState:p,...d})})}),C0=w.createContext();function MY(e){return ct("MuiTableBody",e)}ut("MuiTableBody",["root"]);const FY=e=>{const{classes:t}=e;return dt({root:["root"]},MY,t)},BY=Ie("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),jY={variant:"body"},jD="tbody",fy=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTableBody"}),{className:o,component:a=jD,...s}=r,c={...r,component:a},u=FY(c);return E.jsx(C0.Provider,{value:jY,children:E.jsx(BY,{className:We(u.root,o),as:a,ref:n,role:a===jD?null:"rowgroup",ownerState:c,...s})})});function UY(e){return ct("MuiTableCell",e)}const HY=ut("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),zY=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:s}=e,c={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Fe(r)}`,o!=="normal"&&`padding${Fe(o)}`,`size${Fe(a)}`]};return dt(c,UY,t)},$Y=Ie("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Fe(n.size)}`],n.padding!=="normal"&&t[`padding${Fe(n.padding)}`],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Rt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
223
|
+
${e.palette.mode==="light"?f0(Ft(e.palette.divider,1),.88):d0(Ft(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${HY.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Un=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:c,scope:u,size:d,sortDirection:p,variant:h,...g}=r,y=w.useContext(E5),b=w.useContext(C0),x=b&&b.variant==="head";let S;s?S=s:S=x?"th":"td";let T=u;S==="td"?T=void 0:!T&&x&&(T="col");const D=h||b&&b.variant,k={...r,align:o,component:S,padding:c||(y&&y.padding?y.padding:"normal"),size:d||(y&&y.size?y.size:"medium"),sortDirection:p,stickyHeader:D==="head"&&y&&y.stickyHeader,variant:D},R=zY(k);let I=null;return p&&(I=p==="asc"?"ascending":"descending"),E.jsx($Y,{as:S,ref:n,className:We(R.root,a),"aria-sort":I,scope:T,ownerState:k,...g})});function VY(e){return ct("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const GY=e=>{const{classes:t}=e;return dt({root:["root"]},VY,t)},qY=Ie("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),x5=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,c={...r,component:a},u=GY(c);return E.jsx(qY,{ref:n,as:a,className:We(u.root,o),ownerState:c,...s})});function WY(e){return ct("MuiTableHead",e)}ut("MuiTableHead",["root"]);const YY=e=>{const{classes:t}=e;return dt({root:["root"]},WY,t)},KY=Ie("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),QY={variant:"head"},UD="thead",xx=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTableHead"}),{className:o,component:a=UD,...s}=r,c={...r,component:a},u=YY(c);return E.jsx(C0.Provider,{value:QY,children:E.jsx(KY,{as:a,className:We(u.root,o),ref:n,role:a===UD?null:"rowgroup",ownerState:c,...s})})});function XY(e){return ct("MuiToolbar",e)}ut("MuiToolbar",["root","gutters","regular","dense"]);const ZY=e=>{const{classes:t,disableGutters:n,variant:r}=e;return dt({root:["root",!n&&"gutters",r]},XY,t)},JY=Ie("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Rt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),eK=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:s=!1,variant:c="regular",...u}=r,d={...r,component:a,disableGutters:s,variant:c},p=ZY(d);return E.jsx(JY,{as:a,className:We(p.root,o),ref:n,ownerState:d,...u})}),tK=mi(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),nK=mi(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function rK(e){return ct("MuiTableRow",e)}const HD=ut("MuiTableRow",["root","selected","hover","head","footer"]),oK=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return dt({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},rK,t)},aK=Ie("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Rt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${HD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${HD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),zD="tr",js=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTableRow"}),{className:o,component:a=zD,hover:s=!1,selected:c=!1,...u}=r,d=w.useContext(C0),p={...r,component:a,hover:s,selected:c,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},h=oK(p);return E.jsx(aK,{as:a,ref:n,className:We(h.root,o),role:a===zD?null:"row",ownerState:p,...u})});function iK(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function sK(e,t,n,r={},o=()=>{}){const{ease:a=iK,duration:s=300}=r;let c=null;const u=t[e];let d=!1;const p=()=>{d=!0},h=g=>{if(d){o(new Error("Animation cancelled"));return}c===null&&(c=g);const y=Math.min(1,(g-c)/s);if(t[e]=a(y)*(n-u)+u,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return u===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const lK={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function cK(e){const{onChange:t,...n}=e,r=w.useRef(),o=w.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Ea(()=>{const s=m0(()=>{const u=r.current;a(),u!==r.current&&t(r.current)}),c=Ba(o.current);return c.addEventListener("resize",s),()=>{s.clear(),c.removeEventListener("resize",s)}},[t]),w.useEffect(()=>{a(),t(r.current)},[t]),E.jsx("div",{style:lK,...n,ref:o})}function uK(e){return ct("MuiTabScrollButton",e)}const dK=ut("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),fK=e=>{const{classes:t,orientation:n,disabled:r}=e;return dt({root:["root",n,r&&"disabled"]},uK,t)},pK=Ie(Ks,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${dK.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),hK=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:c,orientation:u,disabled:d,...p}=r,h=gh(),g={isRtl:h,...r},y=fK(g),b=a.StartScrollButtonIcon??tK,x=a.EndScrollButtonIcon??nK,S=Kl({elementType:b,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),T=Kl({elementType:x,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return E.jsx(pK,{component:"div",className:We(y.root,o),ref:n,role:null,ownerState:g,tabIndex:null,...p,style:{...p.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${h?-90:90}deg)`}},children:c==="left"?E.jsx(b,{...S}):E.jsx(x,{...T})})});function mK(e){return ct("MuiTabs",e)}const G1=ut("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),$D=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,VD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,og=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},gK=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:c,classes:u}=e;return dt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},mK,u)},yK=Ie("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${G1.scrollButtons}`]:t.scrollButtons},{[`& .${G1.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Rt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${G1.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),bK=Ie("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),vK=Ie("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),EK=Ie("span",{name:"MuiTabs",slot:"Indicator"})(Rt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),xK=Ie(cK)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),GD={},TK=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTabs"}),o=Js(),a=gh(),{"aria-label":s,"aria-labelledby":c,action:u,centered:d=!1,children:p,className:h,component:g="div",allowScrollButtonsMobile:y=!1,indicatorColor:b="primary",onChange:x,orientation:S="horizontal",ScrollButtonComponent:T,scrollButtons:D="auto",selectionFollowsFocus:k,slots:R={},slotProps:I={},TabIndicatorProps:O={},TabScrollButtonProps:F={},textColor:U="primary",value:H,variant:C="standard",visibleScrollbar:M=!1,...V}=r,z=C==="scrollable",W=S==="vertical",Y=W?"scrollTop":"scrollLeft",B=W?"top":"left",J=W?"bottom":"right",ae=W?"clientHeight":"clientWidth",ne=W?"height":"width",N={...r,component:g,allowScrollButtonsMobile:y,indicatorColor:b,orientation:S,vertical:W,scrollButtons:D,textColor:U,variant:C,visibleScrollbar:M,fixed:!z,hideScrollbar:z&&!M,scrollableX:z&&!W,scrollableY:z&&W,centered:d&&!z,scrollButtonsHideMobile:!y},K=gK(N),ee=Kl({elementType:R.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:N}),P=Kl({elementType:R.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:N}),[re,me]=w.useState(!1),[oe,ve]=w.useState(GD),[ye,Ve]=w.useState(!1),[Le,Oe]=w.useState(!1),[Qe,nt]=w.useState(!1),[De,gt]=w.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,Be=w.useRef(null),mt=w.useRef(null),it={slots:R,slotProps:{indicator:O,scrollButton:F,...I}},lt=()=>{const Z=Be.current;let ie;if(Z){const we=Z.getBoundingClientRect();ie={clientWidth:Z.clientWidth,scrollLeft:Z.scrollLeft,scrollTop:Z.scrollTop,scrollWidth:Z.scrollWidth,top:we.top,bottom:we.bottom,left:we.left,right:we.right}}let be;if(Z&&H!==!1){const we=mt.current.children;if(we.length>0){const qe=we[Ct.get(H)];be=qe?qe.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:be}},je=ga(()=>{const{tabsMeta:Z,tabMeta:ie}=lt();let be=0,we;W?(we="top",ie&&Z&&(be=ie.top-Z.top+Z.scrollTop)):(we=a?"right":"left",ie&&Z&&(be=(a?-1:1)*(ie[we]-Z[we]+Z.scrollLeft)));const qe={[we]:be,[ne]:ie?ie[ne]:0};if(typeof oe[we]!="number"||typeof oe[ne]!="number")ve(qe);else{const ot=Math.abs(oe[we]-qe[we]),Ze=Math.abs(oe[ne]-qe[ne]);(ot>=1||Ze>=1)&&ve(qe)}}),Pe=(Z,{animation:ie=!0}={})=>{ie?sK(Y,Be.current,Z,{duration:o.transitions.duration.standard}):Be.current[Y]=Z},Jt=Z=>{let ie=Be.current[Y];W?ie+=Z:ie+=Z*(a?-1:1),Pe(ie)},Mt=()=>{const Z=Be.current[ae];let ie=0;const be=Array.from(mt.current.children);for(let we=0;we<be.length;we+=1){const qe=be[we];if(ie+qe[ae]>Z){we===0&&(ie=Z);break}ie+=qe[ae]}return ie},_t=()=>{Jt(-1*Mt())},ue=()=>{Jt(Mt())},[ge,{onChange:Ue,...Xe}]=Kt("scrollbar",{className:We(K.scrollableX,K.hideScrollbar),elementType:xK,shouldForwardComponentProp:!0,externalForwardedProps:it,ownerState:N}),Et=w.useCallback(Z=>{Ue?.(Z),gt({overflow:null,scrollbarWidth:Z})},[Ue]),[Je,en]=Kt("scrollButtons",{className:We(K.scrollButtons,F.className),elementType:hK,externalForwardedProps:it,ownerState:N,additionalProps:{orientation:S,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ee,endScrollButtonIcon:P}}}),Ut=()=>{const Z={};Z.scrollbarSizeListener=z?E.jsx(ge,{...Xe,onChange:Et}):null;const be=z&&(D==="auto"&&(ye||Le)||D===!0);return Z.scrollButtonStart=be?E.jsx(Je,{direction:a?"right":"left",onClick:_t,disabled:!ye,...en}):null,Z.scrollButtonEnd=be?E.jsx(Je,{direction:a?"left":"right",onClick:ue,disabled:!Le,...en}):null,Z},Ke=ga(Z=>{const{tabsMeta:ie,tabMeta:be}=lt();if(!(!be||!ie)){if(be[B]<ie[B]){const we=ie[Y]+(be[B]-ie[B]);Pe(we,{animation:Z})}else if(be[J]>ie[J]){const we=ie[Y]+(be[J]-ie[J]);Pe(we,{animation:Z})}}}),Ee=ga(()=>{z&&D!==!1&&nt(!Qe)});w.useEffect(()=>{const Z=m0(()=>{Be.current&&je()});let ie;const be=ot=>{ot.forEach(Ze=>{Ze.removedNodes.forEach(st=>{ie?.unobserve(st)}),Ze.addedNodes.forEach(st=>{ie?.observe(st)})}),Z(),Ee()},we=Ba(Be.current);we.addEventListener("resize",Z);let qe;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(Z),Array.from(mt.current.children).forEach(ot=>{ie.observe(ot)})),typeof MutationObserver<"u"&&(qe=new MutationObserver(be),qe.observe(mt.current,{childList:!0})),()=>{Z.clear(),we.removeEventListener("resize",Z),qe?.disconnect(),ie?.disconnect()}},[je,Ee]),w.useEffect(()=>{const Z=Array.from(mt.current.children),ie=Z.length;if(typeof IntersectionObserver<"u"&&ie>0&&z&&D!==!1){const be=Z[0],we=Z[ie-1],qe={root:Be.current,threshold:.99},ot=bt=>{Ve(!bt[0].isIntersecting)},Ze=new IntersectionObserver(ot,qe);Ze.observe(be);const st=bt=>{Oe(!bt[0].isIntersecting)},et=new IntersectionObserver(st,qe);return et.observe(we),()=>{Ze.disconnect(),et.disconnect()}}},[z,D,Qe,p?.length]),w.useEffect(()=>{me(!0)},[]),w.useEffect(()=>{je()}),w.useEffect(()=>{Ke(GD!==oe)},[Ke,oe]),w.useImperativeHandle(u,()=>({updateIndicator:je,updateScrollButtons:Ee}),[je,Ee]);const[Se,ht]=Kt("indicator",{className:We(K.indicator,O.className),elementType:EK,externalForwardedProps:it,ownerState:N,additionalProps:{style:oe}}),rt=E.jsx(Se,{...ht});let mn=0;const Pr=w.Children.map(p,Z=>{if(!w.isValidElement(Z))return null;const ie=Z.props.value===void 0?mn:Z.props.value;Ct.set(ie,mn);const be=ie===H;return mn+=1,w.cloneElement(Z,{fullWidth:C==="fullWidth",indicator:be&&!re&&rt,selected:be,selectionFollowsFocus:k,onChange:x,textColor:U,value:ie,...mn===1&&H===!1&&!Z.props.tabIndex?{tabIndex:0}:{}})}),vr=Z=>{if(Z.altKey||Z.shiftKey||Z.ctrlKey||Z.metaKey)return;const ie=mt.current,be=xo(ie).activeElement;if(be.getAttribute("role")!=="tab")return;let qe=S==="horizontal"?"ArrowLeft":"ArrowUp",ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(qe="ArrowRight",ot="ArrowLeft"),Z.key){case qe:Z.preventDefault(),og(ie,be,VD);break;case ot:Z.preventDefault(),og(ie,be,$D);break;case"Home":Z.preventDefault(),og(ie,null,$D);break;case"End":Z.preventDefault(),og(ie,null,VD);break}},$n=Ut(),[sr,oo]=Kt("root",{ref:n,className:We(K.root,h),elementType:yK,externalForwardedProps:{...it,...V,component:g},ownerState:N}),[xn,Lr]=Kt("scroller",{ref:Be,className:K.scroller,elementType:bK,externalForwardedProps:it,ownerState:N,additionalProps:{style:{overflow:De.overflow,[W?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-De.scrollbarWidth}}}),[yt,te]=Kt("list",{ref:mt,className:We(K.list,K.flexContainer),elementType:vK,externalForwardedProps:it,ownerState:N,getSlotProps:Z=>({...Z,onKeyDown:ie=>{vr(ie),Z.onKeyDown?.(ie)}})});return E.jsxs(sr,{...oo,children:[$n.scrollButtonStart,$n.scrollbarSizeListener,E.jsxs(xn,{...Lr,children:[E.jsx(yt,{"aria-label":s,"aria-labelledby":c,"aria-orientation":S==="vertical"?"vertical":null,role:"tablist",...te,children:Pr}),re&&rt]}),$n.scrollButtonEnd]})});function SK(e){return ct("MuiTextField",e)}ut("MuiTextField",["root"]);const CK={standard:_S,filled:SS,outlined:kS},_K=e=>{const{classes:t}=e;return dt({root:["root"]},SK,t)},AK=Ie(CS,{name:"MuiTextField",slot:"Root"})({}),wK=w.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:c,color:u="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:b,id:x,InputLabelProps:S,inputProps:T,InputProps:D,inputRef:k,label:R,maxRows:I,minRows:O,multiline:F=!1,name:U,onBlur:H,onChange:C,onFocus:M,placeholder:V,required:z=!1,rows:W,select:Y=!1,SelectProps:B,slots:J={},slotProps:ae={},type:ne,value:N,variant:K="outlined",...ee}=r,P={...r,autoFocus:a,color:u,disabled:p,error:h,fullWidth:y,multiline:F,required:z,select:Y,variant:K},re=_K(P),me=Zu(x),oe=b&&me?`${me}-helper-text`:void 0,ve=R&&me?`${me}-label`:void 0,ye=CK[K],Ve={slots:J,slotProps:{input:D,inputLabel:S,htmlInput:T,formHelperText:g,select:B,...ae}},Le={},Oe=Ve.slotProps.inputLabel;K==="outlined"&&(Oe&&typeof Oe.shrink<"u"&&(Le.notched=Oe.shrink),Le.label=R),Y&&((!B||!B.native)&&(Le.id=void 0),Le["aria-describedby"]=void 0);const[Qe,nt]=Kt("root",{elementType:AK,shouldForwardComponentProp:!0,externalForwardedProps:{...Ve,...ee},ownerState:P,className:We(re.root,c),ref:n,additionalProps:{disabled:p,error:h,fullWidth:y,required:z,color:u,variant:K}}),[De,gt]=Kt("input",{elementType:ye,externalForwardedProps:Ve,additionalProps:Le,ownerState:P}),[Ct,Be]=Kt("inputLabel",{elementType:EW,externalForwardedProps:Ve,ownerState:P}),[mt,it]=Kt("htmlInput",{elementType:"input",externalForwardedProps:Ve,ownerState:P}),[lt,je]=Kt("formHelperText",{elementType:sW,externalForwardedProps:Ve,ownerState:P}),[Pe,Jt]=Kt("select",{elementType:v5,externalForwardedProps:Ve,ownerState:P}),Mt=E.jsx(De,{"aria-describedby":oe,autoComplete:o,autoFocus:a,defaultValue:d,fullWidth:y,multiline:F,name:U,rows:W,maxRows:I,minRows:O,type:ne,value:N,id:me,inputRef:k,onBlur:H,onChange:C,onFocus:M,placeholder:V,inputProps:it,slots:{input:J.htmlInput?mt:void 0},...gt});return E.jsxs(Qe,{...nt,children:[R!=null&&R!==""&&E.jsx(Ct,{htmlFor:me,id:ve,...Be,children:R}),Y?E.jsx(Pe,{"aria-describedby":oe,id:me,labelId:ve,value:N,input:Mt,...Jt,children:s}):Mt,b&&E.jsx(lt,{id:oe,...je,children:b})]})});function T5(e,t){return function(){return e.apply(t,arguments)}}const{toString:kK}=Object.prototype,{getPrototypeOf:RS}=Object,{iterator:_0,toStringTag:S5}=Symbol,A0=(e=>t=>{const n=kK.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$a=e=>(e=e.toLowerCase(),t=>A0(t)===e),w0=e=>t=>typeof t===e,{isArray:rd}=Array,Up=w0("undefined");function DK(e){return e!==null&&!Up(e)&&e.constructor!==null&&!Up(e.constructor)&&bo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const C5=$a("ArrayBuffer");function RK(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&C5(e.buffer),t}const IK=w0("string"),bo=w0("function"),_5=w0("number"),k0=e=>e!==null&&typeof e=="object",OK=e=>e===!0||e===!1,Og=e=>{if(A0(e)!=="object")return!1;const t=RS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(S5 in e)&&!(_0 in e)},NK=$a("Date"),PK=$a("File"),LK=$a("Blob"),MK=$a("FileList"),FK=e=>k0(e)&&bo(e.pipe),BK=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||bo(e.append)&&((t=A0(e))==="formdata"||t==="object"&&bo(e.toString)&&e.toString()==="[object FormData]"))},jK=$a("URLSearchParams"),[UK,HK,zK,$K]=["ReadableStream","Request","Response","Headers"].map($a),VK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),rd(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let c;for(r=0;r<s;r++)c=a[r],t.call(null,e[c],c,e)}}function A5(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Pl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,w5=e=>!Up(e)&&e!==Pl;function Tx(){const{caseless:e}=w5(this)&&this||{},t={},n=(r,o)=>{const a=e&&A5(t,o)||o;Og(t[a])&&Og(r)?t[a]=Tx(t[a],r):Og(r)?t[a]=Tx({},r):rd(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&vh(arguments[r],n);return t}const GK=(e,t,n,{allOwnKeys:r}={})=>(vh(t,(o,a)=>{n&&bo(o)?e[a]=T5(o,n):e[a]=o},{allOwnKeys:r}),e),qK=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),WK=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},YK=(e,t,n,r)=>{let o,a,s;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&RS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},KK=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},QK=e=>{if(!e)return null;if(rd(e))return e;let t=e.length;if(!_5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},XK=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&RS(Uint8Array)),ZK=(e,t)=>{const r=(e&&e[_0]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},JK=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},eQ=$a("HTMLFormElement"),tQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),qD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nQ=$a("RegExp"),k5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vh(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},rQ=e=>{k5(e,(t,n)=>{if(bo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(bo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oQ=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return rd(e)?r(e):r(String(e).split(t)),n},aQ=()=>{},iQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function sQ(e){return!!(e&&bo(e.append)&&e[S5]==="FormData"&&e[_0])}const lQ=e=>{const t=new Array(10),n=(r,o)=>{if(k0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=rd(r)?[]:{};return vh(r,(s,c)=>{const u=n(s,o+1);!Up(u)&&(a[c]=u)}),t[o]=void 0,a}}return r};return n(e,0)},cQ=$a("AsyncFunction"),uQ=e=>e&&(k0(e)||bo(e))&&bo(e.then)&&bo(e.catch),D5=((e,t)=>e?setImmediate:t?((n,r)=>(Pl.addEventListener("message",({source:o,data:a})=>{o===Pl&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Pl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",bo(Pl.postMessage)),dQ=typeof queueMicrotask<"u"?queueMicrotask.bind(Pl):typeof process<"u"&&process.nextTick||D5,fQ=e=>e!=null&&bo(e[_0]),xe={isArray:rd,isArrayBuffer:C5,isBuffer:DK,isFormData:BK,isArrayBufferView:RK,isString:IK,isNumber:_5,isBoolean:OK,isObject:k0,isPlainObject:Og,isReadableStream:UK,isRequest:HK,isResponse:zK,isHeaders:$K,isUndefined:Up,isDate:NK,isFile:PK,isBlob:LK,isRegExp:nQ,isFunction:bo,isStream:FK,isURLSearchParams:jK,isTypedArray:XK,isFileList:MK,forEach:vh,merge:Tx,extend:GK,trim:VK,stripBOM:qK,inherits:WK,toFlatObject:YK,kindOf:A0,kindOfTest:$a,endsWith:KK,toArray:QK,forEachEntry:ZK,matchAll:JK,isHTMLForm:eQ,hasOwnProperty:qD,hasOwnProp:qD,reduceDescriptors:k5,freezeMethods:rQ,toObjectSet:oQ,toCamelCase:tQ,noop:aQ,toFiniteNumber:iQ,findKey:A5,global:Pl,isContextDefined:w5,isSpecCompliantForm:sQ,toJSONObject:lQ,isAsyncFn:cQ,isThenable:uQ,setImmediate:D5,asap:dQ,isIterable:fQ};function Nt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}xe.inherits(Nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:xe.toJSONObject(this.config),code:this.code,status:this.status}}});const R5=Nt.prototype,I5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{I5[e]={value:e}});Object.defineProperties(Nt,I5);Object.defineProperty(R5,"isAxiosError",{value:!0});Nt.from=(e,t,n,r,o,a)=>{const s=Object.create(R5);return xe.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),Nt.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const pQ=null;function Sx(e){return xe.isPlainObject(e)||xe.isArray(e)}function O5(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function WD(e,t,n){return e?e.concat(t).map(function(o,a){return o=O5(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function hQ(e){return xe.isArray(e)&&!e.some(Sx)}const mQ=xe.toFlatObject(xe,{},null,function(t){return/^is[A-Z]/.test(t)});function D0(e,t,n){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=xe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,S){return!xe.isUndefined(S[x])});const r=n.metaTokens,o=n.visitor||p,a=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&xe.isSpecCompliantForm(t);if(!xe.isFunction(o))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(xe.isDate(b))return b.toISOString();if(!u&&xe.isBlob(b))throw new Nt("Blob is not supported. Use a Buffer instead.");return xe.isArrayBuffer(b)||xe.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,x,S){let T=b;if(b&&!S&&typeof b=="object"){if(xe.endsWith(x,"{}"))x=r?x:x.slice(0,-2),b=JSON.stringify(b);else if(xe.isArray(b)&&hQ(b)||(xe.isFileList(b)||xe.endsWith(x,"[]"))&&(T=xe.toArray(b)))return x=O5(x),T.forEach(function(k,R){!(xe.isUndefined(k)||k===null)&&t.append(s===!0?WD([x],R,a):s===null?x:x+"[]",d(k))}),!1}return Sx(b)?!0:(t.append(WD(S,x,a),d(b)),!1)}const h=[],g=Object.assign(mQ,{defaultVisitor:p,convertValue:d,isVisitable:Sx});function y(b,x){if(!xe.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+x.join("."));h.push(b),xe.forEach(b,function(T,D){(!(xe.isUndefined(T)||T===null)&&o.call(t,T,xe.isString(D)?D.trim():D,x,g))===!0&&y(T,x?x.concat(D):[D])}),h.pop()}}if(!xe.isObject(e))throw new TypeError("data must be an object");return y(e),t}function YD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function IS(e,t){this._pairs=[],e&&D0(e,this,t)}const N5=IS.prototype;N5.append=function(t,n){this._pairs.push([t,n])};N5.toString=function(t){const n=t?function(r){return t.call(this,r,YD)}:YD;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function P5(e,t,n){if(!t)return e;const r=n&&n.encode||gQ;xe.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=xe.isURLSearchParams(t)?t.toString():new IS(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class KD{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){xe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const L5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yQ=typeof URLSearchParams<"u"?URLSearchParams:IS,bQ=typeof FormData<"u"?FormData:null,vQ=typeof Blob<"u"?Blob:null,EQ={isBrowser:!0,classes:{URLSearchParams:yQ,FormData:bQ,Blob:vQ},protocols:["http","https","file","blob","url","data"]},OS=typeof window<"u"&&typeof document<"u",Cx=typeof navigator=="object"&&navigator||void 0,xQ=OS&&(!Cx||["ReactNative","NativeScript","NS"].indexOf(Cx.product)<0),TQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SQ=OS&&window.location.href||"http://localhost",CQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:OS,hasStandardBrowserEnv:xQ,hasStandardBrowserWebWorkerEnv:TQ,navigator:Cx,origin:SQ},Symbol.toStringTag,{value:"Module"})),Yr={...CQ,...EQ};function _Q(e,t){return D0(e,new Yr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Yr.isNode&&xe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function AQ(e){return xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wQ(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function M5(e){function t(n,r,o,a){let s=n[a++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),u=a>=n.length;return s=!s&&xe.isArray(o)?o.length:s,u?(xe.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!c):((!o[s]||!xe.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&xe.isArray(o[s])&&(o[s]=wQ(o[s])),!c)}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const n={};return xe.forEachEntry(e,(r,o)=>{t(AQ(r),o,n,0)}),n}return null}function kQ(e,t,n){if(xe.isString(e))try{return(t||JSON.parse)(e),xe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Eh={transitional:L5,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=xe.isObject(t);if(a&&xe.isHTMLForm(t)&&(t=new FormData(t)),xe.isFormData(t))return o?JSON.stringify(M5(t)):t;if(xe.isArrayBuffer(t)||xe.isBuffer(t)||xe.isStream(t)||xe.isFile(t)||xe.isBlob(t)||xe.isReadableStream(t))return t;if(xe.isArrayBufferView(t))return t.buffer;if(xe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _Q(t,this.formSerializer).toString();if((c=xe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return D0(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),kQ(t)):t}],transformResponse:[function(t){const n=this.transitional||Eh.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(xe.isResponse(t)||xe.isReadableStream(t))return t;if(t&&xe.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(s)throw c.name==="SyntaxError"?Nt.from(c,Nt.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yr.classes.FormData,Blob:Yr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xe.forEach(["delete","get","head","post","put","patch"],e=>{Eh.headers[e]={}});const DQ=xe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),RQ=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
224
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&DQ[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},QD=Symbol("internals");function Rf(e){return e&&String(e).trim().toLowerCase()}function Ng(e){return e===!1||e==null?e:xe.isArray(e)?e.map(Ng):String(e)}function IQ(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const OQ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function q1(e,t,n,r,o){if(xe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!xe.isString(t)){if(xe.isString(r))return t.indexOf(r)!==-1;if(xe.isRegExp(r))return r.test(t)}}function NQ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function PQ(e,t){const n=xe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let vo=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(c,u,d){const p=Rf(u);if(!p)throw new Error("header name must be a non-empty string");const h=xe.findKey(o,p);(!h||o[h]===void 0||d===!0||d===void 0&&o[h]!==!1)&&(o[h||u]=Ng(c))}const s=(c,u)=>xe.forEach(c,(d,p)=>a(d,p,u));if(xe.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(xe.isString(t)&&(t=t.trim())&&!OQ(t))s(RQ(t),n);else if(xe.isObject(t)&&xe.isIterable(t)){let c={},u,d;for(const p of t){if(!xe.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[d=p[0]]=(u=c[d])?xe.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}s(c,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Rf(t),t){const r=xe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return IQ(o);if(xe.isFunction(n))return n.call(this,o,r);if(xe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rf(t),t){const r=xe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||q1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=Rf(s),s){const c=xe.findKey(r,s);c&&(!n||q1(r,r[c],c,n))&&(delete r[c],o=!0)}}return xe.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||q1(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return xe.forEach(this,(o,a)=>{const s=xe.findKey(r,a);if(s){n[s]=Ng(o),delete n[a];return}const c=t?NQ(a):String(a).trim();c!==a&&delete n[a],n[c]=Ng(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return xe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&xe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
225
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[QD]=this[QD]={accessors:{}}).accessors,o=this.prototype;function a(s){const c=Rf(s);r[c]||(PQ(o,s),r[c]=!0)}return xe.isArray(t)?t.forEach(a):a(t),this}};vo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xe.reduceDescriptors(vo.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});xe.freezeMethods(vo);function W1(e,t){const n=this||Eh,r=t||n,o=vo.from(r.headers);let a=r.data;return xe.forEach(e,function(c){a=c.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function F5(e){return!!(e&&e.__CANCEL__)}function od(e,t,n){Nt.call(this,e??"canceled",Nt.ERR_CANCELED,t,n),this.name="CanceledError"}xe.inherits(od,Nt,{__CANCEL__:!0});function B5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Nt("Request failed with status code "+n.status,[Nt.ERR_BAD_REQUEST,Nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function LQ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function MQ(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),p=r[a];s||(s=d),n[o]=u,r[o]=d;let h=a,g=0;for(;h!==o;)g+=n[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-s<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function FQ(e,t){let n=0,r=1e3/t,o,a;const s=(d,p=Date.now())=>{n=p,o=null,a&&(clearTimeout(a),a=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?s(d,p):(o=d,a||(a=setTimeout(()=>{a=null,s(o)},r-h)))},()=>o&&s(o)]}const py=(e,t,n=3)=>{let r=0;const o=MQ(50,250);return FQ(a=>{const s=a.loaded,c=a.lengthComputable?a.total:void 0,u=s-r,d=o(u),p=s<=c;r=s;const h={loaded:s,total:c,progress:c?s/c:void 0,bytes:u,rate:d||void 0,estimated:d&&c&&p?(c-s)/d:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},XD=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ZD=e=>(...t)=>xe.asap(()=>e(...t)),BQ=Yr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Yr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Yr.origin),Yr.navigator&&/(msie|trident)/i.test(Yr.navigator.userAgent)):()=>!0,jQ=Yr.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];xe.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),xe.isString(r)&&s.push("path="+r),xe.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UQ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function HQ(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function j5(e,t,n){let r=!UQ(t);return e&&(r||n==!1)?HQ(e,t):t}const JD=e=>e instanceof vo?{...e}:e;function Ql(e,t){t=t||{};const n={};function r(d,p,h,g){return xe.isPlainObject(d)&&xe.isPlainObject(p)?xe.merge.call({caseless:g},d,p):xe.isPlainObject(p)?xe.merge({},p):xe.isArray(p)?p.slice():p}function o(d,p,h,g){if(xe.isUndefined(p)){if(!xe.isUndefined(d))return r(void 0,d,h,g)}else return r(d,p,h,g)}function a(d,p){if(!xe.isUndefined(p))return r(void 0,p)}function s(d,p){if(xe.isUndefined(p)){if(!xe.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}const u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(d,p,h)=>o(JD(d),JD(p),h,!0)};return xe.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=u[p]||o,g=h(e[p],t[p],p);xe.isUndefined(g)&&h!==c||(n[p]=g)}),n}const U5=e=>{const t=Ql({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:c}=t;t.headers=s=vo.from(s),t.url=P5(j5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(xe.isFormData(n)){if(Yr.hasStandardBrowserEnv||Yr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[d,...p]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...p].join("; "))}}if(Yr.hasStandardBrowserEnv&&(r&&xe.isFunction(r)&&(r=r(t)),r||r!==!1&&BQ(t.url))){const d=o&&a&&jQ.read(a);d&&s.set(o,d)}return t},zQ=typeof XMLHttpRequest<"u",$Q=zQ&&function(e){return new Promise(function(n,r){const o=U5(e);let a=o.data;const s=vo.from(o.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:d}=o,p,h,g,y,b;function x(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function T(){if(!S)return;const k=vo.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),I={data:!c||c==="text"||c==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:k,config:e,request:S};B5(function(F){n(F),x()},function(F){r(F),x()},I),S=null}"onloadend"in S?S.onloadend=T:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(T)},S.onabort=function(){S&&(r(new Nt("Request aborted",Nt.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new Nt("Network Error",Nt.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||L5;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new Nt(R,I.clarifyTimeoutError?Nt.ETIMEDOUT:Nt.ECONNABORTED,e,S)),S=null},a===void 0&&s.setContentType(null),"setRequestHeader"in S&&xe.forEach(s.toJSON(),function(R,I){S.setRequestHeader(I,R)}),xe.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),c&&c!=="json"&&(S.responseType=o.responseType),d&&([g,b]=py(d,!0),S.addEventListener("progress",g)),u&&S.upload&&([h,y]=py(u),S.upload.addEventListener("progress",h),S.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=k=>{S&&(r(!k||k.type?new od(null,e,S):k),S.abort(),S=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const D=LQ(o.url);if(D&&Yr.protocols.indexOf(D)===-1){r(new Nt("Unsupported protocol "+D+":",Nt.ERR_BAD_REQUEST,e));return}S.send(a||null)})},VQ=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(d){if(!o){o=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Nt?p:new od(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{s=null,a(new Nt(`timeout ${t} of ms exceeded`,Nt.ETIMEDOUT))},t);const c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>xe.asap(c),u}},GQ=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},qQ=async function*(e,t){for await(const n of WQ(e))yield*GQ(n,t)},WQ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},eR=(e,t,n,r)=>{const o=qQ(e,t);let a=0,s,c=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await o.next();if(d){c(),u.close();return}let h=p.byteLength;if(n){let g=a+=h;n(g)}u.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(u){return c(u),o.return()}},{highWaterMark:2})},R0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",H5=R0&&typeof ReadableStream=="function",YQ=R0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),z5=(e,...t)=>{try{return!!e(...t)}catch{return!1}},KQ=H5&&z5(()=>{let e=!1;const t=new Request(Yr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tR=64*1024,_x=H5&&z5(()=>xe.isReadableStream(new Response("").body)),hy={stream:_x&&(e=>e.body)};R0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!hy[t]&&(hy[t]=xe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Nt(`Response type '${t}' is not supported`,Nt.ERR_NOT_SUPPORT,r)})})})(new Response);const QQ=async e=>{if(e==null)return 0;if(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e))return(await new Request(Yr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(xe.isArrayBufferView(e)||xe.isArrayBuffer(e))return e.byteLength;if(xe.isURLSearchParams(e)&&(e=e+""),xe.isString(e))return(await YQ(e)).byteLength},XQ=async(e,t)=>{const n=xe.toFiniteNumber(e.getContentLength());return n??QQ(t)},ZQ=R0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:s,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=U5(e);d=d?(d+"").toLowerCase():"text";let y=VQ([o,a&&a.toAbortSignal()],s),b;const x=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let S;try{if(u&&KQ&&n!=="get"&&n!=="head"&&(S=await XQ(p,r))!==0){let I=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(xe.isFormData(r)&&(O=I.headers.get("content-type"))&&p.setContentType(O),I.body){const[F,U]=XD(S,py(ZD(u)));r=eR(I.body,tR,F,U)}}xe.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;b=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let D=await fetch(b);const k=_x&&(d==="stream"||d==="response");if(_x&&(c||k&&x)){const I={};["status","statusText","headers"].forEach(H=>{I[H]=D[H]});const O=xe.toFiniteNumber(D.headers.get("content-length")),[F,U]=c&&XD(O,py(ZD(c),!0))||[];D=new Response(eR(D.body,tR,F,()=>{U&&U(),x&&x()}),I)}d=d||"text";let R=await hy[xe.findKey(hy,d)||"text"](D,e);return!k&&x&&x(),await new Promise((I,O)=>{B5(I,O,{data:R,headers:vo.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:b})})}catch(T){throw x&&x(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new Nt("Network Error",Nt.ERR_NETWORK,e,b),{cause:T.cause||T}):Nt.from(T,T&&T.code,e,b)}}),Ax={http:pQ,xhr:$Q,fetch:ZQ};xe.forEach(Ax,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nR=e=>`- ${e}`,JQ=e=>xe.isFunction(e)||e===null||e===!1,$5={getAdapter:e=>{e=xe.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){n=e[a];let s;if(r=n,!JQ(n)&&(r=Ax[(s=String(n)).toLowerCase()],r===void 0))throw new Nt(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+a]=r}if(!r){const a=Object.entries(o).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since :
|
|
226
|
+
`+a.map(nR).join(`
|
|
227
|
+
`):" "+nR(a[0]):"as no adapter specified";throw new Nt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ax};function Y1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new od(null,e)}function rR(e){return Y1(e),e.headers=vo.from(e.headers),e.data=W1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$5.getAdapter(e.adapter||Eh.adapter)(e).then(function(r){return Y1(e),r.data=W1.call(e,e.transformResponse,r),r.headers=vo.from(r.headers),r},function(r){return F5(r)||(Y1(e),r&&r.response&&(r.response.data=W1.call(e,e.transformResponse,r.response),r.response.headers=vo.from(r.response.headers))),Promise.reject(r)})}const V5="1.9.0",I0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{I0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const oR={};I0.transitional=function(t,n,r){function o(a,s){return"[Axios v"+V5+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,c)=>{if(t===!1)throw new Nt(o(s," has been removed"+(n?" in "+n:"")),Nt.ERR_DEPRECATED);return n&&!oR[s]&&(oR[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,c):!0}};I0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function eX(e,t,n){if(typeof e!="object")throw new Nt("options must be an object",Nt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const c=e[a],u=c===void 0||s(c,a,e);if(u!==!0)throw new Nt("option "+a+" must be "+u,Nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Nt("Unknown option "+a,Nt.ERR_BAD_OPTION)}}const Pg={assertOptions:eX,validators:I0},Za=Pg.validators;let $l=class{constructor(t){this.defaults=t||{},this.interceptors={request:new KD,response:new KD}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
228
|
+
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ql(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Pg.assertOptions(r,{silentJSONParsing:Za.transitional(Za.boolean),forcedJSONParsing:Za.transitional(Za.boolean),clarifyTimeoutError:Za.transitional(Za.boolean)},!1),o!=null&&(xe.isFunction(o)?n.paramsSerializer={serialize:o}:Pg.assertOptions(o,{encode:Za.function,serialize:Za.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Pg.assertOptions(n,{baseUrl:Za.spelling("baseURL"),withXsrfToken:Za.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&xe.merge(a.common,a[n.method]);a&&xe.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=vo.concat(s,a);const c=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,c.unshift(x.fulfilled,x.rejected))});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let p,h=0,g;if(!u){const b=[rR.bind(this),void 0];for(b.unshift.apply(b,c),b.push.apply(b,d),g=b.length,p=Promise.resolve(n);h<g;)p=p.then(b[h++],b[h++]);return p}g=c.length;let y=n;for(h=0;h<g;){const b=c[h++],x=c[h++];try{y=b(y)}catch(S){x.call(this,S);break}}try{p=rR.call(this,y)}catch(b){return Promise.reject(b)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=Ql(this.defaults,t);const n=j5(t.baseURL,t.url,t.allowAbsoluteUrls);return P5(n,t.params,t.paramsSerializer)}};xe.forEach(["delete","get","head","options"],function(t){$l.prototype[t]=function(n,r){return this.request(Ql(r||{},{method:t,url:n,data:(r||{}).data}))}});xe.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,c){return this.request(Ql(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}$l.prototype[t]=n(),$l.prototype[t+"Form"]=n(!0)});let tX=class G5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(c=>{r.subscribe(c),a=c}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,c){r.reason||(r.reason=new od(a,s,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new G5(function(o){t=o}),cancel:t}}};function nX(e){return function(n){return e.apply(null,n)}}function rX(e){return xe.isObject(e)&&e.isAxiosError===!0}const wx={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wx).forEach(([e,t])=>{wx[t]=e});function q5(e){const t=new $l(e),n=T5($l.prototype.request,t);return xe.extend(n,$l.prototype,t,{allOwnKeys:!0}),xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return q5(Ql(e,o))},n}const Pt=q5(Eh);Pt.Axios=$l;Pt.CanceledError=od;Pt.CancelToken=tX;Pt.isCancel=F5;Pt.VERSION=V5;Pt.toFormData=D0;Pt.AxiosError=Nt;Pt.Cancel=Pt.CanceledError;Pt.all=function(t){return Promise.all(t)};Pt.spread=nX;Pt.isAxiosError=rX;Pt.mergeConfig=Ql;Pt.AxiosHeaders=vo;Pt.formToJSON=e=>M5(xe.isHTMLForm(e)?new FormData(e):e);Pt.getAdapter=$5.getAdapter;Pt.HttpStatusCode=wx;Pt.default=Pt;const{Axios:uEe,AxiosError:dEe,CanceledError:fEe,isCancel:pEe,CancelToken:hEe,VERSION:mEe,all:gEe,Cancel:yEe,isAxiosError:bEe,spread:vEe,toFormData:EEe,AxiosHeaders:xEe,HttpStatusCode:TEe,formToJSON:SEe,getAdapter:CEe,mergeConfig:_Ee}=Pt;var ad=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xl=typeof window>"u"||"Deno"in globalThis;function sa(){}function oX(e,t){return typeof e=="function"?e(t):e}function kx(e){return typeof e=="number"&&e>=0&&e!==1/0}function W5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Tu(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){return typeof e=="function"?e(t):e}function aR(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==NS(s,t.options))return!1}else if(!Hp(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||a&&!a(t))}function iR(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Zl(t.options.mutationKey)!==Zl(a))return!1}else if(!Hp(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function NS(e,t){return(t?.queryKeyHashFn||Zl)(e)}function Zl(e){return JSON.stringify(e,(t,n)=>Dx(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Hp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Hp(e[n],t[n])):!1}function Y5(e,t){if(e===t)return e;const n=sR(e)&&sR(t);if(n||Dx(e)&&Dx(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),s=a.length,c=n?[]:{};let u=0;for(let d=0;d<s;d++){const p=n?d:a[d];(!n&&r.includes(p)||n)&&e[p]===void 0&&t[p]===void 0?(c[p]=void 0,u++):(c[p]=Y5(e[p],t[p]),c[p]===e[p]&&e[p]!==void 0&&u++)}return o===s&&u===o?e:c}return t}function my(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function sR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Dx(e){if(!lR(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!lR(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lR(e){return Object.prototype.toString.call(e)==="[object Object]"}function aX(e){return new Promise(t=>{setTimeout(t,e)})}function Rx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Y5(e,t):t}function iX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function sX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var PS=Symbol();function K5(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===PS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var lX=class extends ad{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Xl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},LS=new lX,cX=class extends ad{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Xl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},gy=new cX;function Ix(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function uX(e){return Math.min(1e3*2**e,3e4)}function Q5(e){return(e??"online")==="online"?gy.isOnline():!0}var X5=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function K1(e){return e instanceof X5}function Z5(e){let t=!1,n=0,r=!1,o;const a=Ix(),s=x=>{r||(g(new X5(x)),e.abort?.())},c=()=>{t=!0},u=()=>{t=!1},d=()=>LS.isFocused()&&(e.networkMode==="always"||gy.isOnline())&&e.canRun(),p=()=>Q5(e.networkMode)&&e.canRun(),h=x=>{r||(r=!0,e.onSuccess?.(x),o?.(),a.resolve(x))},g=x=>{r||(r=!0,e.onError?.(x),o?.(),a.reject(x))},y=()=>new Promise(x=>{o=S=>{(r||d())&&x(S)},e.onPause?.()}).then(()=>{o=void 0,r||e.onContinue?.()}),b=()=>{if(r)return;let x;const S=n===0?e.initialPromise:void 0;try{x=S??e.fn()}catch(T){x=Promise.reject(T)}Promise.resolve(x).then(h).catch(T=>{if(r)return;const D=e.retry??(Xl?0:3),k=e.retryDelay??uX,R=typeof k=="function"?k(n,T):k,I=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,T);if(t||!I){g(T);return}n++,e.onFail?.(n,T),aX(R).then(()=>d()?void 0:y()).then(()=>{t?g(T):b()})})};return{promise:a,cancel:s,continue:()=>(o?.(),a),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?b():y().then(b),a)}}var dX=e=>setTimeout(e,0);function fX(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=dX;const a=c=>{t?e.push(c):o(()=>{n(c)})},s=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||s()}return u},batchCalls:c=>(...u)=>{a(()=>{c(...u)})},schedule:a,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Cr=fX(),J5=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kx(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xl?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},pX=class extends J5{#t;#e;#n;#r;#o;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=hX(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Rx(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(sa).catch(sa):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Oa(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===PS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!W5(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#s?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const c=K5(this.options,t),u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),this.#s=!1,this.options.persister?this.options.persister(c,u,this):c(u)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};r(a),this.options.behavior?.onFetch(a,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});const s=c=>{K1(c)&&c.silent||this.#a({type:"error",error:c}),K1(c)||(this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return this.#o=Z5({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:c=>{if(c===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(u){s(u);return}this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:s,onFail:(c,u)=>{this.#a({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#o.start()}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...e4(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return K1(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Cr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function e4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Q5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hX(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var mX=class extends ad{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??NS(r,t);let a=this.get(o);return a||(a=new pX({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Cr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>aR(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>aR(e,n)):t}notify(e){Cr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Cr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Cr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},gX=class extends J5{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||t4(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=Z5({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(o,a)=>{this.#r({type:"failed",failureCount:o,error:a})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const a=await this.options.onMutate?.(e);a!==this.state.context&&this.#r({type:"pending",context:a,variables:e,isPaused:r})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,e,this.state.context,this),await this.options.onError?.(o,e,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,e,this.state.context),o}finally{this.#r({type:"error",error:o})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Cr.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function t4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var yX=class extends ad{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new gX({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=ag(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=ag(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ag(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=ag(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Cr.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>iR(t,n))}findAll(e={}){return this.getAll().filter(t=>iR(e,t))}notify(e){Cr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Cr.batch(()=>Promise.all(e.map(t=>t.continue().catch(sa))))}};function ag(e){return e.options.scope?.id}function cR(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const d=async()=>{let p=!1;const h=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},g=K5(t.options,t.fetchOptions),y=async(b,x,S)=>{if(p)return Promise.reject();if(x==null&&b.pages.length)return Promise.resolve(b);const T={client:t.client,queryKey:t.queryKey,pageParam:x,direction:S?"backward":"forward",meta:t.options.meta};h(T);const D=await g(T),{maxPages:k}=t.options,R=S?sX:iX;return{pages:R(b.pages,D,k),pageParams:R(b.pageParams,x,k)}};if(o&&a.length){const b=o==="backward",x=b?bX:uR,S={pages:a,pageParams:s},T=x(r,S);c=await y(S,T,b)}else{const b=e??a.length;do{const x=u===0?s[0]??r.initialPageParam:uR(r,c);if(u>0&&x==null)break;c=await y(c,x),u++}while(u<b)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function uR(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function bX(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var vX=class{#t;#e;#n;#r;#o;#i;#s;#a;constructor(e={}){this.#t=e.queryCache||new mX,this.#e=e.mutationCache||new yX,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=LS.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=gy.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Tu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=this.#t.get(r.queryHash)?.state.data,s=oX(t,a);if(s!==void 0)return this.#t.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Cr.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Cr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Cr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Cr.batch(()=>this.#t.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(sa).catch(sa)}invalidateQueries(e,t={}){return Cr.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Cr.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(sa)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(sa)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Tu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sa).catch(sa)}fetchInfiniteQuery(e){return e.behavior=cR(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sa).catch(sa)}ensureInfiniteQueryData(e){return e.behavior=cR(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gy.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Zl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Hp(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(Zl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Hp(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=NS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===PS&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},EX=class extends ad{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#s=Ix(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#o;#i;#s;#a;#m;#f;#p;#c;#u;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),dR(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ox(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ox(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#x(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oa(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#e.setOptions(this.options),t._defaulted&&!my(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&fR(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Oa(this.options.enabled,this.#e)!==Oa(t.enabled,this.#e)||Tu(this.options.staleTime,this.#e)!==Tu(t.staleTime,this.#e))&&this.#g();const o=this.#y();r&&(this.#e!==n||Oa(this.options.enabled,this.#e)!==Oa(t.enabled,this.#e)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return TX(this,n)&&(this.#r=n,this.#i=this.options,this.#o=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){const n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#T();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(sa)),t}#g(){this.#E();const e=Tu(this.options.staleTime,this.#e);if(Xl||this.#r.isStale||!kx(e))return;const n=W5(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#x(),this.#l=e,!(Xl||Oa(this.options.enabled,this.#e)===!1||!kx(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||LS.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#b(this.#y())}#E(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#x(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,o=this.#r,a=this.#o,s=this.#i,u=e!==n?e.state:this.#n,{state:d}=e;let p={...d},h=!1,g;if(t._optimisticResults){const U=this.hasListeners(),H=!U&&dR(e,t),C=U&&fR(e,n,t,r);(H||C)&&(p={...p,...e4(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:x}=p;g=p.data;let S=!1;if(t.placeholderData!==void 0&&g===void 0&&x==="pending"){let U;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(U=o.data,S=!0):U=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,U!==void 0&&(x="success",g=Rx(o?.data,U,t),h=!0)}if(t.select&&g!==void 0&&!S)if(o&&g===a?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=Rx(o?.data,g,t),this.#f=g,this.#a=null}catch(U){this.#a=U}this.#a&&(y=this.#a,g=this.#f,b=Date.now(),x="error");const T=p.fetchStatus==="fetching",D=x==="pending",k=x==="error",R=D&&T,I=g!==void 0,F={status:x,fetchStatus:p.fetchStatus,isPending:D,isSuccess:x==="success",isError:k,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:T,isRefetching:T&&!D,isLoadingError:k&&!I,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:k&&I,isStale:MS(e,t),refetch:this.refetch,promise:this.#s};if(this.options.experimental_prefetchInRender){const U=M=>{F.status==="error"?M.reject(F.error):F.data!==void 0&&M.resolve(F.data)},H=()=>{const M=this.#s=F.promise=Ix();U(M)},C=this.#s;switch(C.status){case"pending":e.queryHash===n.queryHash&&U(C);break;case"fulfilled":(F.status==="error"||F.data!==C.value)&&H();break;case"rejected":(F.status!=="error"||F.error!==C.reason)&&H();break}}return F}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#o=this.#e.state,this.#i=this.options,this.#o.data!==void 0&&(this.#p=this.#e),my(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#h.size)return!0;const a=new Set(o??this.#h);return this.options.throwOnError&&a.add("error"),Object.keys(this.#r).some(s=>{const c=s;return this.#r[c]!==e[c]&&a.has(c)})};this.#S({listeners:n()})}#T(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#S(e){Cr.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function xX(e,t){return Oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dR(e,t){return xX(e,t)||e.state.data!==void 0&&Ox(e,t,t.refetchOnMount)}function Ox(e,t,n){if(Oa(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&MS(e,t)}return!1}function fR(e,t,n,r){return(e!==t||Oa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&MS(e,n)}function MS(e,t){return Oa(t.enabled,e)!==!1&&e.isStaleByTime(Tu(t.staleTime,e))}function TX(e,t){return!my(e.getCurrentResult(),t)}var SX=class extends ad{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),my(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Zl(n.mutationKey)!==Zl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#o(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#i()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#o(){const t=this.#n?.state??t4();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){Cr.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},CX=w.createContext(void 0),n4=e=>{const t=w.useContext(CX);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},r4=w.createContext(!1),_X=()=>w.useContext(r4);r4.Provider;function AX(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var wX=w.createContext(AX()),kX=()=>w.useContext(wX);function o4(e,t){return typeof e=="function"?e(...t):!!e}function Nx(){}var DX=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},RX=e=>{w.useEffect(()=>{e.clearReset()},[e])},IX=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||o4(n,[e.error,r])),OX=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},NX=(e,t)=>e.isLoading&&e.isFetching&&!t,PX=(e,t)=>e?.suspense&&t.isPending,pR=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function LX(e,t,n){const r=n4(n),o=_X(),a=kX(),s=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=o?"isRestoring":"optimistic",OX(s),DX(s,a),RX(a);const c=!r.getQueryCache().get(s.queryHash),[u]=w.useState(()=>new t(r,s)),d=u.getOptimisticResult(s),p=!o&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(h=>{const g=p?u.subscribe(Cr.batchCalls(h)):Nx;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),w.useEffect(()=>{u.setOptions(s)},[s,u]),PX(s,d))throw pR(s,u,a);if(IX({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(s,d),s.experimental_prefetchInRender&&!Xl&&NX(d,o)&&(c?pR(s,u,a):r.getQueryCache().get(s.queryHash)?.promise)?.catch(Nx).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}function MX(e,t){return LX(e,EX,t)}function FX(e,t){const n=n4(t),[r]=w.useState(()=>new SX(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const o=w.useSyncExternalStore(w.useCallback(s=>r.subscribe(Cr.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=w.useCallback((s,c)=>{r.mutate(s,c).catch(Nx)},[r]);if(o.error&&o4(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dl.apply(this,arguments)}const BX=["children","options"],St={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var hR;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(hR||(hR={}));const mR=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),gR={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},jX=["style","script"],UX=["src","href","data","formAction","srcDoc","action"],HX=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,zX=/mailto:/i,$X=/\n{2,}$/,a4=/^(\s*>[\s\S]*?)(?=\n\n|$)/,VX=/^ *> ?/gm,GX=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,qX=/^ {2,}\n/,WX=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,i4=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,s4=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,YX=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,KX=/^(?:\n *)*\n/,QX=/\r\n?/g,XX=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,ZX=/^\[\^([^\]]+)]/,JX=/\f/g,eZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,tZ=/^\s*?\[(x|\s)\]/,l4=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,c4=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,u4=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Px=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,nZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,d4=/^<!--[\s\S]*?(?:-->)/,rZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Lx=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,oZ=/^\{.*\}$/,aZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,iZ=/^<([^ >]+@[^ >]+)>/,sZ=/^<([^ >]+:\/[^ >]+)>/,lZ=/-([a-z])?/gi,f4=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,cZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,uZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,dZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,fZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,pZ=/\t/g,hZ=/(^ *\||\| *$)/g,mZ=/^ *:-+: *$/,gZ=/^ *:-+ *$/,yZ=/^ *-+: *$/,O0="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",bZ=new RegExp(`^([*_])\\1${O0}\\1\\1(?!\\1)`),vZ=new RegExp(`^([*_])${O0}\\1(?!\\1)`),EZ=new RegExp(`^(==)${O0}\\1`),xZ=new RegExp(`^(~~)${O0}\\1`),TZ=/^\\([^0-9A-Za-z\s])/,yR=/\\([^0-9A-Za-z\s])/g,SZ=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,CZ=/^\n+/,_Z=/^([ \t]*)/,AZ=/\\([^\\])/g,wZ=/(?:^|\n)( *)$/,FS="(?:\\d+\\.)",BS="(?:[*+-])";function p4(e){return"( *)("+(e===1?FS:BS)+") +"}const h4=p4(1),m4=p4(2);function g4(e){return new RegExp("^"+(e===1?h4:m4))}const kZ=g4(1),DZ=g4(2);function y4(e){return new RegExp("^"+(e===1?h4:m4)+"[^\\n]*(?:\\n(?!\\1"+(e===1?FS:BS)+" )[^\\n]*)*(\\n|$)","gm")}const RZ=y4(1),IZ=y4(2);function b4(e){const t=e===1?FS:BS;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const v4=b4(1),E4=b4(2);function bR(e,t){const n=t===1,r=n?v4:E4,o=n?RZ:IZ,a=n?kZ:DZ;return{match:ju(function(s,c){const u=wZ.exec(c.prevCapture);return u&&(c.list||!c.inline&&!c.simple)?r.exec(s=u[1]+s):null}),order:1,parse(s,c,u){const d=n?+s[2]:void 0,p=s[0].replace($X,`
|
|
229
|
+
`).match(o);let h=!1;return{items:p.map(function(g,y){const b=a.exec(g)[0].length,x=new RegExp("^ {1,"+b+"}","gm"),S=g.replace(x,"").replace(a,""),T=y===p.length-1,D=S.indexOf(`
|
|
230
|
+
|
|
231
|
+
`)!==-1||T&&h;h=D;const k=u.inline,R=u.list;let I;u.list=!0,D?(u.inline=!1,I=zp(S)+`
|
|
232
|
+
|
|
233
|
+
`):(u.inline=!0,I=zp(S));const O=c(I,u);return u.inline=k,u.list=R,O}),ordered:n,start:d}},render:(s,c,u)=>e(s.ordered?"ol":"ul",{key:u.key,start:s.type===St.orderedList?s.start:void 0},s.items.map(function(d,p){return e("li",{key:p},c(d,u))}))}}const OZ=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),NZ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,x4=[a4,i4,s4,l4,u4,c4,f4,v4,E4],PZ=[...x4,/^[^\n]+(?: \n|\n{2,})/,Px,d4,Lx];function zp(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function If(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function LZ(e){return yZ.test(e)?"right":mZ.test(e)?"center":gZ.test(e)?"left":null}function vR(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function c(){if(!s)return;const u=a[a.length-1];u.push.apply(u,t(s,n)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,d,p)=>{u.trim()==="|"&&(c(),r)?d!==0&&d!==p.length-1&&a.push([]):s+=u}),c(),n.inTable=o,a}function MZ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(hZ,"").split("|").map(LZ):[],o=e[3]?function(s,c,u){return s.trim().split(`
|
|
234
|
+
`).map(function(d){return vR(d,c,u,!0)})}(e[3],t,n):[],a=vR(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:a,type:St.table}:{children:a,type:St.paragraph}}function ER(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function ju(e){return e.inline=1,e}function Rs(e){return ju(function(t,n){return n.inline?e.exec(t):null})}function Is(e){return ju(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Mi(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Of(e){return ju(function(t){return e.exec(t)})}function FZ(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
|
|
235
|
+
`).every(o=>(o+=`
|
|
236
|
+
`,!x4.some(a=>a.test(o))&&(n+=o,!!o.trim())));const r=zp(n);return r==""?null:[n,,r]}const BZ=/(javascript|vbscript|data(?!:image)):/i;function jZ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(BZ.test(t))return null}catch{return null}return e}function xR(e){return e.replace(AZ,"$1")}function Lg(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!0,n.simple=!0;const a=e(t,n);return n.inline=r,n.simple=o,a}function UZ(e,t,n){const r=n.inline||!1,o=n.simple||!1;n.inline=!1,n.simple=!0;const a=e(t,n);return n.inline=r,n.simple=o,a}function HZ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const Q1=(e,t,n)=>({children:Lg(t,e[2],n)});function X1(){return{}}function Z1(){return null}function zZ(...e){return e.filter(Boolean).join(" ")}function J1(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}function $Z(e="",t={}){function n(g,y,...b){const x=J1(t.overrides,`${g}.props`,{});return t.createElement(function(S,T){const D=J1(T,S);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:J1(T,`${S}.component`,S):S}(g,t.overrides),Dl({},y,x,{className:zZ(y?.className,x.className)||void 0}),...b)}function r(g){g=g.replace(eZ,"");let y=!1;t.forceInline?y=!0:t.forceBlock||(y=fZ.test(g)===!1);const b=d(u(y?g:`${zp(g).replace(CZ,"")}
|
|
237
|
+
|
|
238
|
+
`,{inline:y}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(t.wrapper===null)return b;const x=t.wrapper||(y?"span":"div");let S;if(b.length>1||t.forceWrapper)S=b;else{if(b.length===1)return S=b[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return t.createElement(x,{key:"outer"},S)}function o(g,y){const b=y.match(HX);return b?b.reduce(function(x,S){const T=S.indexOf("=");if(T!==-1){const D=function(O){return O.indexOf("-")!==-1&&O.match(rZ)===null&&(O=O.replace(lZ,function(F,U){return U.toUpperCase()})),O}(S.slice(0,T)).trim(),k=function(O){const F=O[0];return(F==='"'||F==="'")&&O.length>=2&&O[O.length-1]===F?O.slice(1,-1):O}(S.slice(T+1).trim()),R=mR[D]||D;if(R==="ref")return x;const I=x[R]=function(O,F,U,H){return F==="style"?function(C){const M=[];let V="",z=!1,W=!1,Y="";if(!C)return M;for(let J=0;J<C.length;J++){const ae=C[J];if(ae!=='"'&&ae!=="'"||z||(W?ae===Y&&(W=!1,Y=""):(W=!0,Y=ae)),ae==="("&&V.endsWith("url")?z=!0:ae===")"&&z&&(z=!1),ae!==";"||W||z)V+=ae;else{const ne=V.trim();if(ne){const N=ne.indexOf(":");if(N>0){const K=ne.slice(0,N).trim(),ee=ne.slice(N+1).trim();M.push([K,ee])}}V=""}}const B=V.trim();if(B){const J=B.indexOf(":");if(J>0){const ae=B.slice(0,J).trim(),ne=B.slice(J+1).trim();M.push([ae,ne])}}return M}(U).reduce(function(C,[M,V]){return C[M.replace(/(-[a-z])/g,z=>z[1].toUpperCase())]=H(V,O,M),C},{}):UX.indexOf(F)!==-1?H(U,O,F):(U.match(oZ)&&(U=U.slice(1,U.length-1)),U==="true"||U!=="false"&&U)}(g,D,k,t.sanitizer);typeof I=="string"&&(Px.test(I)||Lx.test(I))&&(x[R]=r(I.trim()))}else S!=="style"&&(x[mR[S]||S]=!0);return x},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||jZ,t.slugify=t.slugify||If,t.namedCodesToUnicode=t.namedCodesToUnicode?Dl({},gR,t.namedCodesToUnicode):gR,t.createElement=t.createElement||w.createElement;const a=[],s={},c={[St.blockQuote]:{match:Mi(a4),order:1,parse(g,y,b){const[,x,S]=g[0].replace(VX,"").match(GX);return{alert:x,children:y(S,b)}},render(g,y,b){const x={key:b.key};return g.alert&&(x.className="markdown-alert-"+t.slugify(g.alert.toLowerCase(),If),g.children.unshift({attrs:{},children:[{type:St.text,text:g.alert}],noInnerParse:!0,type:St.htmlBlock,tag:"header"})),n("blockquote",x,y(g.children,b))}},[St.breakLine]:{match:Of(qX),order:1,parse:X1,render:(g,y,b)=>n("br",{key:b.key})},[St.breakThematic]:{match:Mi(WX),order:1,parse:X1,render:(g,y,b)=>n("hr",{key:b.key})},[St.codeBlock]:{match:Mi(s4),order:0,parse:g=>({lang:void 0,text:zp(g[0].replace(/^ {4}/gm,"")).replace(yR,"$1")}),render:(g,y,b)=>n("pre",{key:b.key},n("code",Dl({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[St.codeFenced]:{match:Mi(i4),order:0,parse:g=>({attrs:o("code",g[3]||""),lang:g[2]||void 0,text:g[4],type:St.codeBlock})},[St.codeInline]:{match:Is(YX),order:3,parse:g=>({text:g[2].replace(yR,"$1")}),render:(g,y,b)=>n("code",{key:b.key},g.text)},[St.footnote]:{match:Mi(XX),order:0,parse:g=>(a.push({footnote:g[2],identifier:g[1]}),{}),render:Z1},[St.footnoteReference]:{match:Rs(ZX),order:1,parse:g=>({target:`#${t.slugify(g[1],If)}`,text:g[1]}),render:(g,y,b)=>n("a",{key:b.key,href:t.sanitizer(g.target,"a","href")},n("sup",{key:b.key},g.text))},[St.gfmTask]:{match:Rs(tZ),order:1,parse:g=>({completed:g[1].toLowerCase()==="x"}),render:(g,y,b)=>n("input",{checked:g.completed,key:b.key,readOnly:!0,type:"checkbox"})},[St.heading]:{match:Mi(t.enforceAtxHeadings?c4:l4),order:1,parse:(g,y,b)=>({children:Lg(y,g[2],b),id:t.slugify(g[2],If),level:g[1].length}),render:(g,y,b)=>n(`h${g.level}`,{id:g.id,key:b.key},y(g.children,b))},[St.headingSetext]:{match:Mi(u4),order:0,parse:(g,y,b)=>({children:Lg(y,g[1],b),level:g[2]==="="?1:2,type:St.heading})},[St.htmlBlock]:{match:Of(Px),order:1,parse(g,y,b){const[,x]=g[3].match(_Z),S=new RegExp(`^${x}`,"gm"),T=g[3].replace(S,""),D=(k=T,PZ.some(U=>U.test(k))?HZ:Lg);var k;const R=g[1].toLowerCase(),I=jX.indexOf(R)!==-1,O=(I?R:g[1]).trim(),F={attrs:o(O,g[2]),noInnerParse:I,tag:O};return b.inAnchor=b.inAnchor||R==="a",I?F.text=g[3]:F.children=D(y,T,b),b.inAnchor=!1,F},render:(g,y,b)=>n(g.tag,Dl({key:b.key},g.attrs),g.text||(g.children?y(g.children,b):""))},[St.htmlSelfClosing]:{match:Of(Lx),order:1,parse(g){const y=g[1].trim();return{attrs:o(y,g[2]||""),tag:y}},render:(g,y,b)=>n(g.tag,Dl({},g.attrs,{key:b.key}))},[St.htmlComment]:{match:Of(d4),order:1,parse:()=>({}),render:Z1},[St.image]:{match:Is(NZ),order:1,parse:g=>({alt:g[1],target:xR(g[2]),title:g[3]}),render:(g,y,b)=>n("img",{key:b.key,alt:g.alt||void 0,title:g.title||void 0,src:t.sanitizer(g.target,"img","src")})},[St.link]:{match:Rs(OZ),order:3,parse:(g,y,b)=>({children:UZ(y,g[1],b),target:xR(g[2]),title:g[3]}),render:(g,y,b)=>n("a",{key:b.key,href:t.sanitizer(g.target,"a","href"),title:g.title},y(g.children,b))},[St.linkAngleBraceStyleDetector]:{match:Rs(sZ),order:0,parse:g=>({children:[{text:g[1],type:St.text}],target:g[1],type:St.link})},[St.linkBareUrlDetector]:{match:ju((g,y)=>y.inAnchor||t.disableAutoLink?null:Rs(aZ)(g,y)),order:0,parse:g=>({children:[{text:g[1],type:St.text}],target:g[1],title:void 0,type:St.link})},[St.linkMailtoDetector]:{match:Rs(iZ),order:0,parse(g){let y=g[1],b=g[1];return zX.test(b)||(b="mailto:"+b),{children:[{text:y.replace("mailto:",""),type:St.text}],target:b,type:St.link}}},[St.orderedList]:bR(n,1),[St.unorderedList]:bR(n,2),[St.newlineCoalescer]:{match:Mi(KX),order:3,parse:X1,render:()=>`
|
|
239
|
+
`},[St.paragraph]:{match:ju(FZ),order:3,parse:Q1,render:(g,y,b)=>n("p",{key:b.key},y(g.children,b))},[St.ref]:{match:Rs(cZ),order:0,parse:g=>(s[g[1]]={target:g[2],title:g[4]},{}),render:Z1},[St.refImage]:{match:Is(uZ),order:0,parse:g=>({alt:g[1]||void 0,ref:g[2]}),render:(g,y,b)=>s[g.ref]?n("img",{key:b.key,alt:g.alt,src:t.sanitizer(s[g.ref].target,"img","src"),title:s[g.ref].title}):null},[St.refLink]:{match:Rs(dZ),order:0,parse:(g,y,b)=>({children:y(g[1],b),fallbackChildren:g[0],ref:g[2]}),render:(g,y,b)=>s[g.ref]?n("a",{key:b.key,href:t.sanitizer(s[g.ref].target,"a","href"),title:s[g.ref].title},y(g.children,b)):n("span",{key:b.key},g.fallbackChildren)},[St.table]:{match:Mi(f4),order:1,parse:MZ,render(g,y,b){const x=g;return n("table",{key:b.key},n("thead",null,n("tr",null,x.header.map(function(S,T){return n("th",{key:T,style:ER(x,T)},y(S,b))}))),n("tbody",null,x.cells.map(function(S,T){return n("tr",{key:T},S.map(function(D,k){return n("td",{key:k,style:ER(x,k)},y(D,b))}))})))}},[St.text]:{match:Of(SZ),order:4,parse:g=>({text:g[0].replace(nZ,(y,b)=>t.namedCodesToUnicode[b]?t.namedCodesToUnicode[b]:y)}),render:g=>g.text},[St.textBolded]:{match:Is(bZ),order:2,parse:(g,y,b)=>({children:y(g[2],b)}),render:(g,y,b)=>n("strong",{key:b.key},y(g.children,b))},[St.textEmphasized]:{match:Is(vZ),order:3,parse:(g,y,b)=>({children:y(g[2],b)}),render:(g,y,b)=>n("em",{key:b.key},y(g.children,b))},[St.textEscaped]:{match:Is(TZ),order:1,parse:g=>({text:g[1],type:St.text})},[St.textMarked]:{match:Is(EZ),order:3,parse:Q1,render:(g,y,b)=>n("mark",{key:b.key},y(g.children,b))},[St.textStrikethroughed]:{match:Is(xZ),order:3,parse:Q1,render:(g,y,b)=>n("del",{key:b.key},y(g.children,b))}};t.disableParsingRawHTML===!0&&(delete c[St.htmlBlock],delete c[St.htmlSelfClosing]);const u=function(g){let y=Object.keys(g);function b(x,S){let T,D,k=[],R="",I="";for(S.prevCapture=S.prevCapture||"";x;){let O=0;for(;O<y.length;){if(R=y[O],T=g[R],S.inline&&!T.match.inline){O++;continue}const F=T.match(x,S);if(F){I=F[0],S.prevCapture+=I,x=x.substring(I.length),D=T.parse(F,b,S),D.type==null&&(D.type=R),k.push(D);break}O++}}return S.prevCapture="",k}return y.sort(function(x,S){let T=g[x].order,D=g[S].order;return T!==D?T-D:x<S?-1:1}),function(x,S){return b(function(T){return T.replace(QX,`
|
|
240
|
+
`).replace(JX,"").replace(pZ," ")}(x),S)}}(c),d=(p=function(g,y){return function(b,x,S){const T=g[b.type].render;return y?y(()=>T(b,x,S),b,x,S):T(b,x,S)}}(c,t.renderRule),function g(y,b={}){if(Array.isArray(y)){const x=b.key,S=[];let T=!1;for(let D=0;D<y.length;D++){b.key=D;const k=g(y[D],b),R=typeof k=="string";R&&T?S[S.length-1]+=k:k!==null&&S.push(k),T=R}return b.key=x,S}return p(y,g,b)});var p;const h=r(e);return a.length?n("div",null,h,n("footer",{key:"footer"},a.map(function(g){return n("div",{id:t.slugify(g.identifier,If),key:g.identifier},g.identifier,d(u(g.footnote,{inline:!0})))}))):h}const jS=e=>{let{children:t="",options:n}=e,r=function(o,a){if(o==null)return{};var s,c,u={},d=Object.keys(o);for(c=0;c<d.length;c++)a.indexOf(s=d[c])>=0||(u[s]=o[s]);return u}(e,BX);return w.cloneElement($Z(t,n),r)},VZ=mi(E.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),GZ=mi(E.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),qZ=mi(E.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),WZ=mi(E.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),YZ=mi(E.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}));var US=Th(),Dt=e=>xh(e,US),HS=Th();Dt.write=e=>xh(e,HS);var N0=Th();Dt.onStart=e=>xh(e,N0);var zS=Th();Dt.onFrame=e=>xh(e,zS);var $S=Th();Dt.onFinish=e=>xh(e,$S);var Su=[];Dt.setTimeout=(e,t)=>{const n=Dt.now()+t,r=()=>{const a=Su.findIndex(s=>s.cancel==r);~a&&Su.splice(a,1),Hs-=~a?1:0},o={time:n,handler:e,cancel:r};return Su.splice(T4(n),0,o),Hs+=1,S4(),o};var T4=e=>~(~Su.findIndex(t=>t.time>e)||~Su.length);Dt.cancel=e=>{N0.delete(e),zS.delete(e),$S.delete(e),US.delete(e),HS.delete(e)};Dt.sync=e=>{Mx=!0,Dt.batchedUpdates(e),Mx=!1};Dt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Dt.onStart(n)}return r.handler=e,r.cancel=()=>{N0.delete(n),t=null},r};var VS=typeof window<"u"?window.requestAnimationFrame:()=>{};Dt.use=e=>VS=e;Dt.now=typeof performance<"u"?()=>performance.now():Date.now;Dt.batchedUpdates=e=>e();Dt.catch=console.error;Dt.frameLoop="always";Dt.advance=()=>{Dt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):_4()};var Us=-1,Hs=0,Mx=!1;function xh(e,t){Mx?(t.delete(e),e(0)):(t.add(e),S4())}function S4(){Us<0&&(Us=0,Dt.frameLoop!=="demand"&&VS(C4))}function KZ(){Us=-1}function C4(){~Us&&(VS(C4),Dt.batchedUpdates(_4))}function _4(){const e=Us;Us=Dt.now();const t=T4(Us);if(t&&(A4(Su.splice(0,t),n=>n.handler()),Hs-=t),!Hs){KZ();return}N0.flush(),US.flush(e?Math.min(64,Us-e):16.667),zS.flush(),HS.flush(),$S.flush()}function Th(){let e=new Set,t=e;return{add(n){Hs+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Hs-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Hs-=t.size,A4(t,r=>r(n)&&e.add(r)),Hs+=e.size,t=e)}}}function A4(e,t){e.forEach(n=>{try{t(n)}catch(r){Dt.catch(r)}})}var QZ=Object.defineProperty,XZ=(e,t)=>{for(var n in t)QZ(e,n,{get:t[n],enumerable:!0})},ja={};XZ(ja,{assign:()=>JZ,colors:()=>Vs,createStringInterpolator:()=>qS,skipAnimation:()=>k4,to:()=>w4,willAdvance:()=>WS});function Fx(){}var ZZ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ge={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function zi(e,t){if(Ge.arr(e)){if(!Ge.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Xt=(e,t)=>e.forEach(t);function pi(e,t,n){if(Ge.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Bo=e=>Ge.und(e)?[]:Ge.arr(e)?e:[e];function cp(e,t){if(e.size){const n=Array.from(e);e.clear(),Xt(n,t)}}var Xf=(e,...t)=>cp(e,n=>n(...t)),GS=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),qS,w4,Vs=null,k4=!1,WS=Fx,JZ=e=>{e.to&&(w4=e.to),e.now&&(Dt.now=e.now),e.colors!==void 0&&(Vs=e.colors),e.skipAnimation!=null&&(k4=e.skipAnimation),e.createStringInterpolator&&(qS=e.createStringInterpolator),e.requestAnimationFrame&&Dt.use(e.requestAnimationFrame),e.batchedUpdates&&(Dt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(WS=e.willAdvance),e.frameLoop&&(Dt.frameLoop=e.frameLoop)},up=new Set,ma=[],eE=[],yy=0,P0={get idle(){return!up.size&&!ma.length},start(e){yy>e.priority?(up.add(e),Dt.onStart(eJ)):(D4(e),Dt(Bx))},advance:Bx,sort(e){if(yy)Dt.onFrame(()=>P0.sort(e));else{const t=ma.indexOf(e);~t&&(ma.splice(t,1),R4(e))}},clear(){ma=[],up.clear()}};function eJ(){up.forEach(D4),up.clear(),Dt(Bx)}function D4(e){ma.includes(e)||R4(e)}function R4(e){ma.splice(tJ(ma,t=>t.priority>e.priority),0,e)}function Bx(e){const t=eE;for(let n=0;n<ma.length;n++){const r=ma[n];yy=r.priority,r.idle||(WS(r),r.advance(e),r.idle||t.push(r))}return yy=0,eE=ma,eE.length=0,ma=t,ma.length>0}function tJ(e,t){const n=e.findIndex(t);return n<0?e.length:n}var nJ={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Pa="[-+]?\\d*\\.?\\d+",by=Pa+"%";function L0(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var rJ=new RegExp("rgb"+L0(Pa,Pa,Pa)),oJ=new RegExp("rgba"+L0(Pa,Pa,Pa,Pa)),aJ=new RegExp("hsl"+L0(Pa,by,by)),iJ=new RegExp("hsla"+L0(Pa,by,by,Pa)),sJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,lJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,cJ=/^#([0-9a-fA-F]{6})$/,uJ=/^#([0-9a-fA-F]{8})$/;function dJ(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=cJ.exec(e))?parseInt(t[1]+"ff",16)>>>0:Vs&&Vs[e]!==void 0?Vs[e]:(t=rJ.exec(e))?(Xc(t[1])<<24|Xc(t[2])<<16|Xc(t[3])<<8|255)>>>0:(t=oJ.exec(e))?(Xc(t[1])<<24|Xc(t[2])<<16|Xc(t[3])<<8|CR(t[4]))>>>0:(t=sJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=uJ.exec(e))?parseInt(t[1],16)>>>0:(t=lJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=aJ.exec(e))?(TR(SR(t[1]),ig(t[2]),ig(t[3]))|255)>>>0:(t=iJ.exec(e))?(TR(SR(t[1]),ig(t[2]),ig(t[3]))|CR(t[4]))>>>0:null}function tE(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function TR(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=tE(o,r,e+1/3),s=tE(o,r,e),c=tE(o,r,e-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(c*255)<<8}function Xc(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function SR(e){return(parseFloat(e)%360+360)%360/360}function CR(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ig(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function _R(e){let t=dJ(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${a})`}var $p=(e,t,n)=>{if(Ge.fun(e))return e;if(Ge.arr(e))return $p({range:e,output:t,extrapolate:n});if(Ge.str(e.output[0]))return qS(e);const r=e,o=r.output,a=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(d=>d);return d=>{const p=pJ(d,a);return fJ(d,a[p],a[p+1],o[p],o[p+1],u,s,c,r.map)}};function fJ(e,t,n,r,o,a,s,c,u){let d=u?u(e):e;if(d<t){if(s==="identity")return d;s==="clamp"&&(d=t)}if(d>n){if(c==="identity")return d;c==="clamp"&&(d=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?d=-d:n===1/0?d=d-t:d=(d-t)/(n-t),d=a(d),r===-1/0?d=-d:o===1/0?d=d+r:d=d*(o-r)+r,d)}function pJ(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var hJ={linear:e=>e},Vp=Symbol.for("FluidValue.get"),Uu=Symbol.for("FluidValue.observers"),da=e=>!!(e&&e[Vp]),ho=e=>e&&e[Vp]?e[Vp]():e,AR=e=>e[Uu]||null;function mJ(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Gp(e,t){const n=e[Uu];n&&n.forEach(r=>{mJ(r,t)})}var I4=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");gJ(this,e)}},gJ=(e,t)=>O4(e,Vp,t);function id(e,t){if(e[Vp]){let n=e[Uu];n||O4(e,Uu,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function qp(e,t){const n=e[Uu];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Uu]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var O4=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Mg=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,yJ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,wR=new RegExp(`(${Mg.source})(%|[a-z]+)`,"i"),bJ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,M0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,N4=e=>{const[t,n]=vJ(e);if(!t||GS())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&M0.test(n))return N4(n);if(n)return n}return e},vJ=e=>{const t=M0.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},nE,EJ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,P4=e=>{nE||(nE=Vs?new RegExp(`(${Object.keys(Vs).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>ho(a).replace(M0,N4).replace(yJ,_R).replace(nE,_R)),n=t.map(a=>a.match(Mg).map(Number)),o=n[0].map((a,s)=>n.map(c=>{if(!(s in c))throw Error('The arity of each "output" value must be equal');return c[s]})).map(a=>$p({...e,output:a}));return a=>{const s=!wR.test(t[0])&&t.find(u=>wR.test(u))?.replace(Mg,"");let c=0;return t[0].replace(Mg,()=>`${o[c++](a)}${s||""}`).replace(bJ,EJ)}},YS="react-spring: ",L4=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${YS}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},xJ=L4(console.warn);function TJ(){xJ(`${YS}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var SJ=L4(console.warn);function CJ(){SJ(`${YS}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function F0(e){return Ge.str(e)&&(e[0]=="#"||/\d/.test(e)||!GS()&&M0.test(e)||e in(Vs||{}))}var KS=GS()?w.useEffect:w.useLayoutEffect,_J=()=>{const e=w.useRef(!1);return KS(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function M4(){const e=w.useState()[1],t=_J();return()=>{t.current&&e(Math.random())}}var F4=e=>w.useEffect(e,AJ),AJ=[];function kR(e){const t=w.useRef(void 0);return w.useEffect(()=>{t.current=e}),t.current}var Wp=Symbol.for("Animated:node"),wJ=e=>!!e&&e[Wp]===e,ri=e=>e&&e[Wp],QS=(e,t)=>ZZ(e,Wp,t),B0=e=>e&&e[Wp]&&e[Wp].getPayload(),B4=class{constructor(){QS(this,this)}getPayload(){return this.payload||[]}},j0=class j4 extends B4{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new j4(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return Ge.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},vy=class U4 extends j0{constructor(t){super(0),this._string=null,this._toString=$p({output:[t,t]})}static create(t){return new U4(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Ge.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=$p({output:[this.getValue(),t]})),this._value=0,super.reset()}},Ey={dependencies:null},U0=class extends B4{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return pi(this.source,(n,r)=>{wJ(n)?t[r]=n.getValue(e):da(n)?t[r]=ho(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Xt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return pi(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ey.dependencies&&da(e)&&Ey.dependencies.add(e);const t=B0(e);t&&Xt(t,n=>this.add(n))}},kJ=class H4 extends U0{constructor(t){super(t)}static create(t){return new H4(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,o)=>r.setValue(t[o])).some(Boolean):(super.setValue(t.map(DJ)),!0)}};function DJ(e){return(F0(e)?vy:j0).create(e)}function jx(e){const t=ri(e);return t?t.constructor:Ge.arr(e)?kJ:F0(e)?vy:j0}var DR=(e,t)=>{const n=!Ge.fun(e)||e.prototype&&e.prototype.isReactComponent;return w.forwardRef((r,o)=>{const a=w.useRef(null),s=n&&w.useCallback(b=>{a.current=OJ(o,b)},[o]),[c,u]=IJ(r,t),d=M4(),p=()=>{const b=a.current;if(n&&!b)return;(b?t.applyAnimatedValues(b,c.getValue(!0)):!1)===!1&&d()},h=new RJ(p,u),g=w.useRef(void 0);KS(()=>(g.current=h,Xt(u,b=>id(b,h)),()=>{g.current&&(Xt(g.current.deps,b=>qp(b,g.current)),Dt.cancel(g.current.update))})),w.useEffect(p,[]),F4(()=>()=>{const b=g.current;Xt(b.deps,x=>qp(x,b))});const y=t.getComponentProps(c.getValue());return w.createElement(e,{...y,ref:s})})},RJ=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Dt.write(this.update)}};function IJ(e,t){const n=new Set;return Ey.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new U0(e),Ey.dependencies=null,[e,n]}function OJ(e,t){return e&&(Ge.fun(e)?e(t):e.current=t),t}var RR=Symbol.for("AnimatedComponent"),NJ=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new U0(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=s=>{const c=IR(s)||"Anonymous";return Ge.str(s)?s=a[s]||(a[s]=DR(s,o)):s=s[RR]||(s[RR]=DR(s,o)),s.displayName=`Animated(${c})`,s};return pi(e,(s,c)=>{Ge.arr(e)&&(c=IR(s)),a[c]=a(s)}),{animated:a}},IR=e=>Ge.str(e)?e:e&&Ge.str(e.displayName)?e.displayName:Ge.fun(e)&&e.name||null;function Rl(e,...t){return Ge.fun(e)?e(...t):e}var dp=(e,t)=>e===!0||!!(t&&e&&(Ge.fun(e)?e(t):Bo(e).includes(t))),z4=(e,t)=>Ge.obj(e)?t&&e[t]:e,$4=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,PJ=e=>e,XS=(e,t=PJ)=>{let n=LJ;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const a=t(e[o],o);Ge.und(a)||(r[o]=a)}return r},LJ=["config","onProps","onStart","onChange","onPause","onResume","onRest"],MJ={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function FJ(e){const t={};let n=0;if(pi(e,(r,o)=>{MJ[o]||(t[o]=r,n++)}),n)return t}function V4(e){const t=FJ(e);if(t){const n={to:t};return pi(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Yp(e){return e=ho(e),Ge.arr(e)?e.map(Yp):F0(e)?ja.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function BJ(e){for(const t in e)return!0;return!1}function Ux(e){return Ge.fun(e)||Ge.arr(e)&&Ge.obj(e[0])}function jJ(e,t){e.ref?.delete(e),t?.delete(e)}function UJ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var HJ={default:{tension:170,friction:26}},Hx={...HJ.default,mass:1,damping:1,easing:hJ.linear,clamp:!1},zJ=class{constructor(){this.velocity=0,Object.assign(this,Hx)}};function $J(e,t,n){n&&(n={...n},OR(n,t),t={...n,...t}),OR(e,t),Object.assign(e,t);for(const s in Hx)e[s]==null&&(e[s]=Hx[s]);let{frequency:r,damping:o}=e;const{mass:a}=e;return Ge.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*o*a/r),e}function OR(e,t){if(!Ge.und(t.decay))e.duration=void 0;else{const n=!Ge.und(t.tension)||!Ge.und(t.friction);(n||!Ge.und(t.frequency)||!Ge.und(t.damping)||!Ge.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var NR=[],VJ=class{constructor(){this.changed=!1,this.values=NR,this.toValues=null,this.fromValues=NR,this.config=new zJ,this.immediate=!1}};function G4(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise((s,c)=>{let u,d,p=dp(n.cancel??r?.cancel,t);if(p)y();else{Ge.und(n.pause)||(o.paused=dp(n.pause,t));let b=r?.pause;b!==!0&&(b=o.paused||dp(b,t)),u=Rl(n.delay||0,t),b?(o.resumeQueue.add(g),a.pause()):(a.resume(),g())}function h(){o.resumeQueue.add(g),o.timeouts.delete(d),d.cancel(),u=d.time-Dt.now()}function g(){u>0&&!ja.skipAnimation?(o.delayed=!0,d=Dt.setTimeout(y,u),o.pauseQueue.add(h),o.timeouts.add(d)):y()}function y(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(d),e<=(o.cancelId||0)&&(p=!0);try{a.start({...n,callId:e,cancel:p},s)}catch(b){c(b)}}})}var ZS=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Cu(e.get()):t.every(n=>n.noop)?q4(e.get()):Na(e.get(),t.every(n=>n.finished)),q4=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Na=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Cu=e=>({value:e,cancelled:!0,finished:!1});function W4(e,t,n,r){const{callId:o,parentId:a,onRest:s}=t,{asyncTo:c,promise:u}=n;return!a&&e===c&&!t.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const d=XS(t,(S,T)=>T==="onRest"?void 0:S);let p,h;const g=new Promise((S,T)=>(p=S,h=T)),y=S=>{const T=o<=(n.cancelId||0)&&Cu(r)||o!==n.asyncId&&Na(r,!1);if(T)throw S.result=T,h(S),S},b=(S,T)=>{const D=new PR,k=new LR;return(async()=>{if(ja.skipAnimation)throw Kp(n),k.result=Na(r,!1),h(k),k;y(D);const R=Ge.obj(S)?{...S}:{...T,to:S};R.parentId=o,pi(d,(O,F)=>{Ge.und(R[F])&&(R[F]=O)});const I=await r.start(R);return y(D),n.paused&&await new Promise(O=>{n.resumeQueue.add(O)}),I})()};let x;if(ja.skipAnimation)return Kp(n),Na(r,!1);try{let S;Ge.arr(e)?S=(async T=>{for(const D of T)await b(D)})(e):S=Promise.resolve(e(b,r.stop.bind(r))),await Promise.all([S.then(p),g]),x=Na(r.get(),!0,!1)}catch(S){if(S instanceof PR)x=S.result;else if(S instanceof LR)x=S.result;else throw S}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?u:void 0)}return Ge.fun(s)&&Dt.batchedUpdates(()=>{s(x,r,r.item)}),x})()}function Kp(e,t){cp(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var PR=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},LR=class extends Error{constructor(){super("SkipAnimationSignal")}},zx=e=>e instanceof JS,GJ=1,JS=class extends I4{constructor(){super(...arguments),this.id=GJ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ri(this);return e&&e.getValue()}to(...e){return ja.to(this,e)}interpolate(...e){return TJ(),ja.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Gp(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||P0.sort(this),Gp(this,{type:"priority",parent:this,priority:e})}},Jl=Symbol.for("SpringPhase"),Y4=1,K4=2,Q4=4,rE=e=>(e[Jl]&Y4)>0,Os=e=>(e[Jl]&K4)>0,Nf=e=>(e[Jl]&Q4)>0,MR=(e,t)=>t?e[Jl]|=K4|Y4:e[Jl]&=-3,FR=(e,t)=>t?e[Jl]|=Q4:e[Jl]&=-5,qJ=class extends JS{constructor(e,t){if(super(),this.animation=new VJ,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ge.und(e)||!Ge.und(t)){const n=Ge.obj(e)?{...e}:{...t,from:e};Ge.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Os(this)||this._state.asyncTo)||Nf(this)}get goal(){return ho(this.animation.to)}get velocity(){const e=ri(this);return e instanceof j0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return rE(this)}get isAnimating(){return Os(this)}get isPaused(){return Nf(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:a}=r,s=B0(r.to);!s&&da(r.to)&&(o=Bo(ho(r.to))),r.values.forEach((d,p)=>{if(d.done)return;const h=d.constructor==vy?1:s?s[p].lastPosition:o[p];let g=r.immediate,y=h;if(!g){if(y=d.lastPosition,a.tension<=0){d.done=!0;return}let b=d.elapsedTime+=e;const x=r.fromValues[p],S=d.v0!=null?d.v0:d.v0=Ge.arr(a.velocity)?a.velocity[p]:a.velocity;let T;const D=a.precision||(x==h?.005:Math.min(1,Math.abs(h-x)*.001));if(Ge.und(a.duration))if(a.decay){const k=a.decay===!0?.998:a.decay,R=Math.exp(-(1-k)*b);y=x+S/(1-k)*(1-R),g=Math.abs(d.lastPosition-y)<=D,T=S*R}else{T=d.lastVelocity==null?S:d.lastVelocity;const k=a.restVelocity||D/10,R=a.clamp?0:a.bounce,I=!Ge.und(R),O=x==h?d.v0>0:x<h;let F,U=!1;const H=1,C=Math.ceil(e/H);for(let M=0;M<C&&(F=Math.abs(T)>k,!(!F&&(g=Math.abs(h-y)<=D,g)));++M){I&&(U=y==h||y>h==O,U&&(T=-T*R,y=h));const V=-a.tension*1e-6*(y-h),z=-a.friction*.001*T,W=(V+z)/a.mass;T=T+W*H,y=y+T*H}}else{let k=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,d.durationProgress>0&&(d.elapsedTime=a.duration*d.durationProgress,b=d.elapsedTime+=e)),k=(a.progress||0)+b/this._memoizedDuration,k=k>1?1:k<0?0:k,d.durationProgress=k),y=x+a.easing(k)*(h-x),T=(y-d.lastPosition)/e,g=k==1}d.lastVelocity=T,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),g=!0)}s&&!s[p].done&&(g=!1),g?d.done=!0:t=!1,d.setValue(y,a.round)&&(n=!0)});const c=ri(this),u=c.getValue();if(t){const d=ho(r.to);(u!==d||n)&&!a.decay?(c.setValue(d),this._onChange(d)):n&&a.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return Dt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Os(this)){const{to:e,config:t}=this.animation;Dt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ge.und(e)?(n=this.queue||[],this.queue=[]):n=[Ge.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>ZS(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Kp(this._state,e&&this._lastCallId),Dt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ge.obj(n)?n[t]:n,(n==null||Ux(n))&&(n=void 0),r=Ge.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return rE(this)||(e.reverse&&([n,r]=[r,n]),r=ho(r),Ge.und(r)?ri(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,XS(e,(s,c)=>/^on/.test(c)?z4(s,n):s)),jR(this,e,"onProps"),Lf(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return G4(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Nf(this)||(FR(this,!0),Xf(a.pauseQueue),Lf(this,"onPause",Na(this,Pf(this,this.animation.to)),this))},resume:()=>{Nf(this)&&(FR(this,!1),Os(this)&&this._resume(),Xf(a.resumeQueue),Lf(this,"onResume",Na(this,Pf(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const c=X4(e);if(c)return this._update(c,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Cu(this));const r=!Ge.und(e.to),o=!Ge.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Cu(this));const{key:a,defaultProps:s,animation:c}=this,{to:u,from:d}=c;let{to:p=u,from:h=d}=e;o&&!r&&(!t.default||Ge.und(p))&&(p=h),t.reverse&&([p,h]=[h,p]);const g=!zi(h,d);g&&(c.from=h),h=ho(h);const y=!zi(p,u);y&&this._focus(p);const b=Ux(t.to),{config:x}=c,{decay:S,velocity:T}=x;(r||o)&&(x.velocity=0),t.config&&!b&&$J(x,Rl(t.config,a),t.config!==s.config?Rl(s.config,a):void 0);let D=ri(this);if(!D||Ge.und(p))return n(Na(this,!0));const k=Ge.und(t.reset)?o&&!t.default:!Ge.und(h)&&dp(t.reset,a),R=k?h:this.get(),I=Yp(p),O=Ge.num(I)||Ge.arr(I)||F0(I),F=!b&&(!O||dp(s.immediate||t.immediate,a));if(y){const M=jx(p);if(M!==D.constructor)if(F)D=this._set(I);else throw Error(`Cannot animate between ${D.constructor.name} and ${M.name}, as the "to" prop suggests`)}const U=D.constructor;let H=da(p),C=!1;if(!H){const M=k||!rE(this)&&g;(y||M)&&(C=zi(Yp(R),I),H=!C),(!zi(c.immediate,F)&&!F||!zi(x.decay,S)||!zi(x.velocity,T))&&(H=!0)}if(C&&Os(this)&&(c.changed&&!k?H=!0:H||this._stop(u)),!b&&((H||da(u))&&(c.values=D.getPayload(),c.toValues=da(p)?null:U==vy?[1]:Bo(I)),c.immediate!=F&&(c.immediate=F,!F&&!k&&this._set(u)),H)){const{onRest:M}=c;Xt(YJ,z=>jR(this,t,z));const V=Na(this,Pf(this,u));Xf(this._pendingCalls,V),this._pendingCalls.add(n),c.changed&&Dt.batchedUpdates(()=>{c.changed=!k,M?.(V,this),k?Rl(s.onRest,V):c.onStart?.(V,this)})}k&&this._set(R),b?n(W4(t.to,t,this._state,this)):H?this._start():Os(this)&&!y?this._pendingCalls.add(n):n(q4(R))}_focus(e){const t=this.animation;e!==t.to&&(AR(this)&&this._detach(),t.to=e,AR(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;da(t)&&(id(t,this),zx(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;da(e)&&qp(e,this)}_set(e,t=!0){const n=ho(e);if(!Ge.und(n)){const r=ri(this);if(!r||!zi(n,r.getValue())){const o=jx(n);!r||r.constructor!=o?QS(this,o.create(n)):r.setValue(n),r&&Dt.batchedUpdates(()=>{this._onChange(n,t)})}}return ri(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Lf(this,"onStart",Na(this,Pf(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Rl(this.animation.onChange,e,this)),Rl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ri(this).reset(ho(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Os(this)||(MR(this,!0),Nf(this)||this._resume())}_resume(){ja.skipAnimation?this.finish():P0.start(this)}_stop(e,t){if(Os(this)){MR(this,!1);const n=this.animation;Xt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Gp(this,{type:"idle",parent:this});const r=t?Cu(this.get()):Na(this.get(),Pf(this,e??n.to));Xf(this._pendingCalls,r),n.changed&&(n.changed=!1,Lf(this,"onRest",r,this))}}};function Pf(e,t){const n=Yp(t),r=Yp(e.get());return zi(r,n)}function X4(e,t=e.loop,n=e.to){const r=Rl(t);if(r){const o=r!==!0&&V4(r),a=(o||e).reverse,s=!o||o.reset;return Qp({...e,loop:t,default:!1,pause:void 0,to:!a||Ux(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Qp(e){const{to:t,from:n}=e=V4(e),r=new Set;return Ge.obj(t)&&BR(t,r),Ge.obj(n)&&BR(n,r),e.keys=r.size?Array.from(r):null,e}function WJ(e){const t=Qp(e);return Ge.und(t.default)&&(t.default=XS(t)),t}function BR(e,t){pi(e,(n,r)=>n!=null&&t.add(r))}var YJ=["onStart","onRest","onChange","onPause","onResume"];function jR(e,t,n){e.animation[n]=t[n]!==$4(t,n)?z4(t[n],e.key):void 0}function Lf(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var KJ=["onStart","onChange","onRest"],QJ=1,XJ=class{constructor(e,t){this.id=QJ++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ge.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Qp(e)),this}start(e){let{queue:t}=this;return e?t=Bo(e).map(Qp):this.queue=[],this._flush?this._flush(this,t):(nP(this,t),$x(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Xt(Bo(t),r=>n[r].stop(!!e))}else Kp(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ge.und(e))this.start({pause:!0});else{const t=this.springs;Xt(Bo(e),n=>t[n].pause())}return this}resume(e){if(Ge.und(e))this.start({pause:!1});else{const t=this.springs;Xt(Bo(e),n=>t[n].resume())}return this}each(e){pi(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,cp(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!r&&this._started,s=o||a&&n.size?this.get():null;o&&t.size&&cp(t,([c,u])=>{u.value=s,c(u,this,this._item)}),a&&(this._started=!1,cp(n,([c,u])=>{u.value=s,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Dt.onFrame(this._onFrame)}};function $x(e,t){return Promise.all(t.map(n=>Z4(e,n))).then(n=>ZS(e,n))}async function Z4(e,t,n){const{keys:r,to:o,from:a,loop:s,onRest:c,onResolve:u}=t,d=Ge.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),a===!1&&(t.from=null);const p=Ge.arr(o)||Ge.fun(o)?o:void 0;p?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):Xt(KJ,x=>{const S=t[x];if(Ge.fun(S)){const T=e._events[x];t[x]=({finished:D,cancelled:k})=>{const R=T.get(S);R?(D||(R.finished=!1),k&&(R.cancelled=!0)):T.set(S,{value:null,finished:D||!1,cancelled:k||!1})},d&&(d[x]=t[x])}});const h=e._state;t.pause===!h.paused?(h.paused=t.pause,Xf(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);const g=(r||Object.keys(e.springs)).map(x=>e.springs[x].start(t)),y=t.cancel===!0||$4(t,"cancel")===!0;(p||y&&h.asyncId)&&g.push(G4(++e._lastAsyncId,{props:t,state:h,actions:{pause:Fx,resume:Fx,start(x,S){y?(Kp(h,e._lastAsyncId),S(Cu(e))):(x.onRest=c,S(W4(p,x,h,e)))}}})),h.paused&&await new Promise(x=>{h.resumeQueue.add(x)});const b=ZS(e,await Promise.all(g));if(s&&b.finished&&!(n&&b.noop)){const x=X4(t,s,o);if(x)return nP(e,[x]),Z4(e,x,!0)}return u&&Dt.batchedUpdates(()=>u(b,e,e.item)),b}function UR(e,t){const n={...e.springs};return t&&Xt(Bo(t),r=>{Ge.und(r.keys)&&(r=Qp(r)),Ge.obj(r.to)||(r={...r,to:void 0}),tP(n,r,o=>eP(o))}),J4(e,n),n}function J4(e,t){pi(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,id(n,e))})}function eP(e,t){const n=new qJ;return n.key=e,t&&id(n,t),n}function tP(e,t,n){t.keys&&Xt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function nP(e,t){Xt(t,n=>{tP(e.springs,n,r=>eP(r,e))})}var ZJ=w.createContext({pause:!1,immediate:!1}),JJ=()=>{const e=[],t=function(r){CJ();const o=[];return Xt(e,(a,s)=>{if(Ge.und(r))o.push(a.start());else{const c=n(r,a,s);c&&o.push(a.start(c))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return Xt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Xt(e,r=>r.resume(...arguments)),this},t.set=function(r){Xt(e,(o,a)=>{const s=Ge.fun(r)?r(a,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return Xt(e,(a,s)=>{if(Ge.und(r))o.push(a.start());else{const c=this._getProps(r,a,s);c&&o.push(a.start(c))}}),o},t.stop=function(){return Xt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Xt(e,(o,a)=>o.update(this._getProps(r,o,a))),this};const n=function(r,o,a){return Ge.fun(r)?r(a,o):r};return t._getProps=n,t};function eee(e,t,n){const r=Ge.fun(t)&&t;r&&!n&&(n=[]);const o=w.useMemo(()=>r||arguments.length==3?JJ():void 0,[]),a=w.useRef(0),s=M4(),c=w.useMemo(()=>({ctrls:[],queue:[],flush(T,D){const k=UR(T,D);return a.current>0&&!c.queue.length&&!Object.keys(k).some(I=>!T.springs[I])?$x(T,D):new Promise(I=>{J4(T,k),c.queue.push(()=>{I($x(T,D))}),s()})}}),[]),u=w.useRef([...c.ctrls]),d=w.useRef([]),p=kR(e)||0;w.useMemo(()=>{Xt(u.current.slice(e,p),T=>{jJ(T,o),T.stop(!0)}),u.current.length=e,h(p,e)},[e]),w.useMemo(()=>{h(0,Math.min(p,e))},n);function h(T,D){for(let k=T;k<D;k++){const R=u.current[k]||(u.current[k]=new XJ(null,c.flush)),I=r?r(k,R):t[k];I&&(d.current[k]=WJ(I))}}const g=u.current.map((T,D)=>UR(T,d.current[D])),y=w.useContext(ZJ),b=kR(y),x=y!==b&&BJ(y);KS(()=>{a.current++,c.ctrls=u.current;const{queue:T}=c;T.length&&(c.queue=[],Xt(T,D=>D())),Xt(u.current,(D,k)=>{o?.add(D),x&&D.start({default:y});const R=d.current[k];R&&(UJ(D,R.ref),D.ref?D.queue.push(R):D.start(R))})}),F4(()=>()=>{Xt(c.ctrls,T=>T.stop(!0))});const S=g.map(T=>({...T}));return o?[S,o]:S}function tee(e,t){const n=Ge.fun(e),[[r],o]=eee(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}var nee=class extends JS{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=$p(...t);const n=this._get(),r=jx(n);QS(this,r.create(n))}advance(e){const t=this._get(),n=this.get();zi(t,n)||(ri(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&HR(this._active)&&oE(this)}_get(){const e=Ge.arr(this.source)?this.source.map(ho):Bo(ho(this.source));return this.calc(...e)}_start(){this.idle&&!HR(this._active)&&(this.idle=!1,Xt(B0(this),e=>{e.done=!1}),ja.skipAnimation?(Dt.batchedUpdates(()=>this.advance()),oE(this)):P0.start(this))}_attach(){let e=1;Xt(Bo(this.source),t=>{da(t)&&id(t,this),zx(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Xt(Bo(this.source),e=>{da(e)&&qp(e,this)}),this._active.clear(),oE(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Bo(this.source).reduce((t,n)=>Math.max(t,(zx(n)?n.priority:0)+1),0))}};function ree(e){return e.idle!==!1}function HR(e){return!e.size||Array.from(e).every(ree)}function oE(e){e.idle||(e.idle=!0,Xt(B0(e),t=>{t.done=!0}),Gp(e,{type:"idle",parent:e}))}ja.assign({createStringInterpolator:P4,to:(e,t)=>new nee(e,t)});var rP=/^--/;function oee(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!rP.test(e)&&!(fp.hasOwnProperty(e)&&fp[e])?t+"px":(""+t).trim()}var zR={};function aee(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:o,children:a,scrollTop:s,scrollLeft:c,viewBox:u,...d}=t,p=Object.values(d),h=Object.keys(d).map(g=>n||e.hasAttribute(g)?g:zR[g]||(zR[g]=g.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));a!==void 0&&(e.textContent=a);for(const g in o)if(o.hasOwnProperty(g)){const y=oee(g,o[g]);rP.test(g)?e.style.setProperty(g,y):e.style[g]=y}h.forEach((g,y)=>{e.setAttribute(g,p[y])}),r!==void 0&&(e.className=r),s!==void 0&&(e.scrollTop=s),c!==void 0&&(e.scrollLeft=c),u!==void 0&&e.setAttribute("viewBox",u)}var fp={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iee=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),see=["Webkit","Ms","Moz","O"];fp=Object.keys(fp).reduce((e,t)=>(see.forEach(n=>e[iee(n,t)]=e[t]),e),fp);var lee=/^(matrix|translate|scale|rotate|skew)/,cee=/^(translate)/,uee=/^(rotate|skew)/,aE=(e,t)=>Ge.num(e)&&e!==0?e+t:e,Fg=(e,t)=>Ge.arr(e)?e.every(n=>Fg(n,t)):Ge.num(e)?e===t:parseFloat(e)===t,dee=class extends U0{constructor({x:e,y:t,z:n,...r}){const o=[],a=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),a.push(s=>[`translate3d(${s.map(c=>aE(c,"px")).join(",")})`,Fg(s,0)])),pi(r,(s,c)=>{if(c==="transform")o.push([s||""]),a.push(u=>[u,u===""]);else if(lee.test(c)){if(delete r[c],Ge.und(s))return;const u=cee.test(c)?"px":uee.test(c)?"deg":"";o.push(Bo(s)),a.push(c==="rotate3d"?([d,p,h,g])=>[`rotate3d(${d},${p},${h},${aE(g,u)})`,Fg(g,0)]:d=>[`${c}(${d.map(p=>aE(p,u)).join(",")})`,Fg(d,c.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new fee(o,a)),super(r)}},fee=class extends I4{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Xt(this.inputs,(n,r)=>{const o=ho(n[0]),[a,s]=this.transforms[r](Ge.arr(o)?o:n.map(ho));e+=" "+a,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Xt(this.inputs,t=>Xt(t,n=>da(n)&&id(n,this)))}observerRemoved(e){e==0&&Xt(this.inputs,t=>Xt(t,n=>da(n)&&qp(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Gp(this,e)}},pee=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];ja.assign({batchedUpdates:Xy.unstable_batchedUpdates,createStringInterpolator:P4,colors:nJ});var hee=NJ(pee,{applyAnimatedValues:aee,createAnimatedStyle:e=>new dee(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),mee=hee.animated;const $R=e=>e,gee=()=>{let e=$R;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$R}}},yee=gee();function ec(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Ua(e){if(typeof e!="string")throw new Error(ec(7));return e.charAt(0).toUpperCase()+e.slice(1)}function H0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var VR={exports:{}},iE,GR;function bee(){if(GR)return iE;GR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return iE=e,iE}var sE,qR;function vee(){if(qR)return sE;qR=1;var e=bee();function t(){}function n(){}return n.resetWarningCache=t,sE=function(){function r(s,c,u,d,p,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},sE}var WR;function Eee(){return WR||(WR=1,VR.exports=vee()()),VR.exports}var xee=Eee();const YR=H0(xee);function oP(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=oP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=oP(e))&&(r&&(r+=" "),r+=t);return r}function Sh(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",c=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}var KR={exports:{}},En={};/**
|
|
241
|
+
* @license React
|
|
242
|
+
* react-is.production.js
|
|
243
|
+
*
|
|
244
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the MIT license found in the
|
|
247
|
+
* LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/var QR;function Tee(){if(QR)return En;QR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function b(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case o:case r:case u:case d:case g:return x;default:switch(x=x&&x.$$typeof,x){case s:case c:case h:case p:return x;case a:return x;default:return S}}case t:return S}}}return En.ContextConsumer=a,En.ContextProvider=s,En.Element=e,En.ForwardRef=c,En.Fragment=n,En.Lazy=h,En.Memo=p,En.Portal=t,En.Profiler=o,En.StrictMode=r,En.Suspense=u,En.SuspenseList=d,En.isContextConsumer=function(x){return b(x)===a},En.isContextProvider=function(x){return b(x)===s},En.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},En.isForwardRef=function(x){return b(x)===c},En.isFragment=function(x){return b(x)===n},En.isLazy=function(x){return b(x)===h},En.isMemo=function(x){return b(x)===p},En.isPortal=function(x){return b(x)===t},En.isProfiler=function(x){return b(x)===o},En.isStrictMode=function(x){return b(x)===r},En.isSuspense=function(x){return b(x)===u},En.isSuspenseList=function(x){return b(x)===d},En.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===o||x===r||x===u||x===d||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===p||x.$$typeof===s||x.$$typeof===a||x.$$typeof===c||x.$$typeof===y||x.getModuleId!==void 0)},En.typeOf=b,En}var XR;function See(){return XR||(XR=1,KR.exports=Tee()),KR.exports}var aP=See();function Vi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function iP(e){if(w.isValidElement(e)||aP.isValidElementType(e)||!Vi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=iP(e[n])}),t}function Uo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Vi(e)&&Vi(t)&&Object.keys(t).forEach(o=>{w.isValidElement(t[o])||aP.isValidElementType(t[o])?r[o]=t[o]:Vi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vi(e[o])?r[o]=Uo(e[o],t[o],n):n.clone?r[o]=Vi(t[o])?iP(t[o]):t[o]:r[o]=t[o]}),r}function pp(e,t){return t?Uo(e,t,{clone:!1}):e}function Cee(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function _ee(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Aee(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function wee(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...c)=>t(e.breakpoints.up(...c),s),a.down=(...c)=>t(e.breakpoints.down(...c),s),a.between=(...c)=>t(e.breakpoints.between(...c),s),a.only=(...c)=>t(e.breakpoints.only(...c),s),a.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const z0={xs:0,sm:600,md:900,lg:1200,xl:1536},ZR={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${z0[e]}px)`},kee={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:z0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ji(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||ZR;return t.reduce((a,s,c)=>(a[o.up(o.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const o=r.breakpoints||ZR;return Object.keys(t).reduce((a,s)=>{if(_ee(o.keys,s)){const c=Aee(r.containerQueries?r:kee,s);c&&(a[c]=n(t[s],s))}else if(Object.keys(o.values||z0).includes(s)){const c=o.up(s);a[c]=n(t[s],s)}else{const c=s;a[c]=t[c]}return a},{})}return n(t)}function Dee(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function Ree(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function $0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function xy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=$0(e,n)||r,t&&(o=t(o,r,e)),o}function ir(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=$0(u,r)||{};return Ji(s,c,p=>{let h=xy(d,o,p);return p===h&&typeof p=="string"&&(h=xy(d,o,`${t}${p==="default"?"":Ua(p)}`,p)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function Iee(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Oee={m:"margin",p:"padding"},Nee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},JR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pee=Iee(e=>{if(e.length>2)if(JR[e])e=JR[e];else return[e];const[t,n]=e.split(""),r=Oee[t],o=Nee[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),eC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...eC,...tC];function Ch(e,t,n,r){const o=$0(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),c=o[s];return a>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:()=>{}}function nC(e){return Ch(e,"spacing",8)}function _h(e,t){return typeof t=="string"||t==null?t:e(t)}function Lee(e,t){return n=>e.reduce((r,o)=>(r[o]=_h(t,n),r),{})}function Mee(e,t,n,r){if(!t.includes(n))return null;const o=Pee(n),a=Lee(o,r),s=e[n];return Ji(e,s,a)}function sP(e,t){const n=nC(e.theme);return Object.keys(e).map(r=>Mee(e,t,r,n)).reduce(pp,{})}function Yn(e){return sP(e,eC)}Yn.propTypes={};Yn.filterProps=eC;function Kn(e){return sP(e,tC)}Kn.propTypes={};Kn.filterProps=tC;function V0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?pp(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function fa(e){return typeof e!="number"?e:`${e}px solid`}function Ca(e,t){return ir({prop:e,themeKey:"borders",transform:t})}const Fee=Ca("border",fa),Bee=Ca("borderTop",fa),jee=Ca("borderRight",fa),Uee=Ca("borderBottom",fa),Hee=Ca("borderLeft",fa),zee=Ca("borderColor"),$ee=Ca("borderTopColor"),Vee=Ca("borderRightColor"),Gee=Ca("borderBottomColor"),qee=Ca("borderLeftColor"),Wee=Ca("outline",fa),Yee=Ca("outlineColor"),G0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ch(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:_h(t,r)});return Ji(e,e.borderRadius,n)}return null};G0.propTypes={};G0.filterProps=["borderRadius"];V0(Fee,Bee,jee,Uee,Hee,zee,$ee,Vee,Gee,qee,G0,Wee,Yee);const q0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({gap:_h(t,r)});return Ji(e,e.gap,n)}return null};q0.propTypes={};q0.filterProps=["gap"];const W0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({columnGap:_h(t,r)});return Ji(e,e.columnGap,n)}return null};W0.propTypes={};W0.filterProps=["columnGap"];const Y0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({rowGap:_h(t,r)});return Ji(e,e.rowGap,n)}return null};Y0.propTypes={};Y0.filterProps=["rowGap"];const Kee=ir({prop:"gridColumn"}),Qee=ir({prop:"gridRow"}),Xee=ir({prop:"gridAutoFlow"}),Zee=ir({prop:"gridAutoColumns"}),Jee=ir({prop:"gridAutoRows"}),ete=ir({prop:"gridTemplateColumns"}),tte=ir({prop:"gridTemplateRows"}),nte=ir({prop:"gridTemplateAreas"}),rte=ir({prop:"gridArea"});V0(q0,W0,Y0,Kee,Qee,Xee,Zee,Jee,ete,tte,nte,rte);function _u(e,t){return t==="grey"?t:e}const ote=ir({prop:"color",themeKey:"palette",transform:_u}),ate=ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_u}),ite=ir({prop:"backgroundColor",themeKey:"palette",transform:_u});V0(ote,ate,ite);function Fo(e){return e<=1&&e!==0?`${e*100}%`:e}const ste=ir({prop:"width",transform:Fo}),rC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||z0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Fo(n)}};return Ji(e,e.maxWidth,t)}return null};rC.filterProps=["maxWidth"];const lte=ir({prop:"minWidth",transform:Fo}),cte=ir({prop:"height",transform:Fo}),ute=ir({prop:"maxHeight",transform:Fo}),dte=ir({prop:"minHeight",transform:Fo});ir({prop:"size",cssProperty:"width",transform:Fo});ir({prop:"size",cssProperty:"height",transform:Fo});const fte=ir({prop:"boxSizing"});V0(ste,rC,lte,cte,ute,dte,fte);const K0={border:{themeKey:"borders",transform:fa},borderTop:{themeKey:"borders",transform:fa},borderRight:{themeKey:"borders",transform:fa},borderBottom:{themeKey:"borders",transform:fa},borderLeft:{themeKey:"borders",transform:fa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:G0},color:{themeKey:"palette",transform:_u},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_u},backgroundColor:{themeKey:"palette",transform:_u},p:{style:Kn},pt:{style:Kn},pr:{style:Kn},pb:{style:Kn},pl:{style:Kn},px:{style:Kn},py:{style:Kn},padding:{style:Kn},paddingTop:{style:Kn},paddingRight:{style:Kn},paddingBottom:{style:Kn},paddingLeft:{style:Kn},paddingX:{style:Kn},paddingY:{style:Kn},paddingInline:{style:Kn},paddingInlineStart:{style:Kn},paddingInlineEnd:{style:Kn},paddingBlock:{style:Kn},paddingBlockStart:{style:Kn},paddingBlockEnd:{style:Kn},m:{style:Yn},mt:{style:Yn},mr:{style:Yn},mb:{style:Yn},ml:{style:Yn},mx:{style:Yn},my:{style:Yn},margin:{style:Yn},marginTop:{style:Yn},marginRight:{style:Yn},marginBottom:{style:Yn},marginLeft:{style:Yn},marginX:{style:Yn},marginY:{style:Yn},marginInline:{style:Yn},marginInlineStart:{style:Yn},marginInlineEnd:{style:Yn},marginBlock:{style:Yn},marginBlockStart:{style:Yn},marginBlockEnd:{style:Yn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:q0},rowGap:{style:Y0},columnGap:{style:W0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fo},maxWidth:{style:rC},minWidth:{transform:Fo},height:{transform:Fo},maxHeight:{transform:Fo},minHeight:{transform:Fo},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pte(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function hte(e,t){return typeof e=="function"?e(t):e}function mte(){function e(n,r,o,a){const s={[n]:r,theme:o},c=a[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=$0(o,d)||{};return h?h(s):Ji(s,r,y=>{let b=xy(g,p,y);return y===b&&typeof y=="string"&&(b=xy(g,p,`${n}${y==="default"?"":Ua(y)}`,y)),u===!1?b:{[u]:b}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??K0;function s(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=Dee(o.breakpoints),p=Object.keys(d);let h=d;return Object.keys(u).forEach(g=>{const y=hte(u[g],o);if(y!=null)if(typeof y=="object")if(a[g])h=pp(h,e(g,y,o,a));else{const b=Ji({theme:o},y,x=>({[g]:x}));pte(b,y)?h[g]=t({sx:y,theme:o}):h=pp(h,b)}else h=pp(h,e(g,y,o,a))}),Cee(o,Ree(p,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const Hu=mte();Hu.filterProps=["sx"];function gte(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function oC(e,t=0,n=1){return gte(e,t,n)}function yte(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Qs(e){if(e.type)return e;if(e.charAt(0)==="#")return Qs(yte(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ec(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ec(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const bte=e=>{const t=Qs(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Zf=(e,t)=>{try{return bte(e)}catch{return e}};function Q0(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function lP(e){e=Qs(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Q0({type:c,values:u})}function Vx(e){e=Qs(e);let t=e.type==="hsl"||e.type==="hsla"?Qs(lP(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vte(e,t){const n=Vx(e),r=Vx(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Gx(e,t){return e=Qs(e),t=oC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Q0(e)}function sg(e,t,n){try{return Gx(e,t)}catch{return e}}function aC(e,t){if(e=Qs(e),t=oC(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Q0(e)}function _n(e,t,n){try{return aC(e,t)}catch{return e}}function iC(e,t){if(e=Qs(e),t=oC(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Q0(e)}function An(e,t,n){try{return iC(e,t)}catch{return e}}function Ete(e,t=.15){return Vx(e)>.5?aC(e,t):iC(e,t)}function lg(e,t,n){try{return Ete(e,t)}catch{return e}}const Xp={black:"#000",white:"#fff"},xte={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Zc={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Jc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Mf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},eu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},tu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},nu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function cP(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xp.white,default:Xp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Tte=cP();function uP(){return{text:{primary:Xp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const eI=uP();function tI(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=iC(e.main,o):t==="dark"&&(e.dark=aC(e.main,a)))}function Ste(e="light"){return e==="dark"?{main:eu[200],light:eu[50],dark:eu[400]}:{main:eu[700],light:eu[400],dark:eu[800]}}function Cte(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[500],light:Zc[300],dark:Zc[700]}}function _te(e="light"){return e==="dark"?{main:Jc[500],light:Jc[300],dark:Jc[700]}:{main:Jc[700],light:Jc[400],dark:Jc[800]}}function Ate(e="light"){return e==="dark"?{main:tu[400],light:tu[300],dark:tu[700]}:{main:tu[700],light:tu[500],dark:tu[900]}}function wte(e="light"){return e==="dark"?{main:nu[400],light:nu[300],dark:nu[700]}:{main:nu[800],light:nu[500],dark:nu[900]}}function kte(e="light"){return e==="dark"?{main:Mf[400],light:Mf[300],dark:Mf[700]}:{main:"#ed6c02",light:Mf[500],dark:Mf[900]}}function sC(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||Ste(t),s=e.secondary||Cte(t),c=e.error||_te(t),u=e.info||Ate(t),d=e.success||wte(t),p=e.warning||kte(t);function h(b){return vte(b,eI.text.primary)>=n?eI.text.primary:Tte.text.primary}const g=({color:b,name:x,mainShade:S=500,lightShade:T=300,darkShade:D=700})=>{if(b={...b},!b.main&&b[S]&&(b.main=b[S]),!b.hasOwnProperty("main"))throw new Error(ec(11,x?` (${x})`:"",S));if(typeof b.main!="string")throw new Error(ec(12,x?` (${x})`:"",JSON.stringify(b.main)));return tI(b,"light",T,r),tI(b,"dark",D,r),b.contrastText||(b.contrastText=h(b.main)),b};let y;return t==="light"?y=cP():t==="dark"&&(y=uP()),Uo({common:{...Xp},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:xte,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},o)}function Dte(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rte={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ite(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ote=/[A-Z]|^ms/g,Nte=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dP=function(e){return e.charCodeAt(1)===45},nI=function(e){return e!=null&&typeof e!="boolean"},lE=Ite(function(e){return dP(e)?e:e.replace(Ote,"-$&").toLowerCase()}),rI=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Nte,function(n,r,o){return zs={name:r,styles:o,next:zs},r})}return Rte[e]!==1&&!dP(e)&&typeof t=="number"&&t!==0?t+"px":t};function Ty(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return zs={name:o.name,styles:o.styles,next:zs},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)zs={name:s.name,styles:s.styles,next:zs},s=s.next;var c=a.styles+";";return c}return Pte(e,t,n)}}var u=n;return u}function Pte(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ty(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var c=s;nI(c)&&(r+=lE(a)+":"+rI(a,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)nI(s[u])&&(r+=lE(a)+":"+rI(a,s[u])+";");else{var d=Ty(e,t,s);switch(a){case"animation":case"animationName":{r+=lE(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var oI=/label:\s*([^\s;{]+)\s*(;|$)/g,zs;function Lte(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";zs=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Ty(n,t,a);else{var s=a;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=Ty(n,t,e[c]),r){var u=a;o+=u[c]}oI.lastIndex=0;for(var d="",p;(p=oI.exec(o))!==null;)d+="-"+p[1];var h=Dte(o)+d;return{name:h,styles:o,next:zs}}function Mte(e,t){return ny(e,t)}function Fte(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const aI=[];function iI(e){return aI[0]=e,Lte(aI)}const Bte=typeof window<"u"?w.useLayoutEffect:w.useEffect;function jte(e){return Object.keys(e).length===0}function Ute(e=null){const t=w.useContext(Yu);return!t||jte(t)?e:t}const Hte=w.createContext(),zte=()=>w.useContext(Hte)??!1;function Sy(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],s=t[o];if(!s)n[o]=a||{};else if(!a)n[o]=s;else{n[o]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;n[o][u]=Sy(a[u],s[u])}}}else n[o]===void 0&&(n[o]=e[o])}return n}const $te=w.createContext(void 0);function Vte(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Sy(o.defaultProps,r):!o.styleOverrides&&!o.variants?Sy(o,r):r}function Gte({props:e,name:t}){const n=w.useContext($te);return Vte({props:e,name:t,theme:{components:n}})}const sI=(e,t,n,r=[])=>{let o=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},qte=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...a,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,c],Array.isArray(u)?[...s,c]:s):t([...a,c],u,s))})}r(e)},Wte=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function cE(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return qte(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=Wte(c,u);Object.assign(o,{[p]:h}),sI(a,c,`var(${p})`,d),sI(s,c,`var(${p}, ${h})`,d)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function Yte(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=cE(u,t);let g=h;const y={},{[c]:b,...x}=a;if(Object.entries(x||{}).forEach(([T,D])=>{const{vars:k,css:R,varsWithDefaults:I}=cE(D,t);g=Uo(g,I),y[T]={css:R,vars:k}}),b){const{css:T,vars:D,varsWithDefaults:k}=cE(b,t);g=Uo(g,k),y[c]={css:T,vars:D}}function S(T,D){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),T){if(k==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${a[T]?.palette?.mode||T})`]:{":root":D}};if(k)return e.defaultColorScheme===T?`:root, ${k.replace("%s",String(T))}`:k.replace("%s",String(T))}return":root"}return{vars:g,generateThemeVars:()=>{let T={...d};return Object.entries(y).forEach(([,{vars:D}])=>{T=Uo(T,D)}),T},generateStyleSheets:()=>{const T=[],D=e.defaultColorScheme||"light";function k(O,F){Object.keys(F).length&&T.push(typeof O=="string"?{[O]:{...F}}:O)}k(n(void 0,{...p}),p);const{[D]:R,...I}=y;if(R){const{css:O}=R,F=a[D]?.palette?.mode,U=!r&&F?{colorScheme:F,...O}:{...O};k(n(D,{...U}),U)}return Object.entries(I).forEach(([O,{css:F}])=>{const U=a[O]?.palette?.mode,H=!r&&U?{colorScheme:U,...F}:{...F};k(n(O,{...H}),H)}),T}}}function Kte(e){const t={};return Object.entries(e).forEach(n=>{const[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Qte(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const Xte=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Zte(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Xte(t),s=Object.keys(a);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,y){const b=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:y)-r/100}${n})`}function p(g){return s.indexOf(g)+1<s.length?d(g,s[s.indexOf(g)+1]):c(g)}function h(g){const y=s.indexOf(g);return y===0?c(s[1]):y===s.length-1?u(s[y]):d(g,s[s.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:c,down:u,between:d,only:p,not:h,unit:n,...o}}const Jte={borderRadius:4};function ene(e=8,t=nC({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function tne(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function lC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,c=Zte(n),u=ene(o);let d=Uo({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...Jte,...a}},s);return d=wee(d),d.applyStyles=tne,d=t.reduce((p,h)=>Uo(p,h),d),d.unstable_sxConfig={...K0,...s?.unstable_sxConfig},d.unstable_sx=function(p){return Hu({sx:p,theme:this})},d}const nne={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sd(e,t,n="Mui"){const r=nne[t];return r?`${n}-${r}`:`${yee.generate(e)}-${t}`}function rne(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function one(e){return Math.round(e*1e5)/1e5}const lI={textTransform:"uppercase"},cI='"Roboto", "Helvetica", "Arial", sans-serif';function ane(e,t){const{fontFamily:n=cI,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p,...h}=typeof t=="function"?t(e):t,g=r/14,y=p||(S=>`${S/u*g}rem`),b=(S,T,D,k,R)=>({fontFamily:n,fontWeight:S,fontSize:y(T),lineHeight:D,...n===cI?{letterSpacing:`${one(k/T)}em`}:{},...R,...d}),x={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,lI),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,lI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Uo({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c,...x},h,{clone:!1})}const ine=.2,sne=.14,lne=.12;function Fn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ine})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${sne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lne})`].join(",")}const cne=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],une={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function uI(e){return`${Math.round(e)}ms`}function dne(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function fne(e){const t={...une,...e.easing},n={...fP,...e.duration};return{getAutoHeightDuration:dne,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0,...u}=o;return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:uI(a)} ${s} ${typeof c=="string"?c:uI(c)}`).join(",")},...e,easing:t,duration:n}}const pne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hne(e){return Vi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function pP(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,c]=o[a];!hne(c)||s.startsWith("unstable_")?delete r[s]:Vi(c)&&(r[s]={...c},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
249
|
+
|
|
250
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
251
|
+
|
|
252
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
253
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
254
|
+
|
|
255
|
+
export default theme;`}function qx(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:c={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ec(20));const p=sC(a),h=lC(e);let g=Uo(h,{mixins:rne(h.breakpoints,r),palette:p,shadows:cne.slice(),typography:ane(p,c),transitions:fne(s),zIndex:{...pne}});return g=Uo(g,d),g=t.reduce((y,b)=>Uo(y,b),g),g.unstable_sxConfig={...K0,...d?.unstable_sxConfig},g.unstable_sx=function(y){return Hu({sx:y,theme:this})},g.toRuntimeSource=pP,g}function mne(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const gne=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=mne(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function hP(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function mP(e){return e==="dark"?gne:[]}function yne(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=sC(t);return{palette:a,opacity:{...hP(a.mode),...n},overlays:r||mP(a.mode),...o}}function bne(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const vne=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ene=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return vne(e.cssVarPrefix).forEach(c=>{s[c]=n[c],delete n[c]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function xne(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _e(e,t,n){!e[t]&&n&&(e[t]=n)}function Jf(e){return typeof e!="string"||!e.startsWith("hsl")?e:lP(e)}function Fi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Zf(Jf(e[t])))}function Tne(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ja=e=>{try{return e()}catch{}},Sne=(e="mui")=>O3(e);function uE(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=yne({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...s}=qx({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...hP(o),...t?.opacity},overlays:t?.overlays||mP(o)},s}function Cne(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=bne,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),g=Sne(a),{[h]:y,light:b,dark:x,...S}=n,T={...S};let D=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(ec(21,h));const k=uE(T,D,d,h);b&&!T.light&&uE(T,b,void 0,"light"),x&&!T.dark&&uE(T,x,void 0,"dark");let R={defaultColorScheme:h,...k,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:T,font:{...Kte(k.typography),...k.font},spacing:Tne(d.spacing)};Object.keys(R.colorSchemes).forEach(H=>{const C=R.colorSchemes[H].palette,M=V=>{const z=V.split("-"),W=z[1],Y=z[2];return g(V,C[W][Y])};if(C.mode==="light"&&(_e(C.common,"background","#fff"),_e(C.common,"onBackground","#000")),C.mode==="dark"&&(_e(C.common,"background","#000"),_e(C.common,"onBackground","#fff")),xne(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){_e(C.Alert,"errorColor",_n(C.error.light,.6)),_e(C.Alert,"infoColor",_n(C.info.light,.6)),_e(C.Alert,"successColor",_n(C.success.light,.6)),_e(C.Alert,"warningColor",_n(C.warning.light,.6)),_e(C.Alert,"errorFilledBg",M("palette-error-main")),_e(C.Alert,"infoFilledBg",M("palette-info-main")),_e(C.Alert,"successFilledBg",M("palette-success-main")),_e(C.Alert,"warningFilledBg",M("palette-warning-main")),_e(C.Alert,"errorFilledColor",Ja(()=>C.getContrastText(C.error.main))),_e(C.Alert,"infoFilledColor",Ja(()=>C.getContrastText(C.info.main))),_e(C.Alert,"successFilledColor",Ja(()=>C.getContrastText(C.success.main))),_e(C.Alert,"warningFilledColor",Ja(()=>C.getContrastText(C.warning.main))),_e(C.Alert,"errorStandardBg",An(C.error.light,.9)),_e(C.Alert,"infoStandardBg",An(C.info.light,.9)),_e(C.Alert,"successStandardBg",An(C.success.light,.9)),_e(C.Alert,"warningStandardBg",An(C.warning.light,.9)),_e(C.Alert,"errorIconColor",M("palette-error-main")),_e(C.Alert,"infoIconColor",M("palette-info-main")),_e(C.Alert,"successIconColor",M("palette-success-main")),_e(C.Alert,"warningIconColor",M("palette-warning-main")),_e(C.AppBar,"defaultBg",M("palette-grey-100")),_e(C.Avatar,"defaultBg",M("palette-grey-400")),_e(C.Button,"inheritContainedBg",M("palette-grey-300")),_e(C.Button,"inheritContainedHoverBg",M("palette-grey-A100")),_e(C.Chip,"defaultBorder",M("palette-grey-400")),_e(C.Chip,"defaultAvatarColor",M("palette-grey-700")),_e(C.Chip,"defaultIconColor",M("palette-grey-700")),_e(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_e(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_e(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_e(C.LinearProgress,"primaryBg",An(C.primary.main,.62)),_e(C.LinearProgress,"secondaryBg",An(C.secondary.main,.62)),_e(C.LinearProgress,"errorBg",An(C.error.main,.62)),_e(C.LinearProgress,"infoBg",An(C.info.main,.62)),_e(C.LinearProgress,"successBg",An(C.success.main,.62)),_e(C.LinearProgress,"warningBg",An(C.warning.main,.62)),_e(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),_e(C.Slider,"primaryTrack",An(C.primary.main,.62)),_e(C.Slider,"secondaryTrack",An(C.secondary.main,.62)),_e(C.Slider,"errorTrack",An(C.error.main,.62)),_e(C.Slider,"infoTrack",An(C.info.main,.62)),_e(C.Slider,"successTrack",An(C.success.main,.62)),_e(C.Slider,"warningTrack",An(C.warning.main,.62));const V=lg(C.background.default,.8);_e(C.SnackbarContent,"bg",V),_e(C.SnackbarContent,"color",Ja(()=>C.getContrastText(V))),_e(C.SpeedDialAction,"fabHoverBg",lg(C.background.paper,.15)),_e(C.StepConnector,"border",M("palette-grey-400")),_e(C.StepContent,"border",M("palette-grey-400")),_e(C.Switch,"defaultColor",M("palette-common-white")),_e(C.Switch,"defaultDisabledColor",M("palette-grey-100")),_e(C.Switch,"primaryDisabledColor",An(C.primary.main,.62)),_e(C.Switch,"secondaryDisabledColor",An(C.secondary.main,.62)),_e(C.Switch,"errorDisabledColor",An(C.error.main,.62)),_e(C.Switch,"infoDisabledColor",An(C.info.main,.62)),_e(C.Switch,"successDisabledColor",An(C.success.main,.62)),_e(C.Switch,"warningDisabledColor",An(C.warning.main,.62)),_e(C.TableCell,"border",An(sg(C.divider,1),.88)),_e(C.Tooltip,"bg",sg(C.grey[700],.92))}if(C.mode==="dark"){_e(C.Alert,"errorColor",An(C.error.light,.6)),_e(C.Alert,"infoColor",An(C.info.light,.6)),_e(C.Alert,"successColor",An(C.success.light,.6)),_e(C.Alert,"warningColor",An(C.warning.light,.6)),_e(C.Alert,"errorFilledBg",M("palette-error-dark")),_e(C.Alert,"infoFilledBg",M("palette-info-dark")),_e(C.Alert,"successFilledBg",M("palette-success-dark")),_e(C.Alert,"warningFilledBg",M("palette-warning-dark")),_e(C.Alert,"errorFilledColor",Ja(()=>C.getContrastText(C.error.dark))),_e(C.Alert,"infoFilledColor",Ja(()=>C.getContrastText(C.info.dark))),_e(C.Alert,"successFilledColor",Ja(()=>C.getContrastText(C.success.dark))),_e(C.Alert,"warningFilledColor",Ja(()=>C.getContrastText(C.warning.dark))),_e(C.Alert,"errorStandardBg",_n(C.error.light,.9)),_e(C.Alert,"infoStandardBg",_n(C.info.light,.9)),_e(C.Alert,"successStandardBg",_n(C.success.light,.9)),_e(C.Alert,"warningStandardBg",_n(C.warning.light,.9)),_e(C.Alert,"errorIconColor",M("palette-error-main")),_e(C.Alert,"infoIconColor",M("palette-info-main")),_e(C.Alert,"successIconColor",M("palette-success-main")),_e(C.Alert,"warningIconColor",M("palette-warning-main")),_e(C.AppBar,"defaultBg",M("palette-grey-900")),_e(C.AppBar,"darkBg",M("palette-background-paper")),_e(C.AppBar,"darkColor",M("palette-text-primary")),_e(C.Avatar,"defaultBg",M("palette-grey-600")),_e(C.Button,"inheritContainedBg",M("palette-grey-800")),_e(C.Button,"inheritContainedHoverBg",M("palette-grey-700")),_e(C.Chip,"defaultBorder",M("palette-grey-700")),_e(C.Chip,"defaultAvatarColor",M("palette-grey-300")),_e(C.Chip,"defaultIconColor",M("palette-grey-300")),_e(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_e(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_e(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_e(C.LinearProgress,"primaryBg",_n(C.primary.main,.5)),_e(C.LinearProgress,"secondaryBg",_n(C.secondary.main,.5)),_e(C.LinearProgress,"errorBg",_n(C.error.main,.5)),_e(C.LinearProgress,"infoBg",_n(C.info.main,.5)),_e(C.LinearProgress,"successBg",_n(C.success.main,.5)),_e(C.LinearProgress,"warningBg",_n(C.warning.main,.5)),_e(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),_e(C.Slider,"primaryTrack",_n(C.primary.main,.5)),_e(C.Slider,"secondaryTrack",_n(C.secondary.main,.5)),_e(C.Slider,"errorTrack",_n(C.error.main,.5)),_e(C.Slider,"infoTrack",_n(C.info.main,.5)),_e(C.Slider,"successTrack",_n(C.success.main,.5)),_e(C.Slider,"warningTrack",_n(C.warning.main,.5));const V=lg(C.background.default,.98);_e(C.SnackbarContent,"bg",V),_e(C.SnackbarContent,"color",Ja(()=>C.getContrastText(V))),_e(C.SpeedDialAction,"fabHoverBg",lg(C.background.paper,.15)),_e(C.StepConnector,"border",M("palette-grey-600")),_e(C.StepContent,"border",M("palette-grey-600")),_e(C.Switch,"defaultColor",M("palette-grey-300")),_e(C.Switch,"defaultDisabledColor",M("palette-grey-600")),_e(C.Switch,"primaryDisabledColor",_n(C.primary.main,.55)),_e(C.Switch,"secondaryDisabledColor",_n(C.secondary.main,.55)),_e(C.Switch,"errorDisabledColor",_n(C.error.main,.55)),_e(C.Switch,"infoDisabledColor",_n(C.info.main,.55)),_e(C.Switch,"successDisabledColor",_n(C.success.main,.55)),_e(C.Switch,"warningDisabledColor",_n(C.warning.main,.55)),_e(C.TableCell,"border",_n(sg(C.divider,1),.68)),_e(C.Tooltip,"bg",sg(C.grey[700],.92))}Fi(C.background,"default"),Fi(C.background,"paper"),Fi(C.common,"background"),Fi(C.common,"onBackground"),Fi(C,"divider"),Object.keys(C).forEach(V=>{const z=C[V];V!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&_e(C[V],"mainChannel",Zf(Jf(z.main))),z.light&&_e(C[V],"lightChannel",Zf(Jf(z.light))),z.dark&&_e(C[V],"darkChannel",Zf(Jf(z.dark))),z.contrastText&&_e(C[V],"contrastTextChannel",Zf(Jf(z.contrastText))),V==="text"&&(Fi(C[V],"primary"),Fi(C[V],"secondary")),V==="action"&&(z.active&&Fi(C[V],"active"),z.selected&&Fi(C[V],"selected")))})}),R=t.reduce((H,C)=>Uo(H,C),R);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Ene(R)},{vars:O,generateThemeVars:F,generateStyleSheets:U}=Yte(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([H,C])=>{R[H]=C}),R.generateThemeVars=F,R.generateStyleSheets=U,R.generateSpacing=function(){return XT(d.spacing,nC(this))},R.getColorSchemeSelector=Qte(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...K0,...d?.unstable_sxConfig},R.unstable_sx=function(H){return Hu({sx:H,theme:this})},R.toRuntimeSource=pP,R}function dI(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:sC({...n===!0?{}:n.palette,mode:t})})}function _ne(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,c=a||"light",u=o?.[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return qx(e,...t);let p=n;"palette"in e||d[c]&&(d[c]!==!0?p=d[c].palette:c==="dark"&&(p={mode:"dark"}));const h=qx({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},dI(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},dI(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),Cne({...s,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const cC=_ne(),uC="$$material";function Ane(){const e=Qu(cC);return e[uC]||e}function wne(e){const{variants:t,...n}=e,r={variants:t,style:iI(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=iI(o.style))}),r}const kne=lC();function Gs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Dne(e){return e?(t,n)=>n[e]:null}function Rne(e,t,n){e.theme=One(e.theme)?n:e.theme[t]||e.theme}function Bg(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Bg(e,r));if(Array.isArray(n?.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...a}=n;r=a}return gP(e,n.variants,[r])}return n?.isProcessed?n.style:n}function gP(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(a.style(r))):n.push(a.style)}return n}function Ine(e={}){const{themeId:t,defaultTheme:n=kne,rootShouldForwardProp:r=Gs,slotShouldForwardProp:o=Gs}=e;function a(s){Rne(s,t,n)}return(s,c={})=>{Fte(s,R=>R.filter(I=>I!==Hu));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:g=Dne(Pne(d)),...y}=c,b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=h||!1;let S=Gs;d==="Root"||d==="root"?S=r:d?S=o:Nne(s)&&(S=void 0);const T=Mte(s,{shouldForwardProp:S,label:void 0,...y}),D=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(I){return Bg(I,R)};if(Vi(R)){const I=wne(R);return I.variants?function(O){return Bg(O,I)}:I.style}return R},k=(...R)=>{const I=[],O=R.map(D),F=[];if(I.push(a),u&&g&&F.push(function(C){const M=C.theme.components?.[u]?.styleOverrides;if(!M)return null;const V={};for(const z in M)V[z]=Bg(C,M[z]);return g(C,V)}),u&&!b&&F.push(function(C){const M=C.theme?.components?.[u]?.variants;return M?gP(C,M):null}),x||F.push(Hu),Array.isArray(O[0])){const C=O.shift(),M=new Array(I.length).fill(""),V=new Array(F.length).fill("");let z;z=[...M,...C,...V],z.raw=[...M,...C.raw,...V],I.unshift(z)}const U=[...I,...O,...F],H=T(...U);return s.muiName&&(H.muiName=s.muiName),H};return T.withConfig&&(k.withConfig=T.withConfig),k}}function One(e){for(const t in e)return!1;return!0}function Nne(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pne(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Lne(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dC=e=>Lne(e)&&e!=="classes",Nn=Ine({themeId:uC,defaultTheme:cC,rootShouldForwardProp:dC}),fC=R3;function ld(e){return Gte(e)}function cd(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=sd(e,o,n)}),r}function Mne(e){return sd("MuiSvgIcon",e)}cd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Fne=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ua(t)}`,`fontSize${Ua(n)}`]};return Sh(o,Mne,r)},Bne=Nn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ua(n.color)}`],t[`fontSize${Ua(n.fontSize)}`]]}})(fC(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Wx=w.forwardRef(function(e,t){const n=ld({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...g}=n,y=w.isValidElement(r)&&r.type==="svg",b={...n,color:a,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},x={};d||(x.viewBox=h);const S=Fne(b);return E.jsxs(Bne,{as:s,className:nr(S.root,o),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...x,...g,...y&&r.props,ownerState:b,children:[y?r.props.children:r,p?E.jsx("title",{children:p}):null]})});Wx.muiName="SvgIcon";function In(e,t){function n(r,o){return E.jsx(Wx,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=Wx.muiName,w.memo(w.forwardRef(n))}function jne(e){const{controlled:t,default:n}=e,{current:r}=w.useRef(t!==void 0),[o,a]=w.useState(n),s=r?t:o,c=w.useCallback(u=>{r||a(u)},[]);return[s,c]}function jg(e){const t=w.useRef(e);return Bte(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function Cy(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Une(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Hne(e,t){if(!e)return t;function n(s,c){const u={};return Object.keys(c).forEach(d=>{Une(d,c[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),c[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const c=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...c}):e,d=nr(s?.className,c?.className,u?.className),p=n(u,c);return{...c,...u,...p,...!!d&&{className:d},...c?.style&&u?.style&&{style:{...c.style,...u.style}},...c?.sx&&u?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=nr(r?.className,e?.className);return{...t,...e,...o,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const X0=In(E.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),Ah=In(E.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),tr="http://localhost/api/v0".replace(/\/+$/,"");class tl{constructor(t,n=tr,r=Pt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration}class zne extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}const fr={},pr="https://example.com",jt=function(e,t,n){if(n==null)throw new zne(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Yx(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>Yx(e,r,n)):Object.keys(t).forEach(r=>Yx(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const hr=function(e,...t){const n=new URLSearchParams(e.search);Yx(n,t),e.search=n.toString()},mr=function(e){return e.pathname+e.search+e.hash},gr=function(e,t,n,r){return(o=t,a=n)=>{const s={...e.options,url:(o.defaults.baseURL?"":r?.basePath??a)+e.url};return o.request(s)}},$ne=function(e){return{getConnection:async(t,n,r={})=>{jt("getConnection","projectName",t),jt("getConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,pr);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};hr(a,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:mr(a),options:c}},getQuerydata:async(t,n,r,o,a={})=>{jt("getQuerydata","projectName",t),jt("getQuerydata","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,pr);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};r!==void 0&&(h.sqlStatement=r),o!==void 0&&(h.options=o),hr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:mr(c),options:d}},getSqlsource:async(t,n,r,o={})=>{jt("getSqlsource","projectName",t),jt("getSqlsource","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,pr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),hr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:mr(s),options:u}},getTablesource:async(t,n,r,o,a={})=>{jt("getTablesource","projectName",t),jt("getTablesource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(s,pr);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};r!==void 0&&(h.tableKey=r),o!==void 0&&(h.tablePath=o),hr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:mr(c),options:d}},getTemporarytable:async(t,n,r,o={})=>{jt("getTemporarytable","projectName",t),jt("getTemporarytable","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,pr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),hr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:mr(s),options:u}},getTest:async(t,n,r={})=>{jt("getTest","projectName",t),jt("getTest","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,pr);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};hr(a,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:mr(a),options:c}},listConnections:async(t,n={})=>{jt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,pr);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},c={};hr(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...c,...u,...n.headers},{url:mr(o),options:s}},listSchemas:async(t,n,r={})=>{jt("listSchemas","projectName",t),jt("listSchemas","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,pr);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={};hr(a,{});let d=s&&s.headers?s.headers:{};return c.headers={...u,...d,...r.headers},{url:mr(a),options:c}},listTables:async(t,n,r,o={})=>{jt("listTables","projectName",t),jt("listTables","connectionName",n),jt("listTables","schemaName",r);const a="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(a,pr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={};hr(s,{});let p=c&&c.headers?c.headers:{};return u.headers={...d,...p,...o.headers},{url:mr(s),options:u}}}},Bi=function(e){const t=$ne(e);return{async getConnection(n,r,o){const a=await t.getConnection(n,r,o),s=e?.serverIndex??0,c=fr["ConnectionsApi.getConnection"]?.[s]?.url;return(u,d)=>gr(a,Pt,tr,e)(u,c||d)},async getQuerydata(n,r,o,a,s){const c=await t.getQuerydata(n,r,o,a,s),u=e?.serverIndex??0,d=fr["ConnectionsApi.getQuerydata"]?.[u]?.url;return(p,h)=>gr(c,Pt,tr,e)(p,d||h)},async getSqlsource(n,r,o,a){const s=await t.getSqlsource(n,r,o,a),c=e?.serverIndex??0,u=fr["ConnectionsApi.getSqlsource"]?.[c]?.url;return(d,p)=>gr(s,Pt,tr,e)(d,u||p)},async getTablesource(n,r,o,a,s){const c=await t.getTablesource(n,r,o,a,s),u=e?.serverIndex??0,d=fr["ConnectionsApi.getTablesource"]?.[u]?.url;return(p,h)=>gr(c,Pt,tr,e)(p,d||h)},async getTemporarytable(n,r,o,a){const s=await t.getTemporarytable(n,r,o,a),c=e?.serverIndex??0,u=fr["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(d,p)=>gr(s,Pt,tr,e)(d,u||p)},async getTest(n,r,o){const a=await t.getTest(n,r,o),s=e?.serverIndex??0,c=fr["ConnectionsApi.getTest"]?.[s]?.url;return(u,d)=>gr(a,Pt,tr,e)(u,c||d)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,s=fr["ConnectionsApi.listConnections"]?.[a]?.url;return(c,u)=>gr(o,Pt,tr,e)(c,s||u)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,c=fr["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,d)=>gr(a,Pt,tr,e)(u,c||d)},async listTables(n,r,o,a){const s=await t.listTables(n,r,o,a),c=e?.serverIndex??0,u=fr["ConnectionsApi.listTables"]?.[c]?.url;return(d,p)=>gr(s,Pt,tr,e)(d,u||p)}}};class yP extends tl{getConnection(t,n,r){return Bi(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getQuerydata(t,n,r,o,a){return Bi(this.configuration).getQuerydata(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getSqlsource(t,n,r,o){return Bi(this.configuration).getSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,n,r,o,a){return Bi(this.configuration).getTablesource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getTemporarytable(t,n,r,o){return Bi(this.configuration).getTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTest(t,n,r){return Bi(this.configuration).getTest(t,n,r).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Bi(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Bi(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listTables(t,n,r,o){return Bi(this.configuration).listTables(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const Vne=function(e){return{listDatabases:async(t,n,r,o={})=>{jt("listDatabases","projectName",t),jt("listDatabases","packageName",n);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,pr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.versionId=r),hr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:mr(s),options:u}}}},Gne=function(e){const t=Vne(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),c=e?.serverIndex??0,u=fr["DatabasesApi.listDatabases"]?.[c]?.url;return(d,p)=>gr(s,Pt,tr,e)(d,u||p)}}};class qne extends tl{listDatabases(t,n,r,o){return Gne(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const Wne=function(e){return{getModel:async(t,n,r,o,a={})=>{jt("getModel","projectName",t),jt("getModel","packageName",n),jt("getModel","path",r);const s="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,pr);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),hr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:mr(c),options:d}},listModels:async(t,n,r,o={})=>{jt("listModels","projectName",t),jt("listModels","packageName",n);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,pr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.versionId=r),hr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:mr(s),options:u}}}},fI=function(e){const t=Wne(e);return{async getModel(n,r,o,a,s){const c=await t.getModel(n,r,o,a,s),u=e?.serverIndex??0,d=fr["ModelsApi.getModel"]?.[u]?.url;return(p,h)=>gr(c,Pt,tr,e)(p,d||h)},async listModels(n,r,o,a){const s=await t.listModels(n,r,o,a),c=e?.serverIndex??0,u=fr["ModelsApi.listModels"]?.[c]?.url;return(d,p)=>gr(s,Pt,tr,e)(d,u||p)}}};class Z0 extends tl{getModel(t,n,r,o,a){return fI(this.configuration).getModel(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,o){return fI(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const Yne=function(e){return{getNotebook:async(t,n,r,o,a={})=>{jt("getNotebook","projectName",t),jt("getNotebook","packageName",n),jt("getNotebook","path",r);const s="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(s,pr);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),hr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:mr(c),options:d}},listNotebooks:async(t,n,r,o={})=>{jt("listNotebooks","projectName",t),jt("listNotebooks","packageName",n);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,pr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.versionId=r),hr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:mr(s),options:u}}}},pI=function(e){const t=Yne(e);return{async getNotebook(n,r,o,a,s){const c=await t.getNotebook(n,r,o,a,s),u=e?.serverIndex??0,d=fr["NotebooksApi.getNotebook"]?.[u]?.url;return(p,h)=>gr(c,Pt,tr,e)(p,d||h)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),c=e?.serverIndex??0,u=fr["NotebooksApi.listNotebooks"]?.[c]?.url;return(d,p)=>gr(s,Pt,tr,e)(d,u||p)}}};class bP extends tl{getNotebook(t,n,r,o,a){return pI(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return pI(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const Kne=function(e){return{getPackage:async(t,n,r,o,a={})=>{jt("getPackage","projectName",t),jt("getPackage","packageName",n);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(s,pr);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};r!==void 0&&(h.versionId=r),o!==void 0&&(h.reload=o),hr(c,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:mr(c),options:d}},listPackages:async(t,n={})=>{jt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,pr);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},c={};hr(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...c,...u,...n.headers},{url:mr(o),options:s}}}},hI=function(e){const t=Kne(e);return{async getPackage(n,r,o,a,s){const c=await t.getPackage(n,r,o,a,s),u=e?.serverIndex??0,d=fr["PackagesApi.getPackage"]?.[u]?.url;return(p,h)=>gr(c,Pt,tr,e)(p,d||h)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,s=fr["PackagesApi.listPackages"]?.[a]?.url;return(c,u)=>gr(o,Pt,tr,e)(c,s||u)}}};class vP extends tl{getPackage(t,n,r,o,a){return hI(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return hI(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}}const Qne=function(e){return{getProject:async(t,n,r={})=>{jt("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,pr);let s;e&&(s=e.baseOptions);const c={method:"GET",...s,...r},u={},d={};n!==void 0&&(d.reload=n),hr(a,d);let p=s&&s.headers?s.headers:{};return c.headers={...u,...p,...r.headers},{url:mr(a),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,pr);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};hr(r,{});let c=o&&o.headers?o.headers:{};return a.headers={...s,...c,...t.headers},{url:mr(r),options:a}}}},mI=function(e){const t=Qne(e);return{async getProject(n,r,o){const a=await t.getProject(n,r,o),s=e?.serverIndex??0,c=fr["ProjectsApi.getProject"]?.[s]?.url;return(u,d)=>gr(a,Pt,tr,e)(u,c||d)},async listProjects(n){const r=await t.listProjects(n),o=e?.serverIndex??0,a=fr["ProjectsApi.listProjects"]?.[o]?.url;return(s,c)=>gr(r,Pt,tr,e)(s,a||c)}}};class EP extends tl{getProject(t,n,r){return mI(this.configuration).getProject(t,n,r).then(o=>o(this.axios,this.basePath))}listProjects(t){return mI(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}}const Xne=function(e){return{executeQuery:async(t,n,r,o,a,s,c,u={})=>{jt("executeQuery","projectName",t),jt("executeQuery","packageName",n),jt("executeQuery","path",r);const d="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(d,pr);let h;e&&(h=e.baseOptions);const g={method:"GET",...h,...u},y={},b={};o!==void 0&&(b.query=o),a!==void 0&&(b.sourceName=a),s!==void 0&&(b.queryName=s),c!==void 0&&(b.versionId=c),hr(p,b);let x=h&&h.headers?h.headers:{};return g.headers={...y,...x,...u.headers},{url:mr(p),options:g}}}},Zne=function(e){const t=Xne(e);return{async executeQuery(n,r,o,a,s,c,u,d){const p=await t.executeQuery(n,r,o,a,s,c,u,d),h=e?.serverIndex??0,g=fr["QueryresultsApi.executeQuery"]?.[h]?.url;return(y,b)=>gr(p,Pt,tr,e)(y,g||b)}}};class xP extends tl{executeQuery(t,n,r,o,a,s,c,u){return Zne(this.configuration).executeQuery(t,n,r,o,a,s,c,u).then(d=>d(this.axios,this.basePath))}}const Jne=function(e){return{listSchedules:async(t,n,r,o={})=>{jt("listSchedules","projectName",t),jt("listSchedules","packageName",n);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,pr);let c;e&&(c=e.baseOptions);const u={method:"GET",...c,...o},d={},p={};r!==void 0&&(p.versionId=r),hr(s,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...o.headers},{url:mr(s),options:u}}}},ere=function(e){const t=Jne(e);return{async listSchedules(n,r,o,a){const s=await t.listSchedules(n,r,o,a),c=e?.serverIndex??0,u=fr["SchedulesApi.listSchedules"]?.[c]?.url;return(d,p)=>gr(s,Pt,tr,e)(d,u||p)}}};class tre extends tl{listSchedules(t,n,r,o){return ere(this.configuration).listSchedules(t,n,r,o).then(a=>a(this.axios,this.basePath))}}class Qr{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}}const TP=[{id:"abap",name:"ABAP",import:()=>G(()=>import("./abap-BmBUA35e-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>G(()=>import("./actionscript-3-zFUbzQa9-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>G(()=>import("./ada-CBvPkFpZ-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>G(()=>import("./angular-html-0fTdLuKf-C_Z-qPys.js"),__vite__mapDeps([0,1,2,3])).then(e=>e.f)},{id:"angular-ts",name:"Angular TypeScript",import:()=>G(()=>import("./angular-ts-wkniW60G-CLxf_aqD.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>G(()=>import("./apache-CVNlsSDc-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>G(()=>import("./apex-DFk3KRB1-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>G(()=>import("./apl-TLDHFJX6-4Ja2pao0.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>G(()=>import("./applescript-CYMR_y0g-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>G(()=>import("./ara-4QmU5e04-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>G(()=>import("./asciidoc-v_1bjgUg-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>G(()=>import("./asm-RC0Yh-NZ-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>G(()=>import("./astro-Uf8_VxKJ-CLNq6E27.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>G(()=>import("./awk-gPH8MVMW-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>G(()=>import("./ballerina-kvLnRU_e-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>G(()=>import("./bat-BHYy44sT-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>G(()=>import("./beancount-D-MADTs_-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>G(()=>import("./berry-Ci9U0o4h-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>G(()=>import("./bibtex-CX618D15-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>G(()=>import("./bicep-iuYiPopT-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>G(()=>import("./blade-BtR00Gx0-BH_u9bLw.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>G(()=>import("./bsl-BIXPNqL4-B7NuXuWJ.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>G(()=>import("./c-DASdrs7p-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>G(()=>import("./cadence-BDALQi26-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>G(()=>import("./cairo-tXZKA2PT-BLBT-6ii.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>G(()=>import("./clarity-CNgV2Ths-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>G(()=>import("./clojure-CsKKFGwv-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>G(()=>import("./cmake-Dr-A3iJx-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>G(()=>import("./cobol-DMssKNmC-B2fukI-w.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>G(()=>import("./codeowners-Bt9yU6NX-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>G(()=>import("./codeql-DBNTqJi1-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>G(()=>import("./coffee-D_GzM8k1-4lliG68M.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>G(()=>import("./common-lisp-r7ZEOG7T-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>G(()=>import("./coq-CB6Pv_W9-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>G(()=>import("./cpp-CJF2i3ah-pZOsOWe_.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>G(()=>import("./crystal-BKWnaU3g-DLUiimt9.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>G(()=>import("./csharp-CYWRhZ2R-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>G(()=>import("./css-D1aVdRIU-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>G(()=>import("./csv-DvCncUGQ-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>G(()=>import("./cue-BXMrmvay-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>G(()=>import("./cypher-DTm5zNR1-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>G(()=>import("./d-D6ZXmn3l-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>G(()=>import("./dart-Dz59Is3F-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>G(()=>import("./dax-DTVGzydb-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>G(()=>import("./desktop-Db9vb-dl-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>G(()=>import("./diff-XmNrvgM1-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>G(()=>import("./docker-DWH2onkn-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>G(()=>import("./dotenv-4337wvzu-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>G(()=>import("./dream-maker-CvvfrJSx-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>G(()=>import("./edge-CgxR-qhM-C4-j-4jN.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>G(()=>import("./elixir-DZkeSPwW-CcKXTVRL.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>G(()=>import("./elm-BKuV1HE1-DhehEoOI.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>G(()=>import("./emacs-lisp-BAefI874-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>G(()=>import("./erb-BLwkpXUJ-ChmaBI6f.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>G(()=>import("./erlang-CmIiwF3I-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>G(()=>import("./fennel-DNqkz9pE-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>G(()=>import("./fish-DIm72t2T-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>G(()=>import("./fluent-BapTxJsC-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>G(()=>import("./fortran-fixed-form-s9Hnb3av-DpX1AVnn.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>G(()=>import("./fortran-free-form-CNDsBFUj-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>G(()=>import("./fsharp-Cv0x43wb-Dg8cqrY9.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>G(()=>import("./gdresource-CMcKXvgJ-CWt23EK3.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>G(()=>import("./gdscript-D7aheHm--DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>G(()=>import("./gdshader-BGJEsM2Z-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>G(()=>import("./genie-C9gPjc6J-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>G(()=>import("./gherkin-bka1Exbx--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>G(()=>import("./git-commit-BspYIY3P-n1pa9hpQ.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>G(()=>import("./git-rebase--zLBTjUa-D_BU2XLr.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>G(()=>import("./gleam-B4k9YFGD-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>G(()=>import("./glimmer-js-DhY9umHJ-VrvmblrN.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>G(()=>import("./glimmer-ts-CCrHcYH5-JtH9P_df.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>G(()=>import("./glsl-XLGYNq5B-BsoackK0.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>G(()=>import("./gnuplot-DnWoRZt--CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>G(()=>import("./go-BErP6iv1-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>G(()=>import("./graphql-DWpQF4JI-Bg_kbUNo.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>G(()=>import("./groovy-IWs5-NIO-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>G(()=>import("./hack-CQrV-ytR-DsU69WFl.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>G(()=>import("./haml-CMN0hQaL-P2mc1-Uz.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>G(()=>import("./handlebars-Cc-7fXX5-1wmMMko9.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>G(()=>import("./haskell-CtlGos0K-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>G(()=>import("./haxe-CZZ33vZw-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>G(()=>import("./hcl-6hOg9WP4-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>G(()=>import("./hjson-CgwED-oz-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>G(()=>import("./hlsl-3-lv4gi7-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>G(()=>import("./html-B0P_v3yU-5FUQOWqS.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>G(()=>import("./html-derivative-D59SHfh8-CSkG6UyS.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>G(()=>import("./http-Dcjm_K1m-BIoBBtFi.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>G(()=>import("./hxml-BNKImryz-C86vEiUs.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>G(()=>import("./hy-C2xHhR6I-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>G(()=>import("./imba-Drd0AMDo-ClNo5Aft.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>G(()=>import("./ini-BUcvsX-U-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>G(()=>import("./java-B7odJ7Ap-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>G(()=>import("./javascript-fa8UlHZE-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>G(()=>import("./jinja-CCSYduCH-DYrHgqe4.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>G(()=>import("./jison-BygvlveW-CnxAXEK_.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>G(()=>import("./json-71t8ZF9g-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>G(()=>import("./json5-Z7F6rA6a-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>G(()=>import("./jsonc-Dphhs4m2-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>G(()=>import("./jsonl-D9jj92Gg-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>G(()=>import("./jsonnet-DEQ7IUoJ-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>G(()=>import("./jssm-j74e88UX-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>G(()=>import("./jsx-Bkesy5tT-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>G(()=>import("./julia-CiahampL-V7UYV-sq.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>G(()=>import("./kotlin-DCgZY7Ii-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>G(()=>import("./kusto-Cw029H-v-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>G(()=>import("./latex-LfGCYGw5-BH0TQ0ei.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>G(()=>import("./lean-CYSet4vs-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>G(()=>import("./less-DQA4v-Nm-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>G(()=>import("./liquid-CvufO3kO-CDc-Ahzk.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>G(()=>import("./log-D2eRfqDn-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>G(()=>import("./logo-QEAtGWZ9-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>G(()=>import("./lua-BVfhNLDr-CWJMHgTQ.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>G(()=>import("./luau-BjYGiqID-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>G(()=>import("./make-BjuHP00g-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>G(()=>import("./markdown-B6guhLWd-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>G(()=>import("./marko-CHlMS8w5-BMD3FaEa.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>G(()=>import("./matlab-BpQlIJiw-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>G(()=>import("./mdc-4K6B6lHG-BAGHtNo-.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>G(()=>import("./mdx-DIoECIFU-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>G(()=>import("./mermaid-BZ7WHNIe-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>G(()=>import("./mipsasm-DusDYkFc-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>G(()=>import("./mojo-CY9jaezJ-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>G(()=>import("./move-ChphFumd-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>G(()=>import("./narrat-Dz4d7OmN-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>G(()=>import("./nextflow-DW0Yq9a2-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>G(()=>import("./nginx-Can2eAjw-CdY2tLiv.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>G(()=>import("./nim-B3r2RtQZ-VfCbv_TB.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>G(()=>import("./nix-Cg5uV_xg-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>G(()=>import("./nushell-BfRnzRWn-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>G(()=>import("./objective-c-BGg9R27G-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>G(()=>import("./objective-cpp-CJ3y3V_5-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>G(()=>import("./ocaml-BZLsfx_o-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>G(()=>import("./pascal-l2bqd7Dz-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>G(()=>import("./perl-DaMQyPwp-C4BFOiY3.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>G(()=>import("./php-BL3EfPBi-BMN5eA9q.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>G(()=>import("./plsql-oVq_K_wH-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>G(()=>import("./po-5jaeIyVd-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>G(()=>import("./polar-wcLp8ci7-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>G(()=>import("./postcss-BZ3MNRIJ-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>G(()=>import("./powerquery-CgRa2XRw-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>G(()=>import("./powershell-Diwyv8Eh-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>G(()=>import("./prisma-COL_v1x4-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>G(()=>import("./prolog-CuvJOxqT-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>G(()=>import("./proto-o9HLmF90-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>G(()=>import("./pug-HKe4Luo3-BjTLA0bL.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>G(()=>import("./puppet-wpGOnQp5-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>G(()=>import("./purescript-B_1NgE2N-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>G(()=>import("./python-xYxLFJY--DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>G(()=>import("./qml-FlMIyjU9-DSnJ_WBo.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>G(()=>import("./qmldir-BInDYbpo-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>G(()=>import("./qss-D-h4NdUG-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>G(()=>import("./r-F-9I-ITZ-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>G(()=>import("./racket-BoD1TBFT-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>G(()=>import("./raku-IaYcw19m-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>G(()=>import("./razor-CeqqNtyB-CTLKKD1r.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>G(()=>import("./reg-CMUdAgIP-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>G(()=>import("./regexp-GiFkbxS--DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>G(()=>import("./rel-BaRn3QX7-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>G(()=>import("./riscv-B9V3SsvW-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>G(()=>import("./rst-C3D6-dqL-DnZbUBhI.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>G(()=>import("./ruby-DcPLUUK3-ComHSJZD.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>G(()=>import("./rust-Pc7DCsZD-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>G(()=>import("./sas-tDSYjXcL-BoaRjvJ1.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>G(()=>import("./sass-iCyS6eP9-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>G(()=>import("./scala-Cly-fENF-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>G(()=>import("./scheme-Zi24oEYu-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>G(()=>import("./scss-DhHc4lxB-DOVe6m7U.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>G(()=>import("./sdbl-BBamrXFL-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>G(()=>import("./shaderlab-CvqEIoL0-D4Zbm5h2.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>G(()=>import("./shellscript-Dn0-btNd-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>G(()=>import("./shellsession-8OLo3sB6-BcsC7Rtk.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>G(()=>import("./smalltalk-Cns31tKw-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>G(()=>import("./solidity-BG_k8fA_-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>G(()=>import("./soy-EwHMOVPj-g2bfMTqc.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>G(()=>import("./sparql-DhuelBut-DSDXMn9h.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>G(()=>import("./splunk-CTqDjQdo-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>G(()=>import("./sql-DCkt643--COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>G(()=>import("./ssh-config-DHHGll-v-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>G(()=>import("./stata-Dok6hMw0-Dx5Z5W33.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>G(()=>import("./stylus-n_9f0QQ5-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>G(()=>import("./svelte-01qw6Rxm-BPq1Epw_.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>G(()=>import("./swift-BAWqNR8A-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>G(()=>import("./system-verilog-Cui-g-ut-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>G(()=>import("./systemd-CsKYQIQK-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>G(()=>import("./talonscript-D2dGh8FO-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>G(()=>import("./tasl-D3W8HMV6-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>G(()=>import("./tcl-2y0Fuc4S-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>G(()=>import("./templ-Hmy8U0DD-bZJvPZVc.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>G(()=>import("./terraform-BGW6Oerf-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>G(()=>import("./tex-mHs7a43s-GNY7iZwJ.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>G(()=>import("./toml-CQSfOn0e-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>G(()=>import("./ts-tags-DYZ4SGcN-DHCrqCAy.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>G(()=>import("./tsv-BtvSkaG0-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>G(()=>import("./tsx-DiGsgWT8-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>G(()=>import("./turtle-BJ2wmjPc-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>G(()=>import("./twig-BmytkGQV-gxvDbPvi.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>G(()=>import("./typescript-buWNZFwO-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>G(()=>import("./typespec-bLbdsxJL-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>G(()=>import("./typst-Y9_SmXTs-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>G(()=>import("./v-wa8Orrdd-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>G(()=>import("./vala-DRdriFr_-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>G(()=>import("./vb-E2_-jk4M-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>G(()=>import("./verilog-B1iBoR5_-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>G(()=>import("./vhdl-CRVaAhXk-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>G(()=>import("./viml-B-zWOd7Z-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>G(()=>import("./vue-Bl1uVNsA-B0HO5ROf.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>G(()=>import("./vue-html-DHr5wjBG-BZddcMPi.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>G(()=>import("./vyper-DWutKXpa-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>G(()=>import("./wasm-Bv5f0gKv-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>G(()=>import("./wenyan-BMYnfus1-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>G(()=>import("./wgsl-DnPoPGDU-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>G(()=>import("./wikitext-CntM04PE-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>G(()=>import("./wolfram-Ws5qPlX9-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>G(()=>import("./xml-ChBsf5uy-CRY5u_dA.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>G(()=>import("./xsl-BefjlXrd-kO2fudRX.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>G(()=>import("./yaml-Bbg74JKr-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>G(()=>import("./zenscript-C0RKE4nU-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>G(()=>import("./zig-D6SXBGNm-BVz_zdnA.js"),[])}],nre=Object.fromEntries(TP.map(e=>[e.id,e.import])),rre=Object.fromEntries(TP.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),ore={...nre,...rre},are=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>G(()=>import("./andromeeda-uXNdzNpk-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>G(()=>import("./aurora-x-BwoVEUWZ-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>G(()=>import("./ayu-dark-CxPZkpb2-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>G(()=>import("./catppuccin-frappe-BrTOiad2-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>G(()=>import("./catppuccin-latte-D-dc_R4m-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>G(()=>import("./catppuccin-macchiato-DN4jOp0G-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>G(()=>import("./catppuccin-mocha-B8yCE3-3-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>G(()=>import("./dark-plus-pUHDTVV0-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>G(()=>import("./dracula-BtZx2Kac-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>G(()=>import("./dracula-soft-BKa-aqBv-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>G(()=>import("./everforest-dark-DMCBqXCK-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>G(()=>import("./everforest-light-BbXl82Em-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>G(()=>import("./github-dark-DenFmJkN-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>G(()=>import("./github-dark-default-BJPUVz4H-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>G(()=>import("./github-dark-dimmed-DUshB20C-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>G(()=>import("./github-dark-high-contrast-D3aGCnF8-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>G(()=>import("./github-light-JYsPkUQd-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>G(()=>import("./github-light-default-D99KPAby-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>G(()=>import("./github-light-high-contrast-BbmZE-Mp-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>G(()=>import("./houston-BDYrDoDW-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>G(()=>import("./kanagawa-dragon-CiKur4Hl-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>G(()=>import("./kanagawa-lotus-BKu-smKu-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>G(()=>import("./kanagawa-wave-CQwozSzG-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>G(()=>import("./laserwave-6a00oqik-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>G(()=>import("./light-plus-CZuVqSLX-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>G(()=>import("./material-theme-D6KBX41T-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>G(()=>import("./material-theme-darker-CkRroheE-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>G(()=>import("./material-theme-lighter-BUBw43Yz-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>G(()=>import("./material-theme-ocean-ClGX14Ja-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>G(()=>import("./material-theme-palenight-C1RVm8K1-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>G(()=>import("./min-dark-C7ak0t6c-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>G(()=>import("./min-light-CKFxVcPp-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>G(()=>import("./monokai-C1KBYcO0-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>G(()=>import("./night-owl-Bm2rzalh-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>G(()=>import("./nord-CC5OiUXg-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>G(()=>import("./one-dark-pro-D7-kP8fv-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>G(()=>import("./one-light-D9sNaUtq-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>G(()=>import("./plastic-CSTz3KZp-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>G(()=>import("./poimandres-C-VADXHD-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>G(()=>import("./red-7y8PH7HH-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>G(()=>import("./rose-pine-DhT-HZE9-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>G(()=>import("./rose-pine-dawn-DiCjL2i4-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>G(()=>import("./rose-pine-moon-BNmGHlcn-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>G(()=>import("./slack-dark-i7wN4OET-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>G(()=>import("./slack-ochin-ndHf0LoP-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>G(()=>import("./snazzy-light-BlSJXAu4-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>G(()=>import("./solarized-dark-UTmkh7lw-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>G(()=>import("./solarized-light-BheCkDPT-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>G(()=>import("./synthwave-84-NU3C_KFZ-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>G(()=>import("./tokyo-night-LhP3hHhi-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>G(()=>import("./vesper-CJsaOsSM-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>G(()=>import("./vitesse-black-BoGvW84i-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>G(()=>import("./vitesse-dark-Cym-eLtO-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>G(()=>import("./vitesse-light-CcmG315c-CVO1_9PV.js"),[])}],ire=Object.fromEntries(are.map(e=>[e.id,e.import]));let Qi=class extends Error{constructor(e){super(e),this.name="ShikiError"}},pC=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function sre(){return 2147483648}function lre(){return typeof performance<"u"?performance.now():Date.now()}const cre=(e,t)=>e+(t-e%t)%t;async function ure(e){let t,n;const r={};function o(y){n=y,r.HEAPU8=new Uint8Array(y),r.HEAPU32=new Uint32Array(y)}function a(y,b,x){r.HEAPU8.copyWithin(y,b,b+x)}function s(y){try{return t.grow(y-n.byteLength+65535>>>16),o(t.buffer),1}catch{}}function c(y){const b=r.HEAPU8.length;y=y>>>0;const x=sre();if(y>x)return!1;for(let S=1;S<=4;S*=2){let T=b*(1+.2/S);T=Math.min(T,y+100663296);const D=Math.min(x,cre(Math.max(y,T),65536));if(s(D))return!0}return!1}const u=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(y,b,x=1024){const S=b+x;let T=b;for(;y[T]&&!(T>=S);)++T;if(T-b>16&&y.buffer&&u)return u.decode(y.subarray(b,T));let D="";for(;b<T;){let k=y[b++];if(!(k&128)){D+=String.fromCharCode(k);continue}const R=y[b++]&63;if((k&224)===192){D+=String.fromCharCode((k&31)<<6|R);continue}const I=y[b++]&63;if((k&240)===224?k=(k&15)<<12|R<<6|I:k=(k&7)<<18|R<<12|I<<6|y[b++]&63,k<65536)D+=String.fromCharCode(k);else{const O=k-65536;D+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return D}function p(y,b){return y?d(r.HEAPU8,y,b):""}const h={emscripten_get_now:lre,emscripten_memcpy_big:a,emscripten_resize_heap:c,fd_write:()=>0};async function g(){const y=await e({env:h,wasi_snapshot_preview1:h});t=y.memory,o(t.buffer),Object.assign(r,y),r.UTF8ToString=p}return await g(),r}var dre=Object.defineProperty,fre=(e,t,n)=>t in e?dre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t,n)=>(fre(e,typeof t!="symbol"?t+"":t,n),n);let Ir=null;function pre(e){throw new pC(e.UTF8ToString(e.getLastOnigError()))}class J0{constructor(t){Sr(this,"utf16Length"),Sr(this,"utf8Length"),Sr(this,"utf16Value"),Sr(this,"utf8Value"),Sr(this,"utf16OffsetToUtf8"),Sr(this,"utf8OffsetToUtf16");const n=t.length,r=J0._utf8ByteLength(t),o=r!==n,a=o?new Uint32Array(n+1):null;o&&(a[n]=r);const s=o?new Uint32Array(r+1):null;o&&(s[r]=n);const c=new Uint8Array(r);let u=0;for(let d=0;d<n;d++){const p=t.charCodeAt(d);let h=p,g=!1;if(p>=55296&&p<=56319&&d+1<n){const y=t.charCodeAt(d+1);y>=56320&&y<=57343&&(h=(p-55296<<10)+65536|y-56320,g=!0)}o&&(a[d]=u,g&&(a[d+1]=u),h<=127?s[u+0]=d:h<=2047?(s[u+0]=d,s[u+1]=d):h<=65535?(s[u+0]=d,s[u+1]=d,s[u+2]=d):(s[u+0]=d,s[u+1]=d,s[u+2]=d,s[u+3]=d)),h<=127?c[u++]=h:h<=2047?(c[u++]=192|(h&1984)>>>6,c[u++]=128|(h&63)>>>0):h<=65535?(c[u++]=224|(h&61440)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0):(c[u++]=240|(h&1835008)>>>18,c[u++]=128|(h&258048)>>>12,c[u++]=128|(h&4032)>>>6,c[u++]=128|(h&63)>>>0),g&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,o=t.length;r<o;r++){const a=t.charCodeAt(r);let s=a,c=!1;if(a>=55296&&a<=56319&&r+1<o){const u=t.charCodeAt(r+1);u>=56320&&u<=57343&&(s=(a-55296<<10)+65536|u-56320,c=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const ei=class{constructor(e){if(Sr(this,"id",++ei.LAST_ID),Sr(this,"_onigBinding"),Sr(this,"content"),Sr(this,"utf16Length"),Sr(this,"utf8Length"),Sr(this,"utf16OffsetToUtf8"),Sr(this,"utf8OffsetToUtf16"),Sr(this,"ptr"),!Ir)throw new pC("Must invoke loadWasm first.");this._onigBinding=Ir,this.content=e;const t=new J0(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!ei._sharedPtrInUse?(ei._sharedPtr||(ei._sharedPtr=Ir.omalloc(1e4)),ei._sharedPtrInUse=!0,Ir.HEAPU8.set(t.utf8Value,ei._sharedPtr),this.ptr=ei._sharedPtr):this.ptr=t.createString(Ir)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===ei._sharedPtr?ei._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let wh=ei;Sr(wh,"LAST_ID",0);Sr(wh,"_sharedPtr",0);Sr(wh,"_sharedPtrInUse",!1);class hre{constructor(t){if(Sr(this,"_onigBinding"),Sr(this,"_ptr"),!Ir)throw new pC("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,u=t.length;c<u;c++){const d=new J0(t[c]);n[c]=d.createString(Ir),r[c]=d.utf8Length}const o=Ir.omalloc(4*t.length);Ir.HEAPU32.set(n,o/4);const a=Ir.omalloc(4*t.length);Ir.HEAPU32.set(r,a/4);const s=Ir.createOnigScanner(o,a,t.length);for(let c=0,u=t.length;c<u;c++)Ir.ofree(n[c]);Ir.ofree(a),Ir.ofree(o),s===0&&pre(Ir),this._onigBinding=Ir,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let o=0;if(typeof r=="number"&&(o=r),typeof t=="string"){t=new wh(t);const a=this._findNextMatchSync(t,n,!1,o);return t.dispose(),a}return this._findNextMatchSync(t,n,!1,o)}_findNextMatchSync(t,n,r,o){const a=this._onigBinding,s=a.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),o);if(s===0)return null;const c=a.HEAPU32;let u=s/4;const d=c[u++],p=c[u++],h=[];for(let g=0;g<p;g++){const y=t.convertUtf8OffsetToUtf16(c[u++]),b=t.convertUtf8OffsetToUtf16(c[u++]);h[g]={start:y,end:b,length:b-y}}return{index:d,captureIndices:h}}}function mre(e){return typeof e.instantiator=="function"}function gre(e){return typeof e.default=="function"}function yre(e){return typeof e.data<"u"}function bre(e){return typeof Response<"u"&&e instanceof Response}function vre(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let cg;function Ere(e){if(cg)return cg;async function t(){Ir=await ure(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),mre(r)?r=await r.instantiator(n):gre(r)?r=await r.default(n):(yre(r)&&(r=r.data),bre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await xre(r)(n):r=await Tre(r)(n):vre(r)?r=await dE(r)(n):r instanceof WebAssembly.Module?r=await dE(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await dE(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return cg=t(),cg}function dE(e){return t=>WebAssembly.instantiate(e,t)}function xre(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Tre(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Sre;function Cre(){return Sre}async function SP(e){return e&&await Ere(e),{createScanner(t){return new hre(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new wh(t)}}}function _re(e){return hC(e)}function hC(e){return Array.isArray(e)?Are(e):e instanceof RegExp?e:typeof e=="object"?wre(e):e}function Are(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=hC(e[n]);return t}function wre(e){let t={};for(let n in e)t[n]=hC(e[n]);return t}function CP(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function _P(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?_P(e.substring(0,e.length-1)):e.substr(~t+1)}var fE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ug=class{static hasCaptures(e){return e===null?!1:(fE.lastIndex=0,fE.test(e))}static replaceCaptures(e,t,n){return e.replace(fE,(r,o,a,s)=>{let c=n[parseInt(o||a,10)];if(c){let u=t.substring(c.start,c.end);for(;u[0]===".";)u=u.substring(1);switch(s){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return r})}};function AP(e,t){return e<t?-1:e>t?1:0}function wP(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let o=0;o<n;o++){let a=AP(e[o],t[o]);if(a!==0)return a}return 0}return n-r}function gI(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function kP(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var DP=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},_y=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Rre(e),t)}static createFromParsedTheme(e,t){return Ore(e,t)}_cachedMatchRoot=new DP(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(r=>kre(e.parent,r.parentScopes));return n?new RP(n.fontStyle,n.foreground,n.background):null}},pE=class Ug{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ug(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ug(n,t[r]);return n}push(t){return new Ug(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function kre(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!Dre(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Dre(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var RP=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Rre(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,a=t.length;o<a;o++){let s=t[o];if(!s.settings)continue;let c;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(s.scope)?c=s.scope:c=[""];let u=-1;if(typeof s.settings.fontStyle=="string"){u=0;let h=s.settings.fontStyle.split(" ");for(let g=0,y=h.length;g<y;g++)switch(h[g]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let d=null;typeof s.settings.foreground=="string"&&gI(s.settings.foreground)&&(d=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&gI(s.settings.background)&&(p=s.settings.background);for(let h=0,g=c.length;h<g;h++){let y=c[h].trim().split(" "),b=y[y.length-1],x=null;y.length>1&&(x=y.slice(0,y.length-1),x.reverse()),n[r++]=new Ire(b,x,o,u,d,p)}}return n}var Ire=class{constructor(e,t,n,r,o,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=a}},qi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(qi||{});function Ore(e,t){e.sort((u,d)=>{let p=AP(u.scope,d.scope);return p!==0||(p=wP(u.parentScopes,d.parentScopes),p!==0)?p:u.index-d.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(n=u.fontStyle),u.foreground!==null&&(r=u.foreground),u.background!==null&&(o=u.background)}let a=new Nre(t),s=new RP(n,a.getId(r),a.getId(o)),c=new Lre(new Kx(0,null,-1,0,0),[]);for(let u=0,d=e.length;u<d;u++){let p=e[u];c.insert(0,p.scope,p.parentScopes,p.fontStyle,a.getId(p.foreground),a.getId(p.background))}return new _y(a,s,c)}var Nre=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Pre=Object.freeze([]),Kx=class IP{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,a){this.scopeDepth=t,this.parentScopes=n||Pre,this.fontStyle=r,this.foreground=o,this.background=a}clone(){return new IP(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},Lre=class Qx{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const a=n.parentScopes[o].length-t.parentScopes[r].length;if(a!==0)return a;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,a;if(r===-1?(o=t,a=""):(o=t.substring(0,r),a=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(a)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Qx._cmpBySpecificity),n}insert(t,n,r,o,a,s){if(n===""){this._doInsertHere(t,r,o,a,s);return}let c=n.indexOf("."),u,d;c===-1?(u=n,d=""):(u=n.substring(0,c),d=n.substring(c+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new Qx(this._mainRule.clone(),Kx.cloneArr(this._rulesWithParentScopes)),this._children[u]=p),p.insert(t+1,d,r,o,a,s)}_doInsertHere(t,n,r,o,a){if(n===null){this._mainRule.acceptOverwrite(t,r,o,a);return}for(let s=0,c=this._rulesWithParentScopes.length;s<c;s++){let u=this._rulesWithParentScopes[s];if(wP(u.parentScopes,n)===0){u.acceptOverwrite(t,r,o,a);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),a===0&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new Kx(t,n,r,o,a))}},zu=class oa{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=oa.getLanguageId(t),r=oa.getTokenType(t),o=oa.getFontStyle(t),a=oa.getForeground(t),s=oa.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:a,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,o,a,s,c){let u=oa.getLanguageId(t),d=oa.getTokenType(t),p=oa.containsBalancedBrackets(t)?1:0,h=oa.getFontStyle(t),g=oa.getForeground(t),y=oa.getBackground(t);return n!==0&&(u=n),r!==8&&(d=r),o!==null&&(p=o?1:0),a!==-1&&(h=a),s!==0&&(g=s),c!==0&&(y=c),(u<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function Ay(e,t){const n=[],r=Mre(e);let o=r.next();for(;o!==null;){let u=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let d=s();if(n.push({matcher:d,priority:u}),o!==",")break;o=r.next()}return n;function a(){if(o==="-"){o=r.next();const u=a();return d=>!!u&&!u(d)}if(o==="("){o=r.next();const u=c();return o===")"&&(o=r.next()),u}if(yI(o)){const u=[];do u.push(o),o=r.next();while(yI(o));return d=>t(u,d)}return null}function s(){const u=[];let d=a();for(;d;)u.push(d),d=a();return p=>u.every(h=>h(p))}function c(){const u=[];let d=s();for(;d&&(u.push(d),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");d=s()}return p=>u.some(h=>h(p))}}function yI(e){return!!e&&!!e.match(/[\w\.:]+/)}function Mre(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function OP(e){typeof e.dispose=="function"&&e.dispose()}var Zp=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Fre=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Bre=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},jre=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Zp(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Bre;for(const n of e)Ure(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Zp){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Ure(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof Zp?Hg({baseGrammar:a,selfGrammar:o},r):Xx(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},r);const s=n.injections(e.scopeName);if(s)for(const c of s)r.add(new Zp(c))}function Xx(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];wy([r],t,n)}}function Hg(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&wy(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&wy(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function wy(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?CP({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&wy(r.patterns,{...t,repository:o},n);const a=r.include;if(!a)continue;const s=NP(a);switch(s.kind){case 0:Hg({...t,selfGrammar:t.baseGrammar},n);break;case 1:Hg(t,n);break;case 2:Xx(s.ruleName,{...t,repository:o},n);break;case 3:case 4:const c=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const u={baseGrammar:t.baseGrammar,selfGrammar:c,repository:o};s.kind===4?Xx(s.ruleName,u,n):Hg(u,n)}else s.kind===4?n.add(new Fre(s.scopeName,s.ruleName)):n.add(new Zp(s.scopeName));break}}}var Hre=class{kind=0},zre=class{kind=1},$re=class{constructor(e){this.ruleName=e}kind=2},Vre=class{constructor(e){this.scopeName=e}kind=3},Gre=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function NP(e){if(e==="$base")return new Hre;if(e==="$self")return new zre;const t=e.indexOf("#");if(t===-1)return new Vre(e);if(t===0)return new $re(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Gre(n,r)}}var qre=/\\(\d+)/,bI=/\\(\d+)/g,Wre=-1,PP=-2,kh=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ug.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ug.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${_P(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:ug.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ug.replaceCaptures(this._contentName,e,t)}},Yre=class extends kh{retokenizeCapturedWithRuleId;constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},Kre=class extends kh{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new Jp(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vI=class extends kh{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zx=class extends kh{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,a,s,c,u,d){super(e,t,n,r),this._begin=new Jp(o,this.id),this.beginCaptures=a,this._end=new Jp(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new eh;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ky=class extends kh{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,a,s,c,u){super(e,t,n,r),this._begin=new Jp(o,this.id),this.beginCaptures=a,this.whileCaptures=c,this._while=new Jp(s,PP),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new eh;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new eh,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},LP=class Wr{static createCaptureRule(t,n,r,o,a){return t.registerRule(s=>new Yre(n,s,r,o,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new Kre(t.$vscodeTextmateLocation,t.id,t.name,t.match,Wr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=CP({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new vI(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Wr._compilePatterns(a,n,r))}return t.while?new ky(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Wr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Wr._compileCaptures(t.whileCaptures||t.captures,n,r),Wr._compilePatterns(t.patterns,n,r)):new Zx(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Wr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Wr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Wr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let a=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);c>a&&(a=c)}for(let s=0;s<=a;s++)o[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const c=parseInt(s,10);let u=0;t[s].patterns&&(u=Wr.getCompiledRuleId(t[s],n,r)),o[c]=Wr.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,u)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let a=0,s=t.length;a<s;a++){const c=t[a];let u=-1;if(c.include){const d=NP(c.include);switch(d.kind){case 0:case 1:u=Wr.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Wr.getCompiledRuleId(p,n,r));break;case 3:case 4:const h=d.scopeName,g=d.kind===4?d.ruleName:null,y=n.getExternalGrammar(h,r);if(y)if(g){let b=y.repository[g];b&&(u=Wr.getCompiledRuleId(b,n,y.repository))}else u=Wr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else u=Wr.getCompiledRuleId(c,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof vI||d instanceof Zx||d instanceof ky)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;o.push(u)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},Jp=class MP{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let o=0,a=[],s=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const u=t.charAt(c+1);u==="z"?(a.push(t.substring(o,c)),a.push("$(?!\\n)(?<!\\n)"),o=c+2):(u==="A"||u==="G")&&(s=!0),c++}this.hasAnchor=s,o===0?this.source=t:(a.push(t.substring(o,r)),this.source=a.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=qre.test(this.source):this.hasBackReferences=!1}clone(){return new MP(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(o=>t.substring(o.start,o.end));return bI.lastIndex=0,this.source.replace(bI,(o,a)=>kP(r[parseInt(a,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],o=[],a,s,c,u;for(a=0,s=this.source.length;a<s;a++)c=this.source.charAt(a),t[a]=c,n[a]=c,r[a]=c,o[a]=c,c==="\\"&&a+1<s&&(u=this.source.charAt(a+1),u==="A"?(t[a+1]="",n[a+1]="",r[a+1]="A",o[a+1]="A"):u==="G"?(t[a+1]="",n[a+1]="G",r[a+1]="",o[a+1]="G"):(t[a+1]=u,n[a+1]=u,r[a+1]=u,o[a+1]=u),a++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},eh=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new EI(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(o=>o.resolveAnchors(t,n));return new EI(e,r,this._items.map(o=>o.ruleId))}},EI=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
256
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},hE=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Qre=class Jx{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new hE(t,8),this._embeddedLanguagesMatcher=new Xre(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Jx._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new hE(0,0);_getBasicScopeAttributes=new DP(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new hE(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Jx.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Xre=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>kP(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},xI=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function FP(e,t,n,r,o,a,s,c){const u=t.content.length;let d=!1,p=-1;if(s){const y=Zre(e,t,n,r,o,a);o=y.stack,r=y.linePos,n=y.isFirstLine,p=y.anchorPosition}const h=Date.now();for(;!d;){if(c!==0&&Date.now()-h>c)return new xI(o,!0);g()}return new xI(o,!1);function g(){const y=Jre(e,t,n,r,o,p);if(!y){a.produce(o,u),d=!0;return}const b=y.captureIndices,x=y.matchedRuleId,S=b&&b.length>0?b[0].end>r:!1;if(x===Wre){const T=o.getRule(e);a.produce(o,b[0].start),o=o.withContentNameScopesList(o.nameScopesList),ep(e,t,n,o,a,T.endCaptures,b),a.produce(o,b[0].end);const D=o;if(o=o.parent,p=D.getAnchorPos(),!S&&D.getEnterPos()===r){o=D,a.produce(o,u),d=!0;return}}else{const T=e.getRule(x);a.produce(o,b[0].start);const D=o,k=T.getName(t.content,b),R=o.contentNameScopesList.pushAttributed(k,e);if(o=o.push(x,r,p,b[0].end===u,null,R,R),T instanceof Zx){const I=T;ep(e,t,n,o,a,I.beginCaptures,b),a.produce(o,b[0].end),p=b[0].end;const O=I.getContentName(t.content,b),F=R.pushAttributed(O,e);if(o=o.withContentNameScopesList(F),I.endHasBackReferences&&(o=o.withEndRule(I.getEndWithResolvedBackReferences(t.content,b))),!S&&D.hasSameRuleAs(o)){o=o.pop(),a.produce(o,u),d=!0;return}}else if(T instanceof ky){const I=T;ep(e,t,n,o,a,I.beginCaptures,b),a.produce(o,b[0].end),p=b[0].end;const O=I.getContentName(t.content,b),F=R.pushAttributed(O,e);if(o=o.withContentNameScopesList(F),I.whileHasBackReferences&&(o=o.withEndRule(I.getWhileWithResolvedBackReferences(t.content,b))),!S&&D.hasSameRuleAs(o)){o=o.pop(),a.produce(o,u),d=!0;return}}else if(ep(e,t,n,o,a,T.captures,b),a.produce(o,b[0].end),o=o.pop(),!S){o=o.safePop(),a.produce(o,u),d=!0;return}}b[0].end>r&&(r=b[0].end,n=!1)}}function Zre(e,t,n,r,o,a){let s=o.beginRuleCapturedEOL?0:-1;const c=[];for(let u=o;u;u=u.pop()){const d=u.getRule(e);d instanceof ky&&c.push({rule:d,stack:u})}for(let u=c.pop();u;u=c.pop()){const{ruleScanner:d,findOptions:p}=noe(u.rule,e,u.stack.endRule,n,r===s),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==PP){o=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(a.produce(u.stack,h.captureIndices[0].start),ep(e,t,n,u.stack,a,u.rule.whileCaptures,h.captureIndices),a.produce(u.stack,h.captureIndices[0].end),s=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{o=u.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:s,isFirstLine:n}}function Jre(e,t,n,r,o,a){const s=eoe(e,t,n,r,o,a),c=e.getInjections();if(c.length===0)return s;const u=toe(c,e,t,n,r,o,a);if(!u)return s;if(!s)return u;const d=s.captureIndices[0].start,p=u.captureIndices[0].start;return p<d||u.priorityMatch&&p===d?u:s}function eoe(e,t,n,r,o,a){const s=o.getRule(e),{ruleScanner:c,findOptions:u}=BP(s,e,o.endRule,n,r===a),d=c.findNextMatchSync(t,r,u);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function toe(e,t,n,r,o,a,s){let c=Number.MAX_VALUE,u=null,d,p=0;const h=a.contentNameScopesList.getScopeNames();for(let g=0,y=e.length;g<y;g++){const b=e[g];if(!b.matcher(h))continue;const x=t.getRule(b.ruleId),{ruleScanner:S,findOptions:T}=BP(x,t,null,r,o===s),D=S.findNextMatchSync(n,o,T);if(!D)continue;const k=D.captureIndices[0].start;if(!(k>=c)&&(c=k,u=D.captureIndices,d=D.ruleId,p=b.priority,c===o))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:d}:null}function BP(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function noe(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function ep(e,t,n,r,o,a,s){if(a.length===0)return;const c=t.content,u=Math.min(a.length,s.length),d=[],p=s[0].end;for(let h=0;h<u;h++){const g=a[h];if(g===null)continue;const y=s[h];if(y.length===0)continue;if(y.start>p)break;for(;d.length>0&&d[d.length-1].endPos<=y.start;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?o.produceFromScopes(d[d.length-1].scopes,y.start):o.produce(r,y.start),g.retokenizeCapturedWithRuleId){const x=g.getName(c,s),S=r.contentNameScopesList.pushAttributed(x,e),T=g.getContentName(c,s),D=S.pushAttributed(T,e),k=r.push(g.retokenizeCapturedWithRuleId,y.start,-1,!1,null,S,D),R=e.createOnigString(c.substring(0,y.end));FP(e,R,n&&y.start===0,y.start,k,o,!1,0),OP(R);continue}const b=g.getName(c,s);if(b!==null){const x=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(b,e);d.push(new roe(x,y.end))}}for(;d.length>0;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var roe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ooe(e,t,n,r,o,a,s,c){return new ioe(e,t,n,r,o,a,s,c)}function TI(e,t,n,r,o){const a=Ay(t,Dy),s=LP.getCompiledRuleId(n,r,o.repository);for(const c of a)e.push({debugSelector:t,matcher:c.matcher,ruleId:s,grammar:o,priority:c.priority})}function Dy(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(aoe(t[o],r))return n=o+1,!0;return!1})}function aoe(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var ioe=class{constructor(e,t,n,r,o,a,s,c){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=c,this._basicScopeAttributesProvider=new Qre(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=SI(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const u of Object.keys(o)){const d=Ay(u,Dy);for(const p of d)this._tokenTypeMatchers.push({matcher:p.matcher,type:o[u]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const o=r.injections;if(o)for(let s in o)TI(t,s,o[s],this,r);const a=this._grammarRepository.injections(n);a&&a.forEach(s=>{const c=this.getExternalGrammar(s);if(c){const u=c.injectionSelector;u&&TI(t,u,c,this,c)}})}return t.sort((o,a)=>o.priority-a.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=SI(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=LP.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===eT.NULL){o=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),h=zu.set(0,d.languageId,d.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),g=this.getRule(this._rootId).getName(null,null);let y;g?y=hp.createRootAndLookUpScopeName(g,h,this):y=hp.createRoot("unknown",h),t=new eT(null,this._rootId,-1,-1,!1,null,y,y)}else o=!1,t.reset();e=e+`
|
|
257
|
+
`;const a=this.createOnigString(e),s=a.content.length,c=new loe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=FP(this,a,o,0,t,c,!0,r);return OP(a),{lineLength:s,lineTokens:c,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function SI(e,t){return e=_re(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var hp=class ti{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,o=t?.scopePath??null;for(const a of n)o=pE.push(o,a.scopeNames),r=new ti(r,o,a.encodedTokenAttributes);return r}static createRoot(t,n){return new ti(null,new pE(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),a=new pE(null,t),s=r.themeProvider.themeMatch(a),c=ti.mergeAttributes(n,o,s);return new ti(null,a,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ti.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let o=-1,a=0,s=0;return r!==null&&(o=r.fontStyle,a=r.foregroundId,s=r.backgroundId),zu.set(t,n.languageId,n.tokenType,null,o,a,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ti._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const a of r)o=ti._pushAttributed(o,a,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),a=t.scopePath.push(n),s=r.themeProvider.themeMatch(a),c=ti.mergeAttributes(t.tokenAttributes,o,s);return new ti(t,a,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},eT=class _l{constructor(t,n,r,o,a,s,c,u){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=a,this.endRule=s,this.nameScopesList=c,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}_stackElementBrand=void 0;static NULL=new _l(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:_l._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?hp.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){_l._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,a,s,c){return new _l(this,t,n,r,o,a,s,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new _l(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=hp.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new _l(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,hp.fromExtension(r,n.contentNameScopesList))}},soe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Ay(n,Dy).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Ay(n,Dy).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},loe=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(a)&&(r=zu.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(r=zu.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}},coe=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,o){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,ooe(e,a,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},uoe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new coe(_y.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(_y.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new soe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,o){const a=new jre(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(s=>this._loadSingleGrammar(s.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},tT=eT.NULL;const jP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Dh=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Dh.prototype.normal={};Dh.prototype.property={};Dh.prototype.space=void 0;function UP(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Dh(n,r,t)}function th(e){return e.toLowerCase()}let So=class{constructor(e,t){this.attribute=t,this.property=e}};So.prototype.attribute="";So.prototype.booleanish=!1;So.prototype.boolean=!1;So.prototype.commaOrSpaceSeparated=!1;So.prototype.commaSeparated=!1;So.prototype.defined=!1;So.prototype.mustUseProperty=!1;So.prototype.number=!1;So.prototype.overloadedBoolean=!1;So.prototype.property="";So.prototype.spaceSeparated=!1;So.prototype.space=void 0;let doe=0;const It=lc(),ur=lc(),HP=lc(),He=lc(),Dn=lc(),Au=lc(),Oo=lc();function lc(){return 2**++doe}const nT=Object.freeze(Object.defineProperty({__proto__:null,boolean:It,booleanish:ur,commaOrSpaceSeparated:Oo,commaSeparated:Au,number:He,overloadedBoolean:HP,spaceSeparated:Dn},Symbol.toStringTag,{value:"Module"})),mE=Object.keys(nT);let mC=class extends So{constructor(e,t,n,r){let o=-1;if(super(e,t),CI(this,"space",r),typeof n=="number")for(;++o<mE.length;){const a=mE[o];CI(this,mE[o],(n&nT[a])===nT[a])}}};mC.prototype.defined=!0;function CI(e,t,n){n&&(e[t]=n)}function ud(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new mC(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[th(r)]=r,n[th(a.attribute)]=r}return new Dh(t,n,e.space)}const zP=ud({properties:{ariaActiveDescendant:null,ariaAtomic:ur,ariaAutoComplete:null,ariaBusy:ur,ariaChecked:ur,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:Dn,ariaCurrent:null,ariaDescribedBy:Dn,ariaDetails:null,ariaDisabled:ur,ariaDropEffect:Dn,ariaErrorMessage:null,ariaExpanded:ur,ariaFlowTo:Dn,ariaGrabbed:ur,ariaHasPopup:null,ariaHidden:ur,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Dn,ariaLevel:He,ariaLive:null,ariaModal:ur,ariaMultiLine:ur,ariaMultiSelectable:ur,ariaOrientation:null,ariaOwns:Dn,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:ur,ariaReadOnly:ur,ariaRelevant:null,ariaRequired:ur,ariaRoleDescription:Dn,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:ur,ariaSetSize:He,ariaSort:null,ariaValueMax:He,ariaValueMin:He,ariaValueNow:He,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $P(e,t){return t in e?e[t]:t}function VP(e,t){return $P(e,t.toLowerCase())}const foe=ud({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Au,acceptCharset:Dn,accessKey:Dn,action:null,allow:null,allowFullScreen:It,allowPaymentRequest:It,allowUserMedia:It,alt:null,as:null,async:It,autoCapitalize:null,autoComplete:Dn,autoFocus:It,autoPlay:It,blocking:Dn,capture:null,charSet:null,checked:It,cite:null,className:Dn,cols:He,colSpan:null,content:null,contentEditable:ur,controls:It,controlsList:Dn,coords:He|Au,crossOrigin:null,data:null,dateTime:null,decoding:null,default:It,defer:It,dir:null,dirName:null,disabled:It,download:HP,draggable:ur,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:It,formTarget:null,headers:Dn,height:He,hidden:It,high:He,href:null,hrefLang:null,htmlFor:Dn,httpEquiv:Dn,id:null,imageSizes:null,imageSrcSet:null,inert:It,inputMode:null,integrity:null,is:null,isMap:It,itemId:null,itemProp:Dn,itemRef:Dn,itemScope:It,itemType:Dn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:It,low:He,manifest:null,max:null,maxLength:He,media:null,method:null,min:null,minLength:He,multiple:It,muted:It,name:null,nonce:null,noModule:It,noValidate:It,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:It,optimum:He,pattern:null,ping:Dn,placeholder:null,playsInline:It,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:It,referrerPolicy:null,rel:Dn,required:It,reversed:It,rows:He,rowSpan:He,sandbox:Dn,scope:null,scoped:It,seamless:It,selected:It,shadowRootClonable:It,shadowRootDelegatesFocus:It,shadowRootMode:null,shape:null,size:He,sizes:null,slot:null,span:He,spellCheck:ur,src:null,srcDoc:null,srcLang:null,srcSet:null,start:He,step:null,style:null,tabIndex:He,target:null,title:null,translate:null,type:null,typeMustMatch:It,useMap:null,value:ur,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Dn,axis:null,background:null,bgColor:null,border:He,borderColor:null,bottomMargin:He,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:It,declare:It,event:null,face:null,frame:null,frameBorder:null,hSpace:He,leftMargin:He,link:null,longDesc:null,lowSrc:null,marginHeight:He,marginWidth:He,noResize:It,noHref:It,noShade:It,noWrap:It,object:null,profile:null,prompt:null,rev:null,rightMargin:He,rules:null,scheme:null,scrolling:ur,standby:null,summary:null,text:null,topMargin:He,valueType:null,version:null,vAlign:null,vLink:null,vSpace:He,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:It,disableRemotePlayback:It,prefix:null,property:null,results:He,security:null,unselectable:null},space:"html",transform:VP}),poe=ud({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:Oo,accentHeight:He,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:He,amplitude:He,arabicForm:null,ascent:He,attributeName:null,attributeType:null,azimuth:He,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:He,by:null,calcMode:null,capHeight:He,className:Dn,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:He,diffuseConstant:He,direction:null,display:null,dur:null,divisor:He,dominantBaseline:null,download:It,dx:null,dy:null,edgeMode:null,editable:null,elevation:He,enableBackground:null,end:null,event:null,exponent:He,externalResourcesRequired:null,fill:null,fillOpacity:He,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:Au,g2:Au,glyphName:Au,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:He,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:He,horizOriginX:He,horizOriginY:He,id:null,ideographic:He,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:He,k:He,k1:He,k2:He,k3:He,k4:He,kernelMatrix:Oo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:He,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:He,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:He,overlineThickness:He,paintOrder:null,panose1:null,path:null,pathLength:He,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Dn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Oo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Oo,rev:Oo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Oo,requiredFeatures:Oo,requiredFonts:Oo,requiredFormats:Oo,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:He,specularExponent:He,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:He,strikethroughThickness:He,string:null,stroke:null,strokeDashArray:Oo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:He,strokeOpacity:He,strokeWidth:null,style:null,surfaceScale:He,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Oo,tabIndex:He,tableValues:null,target:null,targetX:He,targetY:He,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Oo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:He,underlineThickness:He,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:He,values:null,vAlphabetic:He,vMathematical:He,vectorEffect:null,vHanging:He,vIdeographic:He,version:null,vertAdvY:He,vertOriginX:He,vertOriginY:He,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:He,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$P}),GP=ud({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),qP=ud({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:VP}),WP=ud({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hoe={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"},moe=/[A-Z]/g,_I=/-[a-z]/g,goe=/^data[-\w.:]+$/i;function Rh(e,t){const n=th(t);let r=t,o=So;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&goe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_I,boe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_I.test(a)){let s=a.replace(moe,yoe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=mC}return new o(r,t)}function yoe(e){return"-"+e.toLowerCase()}function boe(e){return e.charAt(1).toUpperCase()}const dd=UP([zP,foe,GP,qP,WP],"html"),es=UP([zP,poe,GP,qP,WP],"svg"),AI={}.hasOwnProperty;function eb(e,t){const n=t||{};function r(o,...a){let s=r.invalid;const c=r.handlers;if(o&&AI.call(o,e)){const u=String(o[e]);s=AI.call(c,u)?c[u]:r.unknown}if(s)return s.call(this,o,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const voe=/["&'<>`]/g,Eoe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xoe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Toe=/[|\\{}()[\]^$+*?.]/g,wI=new WeakMap;function Soe(e,t){if(e=e.replace(t.subset?Coe(t.subset):voe,r),t.subset||t.escapeOnly)return e;return e.replace(Eoe,n).replace(xoe,r);function n(o,a,s){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function r(o,a,s){return t.format(o.charCodeAt(0),s.charCodeAt(a+1),t)}}function Coe(e){let t=wI.get(e);return t||(t=_oe(e),wI.set(e,t)),t}function _oe(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Toe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Aoe=/[\dA-Fa-f]/;function woe(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Aoe.test(String.fromCharCode(t))?r:r+";"}const koe=/\d/;function Doe(e,t,n){const r="&#"+String(e);return n&&t&&!koe.test(String.fromCharCode(t))?r:r+";"}const Roe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],gE={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ioe=["cent","copy","divide","gt","lt","not","para","times"],YP={}.hasOwnProperty,rT={};let dg;for(dg in gE)YP.call(gE,dg)&&(rT[gE[dg]]=dg);const Ooe=/[^\dA-Za-z]/;function Noe(e,t,n,r){const o=String.fromCharCode(e);if(YP.call(rT,o)){const a=rT[o],s="&"+a;return n&&Roe.includes(a)&&!Ioe.includes(a)&&(!r||t&&t!==61&&Ooe.test(String.fromCharCode(t)))?s:s+";"}return""}function Poe(e,t,n){let r=woe(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=Noe(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const a=Doe(e,t,n.omitOptionalSemicolons);a.length<r.length&&(r=a)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function wu(e,t){return Soe(e,Object.assign({format:Poe},t))}const Loe=/^>|^->|<!--|-->|--!>|<!-$/g,Moe=[">"],Foe=["<",">"];function Boe(e,t,n,r){return r.settings.bogusComments?"<?"+wu(e.value,Object.assign({},r.settings.characterReferences,{subset:Moe}))+">":"<!--"+e.value.replace(Loe,o)+"-->";function o(a){return wu(a,Object.assign({},r.settings.characterReferences,{subset:Foe}))}}function joe(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Ry(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function oT(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(o,r).trim();(s||!a)&&t.push(s),o=r+1,r=n.indexOf(",",o)}return t}function tb(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function aT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function nb(e){return e.join(" ").trim()}const Uoe=/[ \t\n\f\r]/g;function Ih(e){return typeof e=="object"?e.type==="text"?kI(e.value):!1:kI(e)}function kI(e){return e.replace(Uoe,"")===""}const Ar=QP(1),KP=QP(-1),Hoe=[];function QP(e){return t;function t(n,r,o){const a=n?n.children:Hoe;let s=(r||0)+e,c=a[s];if(!o)for(;c&&Ih(c);)s+=e,c=a[s];return c}}const zoe={}.hasOwnProperty;function XP(e){return t;function t(n,r,o){return zoe.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const gC=XP({body:Voe,caption:yE,colgroup:yE,dd:Yoe,dt:Woe,head:yE,html:$oe,li:qoe,optgroup:Koe,option:Qoe,p:Goe,rp:DI,rt:DI,tbody:Zoe,td:RI,tfoot:Joe,th:RI,thead:Xoe,tr:eae});function yE(e,t,n){const r=Ar(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ih(r.value.charAt(0)))}function $oe(e,t,n){const r=Ar(n,t);return!r||r.type!=="comment"}function Voe(e,t,n){const r=Ar(n,t);return!r||r.type!=="comment"}function Goe(e,t,n){const r=Ar(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function qoe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Woe(e,t,n){const r=Ar(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Yoe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function DI(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Koe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Qoe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Xoe(e,t,n){const r=Ar(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Zoe(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Joe(e,t,n){return!Ar(n,t)}function eae(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function RI(e,t,n){const r=Ar(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const tae=XP({body:oae,colgroup:aae,head:rae,html:nae,tbody:iae});function nae(e){const t=Ar(e,-1);return!t||t.type!=="comment"}function rae(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function oae(e){const t=Ar(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ih(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function aae(e,t,n){const r=KP(n,t),o=Ar(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&gC(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function iae(e,t,n){const r=KP(n,t),o=Ar(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&gC(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const fg={name:[[`
|
|
258
|
+
\f\r &/=>`.split(""),`
|
|
259
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
260
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
261
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
262
|
+
\f\r &>`.split(""),`\0
|
|
263
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
264
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
265
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function sae(e,t,n,r){const o=r.schema,a=o.space==="svg"?!1:r.settings.omitOptionalTags;let s=o.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let u;o.space==="html"&&e.tagName==="svg"&&(r.schema=es);const d=lae(r,e.properties),p=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,p&&(s=!1),(d||!a||!tae(e,t,n))&&(c.push("<",e.tagName,d?" "+d:""),s&&(o.space==="svg"||r.settings.closeSelfClosing)&&(u=d.charAt(d.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!s&&(!a||!gC(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function lae(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=cae(e,o,t[o]);a&&n.push(a)}}for(;++r<n.length;){const a=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&a!=='"'&&a!=="'"&&(n[r]+=" ")}return n.join("")}function cae(e,t,n){const r=Rh(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let s=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=wu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:fg.name[o][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?tb:nb)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(c=wu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:fg.unquoted[o][a]}))),c!==n&&(e.settings.quoteSmart&&Ry(n,s)>Ry(n,e.alternative)&&(s=e.alternative),c=s+wu(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?fg.single:fg.double)[o][a],attribute:!0}))+s),u+(c&&"="+c))}const uae=["<","&"];function ZP(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:wu(e.value,Object.assign({},r.settings.characterReferences,{subset:uae}))}function dae(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ZP(e,t,n,r)}function fae(e,t,n,r){return r.all(e)}const pae=eb("type",{invalid:hae,unknown:mae,handlers:{comment:Boe,doctype:joe,element:sae,raw:dae,root:fae,text:ZP}});function hae(e){throw new Error("Expected node, not `"+e+"`")}function mae(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const gae={},yae={},bae=[];function vae(e,t){const n=gae,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Eae,all:xae,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||jP,characterReferences:n.characterReferences||yae,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?es:dd,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Eae(e,t,n){return pae(e,t,n,this)}function xae(e){const t=[],n=e&&e.children||bae;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Tae(e){return Array.isArray(e)?e:[e]}function rb(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const o=[];for(let a=0;a<n.length;a+=2){const s=t?n[a]+(n[a+1]||""):n[a];o.push([s,r]),r+=n[a].length,r+=n[a+1]?.length||0}return o}function yC(e){return!e||["plaintext","txt","text","plain"].includes(e)}function JP(e){return e==="ansi"||yC(e)}function bC(e){return e==="none"}function eL(e){return bC(e)}function tL(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Sae(e,t){let n=0;const r=[];for(const o of t)o>n&&r.push({...e,content:e.content.slice(n,o),offset:e.offset+n}),n=o;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Cae(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,o)=>r-o);return n.length?e.map(r=>r.flatMap(o=>{const a=n.filter(s=>o.offset<s&&s<o.offset+o.content.length).map(s=>s-o.offset).sort((s,c)=>s-c);return a.length?Sae(o,a):o})):e}async function nL(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Iy(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[o,a]of Object.entries(t?.colorReplacements||{}))typeof a=="string"?n[o]=a:o===r&&Object.assign(n,a);return n}function Ll(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function rL(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&qi.Italic&&(t["font-style"]="italic"),e.fontStyle&qi.Bold&&(t["font-weight"]="bold"),e.fontStyle&qi.Underline&&(t["text-decoration"]="underline")),t}function _ae(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Aae(e){const t=rb(e,!0).map(([o])=>o);function n(o){if(o===e.length)return{line:t.length-1,character:t[t.length-1].length};let a=o,s=0;for(const c of t){if(a<c.length)break;a-=c.length,s++}return{line:s,character:a}}function r(o,a){let s=0;for(let c=0;c<o;c++)s+=t[c].length;return s+=a,s}return{lines:t,indexToPos:n,posToIndex:r}}class to extends Error{constructor(t){super(t),this.name="ShikiError"}}const oL=new WeakMap;function ob(e,t){oL.set(e,t)}function nh(e){return oL.get(e)}class fd{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new fd(Object.fromEntries(Tae(n).map(r=>[r,tT])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,o]=t;this.lang=r,this._stacks={[o]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return II(this._stacks[this.theme])}getScopes(t=this.theme){return II(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function II(e){const t=[],n=new Set;function r(o){if(n.has(o))return;n.add(o);const a=o?.nameScopesList?.scopeName;a&&t.push(a),o.parent&&r(o.parent)}return r(e),t}function wae(e,t){if(!(e instanceof fd))throw new to("Invalid grammar state");return e.getInternalStack(t)}function kae(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new to(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...o.indexToPos(s),offset:s}}else{const c=o.lines[s.line];if(c===void 0)throw new to(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${o.lines.length}`);if(s.character<0||s.character>c.length)throw new to(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,offset:o.posToIndex(s.line,s.character)}}};const o=Aae(n.source),a=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));Dae(a),e.set(n.meta,{decorations:a,converter:o,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return Cae(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),o=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(o.length!==r.converter.lines.length)throw new to(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(p,h,g,y){const b=o[p];let x="",S=-1,T=-1;if(h===0&&(S=0),g===0&&(T=0),g===Number.POSITIVE_INFINITY&&(T=b.children.length),S===-1||T===-1)for(let k=0;k<b.children.length;k++)x+=aL(b.children[k]),S===-1&&x.length===h&&(S=k+1),T===-1&&x.length===g&&(T=k+1);if(S===-1)throw new to(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(T===-1)throw new to(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const D=b.children.slice(S,T);if(!y.alwaysWrap&&D.length===b.children.length)c(b,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],y,"token");else{const k={type:"element",tagName:"span",properties:{},children:D};c(k,y,"wrapper"),b.children.splice(S,D.length,k)}}function s(p,h){o[p]=c(o[p],h,"line")}function c(p,h,g){const y=h.properties||{},b=h.transform||(x=>x);return p.tagName=h.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},h.properties?.class&&tL(p,h.properties.class),p=b(p,g)||p,p}const u=[],d=r.decorations.sort((p,h)=>h.start.offset-p.start.offset);for(const p of d){const{start:h,end:g}=p;if(h.line===g.line)a(h.line,h.character,g.character,p);else if(h.line<g.line){a(h.line,h.character,Number.POSITIVE_INFINITY,p);for(let y=h.line+1;y<g.line;y++)u.unshift(()=>s(y,p));a(g.line,0,g.character,p)}}u.forEach(p=>p())}}}function Dae(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new to(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const o=e[r],a=n.start.offset<o.start.offset&&o.start.offset<n.end.offset,s=n.start.offset<o.end.offset&&o.end.offset<n.end.offset,c=o.start.offset<n.start.offset&&n.start.offset<o.end.offset,u=o.start.offset<n.end.offset&&n.end.offset<o.end.offset;if(a||s||c||u){if(s&&s||c&&u)continue;throw new to(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function aL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(aL).join(""):""}const Rae=[kae()];function Oy(e){return[...e.transformers||[],...Rae]}var Ml=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],bE={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Iae(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function OI(e,t){let n=1;const r=e[t+n++];let o;if(r==="2"){const a=[e[t+n++],e[t+n++],e[t+n]].map(s=>Number.parseInt(s));a.length===3&&!a.some(s=>Number.isNaN(s))&&(o={type:"rgb",rgb:a})}else if(r==="5"){const a=Number.parseInt(e[t+n]);Number.isNaN(a)||(o={type:"table",index:Number(a)})}return[n,o]}function Oae(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=Number.parseInt(r);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)bE[o]&&t.push({type:"setDecoration",value:bE[o]});else if(o<=29){const a=bE[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ml[o-30]}});else if(o===38){const[a,s]=OI(e,n);s&&t.push({type:"setForegroundColor",value:s}),n+=a}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ml[o-40]}});else if(o===48){const[a,s]=OI(e,n);s&&t.push({type:"setBackgroundColor",value:s}),n+=a}else o===49?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ml[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ml[o-100+8]}})}return t}function Nae(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let a=0;do{const s=Iae(r,a),c=s.sequence?r.substring(a,s.startPosition):r.substring(a);if(c.length>0&&o.push({value:c,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const u=Oae(s.sequence);for(const d of u)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of u)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}a=s.position}while(a<r.length);return o}}}var Pae={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Lae(e=Pae){function t(c){return e[c]}function n(c){return`#${c.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let r;function o(){if(r)return r;r=[];for(let d=0;d<Ml.length;d++)r.push(t(Ml[d]));let c=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let p=0;p<6;p++)for(let h=0;h<6;h++)r.push(n([c[d],c[p],c[h]]));let u=8;for(let d=0;d<24;d++,u+=10)r.push(n([u,u,u]));return r}function a(c){return o()[c]}function s(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return a(c.index)}}return{value:s}}function Mae(e,t,n){const r=Iy(e,n),o=rb(t),a=Lae(Object.fromEntries(Ml.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),s=Nae();return o.map(c=>s.parse(c[0]).map(u=>{let d,p;u.decorations.has("reverse")?(d=u.background?a.value(u.background):e.bg,p=u.foreground?a.value(u.foreground):e.fg):(d=u.foreground?a.value(u.foreground):e.fg,p=u.background?a.value(u.background):void 0),d=Ll(d,r),p=Ll(p,r),u.decorations.has("dim")&&(d=Fae(d));let h=qi.None;return u.decorations.has("bold")&&(h|=qi.Bold),u.decorations.has("italic")&&(h|=qi.Italic),u.decorations.has("underline")&&(h|=qi.Underline),{content:u.value,offset:c[1],color:d,bgColor:p,fontStyle:h}}))}function Fae(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function vC(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(yC(r)||bC(o))return rb(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:s}=e.setTheme(o);if(r==="ansi")return Mae(a,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Qi(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(a.name))throw new Qi(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return jae(t,c,a,s,n)}function Bae(...e){if(e.length===2)return nh(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=r;if(yC(o)||bC(a))throw new Qi("Plain language does not have grammar state");if(o==="ansi")throw new Qi("ANSI language does not have grammar state");const{theme:s,colorMap:c}=t.setTheme(a),u=t.getLanguage(o);return new fd(Ny(n,u,s,c,r).stateStack,u.name,s.name)}function jae(e,t,n,r,o){const a=Ny(e,t,n,r,o),s=new fd(Ny(e,t,n,r,o).stateStack,t.name,n.name);return ob(a.tokens,s),a.tokens}function Ny(e,t,n,r,o){const a=Iy(n,o),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:c=500}=o,u=rb(e);let d=o.grammarState?wae(o.grammarState,n.name)??tT:o.grammarContextCode!=null?Ny(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:tT,p=[];const h=[];for(let g=0,y=u.length;g<y;g++){const[b,x]=u[g];if(b===""){p=[],h.push([]);continue}if(s>0&&b.length>=s){p=[],h.push([{content:b,offset:x,color:"",fontStyle:0}]);continue}let S,T,D;o.includeExplanation&&(S=t.tokenizeLine(b,d),T=S.tokens,D=0);const k=t.tokenizeLine2(b,d,c),R=k.tokens.length/2;for(let I=0;I<R;I++){const O=k.tokens[2*I],F=I+1<R?k.tokens[2*I+2]:b.length;if(O===F)continue;const U=k.tokens[2*I+1],H=Ll(r[zu.getForeground(U)],a),C=zu.getFontStyle(U),M={content:b.substring(O,F),offset:x+O,color:H,fontStyle:C};if(o.includeExplanation){const V=[];if(o.includeExplanation!=="scopeName")for(const W of n.settings){let Y;switch(typeof W.scope){case"string":Y=W.scope.split(/,/).map(B=>B.trim());break;case"object":Y=W.scope;break;default:continue}V.push({settings:W,selectors:Y.map(B=>B.split(/ /))})}M.explanation=[];let z=0;for(;O+z<F;){const W=T[D],Y=b.substring(W.startIndex,W.endIndex);z+=Y.length,M.explanation.push({content:Y,scopes:o.includeExplanation==="scopeName"?Uae(W.scopes):Hae(V,W.scopes)}),D+=1}}p.push(M)}h.push(p),p=[],d=k.ruleStack}return{tokens:h,stateStack:d}}function Uae(e){return e.map(t=>({scopeName:t}))}function Hae(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n[r]={scopeName:a,themeMatches:$ae(e,a,t.slice(0,r))}}return n}function NI(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function zae(e,t,n){if(!NI(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)NI(e[r],n[o])&&(r-=1),o-=1;return r===-1}function $ae(e,t,n){const r=[];for(const{selectors:o,settings:a}of e)for(const s of o)if(zae(s,t,n)){r.push(a);break}return r}function iL(e,t,n){const r=Object.entries(n.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=r.map(u=>{const d=vC(e,t,{...n,theme:u.theme}),p=nh(d),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:d,state:p,theme:h}}),a=Vae(...o.map(u=>u.tokens)),s=a[0].map((u,d)=>u.map((p,h)=>{const g={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=p.explanation),a.forEach((y,b)=>{const{content:x,explanation:S,offset:T,...D}=y[d][h];g.variants[r[b].color]=D}),g})),c=o[0].state?new fd(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return c&&ob(s,c),s}function Vae(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map(u=>u[r]),a=t.map(()=>[]);t.forEach((u,d)=>u.push(a[d]));const s=o.map(()=>0),c=o.map(u=>u[0]);for(;c.every(u=>u);){const u=Math.min(...c.map(d=>d.content.length));for(let d=0;d<n;d++){const p=c[d];p.content.length===u?(a[d].push(p),s[d]+=1,c[d]=o[d][s[d]]):(a[d].push({...p,content:p.content.slice(0,u)}),c[d]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return t}function Py(e,t,n){let r,o,a,s,c,u;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:p="--shiki-"}=n,h=Object.entries(n.themes).filter(S=>S[1]).map(S=>({color:S[0],theme:S[1]})).sort((S,T)=>S.color===d?-1:T.color===d?1:0);if(h.length===0)throw new Qi("`themes` option must not be empty");const g=iL(e,t,n);if(u=nh(g),d&&!h.find(S=>S.color===d))throw new Qi(`\`themes\` option must contain the defaultColor key \`${d}\``);const y=h.map(S=>e.getTheme(S.theme)),b=h.map(S=>S.color);a=g.map(S=>S.map(T=>Gae(T,b,p,d))),u&&ob(a,u);const x=h.map(S=>Iy(S.theme,n));o=h.map((S,T)=>(T===0&&d?"":`${p+S.color}:`)+(Ll(y[T].fg,x[T])||"inherit")).join(";"),r=h.map((S,T)=>(T===0&&d?"":`${p+S.color}-bg:`)+(Ll(y[T].bg,x[T])||"inherit")).join(";"),s=`shiki-themes ${y.map(S=>S.name).join(" ")}`,c=d?void 0:[o,r].join(";")}else if("theme"in n){const d=Iy(n.theme,n);a=vC(e,t,n);const p=e.getTheme(n.theme);r=Ll(p.bg,d),o=Ll(p.fg,d),s=p.name,u=nh(a)}else throw new Qi("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:r,themeName:s,rootStyle:c,grammarState:u}}function Gae(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(u=>rL(e.variants[u])),s=new Set(a.flatMap(u=>Object.keys(u))),c={};return a.forEach((u,d)=>{for(const p of s){const h=u[p]||"inherit";if(d===0&&r)c[p]=h;else{const g=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[d]+(p==="color"?"":g);c[y]=h}}}),o.htmlStyle=c,o}function Ly(e,t,n,r={meta:{},options:n,codeToHast:(o,a)=>Ly(e,o,a),codeToTokens:(o,a)=>Py(e,o,a)}){let o=t;for(const y of Oy(n))o=y.preprocess?.call(r,o,n)||o;let{tokens:a,fg:s,bg:c,themeName:u,rootStyle:d,grammarState:p}=Py(e,o,n);const{mergeWhitespaces:h=!0}=n;h===!0?a=Wae(a):h==="never"&&(a=Yae(a));const g={...r,get source(){return o}};for(const y of Oy(n))a=y.tokens?.call(g,a)||a;return qae(a,{...n,fg:s,bg:c,themeName:u,rootStyle:d},g,p)}function qae(e,t,n,r=nh(e)){const o=Oy(t),a=[],s={type:"root",children:[]},{structure:c="classic",tabindex:u="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...u!==!1&&u!=null?{tabindex:u.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:a};const h=[],g={...n,structure:c,addClassToHast:tL,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return d},get code(){return p},get lines(){return h}};if(e.forEach((b,x)=>{x&&(c==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&a.push({type:"text",value:`
|
|
266
|
+
`}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},T=0;for(const D of b){let k={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const R=_ae(D.htmlStyle||rL(D));R&&(k.properties.style=R);for(const I of o)k=I?.span?.call(g,k,x+1,T,S,D)||k;c==="inline"?s.children.push(k):c==="classic"&&S.children.push(k),T+=D.content.length}if(c==="classic"){for(const D of o)S=D?.line?.call(g,S,x+1)||S;h.push(S),a.push(S)}}),c==="classic"){for(const b of o)p=b?.code?.call(g,p)||p;d.children.push(p);for(const b of o)d=b?.pre?.call(g,d)||d;s.children.push(d)}let y=s;for(const b of o)y=b?.root?.call(g,y)||y;return r&&ob(y,r),y}function Wae(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((a,s)=>{const c=!(a.fontStyle&&a.fontStyle&qi.Underline);c&&a.content.match(/^\s+$/)&&t[s+1]?(o||(o=a.offset),r+=a.content):r?(c?n.push({...a,offset:o,content:r+a.content}):n.push({content:r,offset:o},a),o=0,r=""):n.push(a)}),n})}function Yae(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,o,a,s]=r;if(!o&&!s)return n;const c=[{...n,offset:n.offset+o.length,content:a}];return o&&c.unshift({content:o,offset:n.offset}),s&&c.push({content:s,offset:n.offset+o.length+a.length}),c}))}function Kae(e,t,n){const r={meta:{},options:n,codeToHast:(a,s)=>Ly(e,a,s),codeToTokens:(a,s)=>Py(e,a,s)};let o=vae(Ly(e,t,n,r));for(const a of Oy(n))o=a.postprocess?.call(r,o,n)||o;return o}const PI={light:"#333333",dark:"#bbbbbb"},LI={light:"#fffffe",dark:"#1e1e1e"},MI="__shiki_resolved";function EC(e){if(e?.[MI])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?PI.light:PI.dark),n||(n=t.type==="light"?LI.light:LI.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let o=0;const a=new Map;function s(c){if(a.has(c))return a.get(c);o+=1;const u=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?s(c):(a.set(c,u),u)}t.settings=t.settings.map(c=>{const u=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),d=c.settings?.background&&!c.settings.background.startsWith("#");if(!u&&!d)return c;const p={...c,settings:{...c.settings}};if(u){const h=s(c.settings.foreground);t.colorReplacements[h]=c.settings.foreground,p.settings.foreground=h}if(d){const h=s(c.settings.background);t.colorReplacements[h]=c.settings.background,p.settings.background=h}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const u=s(t.colors[c]);t.colorReplacements[u]=t.colors[c],t.colors[c]=u}return Object.defineProperty(t,MI,{enumerable:!1,writable:!1,value:!0}),t}async function sL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!JP(t)).map(async t=>await nL(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function lL(e){return(await Promise.all(e.map(async t=>eL(t)?null:EC(await nL(t))))).filter(t=>!!t)}class Qae extends uoe{constructor(t,n,r,o={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=o,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=EC(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=_y.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new to(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(a=>a.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const o=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(o.name=t.name,this._resolvedGrammars.set(t.name,o),t.aliases&&t.aliases.forEach(a=>{this._alias[a]=t.name}),this._loadedLanguagesCache=null,n.size)for(const a of n)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const o of t)this.resolveEmbeddedLanguages(o);const n=Array.from(this._langGraph.entries()),r=n.filter(([o,a])=>!a);if(r.length){const o=n.filter(([a,s])=>s&&s.embeddedLangs?.some(c=>r.map(([u])=>u).includes(c))).filter(a=>!r.includes(a));throw new to(`Missing languages ${r.map(([a])=>`\`${a}\``).join(", ")}, required by ${o.map(([a])=>`\`${a}\``).join(", ")}`)}for(const[o,a]of n)this._resolver.addLanguage(a);for(const[o,a]of n)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class Xae{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let o=1;o<=n.length;o++){const a=n.slice(0,o).join(".");r=[...r,...this._injections.get(a)||[]]}return r}}let Ff=0;function Zae(e){Ff+=1,e.warnings!==!1&&Ff>=10&&Ff%10===0&&console.warn(`[Shiki] ${Ff} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new to("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(EC),o=new Xae(e.engine,n),a=new Qae(o,r,n,e.langAlias);let s;function c(D){S();const k=a.getGrammar(typeof D=="string"?D:D.name);if(!k)throw new to(`Language \`${D}\` not found, you may need to load it first`);return k}function u(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};S();const k=a.getTheme(D);if(!k)throw new to(`Theme \`${D}\` not found, you may need to load it first`);return k}function d(D){S();const k=u(D);s!==D&&(a.setTheme(k),s=D);const R=a.getColorMap();return{theme:k,colorMap:R}}function p(){return S(),a.getLoadedThemes()}function h(){return S(),a.getLoadedLanguages()}function g(...D){S(),a.loadLanguages(D.flat(1))}async function y(...D){return g(await sL(D))}function b(...D){S();for(const k of D.flat(1))a.loadTheme(k)}async function x(...D){return S(),b(await lL(D))}function S(){if(t)throw new to("Shiki instance has been disposed")}function T(){t||(t=!0,a.dispose(),Ff-=1)}return{setTheme:d,getTheme:u,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:y,loadLanguageSync:g,loadTheme:x,loadThemeSync:b,dispose:T,[Symbol.dispose]:T}}async function Jae(e={}){e.loadWasm;const[t,n,r]=await Promise.all([lL(e.themes||[]),sL(e.langs||[]),e.engine||SP(e.loadWasm||Cre())]);return Zae({...e,themes:t,langs:n,engine:r})}async function eie(e={}){const t=await Jae(e);return{getLastGrammarState:(...n)=>Bae(t,...n),codeToTokensBase:(n,r)=>vC(t,n,r),codeToTokensWithThemes:(n,r)=>iL(t,n,r),codeToTokens:(n,r)=>Py(t,n,r),codeToHast:(n,r)=>Ly(t,n,r),codeToHtml:(n,r)=>Kae(t,n,r),...t,getInternalContext:()=>t}}function tie(e,t,n){let r,o,a;{const c=e;r=c.langs,o=c.themes,a=c.engine}async function s(c){function u(y){if(typeof y=="string"){if(JP(y))return[];const b=r[y];if(!b)throw new Qi(`Language \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}function d(y){if(eL(y))return"none";if(typeof y=="string"){const b=o[y];if(!b)throw new Qi(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}const p=(c.themes??[]).map(y=>d(y)),h=(c.langs??[]).map(y=>u(y)),g=await eie({engine:c.engine??a(),...c,themes:p,langs:h});return{...g,loadLanguage(...y){return g.loadLanguage(...y.map(u))},loadTheme(...y){return g.loadTheme(...y.map(d))}}}return s}const nie=tie({langs:ore,themes:ire,engine:()=>SP(G(()=>import("./wasm-DQxwEHae-CG6Dc4jp.js"),[]))}),vE={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},rie={...vE,patterns:[...vE.patterns,{include:"#docvar"}],repository:{...vE.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},oie={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},cL="catppuccin-latte",aie=nie({themes:[cL],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...rie},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...oie}]});async function tc(e,t){return(await aie).codeToHtml(e,{lang:t,theme:cL})}const _r=Ie(fu)({display:"flex",flexDirection:"column",height:"100%"}),$o=Ie(pu)({display:"flex",flexDirection:"column",padding:"10px",flexGrow:1}),ab=Ie(rq)({padding:"10px"}),uL=Ie("div")({display:"flex",flexDirection:"column",height:"100%"});Ie("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const dL=Ie("div")({display:"flex",height:"75vh",width:"100%",overflowY:"auto"});Ie("div")({position:"relative",height:"100%",flex:"0 0 auto"});const iie=In([E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"},"0"),E.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]),fL=w.createContext(void 0),My=({projectName:e,packageName:t,versionId:n,children:r})=>E.jsx(fL.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function Co(e=!0){const t=w.useContext(fL);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}function Go({error:e,context:t}){const n=e.data?.message||"Unknown Error";return E.jsxs(E.Fragment,{children:[t&&E.jsx(Ye,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),E.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function _a({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:s="body2"}){const c=E.jsxs(Zt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[E.jsx(fS,{size:t,color:n,thickness:r}),e&&E.jsx(Ye,{variant:s,color:"text.secondary",children:e})]});return o?E.jsx(Zt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const pL=new vX({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),xC=async(e,t)=>{const n=t?await t():void 0;return{baseURL:e,withCredentials:!n,headers:{Authorization:n&&`Bearer ${n}`}}};function qo(e){const{server:t,getAccessToken:n}=IC(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const o=await xC(t,n);return await e.queryFn(o)}catch(o){if(o&&typeof o=="object"&&"response"in o){const a=o;if(a.response?.data){const s=new Error(a.response.data.message||a.message);throw s.status=a.response.status,s.data=a.response.data,s}}throw o}},retry:!1,throwOnError:!1};return MX(r,pL)}function sie(e){const{server:t,getAccessToken:n}=IC(),r={...e,mutationFn:async o=>{try{const a=await xC(t,n);return await e.mutationFn(o,a)}catch(a){if(a&&typeof a=="object"&&"response"in a){const s=a;if(s.response?.data){const c=new Error(s.response.data.message||s.message);throw c.status=s.response.status,c.data=s.response.data,c}}throw a}},retry:!1,throwOnError:!1};return FX(r,pL)}const lie=w.lazy(()=>G(()=>import("./RenderedResult-BAZuT25g-etaZB-YF.js"),[])),cie=new xP(new Qr);function hL(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function uie({modelPath:e,query:t,sourceName:n,queryName:r,optionalProjectName:o,optionalPackageName:a,optionalVersionId:s}){const c=Co(!1),u=o||c?.projectName,d=a||c?.packageName,p=s||c?.versionId;if(!u||!d)throw new Error("No project or package name provided. Must be set in props or via PackageProvider");const{data:h,isSuccess:g,isError:y,error:b}=qo({queryKey:["queryResult",u,d,e,p,t,n,r],queryFn:x=>cie.executeQuery(u,d,e,t,n,r,p,x)});return E.jsxs(E.Fragment,{children:[!g&&!y&&E.jsx(_a,{text:"Fetching Query Results..."}),g&&E.jsx(w.Suspense,{fallback:E.jsx("div",{children:"Loading..."}),children:E.jsx(lie,{result:h.data.result})}),y&&E.jsx(Go,{context:`${u} > ${d} > ${e}`,error:b})]})}const mL=In(E.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),die=w.lazy(()=>G(()=>import("./RenderedResult-BAZuT25g-etaZB-YF.js"),[]));function gL({result:e,minHeight:t,maxHeight:n}){const[r,o]=w.useState(!1),[a,s]=w.useState(0),[c,u]=w.useState(!1),d=w.useRef(null),p=w.useRef(null),[h,g]=w.useState(void 0),[y,b]=w.useState(!1),x=w.useCallback(()=>{const R=r;o(!r),R&&p.current&&setTimeout(()=>{p.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[r]),S=w.useCallback(R=>{s(R)},[]);if(w.useEffect(()=>{if(y){u(!0);return}if(a===0){u(!1);return}const R=t-20,I=a>R;a<R&&g(a+20),u(I)},[a,y,t]),!e)return null;const T=E.jsx(_a,{text:"Loading...",centered:!0,size:32}),D=y?r?n-40:t-40:void 0,k=h?{minHeight:`${h}px`,height:"100%"}:{height:"100%"};return E.jsx(E.Fragment,{children:E.jsxs(Zt,{ref:p,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${r?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...k},children:[E.jsx(Zt,{ref:d,sx:{flex:1,overflow:r?"auto":"hidden",p:0,pb:c?"40px":1},children:e&&E.jsx(w.Suspense,{fallback:T,children:E.jsx(die,{result:e,height:D,isFillElement:R=>{b(R)},onSizeChange:S})})||T}),c&&E.jsx(Zt,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsx(Jn,{size:"small",onClick:x,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:r?"Collapse to original size":"Expand to full size",children:r?E.jsx(qZ,{sx:{fontSize:30}}):E.jsx(WZ,{sx:{fontSize:30}})})})]})})}const fie=`
|
|
267
|
+
.code-display pre {
|
|
268
|
+
margin: 0;
|
|
269
|
+
padding: 0;
|
|
270
|
+
}
|
|
271
|
+
`;function pie({cell:e,notebookPath:t,expandCodeCell:n,hideCodeCellIcon:r,expandEmbedding:o,hideEmbeddingIcon:a}){const[s,c]=$e.useState(n),[u,d]=$e.useState(o),[p,h]=$e.useState(),[g,y]=$e.useState(),[b,x]=$e.useState(!1),{packageName:S,projectName:T}=Co(),D=hL({modelPath:t,query:e.text,optionalPackageName:S,optionalProjectName:T});return w.useEffect(()=>{e.type==="code"&&tc(e.text,"malloy").then(k=>{h(k)})},[e]),w.useEffect(()=>{tc(D,"typescript").then(k=>{y(k)})},[D]),e.type==="markdown"&&E.jsx(_r,{variant:"outlined",children:E.jsx($o,{children:E.jsx(jS,{children:e.text})})})||e.type==="code"&&E.jsxs(_r,{variant:"outlined",sx:{height:"auto"},children:[(!r||!a&&e.result)&&E.jsxs(hn,{sx:{flexDirection:"row",justifyContent:"space-between",ml:"8px"},children:[E.jsxs(hn,{sx:{flexDirection:"row"},children:[e.newSources&&e.newSources.length>0&&E.jsx(Ye,{variant:"overline",children:E.jsx("b",{children:"Data source"})}),e.result&&E.jsx(Ye,{variant:"overline",fontWeight:"bold",children:"Results"})]}),E.jsx(hn,{sx:{flexDirection:"row"},children:E.jsxs(T0,{sx:{padding:"0px 8px 0px 8px",mb:"auto",mt:"auto"},children:[e.newSources&&e.newSources.length>0&&E.jsx(er,{title:"Explore Data Sources",children:E.jsx(Jn,{size:"small",onClick:()=>{x(!b),d(!1),c(!1)},children:E.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",fill:"currentColor"})})})}),!r&&E.jsx(er,{title:s?"Hide Code":"View Code",children:E.jsx(Jn,{size:"small",onClick:()=>{c(!s)},children:E.jsx(mL,{})})}),!a&&e.result&&E.jsx(er,{title:u?"Hide Embedding":"View Embedding",children:E.jsx(Jn,{size:"small",onClick:()=>{d(!u)},children:E.jsx(Ah,{})})})]})})]}),E.jsx(La,{in:u,timeout:"auto",unmountOnExit:!0,children:E.jsxs(hn,{sx:{p:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ye,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:g}}),E.jsx(er,{title:"Copy Embeddable Code",children:E.jsx(Jn,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(D)},children:E.jsx(X0,{})})})]})}),E.jsxs(La,{in:s,timeout:"auto",unmountOnExit:!0,children:[E.jsx("style",{children:fie}),E.jsx(hn,{sx:{mx:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx("div",{className:"code-display",style:{fontSize:"12px",width:"800px",border:"1px solid rgb(220,220,220)"},dangerouslySetInnerHTML:{__html:p}})})]}),E.jsx(La,{in:b,timeout:"auto",unmountOnExit:!0,sx:{p:"5px"},children:E.jsx(qL,{sourceAndPaths:e.newSources.map(k=>({sourceInfo:JSON.parse(k),modelPath:t}))})}),e.result&&!b&&E.jsx(E.Fragment,{children:E.jsx(gL,{result:e.result,minHeight:300,maxHeight:700})})]})}const hie=new bP(new Qr);function yL({notebookPath:e,expandResults:t,hideResultIcons:n,expandEmbeddings:r,hideEmbeddingIcons:o}){const[a,s]=$e.useState(!1),[c,u]=$e.useState(),{projectName:d,packageName:p,versionId:h}=Co(),g=mie(e,!0);w.useEffect(()=>{tc(g,"typescript").then(T=>{u(T)})},[a,g]);const{data:y,isSuccess:b,isError:x,error:S}=qo({queryKey:["notebook",d,p,e,h],queryFn:async T=>(await hie.getNotebook(d,p,e,h,T)).data});return E.jsxs(_r,{variant:"outlined",children:[E.jsxs($o,{children:[E.jsxs(hn,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",children:"Notebook"}),!o&&E.jsx(T0,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:E.jsx(er,{title:a?"Hide Embedding":"View Embedding",children:E.jsx(Jn,{size:"small",onClick:()=>{s(!a)},children:E.jsx(Ah,{})})})})]}),E.jsx(La,{in:a,timeout:"auto",unmountOnExit:!0,children:E.jsxs(hn,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ye,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{dangerouslySetInnerHTML:{__html:c}})}),E.jsx(er,{title:"Copy Embeddable Code",children:E.jsx(Jn,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(g)},children:E.jsx(X0,{})})})]})})]}),E.jsx(ab,{children:E.jsxs(hn,{spacing:2,component:"section",children:[!b&&!x&&E.jsx(_a,{text:"Fetching Notebook..."}),b&&y.notebookCells?.map((T,D)=>E.jsx(pie,{cell:T,notebookPath:e,expandCodeCell:t,hideCodeCellIcon:n,expandEmbedding:r,hideEmbeddingIcon:o},D)),x&&S.status===404&&E.jsxs(Ye,{variant:"body2",children:[E.jsx("code",{children:`${d} > ${p} > ${e}`})," ","not found."]}),x&&S.status!==404&&E.jsx(Go,{error:S,context:`${d} > ${p} > ${e}`})]})})]})}function mie(e,t){return`<Notebook
|
|
272
|
+
notebookPath="${e}"
|
|
273
|
+
expandCodeCells={${t}}
|
|
274
|
+
/>`}const bL=In(E.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),gie=new vP(new Qr);function yie(){const{projectName:e,packageName:t,versionId:n}=Co(),{data:r,isSuccess:o,isError:a,error:s}=qo({queryKey:["package",e,t,n],queryFn:c=>gie.getPackage(e,t,n,!1,c)});return E.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:E.jsxs($o,{children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",children:"Package Config"}),E.jsx(Hr,{}),E.jsx(Zt,{sx:{maxHeight:"200px",overflowY:"auto"},children:E.jsxs(AS,{dense:!0,disablePadding:!0,children:[E.jsx(hu,{dense:!0,disablePadding:!0,children:E.jsx(zl,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!o&&!a&&E.jsx(hu,{children:E.jsx(_a,{text:"Fetching Package Metadata..."})}),o&&(r.data&&E.jsx(hu,{dense:!0,disablePadding:!0,children:E.jsx(zl,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||E.jsxs(hu,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[E.jsx(bL,{sx:{color:"grey.600",mr:"10px"}}),E.jsx(zl,{primary:"No package manifest"})]})),a&&E.jsx(Go,{error:s,context:`${e} > ${t} > ${n}`})]})})]})})}const bie=new yP(new Qr);function vie({connection:e}){return E.jsxs(js,{children:[E.jsx(Un,{children:E.jsx(Ye,{variant:"body2",children:e.name})}),E.jsx(Un,{children:E.jsx(Ye,{variant:"body2",children:e.type})})]},e.name)}function Eie(){const{projectName:e}=Co(),{data:t,isSuccess:n,isError:r,error:o}=qo({queryKey:["connections",e],queryFn:a=>bie.listConnections(e,a)});return E.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:E.jsxs($o,{children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),E.jsx(Hr,{}),E.jsxs(Zt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!n&&!r&&E.jsx(Ye,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),n&&t.data.length>0&&E.jsx(dy,{size:"small",children:E.jsxs(fy,{children:[E.jsxs(js,{children:[E.jsx(Un,{children:E.jsx(Ye,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),E.jsx(Un,{children:E.jsx(Ye,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),t.data.map(a=>E.jsx(vie,{connection:a},a.name))]})}),n&&t.data.length===0&&E.jsx(Ye,{variant:"body2",children:"No Connections"}),r&&E.jsx(Go,{error:o,context:`${e} > Connections`})]})]})})}const xie=new qne(new Qr);function Tie(){const{projectName:e,packageName:t,versionId:n}=Co(),[r,o]=$e.useState(!1),[a,s]=$e.useState(null),c=b=>{s(b),o(!0)},u=()=>{o(!1),s(null)},{data:d,isError:p,error:h,isSuccess:g}=qo({queryKey:["databases",e,t,n],queryFn:b=>xie.listDatabases(e,t,n,b)}),y=b=>b>=1024*1024*1024*1024?`${(b/(1024*1024*1024)).toFixed(2)} T`:b>=1024*1024*1024?`${(b/(1024*1024*1024)).toFixed(2)} G`:b>=1024*1024?`${(b/(1024*1024)).toFixed(2)} M`:`${(b/1024).toFixed(2)} K`;return E.jsxs(E.Fragment,{children:[E.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:E.jsxs($o,{children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),E.jsx(Hr,{}),E.jsxs(Zt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!g&&!p&&E.jsx(_a,{text:"Fetching Databases..."}),p&&E.jsx(Go,{error:h,context:`${e} > ${t} > Databases`}),g&&d.data.length>0&&E.jsxs(dy,{size:"small",children:[E.jsx(xx,{children:E.jsxs(js,{children:[E.jsx(Un,{children:"Name"}),E.jsx(Un,{align:"right",children:"Rows"})]})}),E.jsx(fy,{children:d.data.map(b=>E.jsxs(js,{onClick:()=>c(b),sx:{cursor:"pointer"},children:[E.jsx(Un,{component:"th",scope:"row",children:b.path}),E.jsx(Un,{align:"right",children:y(b.info.rowCount)})]},b.path))})]}),g&&d.data.length===0&&E.jsx(Ye,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),E.jsxs(Fp,{open:r,onClose:u,maxWidth:"sm",fullWidth:!0,children:[E.jsx(jp,{children:a?.path}),E.jsx(Bp,{children:a?.info?.columns&&E.jsx(x5,{children:E.jsxs(dy,{size:"small",children:[E.jsx(xx,{children:E.jsxs(js,{children:[E.jsx(Un,{children:"Column"}),E.jsx(Un,{children:"Type"})]})}),E.jsx(fy,{children:a.info.columns.map(b=>E.jsxs(js,{children:[E.jsx(Un,{component:"th",scope:"row",children:b.name}),E.jsx(Un,{children:b.type})]},b.name))})]})})})]})]})}function Wi(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},at.apply(null,arguments)}function Sie(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Sy(t.components[n].defaultProps,r)}const Cie=lC();function _ie(e=Cie){return Ute(e)}function Aie({props:e,name:t,defaultTheme:n,themeId:r}){let o=_ie(n);return o=o[r]||o,Sie({theme:o,name:t,props:e})}function wie({props:e,name:t}){return Aie({props:e,name:t,defaultTheme:cC,themeId:uC})}function iT(){return iT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iT.apply(null,arguments)}function vL(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sT(e,t){return sT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},sT(e,t)}function EL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sT(e,t)}const FI={disabled:!1},Fy=$e.createContext(null);var kie=function(e){return e.scrollTop},tp="unmounted",Al="exited",wl="entering",uu="entered",lT="exiting",ts=function(e){EL(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,c=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?c?(u=Al,a.appearStatus=wl):u=uu:r.unmountOnExit||r.mountOnEnter?u=tp:u=Al,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===tp?{status:Al}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==wl&&a!==uu&&(o=wl):(a===wl||a===uu)&&(o=lT)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,s;return o=a=s=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,s=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===wl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Bs.findDOMNode(this);a&&kie(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Al&&this.setState({status:tp})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,c=this.props.nodeRef?[s]:[Bs.findDOMNode(this),s],u=c[0],d=c[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!r&&!a||FI.disabled){this.safeSetState({status:uu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:wl},function(){o.props.onEntering(u,d),o.onTransitionEnd(h,function(){o.safeSetState({status:uu},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Bs.findDOMNode(this);if(!o||FI.disabled){this.safeSetState({status:Al},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:lT},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Al},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,r(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Bs.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===tp)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=vL(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $e.createElement(Fy.Provider,{value:null},typeof a=="function"?a(r,s):$e.cloneElement($e.Children.only(a),s))},t}($e.Component);ts.contextType=Fy;ts.propTypes={};function ru(){}ts.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ru,onEntering:ru,onEntered:ru,onExit:ru,onExiting:ru,onExited:ru};ts.UNMOUNTED=tp;ts.EXITED=Al;ts.ENTERING=wl;ts.ENTERED=uu;ts.EXITING=lT;function Die(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TC(e,t){var n=function(o){return t&&w.isValidElement(o)?t(o):o},r=Object.create(null);return e&&w.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Rie(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var s,c={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];c[r[u][s]]=n(d)}c[u]=n(u)}for(s=0;s<o.length;s++)c[o[s]]=n(o[s]);return c}function Fl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Iie(e,t){return TC(e.children,function(n){return w.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Fl(n,"appear",e),enter:Fl(n,"enter",e),exit:Fl(n,"exit",e)})})}function Oie(e,t,n){var r=TC(e.children),o=Rie(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(w.isValidElement(s)){var c=a in t,u=a in r,d=t[a],p=w.isValidElement(d)&&!d.props.in;u&&(!c||p)?o[a]=w.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Fl(s,"exit",e),enter:Fl(s,"enter",e)}):!u&&c&&!p?o[a]=w.cloneElement(s,{in:!1}):u&&c&&w.isValidElement(d)&&(o[a]=w.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Fl(s,"exit",e),enter:Fl(s,"enter",e)}))}}),o}var Nie=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Pie={component:"div",childFactory:function(e){return e}},SC=function(e){EL(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Die(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var a=o.children,s=o.handleExited,c=o.firstRender;return{children:c?Iie(r,s):Oie(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=TC(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var c=iT({},s.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,s=vL(r,["component","childFactory"]),c=this.state.contextValue,u=Nie(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?$e.createElement(Fy.Provider,{value:c},u):$e.createElement(Fy.Provider,{value:c},$e.createElement(o,s,u))},t}($e.Component);SC.propTypes={};SC.defaultProps=Pie;const BI={};function xL(e,t){const n=w.useRef(BI);return n.current===BI&&(n.current=e(t)),n}const Lie=[];function Mie(e){w.useEffect(e,Lie)}class CC{static create(){return new CC}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function TL(){const e=xL(CC.create).current;return Mie(e.disposeEffect),e}function jI(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Fie(e){return sd("MuiCollapse",e)}cd("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Bie=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Sh(r,Fie,n)},jie=Nn("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(fC(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Uie=Nn("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Hie=Nn("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),rh=w.forwardRef(function(e,t){const n=ld({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:s="0px",component:c,easing:u,in:d,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:x,orientation:S="vertical",style:T,timeout:D=fP.standard,TransitionComponent:k=ts,...R}=n,I={...n,orientation:S,collapsedSize:s},O=Bie(I),F=Ane(),U=TL(),H=w.useRef(null),C=w.useRef(),M=typeof s=="number"?`${s}px`:s,V=S==="horizontal",z=V?"width":"height",W=w.useRef(null),Y=Cy(t,W),B=re=>me=>{if(re){const oe=W.current;me===void 0?re(oe):re(oe,me)}},J=()=>H.current?H.current[V?"clientWidth":"clientHeight"]:0,ae=B((re,me)=>{H.current&&V&&(H.current.style.position="absolute"),re.style[z]=M,p&&p(re,me)}),ne=B((re,me)=>{const oe=J();H.current&&V&&(H.current.style.position="");const{duration:ve,easing:ye}=jI({style:T,timeout:D,easing:u},{mode:"enter"});if(D==="auto"){const Ve=F.transitions.getAutoHeightDuration(oe);re.style.transitionDuration=`${Ve}ms`,C.current=Ve}else re.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;re.style[z]=`${oe}px`,re.style.transitionTimingFunction=ye,g&&g(re,me)}),N=B((re,me)=>{re.style[z]="auto",h&&h(re,me)}),K=B(re=>{re.style[z]=`${J()}px`,y&&y(re)}),ee=B(b),P=B(re=>{const me=J(),{duration:oe,easing:ve}=jI({style:T,timeout:D,easing:u},{mode:"exit"});if(D==="auto"){const ye=F.transitions.getAutoHeightDuration(me);re.style.transitionDuration=`${ye}ms`,C.current=ye}else re.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;re.style[z]=M,re.style.transitionTimingFunction=ve,x&&x(re)});return E.jsx(k,{in:d,onEnter:ae,onEntered:N,onEntering:ne,onExit:K,onExited:ee,onExiting:P,addEndListener:re=>{D==="auto"&&U.start(C.current||0,re),r&&r(W.current,re)},nodeRef:W,timeout:D==="auto"?null:D,...R,children:(re,{ownerState:me,...oe})=>E.jsx(jie,{as:c,className:nr(O.root,a,{entered:O.entered,exited:!d&&M==="0px"&&O.hidden}[re]),style:{[V?"minWidth":"minHeight"]:M,...T},ref:Y,ownerState:{...I,state:re},...oe,children:E.jsx(Uie,{ownerState:{...I,state:re},className:O.wrapper,ref:H,children:E.jsx(Hie,{ownerState:{...I,state:re},className:O.wrapperInner,children:o})})})})});rh&&(rh.muiSupportAuto=!0);const zie=w.createContext(void 0);function $ie(){return w.useContext(zie)}function UI(e){try{return e.matches(":focus-visible")}catch{}return!1}class By{static create(){return new By}static use(){const t=xL(By.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Gie(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Vie(){return By.use()}function Gie(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function qie(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:c,onExited:u,timeout:d}=e,[p,h]=w.useState(!1),g=nr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=nr(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),w.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,c,d]),E.jsx("span",{className:g,style:y,children:E.jsx("span",{className:b})})}const ca=cd("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),cT=550,Wie=80,Yie=Zs`
|
|
275
|
+
0% {
|
|
276
|
+
transform: scale(0);
|
|
277
|
+
opacity: 0.1;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
100% {
|
|
281
|
+
transform: scale(1);
|
|
282
|
+
opacity: 0.3;
|
|
283
|
+
}
|
|
284
|
+
`,Kie=Zs`
|
|
285
|
+
0% {
|
|
286
|
+
opacity: 1;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
100% {
|
|
290
|
+
opacity: 0;
|
|
291
|
+
}
|
|
292
|
+
`,Qie=Zs`
|
|
293
|
+
0% {
|
|
294
|
+
transform: scale(1);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
50% {
|
|
298
|
+
transform: scale(0.92);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
100% {
|
|
302
|
+
transform: scale(1);
|
|
303
|
+
}
|
|
304
|
+
`,Xie=Nn("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Zie=Nn(qie,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
305
|
+
opacity: 0;
|
|
306
|
+
position: absolute;
|
|
307
|
+
|
|
308
|
+
&.${ca.rippleVisible} {
|
|
309
|
+
opacity: 0.3;
|
|
310
|
+
transform: scale(1);
|
|
311
|
+
animation-name: ${Yie};
|
|
312
|
+
animation-duration: ${cT}ms;
|
|
313
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&.${ca.ripplePulsate} {
|
|
317
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
& .${ca.child} {
|
|
321
|
+
opacity: 1;
|
|
322
|
+
display: block;
|
|
323
|
+
width: 100%;
|
|
324
|
+
height: 100%;
|
|
325
|
+
border-radius: 50%;
|
|
326
|
+
background-color: currentColor;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
& .${ca.childLeaving} {
|
|
330
|
+
opacity: 0;
|
|
331
|
+
animation-name: ${Kie};
|
|
332
|
+
animation-duration: ${cT}ms;
|
|
333
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
& .${ca.childPulsate} {
|
|
337
|
+
position: absolute;
|
|
338
|
+
/* @noflip */
|
|
339
|
+
left: 0px;
|
|
340
|
+
top: 0;
|
|
341
|
+
animation-name: ${Qie};
|
|
342
|
+
animation-duration: 2500ms;
|
|
343
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
344
|
+
animation-iteration-count: infinite;
|
|
345
|
+
animation-delay: 200ms;
|
|
346
|
+
}
|
|
347
|
+
`,Jie=w.forwardRef(function(e,t){const n=ld({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[c,u]=w.useState([]),d=w.useRef(0),p=w.useRef(null);w.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const h=w.useRef(!1),g=TL(),y=w.useRef(null),b=w.useRef(null),x=w.useCallback(k=>{const{pulsate:R,rippleX:I,rippleY:O,rippleSize:F,cb:U}=k;u(H=>[...H,E.jsx(Zie,{classes:{ripple:nr(o.ripple,ca.ripple),rippleVisible:nr(o.rippleVisible,ca.rippleVisible),ripplePulsate:nr(o.ripplePulsate,ca.ripplePulsate),child:nr(o.child,ca.child),childLeaving:nr(o.childLeaving,ca.childLeaving),childPulsate:nr(o.childPulsate,ca.childPulsate)},timeout:cT,pulsate:R,rippleX:I,rippleY:O,rippleSize:F},d.current)]),d.current+=1,p.current=U},[o]),S=w.useCallback((k={},R={},I=()=>{})=>{const{pulsate:O=!1,center:F=r||R.pulsate,fakeElement:U=!1}=R;if(k?.type==="mousedown"&&h.current){h.current=!1;return}k?.type==="touchstart"&&(h.current=!0);const H=U?null:b.current,C=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,V,z;if(F||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)M=Math.round(C.width/2),V=Math.round(C.height/2);else{const{clientX:W,clientY:Y}=k.touches&&k.touches.length>0?k.touches[0]:k;M=Math.round(W-C.left),V=Math.round(Y-C.top)}if(F)z=Math.sqrt((2*C.width**2+C.height**2)/3),z%2===0&&(z+=1);else{const W=Math.max(Math.abs((H?H.clientWidth:0)-M),M)*2+2,Y=Math.max(Math.abs((H?H.clientHeight:0)-V),V)*2+2;z=Math.sqrt(W**2+Y**2)}k?.touches?y.current===null&&(y.current=()=>{x({pulsate:O,rippleX:M,rippleY:V,rippleSize:z,cb:I})},g.start(Wie,()=>{y.current&&(y.current(),y.current=null)})):x({pulsate:O,rippleX:M,rippleY:V,rippleSize:z,cb:I})},[r,x,g]),T=w.useCallback(()=>{S({},{pulsate:!0})},[S]),D=w.useCallback((k,R)=>{if(g.clear(),k?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{D(k,R)});return}y.current=null,u(I=>I.length>0?I.slice(1):I),p.current=R},[g]);return w.useImperativeHandle(t,()=>({pulsate:T,start:S,stop:D}),[T,S,D]),E.jsx(Xie,{className:nr(ca.root,o.root,a),ref:b,...s,children:E.jsx(SC,{component:null,exit:!0,children:c})})});function ese(e){return sd("MuiButtonBase",e)}const tse=cd("MuiButtonBase",["root","disabled","focusVisible"]),nse=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Sh({root:["root",t&&"disabled",n&&"focusVisible"]},ese,o);return n&&r&&(a.root+=` ${r}`),a},rse=Nn("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tse.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ose=w.forwardRef(function(e,t){const n=ld({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:b,onClick:x,onContextMenu:S,onDragLeave:T,onFocus:D,onFocusVisible:k,onKeyDown:R,onKeyUp:I,onMouseDown:O,onMouseLeave:F,onMouseUp:U,onTouchEnd:H,onTouchMove:C,onTouchStart:M,tabIndex:V=0,TouchRippleProps:z,touchRippleRef:W,type:Y,...B}=n,J=w.useRef(null),ae=Vie(),ne=Cy(ae.ref,W),[N,K]=w.useState(!1);u&&N&&K(!1),w.useImperativeHandle(r,()=>({focusVisible:()=>{K(!0),J.current.focus()}}),[]);const ee=ae.shouldMount&&!d&&!u;w.useEffect(()=>{N&&h&&!d&&ae.pulsate()},[d,h,N,ae]);const P=ji(ae,"start",O,p),re=ji(ae,"stop",S,p),me=ji(ae,"stop",T,p),oe=ji(ae,"stop",U,p),ve=ji(ae,"stop",je=>{N&&je.preventDefault(),F&&F(je)},p),ye=ji(ae,"start",M,p),Ve=ji(ae,"stop",H,p),Le=ji(ae,"stop",C,p),Oe=ji(ae,"stop",je=>{UI(je.target)||K(!1),b&&b(je)},!1),Qe=jg(je=>{J.current||(J.current=je.currentTarget),UI(je.target)&&(K(!0),k&&k(je)),D&&D(je)}),nt=()=>{const je=J.current;return c&&c!=="button"&&!(je.tagName==="A"&&je.href)},De=jg(je=>{h&&!je.repeat&&N&&je.key===" "&&ae.stop(je,()=>{ae.start(je)}),je.target===je.currentTarget&&nt()&&je.key===" "&&je.preventDefault(),R&&R(je),je.target===je.currentTarget&&nt()&&je.key==="Enter"&&!u&&(je.preventDefault(),x&&x(je))}),gt=jg(je=>{h&&je.key===" "&&N&&!je.defaultPrevented&&ae.stop(je,()=>{ae.pulsate(je)}),I&&I(je),x&&je.target===je.currentTarget&&nt()&&je.key===" "&&!je.defaultPrevented&&x(je)});let Ct=c;Ct==="button"&&(B.href||B.to)&&(Ct=y);const Be={};Ct==="button"?(Be.type=Y===void 0?"button":Y,Be.disabled=u):(!B.href&&!B.to&&(Be.role="button"),u&&(Be["aria-disabled"]=u));const mt=Cy(t,J),it={...n,centerRipple:o,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:V,focusVisible:N},lt=nse(it);return E.jsxs(rse,{as:Ct,className:nr(lt.root,s),ownerState:it,onBlur:Oe,onClick:x,onContextMenu:re,onFocus:Qe,onKeyDown:De,onKeyUp:gt,onMouseDown:P,onMouseLeave:ve,onMouseUp:oe,onDragLeave:me,onTouchEnd:Ve,onTouchMove:Le,onTouchStart:ye,ref:mt,tabIndex:u?-1:V,type:Y,...Be,...B,children:[a,ee?E.jsx(Jie,{ref:ne,center:o,...z}):null]})});function ji(e,t,n,r=!1){return jg(o=>(n&&n(o),r||e[t](o),!0))}function ase(e){return sd("PrivateSwitchBase",e)}cd("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function ise(e){return typeof e=="string"}function sse(e,t,n){return e===void 0||ise(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function lse(e,t,n){return typeof e=="function"?e(t,n):e}function cse(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function HI(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function use(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=nr(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const s=cse({...o,...r}),c=HI(r),u=HI(o),d=t(s),p=nr(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...c};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function uT(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:c=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...g}=a,y=p[e]||r,b=lse(h[e],o),{props:{component:x,...S},internalRef:T}=use({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),D=Cy(T,b?.ref,t.ref),k=e==="root"?x||d:x,R=sse(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...S,...k&&!c&&{as:k},...k&&c&&{component:k},ref:D},o);return[y,R]}const dse=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Ua(o)}`],input:["input"]};return Sh(a,ase,t)},fse=Nn(ose)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),pse=Nn("input",{shouldForwardProp:dC})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hse=w.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:g,name:y,onBlur:b,onChange:x,onFocus:S,readOnly:T,required:D=!1,tabIndex:k,type:R,value:I,slots:O={},slotProps:F={},...U}=e,[H,C]=jne({controlled:r,default:!!a}),M=$ie(),V=re=>{S&&S(re),M&&M.onFocus&&M.onFocus(re)},z=re=>{b&&b(re),M&&M.onBlur&&M.onBlur(re)},W=re=>{if(re.nativeEvent.defaultPrevented)return;const me=re.target.checked;C(me),x&&x(re,me)};let Y=s;M&&typeof Y>"u"&&(Y=M.disabled);const B=R==="checkbox"||R==="radio",J={...e,checked:H,disabled:Y,disableFocusRipple:c,edge:u},ae=dse(J),ne={slots:O,slotProps:{input:h,...F}},[N,K]=uT("root",{ref:t,elementType:fse,className:ae.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,component:"span",...U},getSlotProps:re=>({...re,onFocus:me=>{re.onFocus?.(me),V(me)},onBlur:me=>{re.onBlur?.(me),z(me)}}),ownerState:J,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:Y,role:void 0,tabIndex:null}}),[ee,P]=uT("input",{ref:g,elementType:pse,className:ae.input,externalForwardedProps:ne,getSlotProps:re=>({...re,onChange:me=>{re.onChange?.(me),W(me)}}),ownerState:J,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:Y,id:B?p:void 0,name:y,readOnly:T,required:D,tabIndex:k,type:R,...R==="checkbox"&&I===void 0?{}:{value:I}}});return E.jsxs(N,{...K,children:[E.jsx(ee,{...P}),H?o:d]})}),mse=In(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),gse=In(E.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),yse=In(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function bse(e){return sd("MuiCheckbox",e)}const EE=cd("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function vse(e){return typeof e.main=="string"}function Ese(e,t=[]){if(!vse(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function zI(e=[]){return([,t])=>t&&Ese(t,e)}const xse=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${Ua(r)}`,`size${Ua(o)}`]},s=Sh(a,bse,t);return{...t,...s}},Tse=Nn(hse,{shouldForwardProp:e=>dC(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Ua(n.size)}`],n.color!=="default"&&t[`color${Ua(n.color)}`]]}})(fC(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Gx(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(zI()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gx(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(zI()).map(([t])=>({props:{color:t},style:{[`&.${EE.checked}, &.${EE.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${EE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Sse=E.jsx(gse,{}),Cse=E.jsx(mse,{}),_se=E.jsx(yse,{}),SL=w.forwardRef(function(e,t){const n=ld({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Sse,color:o="primary",icon:a=Cse,indeterminate:s=!1,indeterminateIcon:c=_se,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:g={},slotProps:y={},...b}=n,x=s?c:a,S=s?c:r,T={...n,disableRipple:p,color:o,indeterminate:s,size:d},D=xse(T),k=y.input??u,[R,I]=uT("root",{ref:t,elementType:Tse,className:nr(D.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...b},ownerState:T,additionalProps:{type:"checkbox",icon:w.cloneElement(x,{fontSize:x.props.fontSize??d}),checkedIcon:w.cloneElement(S,{fontSize:S.props.fontSize??d}),disableRipple:p,slots:g,slotProps:{input:Hne(typeof k=="function"?k(T):k,{"data-indeterminate":s})}}});return E.jsx(R,{...I,classes:D})});function $u(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Ase(e){return typeof e=="string"}function wse(e,t,n){return e===void 0||Ase(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function aa(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function $I(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function kse(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=nr(n?.className,a,o?.className,r?.className),b={...n?.style,...o?.style,...r?.style},x={...n,...o,...r};return y.length>0&&(x.className=y),Object.keys(b).length>0&&(x.style=b),{props:x,internalRef:void 0}}const s=aa({...o,...r}),c=$I(r),u=$I(o),d=t(s),p=nr(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...c};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function $i(e,t,n){return typeof e=="function"?e(t,n):e}function Bl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:$i(n,r),{props:c,internalRef:u}=kse({...a,externalSlotProps:s}),d=$u(u,s?.ref,e.additionalProps?.ref);return wse(t,{...c,ref:d},r)}function CL(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",c=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}function _L(e){return wie}const AL=w.createContext(null);function Dse(e){const{value:t,children:n}=e;return E.jsx(AL.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const cc=()=>{const e=w.useContext(AL);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
348
|
+
`));return e},Rse=({props:e})=>{const{instance:t}=cc(),{label:n,itemId:r}=e,[o,a]=w.useState(n),s=t.isItemBeingEdited(r);return w.useEffect(()=>{s||a(n)},[s,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:u})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:d=>{c.onChange?.(d),a(d.target.value)},onKeyDown:d=>{if(c.onKeyDown?.(d),d.defaultMuiPrevented)return;const p=d.target;d.key==="Enter"&&p.value?u.handleSaveItemLabel(d,p.value):d.key==="Escape"&&u.handleCancelItemLabelEditing(d)},onBlur:d=>{c.onBlur?.(d),!d.defaultMuiPrevented&&d.target.value&&u.handleSaveItemLabel(d,d.target.value)},autoFocus:!0,type:"text"}:{}}}},ba=({instance:e,state:t,setState:n,params:r})=>{const o=w.useRef(t.editedItemId),a=h=>o.current===h,s=h=>{n(g=>at({},g,{editedItemId:h})),o.current=h},c=h=>h===t.editedItemId,u=!!r.isItemEditable,d=h=>{if(h==null||!u)return!1;const g=e.getItem(h);return g?typeof r.isItemEditable=="function"?r.isItemEditable(g):!!r.isItemEditable:!1},p=(h,g)=>{if(!g)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",h].join(`
|
|
349
|
+
`));n(y=>{const b=y.items.itemMetaMap[h];return b.label!==g?at({},y,{items:at({},y.items,{itemMetaMap:at({},y.items.itemMetaMap,{[h]:at({},b,{label:g})})})}):y}),r.onItemLabelChange&&r.onItemLabelChange(h,g)};return{instance:{setEditedItemId:s,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:d,isTreeViewEditable:u,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:p}}};ba.itemPlugin=Rse;ba.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return at({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};ba.getInitialState=()=>({editedItemId:null});ba.params={onItemLabelChange:!0,isItemEditable:!0};const Vl=(e,t)=>e.getAvailablePlugins().has(t),wL=e=>Array.isArray(e)?e.length>0&&e.some(wL):!!e,Ise=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:o}=cc(),a={expandable:wL(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},s=p=>{if(a.disabled)return;a.focused||n.focusItem(p,e);const h=r&&(p.shiftKey||p.ctrlKey||p.metaKey);a.expandable&&!(h&&n.isItemExpanded(e))&&n.toggleItemExpansion(p,e)},c=p=>{a.disabled||(a.focused||n.focusItem(p,e),r&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:!0}):n.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},u=p=>{const h=p.nativeEvent.shiftKey;r&&h?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},d=()=>{Vl(n,ba)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:s,handleSelection:c,handleCheckboxSelection:u,toggleItemEditing:d,handleSaveItemLabel:(p,h)=>{Vl(n,ba)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,h),d(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{Vl(n,ba)&&n.isItemBeingEditedRef(e)&&(d(),n.focusItem(p,e))}},status:a,publicAPI:o}},_C=w.createContext(()=>-1),kL=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},DL=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(t);if(o===0)return n.parentId;let a=o-1;for(;!e.isItemNavigable(r[a])&&a>=0;)a-=1;if(a===-1)return n.parentId==null?null:DL(e,n.parentId);let s=r[a],c=kL(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&c!=null;)s=c,c=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},zg=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(n.id);if(o<r.length-1){let a=o+1;for(;!e.isItemNavigable(r[a])&&a<r.length-1;)a+=1;if(e.isItemNavigable(r[a]))return r[a]}n=e.getItemMeta(n.parentId)}return null},RL=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=kL(e,n);if(r==null)return t;t=r}return t},oh=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),IL=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),o=e.getItemMeta(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const a=[r.id],s=[o.id];let c=r.parentId,u=o.parentId,d=s.indexOf(c)!==-1,p=a.indexOf(u)!==-1,h=!0,g=!0;for(;!p&&!d;)h&&(a.push(c),d=s.indexOf(c)!==-1,h=c!==null,!d&&h&&(c=e.getItemMeta(c).parentId)),g&&!d&&(s.push(u),p=a.indexOf(u)!==-1,g=u!==null,!p&&g&&(u=e.getItemMeta(u).parentId));const y=d?c:u,b=e.getItemOrderedChildrenIds(y),x=a[a.indexOf(y)-1],S=s[s.indexOf(y)-1];return b.indexOf(x)<b.indexOf(S)?[t,n]:[n,t]},Ose=(e,t,n)=>{const r=u=>{if(e.isItemExpandable(u)&&e.isItemExpanded(u))return e.getItemOrderedChildrenIds(u)[0];let d=e.getItemMeta(u);for(;d!=null;){const p=e.getItemOrderedChildrenIds(d.parentId),h=e.getItemIndex(d.id);if(h<p.length-1)return p[h+1];d=e.getItemMeta(d.parentId)}throw new Error("Invalid range")},[o,a]=IL(e,t,n),s=[o];let c=o;for(;c!==a;)c=r(c),e.isItemDisabled(c)||s.push(c);return s},Nse=e=>{let t=oh(e);const n=[];for(;t!=null;)n.push(t),t=zg(e,t);return n},ah=(e,t)=>t!==e.closest('*[role="treeitem"]');let VI=0;const Pse=()=>(VI+=1,`mui-tree-view-${VI}`),AC=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,Lse=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:s},expansion:{expansionTrigger:c},treeId:u,instance:d,publicAPI:p}=cc(),h=w.useContext(_C),{id:g,itemId:y,label:b,children:x,rootRef:S}=e,{rootRef:T,contentRef:D,propsEnhancers:k}=t(e),{interactions:R,status:I}=Ise({itemId:y,children:x}),O=w.useRef(null),F=w.useRef(null),U=$u(S,T,O),H=$u(D,F),C=w.useRef(null),M=AC({itemId:y,treeId:u,id:g}),V=d.canItemBeTabbed(y)?0:-1,z={rootRefObject:O,contentRefObject:F,interactions:R},W=ee=>P=>{if(ee.onFocus?.(P),P.defaultMuiPrevented)return;const re=!I.disabled||r;!I.focused&&re&&P.currentTarget===P.target&&d.focusItem(P,y)},Y=ee=>P=>{if(ee.onBlur?.(P),P.defaultMuiPrevented)return;const re=d.getItemDOMElement(y);I.editing||P.relatedTarget&&ah(P.relatedTarget,re)&&(P.target&&P.target?.dataset?.element==="labelInput"&&ah(P.target,re)||P.relatedTarget?.dataset?.element==="labelInput")||d.removeFocusedItem()},B=ee=>P=>{ee.onKeyDown?.(P),!(P.defaultMuiPrevented||P.target?.dataset?.element==="labelInput")&&d.handleItemKeyDown(P,y)},J=ee=>P=>{ee.onDoubleClick?.(P),!P.defaultMuiPrevented&&R.toggleItemEditing()},ae=ee=>P=>{ee.onClick?.(P),n?.(P,y),!(P.defaultMuiPrevented||C.current?.contains(P.target))&&(c==="content"&&R.handleExpansion(P),s||R.handleSelection(P))},ne=ee=>P=>{ee.onMouseDown?.(P),!P.defaultMuiPrevented&&(P.shiftKey||P.ctrlKey||P.metaKey||I.disabled)&&P.preventDefault()},N=ee=>P=>{ee.onChange?.(P),!P.defaultMuiPrevented&&(a||I.disabled||R.handleCheckboxSelection(P))},K=ee=>P=>{ee.onClick?.(P),!P.defaultMuiPrevented&&c==="iconContainer"&&R.handleExpansion(P)};return{getRootProps:(ee={})=>{const P=at({},aa(e),aa(ee));let re;I.selected?re=!0:a||I.disabled?re=void 0:re=!1;const me=at({},P,{ref:U,role:"treeitem",tabIndex:V,id:M,"aria-expanded":I.expandable?I.expanded:void 0,"aria-selected":re,"aria-disabled":I.disabled||void 0},ee,{onFocus:W(P),onBlur:Y(P),onKeyDown:B(P)});o&&(me.style={"--TreeView-itemDepth":typeof h=="function"?h(y):h});const oe=k.root?.(at({},z,{externalEventHandlers:P}))??{};return at({},me,oe)},getContentProps:(ee={})=>{const P=aa(ee),re=at({},P,ee,{ref:H,onClick:ae(P),onMouseDown:ne(P),status:I});o&&(re.indentationAtItemLevel=!0);const me=k.content?.(at({},z,{externalEventHandlers:P}))??{};return at({},re,me)},getGroupTransitionProps:(ee={})=>{const P=aa(ee),re=at({},P,{unmountOnExit:!0,component:"ul",role:"group",in:I.expanded,children:x},ee);return o&&(re.indentationAtItemLevel=!0),re},getIconContainerProps:(ee={})=>{const P=aa(ee);return at({},P,ee,{onClick:K(P)})},getCheckboxProps:(ee={})=>{const P=aa(ee);return at({},P,{visible:s,ref:C,checked:I.selected,disabled:a||I.disabled,tabIndex:-1},ee,{onChange:N(P)})},getLabelProps:(ee={})=>{const P=at({},aa(ee)),re=at({},P,{children:b},ee,{onDoubleClick:J(P)});return d.isTreeViewEditable&&(re.editable=I.editable),re},getLabelInputProps:(ee={})=>{const P=aa(ee),re=k.labelInput?.({rootRefObject:O,contentRefObject:F,externalEventHandlers:P,interactions:R})??{};return at({},ee,re)},getDragAndDropOverlayProps:(ee={})=>{const P=aa(ee),re=k.dragAndDropOverlay?.(at({},z,{externalEventHandlers:P}))??{};return at({},ee,re)},rootRef:U,status:I,publicAPI:p}},Mse=Lse;function OL(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:s}}=cc(),c=t.isItemExpandable(e),u=t.isItemExpanded(e),d=t.isItemFocused(e),p=t.isItemSelected(e),h=t.isItemDisabled(e),g=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,y=t.isItemEditable?t.isItemEditable(e):!1,b=k=>{if(!h){d||t.focusItem(k,e);const R=r&&(k.shiftKey||k.ctrlKey||k.metaKey);c&&!(R&&t.isItemExpanded(e))&&t.toggleItemExpansion(k,e)}},x=k=>{h||(d||t.focusItem(k,e),r&&(k.shiftKey||k.ctrlKey||k.metaKey)?k.shiftKey?t.expandSelectionRange(k,e):t.selectItem({event:k,itemId:e,keepExistingSelection:!0}):t.selectItem({event:k,itemId:e,shouldBeSelected:!0}))},S=k=>{if(a||h)return;const R=k.nativeEvent.shiftKey;r&&R?t.expandSelectionRange(k,e):t.selectItem({event:k,itemId:e,keepExistingSelection:r,shouldBeSelected:k.target.checked})},T=k=>{(k.shiftKey||k.ctrlKey||k.metaKey||h)&&k.preventDefault()},D=()=>{Vl(t,ba)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:h,expanded:u,selected:p,focused:d,editable:y,editing:g,disableSelection:a,checkboxSelection:o,handleExpansion:b,handleSelection:x,handleCheckboxSelection:S,handleContentClick:n,preventSelection:T,expansionTrigger:s,toggleItemEditing:D,handleSaveItemLabel:(k,R)=>{Vl(t,ba)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,R),D(),t.focusItem(k,e))},handleCancelItemLabelEditing:k=>{Vl(t,ba)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(k,e))}}}const Fse=Nn("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>kg(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:Ft(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function Bse(e){return e.action==null?null:E.jsx(Fse,at({},e))}const jse=Nn("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>at({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),Use=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],NL=w.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:s,label:c,itemId:u,onClick:d,onMouseDown:p,dragAndDropOverlayProps:h,labelInputProps:g}=e,y=Wi(e,Use),{disabled:b,expanded:x,selected:S,focused:T,editing:D,editable:k,disableSelection:R,checkboxSelection:I,handleExpansion:O,handleSelection:F,handleCheckboxSelection:U,handleContentClick:H,preventSelection:C,expansionTrigger:M,toggleItemEditing:V}=OL(u),z=s||a||o,W=w.useRef(null),Y=ae=>{C(ae),p&&p(ae)},B=ae=>{H?.(ae,u),!W.current?.contains(ae.target)&&(M==="content"&&O(ae),I||F(ae),d&&d(ae))},J=ae=>{ae.defaultMuiPrevented||V()};return E.jsxs("div",at({},y,{className:nr(n.root,r,x&&n.expanded,S&&n.selected,T&&n.focused,b&&n.disabled,D&&n.editing,k&&n.editable),onClick:B,onMouseDown:Y,ref:t,children:[E.jsx("div",{className:n.iconContainer,children:z}),I&&E.jsx(SL,{className:n.checkbox,checked:S,onChange:U,disabled:b||R,ref:W,tabIndex:-1}),D?E.jsx(jse,at({},g,{className:n.labelInput})):E.jsx("div",at({className:n.label},k&&{onDoubleClick:J},{children:c})),h&&E.jsx(Bse,at({},h))]}))}),GI=e=>e,Hse=()=>{let e=GI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=GI}}},zse=Hse(),$se={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function wC(e,t,n="Mui"){const r=$se[t];return r?`${n}-${r}`:`${zse.generate(e)}-${t}`}function PL(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=wC(e,o,n)}),r}function Vse(e){return wC("MuiTreeItem",e)}const Ui=PL("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),LL=In(E.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),ML=In(E.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function kC(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=cc();return r({children:t,itemId:n,instance:o})}kC.propTypes={children:YR.node,itemId:YR.string.isRequired};const Gse=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],qse=["ownerState"],Wse=["ownerState"],Yse=["ownerState"],Kse=_L(),Qse=e=>{const{classes:t}=e;return CL({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},Vse,t)},Xse=Nn("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Zse=Nn(NL,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Ui.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Ui.label}`]:t.label}],shouldForwardProp:e=>Gs(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ui.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Ui.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ui.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ui.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Ui.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Ui.label}`]:at({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Ui.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Jse=Nn(rh,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Gs(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),ele=w.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:s},expansion:{expansionTrigger:c},treeId:u,instance:d}=cc(),p=w.useContext(_C),h=Kse({props:e,name:"MuiTreeItem"}),{children:g,className:y,slots:b,slotProps:x,ContentComponent:S=NL,ContentProps:T,itemId:D,id:k,label:R,onClick:I,onMouseDown:O,onBlur:F,onKeyDown:U}=h,H=Wi(h,Gse),{expanded:C,focused:M,selected:V,disabled:z,editing:W,handleExpansion:Y,handleCancelItemLabelEditing:B,handleSaveItemLabel:J}=OL(D),{contentRef:ae,rootRef:ne,propsEnhancers:N}=r(h),K=w.useRef(null),ee=w.useRef(null),P=$u(t,ne,K),re=$u(T?.ref,ae,ee),me={expandIcon:b?.expandIcon??n.slots.expandIcon??LL,collapseIcon:b?.collapseIcon??n.slots.collapseIcon??ML,endIcon:b?.endIcon??n.slots.endIcon,icon:b?.icon,groupTransition:b?.groupTransition},oe=Se=>Array.isArray(Se)?Se.length>0&&Se.some(oe):!!Se,ve=oe(g),ye=at({},h,{expanded:C,focused:M,selected:V,disabled:z,indentationAtItemLevel:a}),Ve=Qse(ye),Le=me.groupTransition??void 0,Oe=Bl({elementType:Le,ownerState:{},externalSlotProps:x?.groupTransition,additionalProps:at({unmountOnExit:!0,in:C,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:Ve.groupTransition}),Qe=Se=>{c==="iconContainer"&&Y(Se)},nt=C?me.collapseIcon:me.expandIcon,De=Bl({elementType:nt,ownerState:{},externalSlotProps:Se=>C?at({},$i(n.slotProps.collapseIcon,Se),$i(x?.collapseIcon,Se)):at({},$i(n.slotProps.expandIcon,Se),$i(x?.expandIcon,Se)),additionalProps:{onClick:Qe}}),gt=Wi(De,qse),Ct=ve&&nt?E.jsx(nt,at({},gt)):null,Be=ve?void 0:me.endIcon,mt=Bl({elementType:Be,ownerState:{},externalSlotProps:Se=>ve?{}:at({},$i(n.slotProps.endIcon,Se),$i(x?.endIcon,Se))}),it=Wi(mt,Wse),lt=Be?E.jsx(Be,at({},it)):null,je=me.icon,Pe=Bl({elementType:je,ownerState:{},externalSlotProps:x?.icon}),Jt=Wi(Pe,Yse),Mt=je?E.jsx(je,at({},Jt)):null;let _t;V?_t=!0:s||z?_t=void 0:_t=!1;function ue(Se){!M&&(!z||o)&&Se.currentTarget===Se.target&&d.focusItem(Se,D)}function ge(Se){F?.(Se),!(W||Se.relatedTarget&&ah(Se.relatedTarget,K.current)&&(Se.target&&Se.target?.dataset?.element==="labelInput"&&ah(Se.target,K.current)||Se.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const Ue=Se=>{U?.(Se),Se.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(Se,D)},Xe=AC({itemId:D,treeId:u,id:k}),Et=d.canItemBeTabbed(D)?0:-1,Je={rootRefObject:K,contentRefObject:ee,interactions:{handleSaveItemLabel:J,handleCancelItemLabelEditing:B}},en=N.root?.(at({},Je,{externalEventHandlers:aa(H)}))??{},Ut=N.content?.(at({},Je,{externalEventHandlers:aa(T)}))??{},Ke=N.dragAndDropOverlay?.(at({},Je,{externalEventHandlers:{}}))??{},Ee=N.labelInput?.(at({},Je,{externalEventHandlers:{}}))??{};return E.jsx(kC,{itemId:D,children:E.jsxs(Xse,at({className:nr(Ve.root,y),role:"treeitem","aria-expanded":ve?C:void 0,"aria-selected":_t,"aria-disabled":z||void 0,id:Xe,tabIndex:Et},H,{ownerState:ye,onFocus:ue,onBlur:ge,onKeyDown:Ue,ref:P,style:a?at({},H.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):H.style},en,{children:[E.jsx(Zse,at({as:S,classes:{root:Ve.content,expanded:Ve.expanded,selected:Ve.selected,focused:Ve.focused,disabled:Ve.disabled,editable:Ve.editable,editing:Ve.editing,iconContainer:Ve.iconContainer,label:Ve.label,labelInput:Ve.labelInput,checkbox:Ve.checkbox},label:R,itemId:D,onClick:I,onMouseDown:O,icon:Mt,expansionIcon:Ct,displayIcon:lt,ownerState:ye},T,Ut,Ke.action==null?{}:{dragAndDropOverlayProps:Ke},Ee.value==null?{}:{labelInputProps:Ee},{ref:re})),g&&E.jsx(Jse,at({as:Le},Oe,{children:g}))]}))})});function tle(e){const{slots:t,slotProps:n,status:r}=e,o=cc(),a=at({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??LL,collapseIcon:o.icons.slots.collapseIcon??ML}),s=o.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const u=t?.[c]??a[c],d=Bl({elementType:u,externalSlotProps:p=>at({},$i(s[c],p),$i(n?.[c],p)),ownerState:{}});return u?E.jsx(u,at({},d)):null}const nle=["visible"],rle=Nn("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),ole=Nn("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Gs(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ft(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),ale=Nn("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Gs(e)&&e!=="editable"})(({theme:e})=>at({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),ile=Nn("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Nn(rh,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Gs(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Nn(w.forwardRef((e,t)=>{const{visible:n}=e,r=Wi(e,nle);return n?E.jsx(SL,at({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function sle(e){return wC("MuiRichTreeView",e)}PL("MuiRichTreeView",["root"]);const lle=(e,t)=>{const n=w.useRef({}),[r,o]=w.useState(()=>{const a={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([c,u])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:u.getDefaultValue},a[c]=u.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(n.current).map(([a,s])=>{const c=t[a]??r[a];return[a,{value:c,setControlledValue:u=>{s.isControlled||o(d=>at({},d,{[a]:u}))}}]}))};class cle{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),a=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const c=o[s];r.highPriority.has(c)&&c.apply(this,n)}for(let s=0;s<a.length;s+=1){const c=a[s];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...a){r.removeListener(t,o),n.apply(r,a)})}}const ule=e=>e.isPropagationStopped!==void 0,FL=()=>{const[e]=w.useState(()=>new cle),t=w.useCallback((...r)=>{const[o,a,s={}]=r;s.defaultMuiPrevented=!1,!(ule(s)&&s.isPropagationStopped())&&e.emit(o,a,s)},[e]),n=w.useCallback((r,o)=>(e.on(r,o),()=>{e.removeListener(r,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};FL.params={};const BL=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};BL.params={};const DC=({params:e,state:t,setState:n})=>{w.useEffect(()=>{n(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:at({},o,{id:at({},o.id,{treeId:e.id??Pse()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};DC.params={id:!0};DC.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const dle=[FL,BL,DC],fle=["slots","slotProps","apiRef","experimentalFeatures"],ple=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,s=Wi(e.props,fle);const c={};a.forEach(g=>{Object.assign(c,g.params)});const u={},d={};Object.keys(s).forEach(g=>{const y=s[g];c[g]?u[g]=y:d[g]=y});const p=o??{},h=a.reduce((g,y)=>y.getDefaultizedParams?y.getDefaultizedParams({params:g,experimentalFeatures:p}):g,u);return{apiRef:r,forwardedProps:d,pluginParams:h,slots:t??{},slotProps:n??{},experimentalFeatures:p}},hle=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:o=>{let a=null,s=null;const c=[],u={};e.forEach(h=>{if(!h.itemPlugin)return;const g=h.itemPlugin({props:o,rootRef:a,contentRef:s});g?.rootRef&&(a=g.rootRef),g?.contentRef&&(s=g.contentRef),g?.propsEnhancers&&(c.push(g.propsEnhancers),Object.keys(g.propsEnhancers).forEach(y=>{u[y]=!0}))});const d=h=>g=>{const y={};return c.forEach(b=>{const x=b[h];x!=null&&Object.assign(y,x(g))}),y},p=Object.fromEntries(Object.keys(u).map(h=>[h,d(h)]));return{contentRef:s,rootRef:a,propsEnhancers:p}},wrapItem:({itemId:o,children:a})=>{let s=a;for(let c=e.length-1;c>=0;c-=1){const u=e[c];u.wrapItem&&(s=u.wrapItem({itemId:o,children:s,instance:t}))}return s},wrapRoot:({children:o})=>{let a=o;for(let s=e.length-1;s>=0;s-=1){const c=e[s];c.wrapRoot&&(a=c.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});function mle(e){const t=w.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const gle=({plugins:e,rootRef:t,props:n})=>{const r=[...dle,...e],{pluginParams:o,forwardedProps:a,apiRef:s,experimentalFeatures:c,slots:u,slotProps:d}=ple({plugins:r,props:n}),p=lle(r,o),h=w.useRef({}).current,g=mle(s),y=w.useRef(null),b=$u(y,t),x=hle({plugins:r,instance:h,publicAPI:g,rootRef:y}),[S,T]=w.useState(()=>{const R={};return r.forEach(I=>{I.getInitialState&&Object.assign(R,I.getInitialState(o))}),R}),D=[],k=R=>{const I=R({instance:h,params:o,slots:u,slotProps:d,experimentalFeatures:c,state:S,setState:T,rootRef:y,models:p,plugins:r});I.getRootProps&&D.push(I.getRootProps),I.publicAPI&&Object.assign(g,I.publicAPI),I.instance&&Object.assign(h,I.instance),I.contextValue&&Object.assign(x,I.contextValue)};return r.forEach(k),{getRootProps:(R={})=>{const I=at({role:"tree"},a,R,{ref:b});return D.forEach(O=>{Object.assign(I,O(R))}),I},rootRef:b,contextValue:x,instance:h}},yle=(e,t,n)=>{e.$$publishEvent(t,n)},gu="__TREE_VIEW_ROOT_PARENT_ID__",ble=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},vle=["children"],jL=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},s={[gu]:[]},c=(d,p,h)=>{const g=r?r(d):d.id;if(g==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(d)].join(`
|
|
350
|
+
`));if(o[g]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${g}"`].join(`
|
|
351
|
+
`));const y=n?n(d):d.label;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(d)].join(`
|
|
352
|
+
`));o[g]={id:g,label:y,parentId:h,idAttribute:void 0,expandable:!!d.children?.length,disabled:t?t(d):!1,depth:p},a[g]=d;const b=h??gu;s[b]||(s[b]=[]),s[b].push(g),d.children?.forEach(x=>c(x,p+1,g))};e.forEach(d=>c(d,0,null));const u={};return Object.keys(s).forEach(d=>{u[d]=ble(s[d])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:s,itemChildrenIndexes:u}},Oh=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=w.useCallback(S=>n.items.itemMetaMap[S],[n.items.itemMetaMap]),s=w.useCallback(S=>n.items.itemMap[S],[n.items.itemMap]),c=w.useCallback(()=>{const S=T=>{const D=n.items.itemMap[T],k=Wi(D,vle),R=n.items.itemOrderedChildrenIds[T];return R&&(k.children=R.map(S)),k};return n.items.itemOrderedChildrenIds[gu].map(S)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=w.useCallback(S=>{if(S==null)return!1;let T=e.getItemMeta(S);if(!T)return!1;if(T.disabled)return!0;for(;T.parentId!=null;)if(T=e.getItemMeta(T.parentId),T.disabled)return!0;return!1},[e]),d=w.useCallback(S=>{const T=e.getItemMeta(S).parentId??gu;return n.items.itemChildrenIndexes[T][S]},[e,n.items.itemChildrenIndexes]),p=w.useCallback(S=>n.items.itemOrderedChildrenIds[S??gu]??[],[n.items.itemOrderedChildrenIds]),h=S=>{const T=e.getItemMeta(S);return T==null?null:document.getElementById(AC({treeId:n.id.treeId,itemId:S,id:T.idAttribute}))},g=S=>t.disabledItemsFocusable?!0:!e.isItemDisabled(S),y=w.useRef(!1),b=w.useCallback(()=>{y.current=!0},[]),x=w.useCallback(()=>y.current,[]);return w.useEffect(()=>{e.areItemUpdatesPrevented()||r(S=>{const T=jL({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(S.items.itemMetaMap).forEach(D=>{T.itemMetaMap[D.id]||yle(e,"removeItem",{id:D.id})}),at({},S,{items:T})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:h,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:a,getItem:s,getItemTree:c,getItemsToRender:()=>{const S=T=>{const D=n.items.itemMetaMap[T];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[T]?.map(S)}};return n.items.itemOrderedChildrenIds[gu].map(S)},getItemIndex:d,getItemDOMElement:h,getItemOrderedChildrenIds:p,isItemDisabled:u,isItemNavigable:g,preventItemUpdates:b,areItemUpdatesPrevented:x},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};Oh.getInitialState=e=>({items:jL({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Oh.getDefaultizedParams=({params:e})=>at({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Oh.wrapRoot=({children:e,instance:t})=>E.jsx(_C.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Oh.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Ele=typeof window<"u"?w.useLayoutEffect:w.useEffect;function ku(e){const t=w.useRef(e);return Ele(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}const ib=({instance:e,params:t,models:n})=>{const r=w.useMemo(()=>{const h=new Map;return n.expandedItems.value.forEach(g=>{h.set(g,!0)}),h},[n.expandedItems.value]),o=(h,g)=>{t.onExpandedItemsChange?.(h,g),n.expandedItems.setControlledValue(g)},a=w.useCallback(h=>r.has(h),[r]),s=w.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),c=ku((h,g)=>{const y=e.isItemExpanded(g);e.setItemExpansion(h,g,!y)}),u=ku((h,g,y)=>{if(e.isItemExpanded(g)===y)return;let b;y?b=[g].concat(n.expandedItems.value):b=n.expandedItems.value.filter(x=>x!==g),t.onItemExpansionToggle&&t.onItemExpansionToggle(h,g,y),o(h,b)}),d=(h,g)=>{const y=e.getItemMeta(g),b=e.getItemOrderedChildrenIds(y.parentId).filter(S=>e.isItemExpandable(S)&&!e.isItemExpanded(S)),x=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(S=>{t.onItemExpansionToggle(h,S,!0)}),o(h,x))},p=w.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:u},instance:{isItemExpanded:a,isItemExpandable:s,setItemExpansion:u,toggleItemExpansion:c,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};ib.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const xle=[];ib.getDefaultizedParams=({params:e})=>at({},e,{defaultExpandedItems:e.defaultExpandedItems??xle});ib.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const $g=e=>Array.isArray(e)?e:e!=null?[e]:[],xE=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},sb=({instance:e,params:t,models:n})=>{const r=w.useRef(null),o=w.useRef({}),a=w.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(h=>{p.set(h,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),s=(p,h)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const g=h.filter(b=>!e.isItemSelected(b)),y=n.selectedItems.value.filter(b=>!h.includes(b));g.forEach(b=>{t.onItemSelectionToggle(p,b,!0)}),y.forEach(b=>{t.onItemSelectionToggle(p,b,!1)})}else h!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),h!=null&&t.onItemSelectionToggle(p,h,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,h),n.selectedItems.setControlledValue(h)},c=p=>a.has(p),u=({event:p,itemId:h,keepExistingSelection:g=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let b;if(g){const x=$g(n.selectedItems.value),S=e.isItemSelected(h);S&&(y===!1||y==null)?b=x.filter(T=>T!==h):!S&&(y===!0||y==null)?b=[h].concat(x):b=x}else y===!1||y==null&&e.isItemSelected(h)?b=t.multiSelect?[]:null:b=t.multiSelect?[h]:h;s(p,b),r.current=h,o.current={}},d=(p,[h,g])=>{if(t.disableSelection||!t.multiSelect)return;let y=$g(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(y=y.filter(T=>!o.current[T]));const b=xE(y),x=Ose(e,h,g),S=x.filter(T=>!b[T]);y=y.concat(S),s(p,y),o.current=xE(x)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:c,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=Nse(e);s(p,h),o.current=xE(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[g,y]=IL(e,h,r.current);d(p,[g,y])}},selectRangeFromStartToItem:(p,h)=>{d(p,[oh(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,RL(e)])},selectItemFromArrowNavigation:(p,h,g)=>{if(t.disableSelection||!t.multiSelect)return;let y=$g(n.selectedItems.value).slice();Object.keys(o.current).length===0?(y.push(g),o.current={[h]:!0,[g]:!0}):(o.current[h]||(o.current={}),o.current[g]?(y=y.filter(b=>b!==h),delete o.current[h]):(y.push(g),o.current[g]=!0)),s(p,y)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};sb.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const Tle=[];sb.getDefaultizedParams=({params:e})=>at({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?Tle:null)});sb.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};function Sle(e){return e&&e.ownerDocument||document}const qI=1e3;class Cle{constructor(t=qI){this.timeouts=new Map,this.cleanupTimeout=qI,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class _le{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class Ale{}function wle(e){let t=0;return function(n,r,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new _le:new Cle);const[a]=w.useState(new Ale),s=w.useRef(null),c=w.useRef(void 0);c.current=o;const u=w.useRef(null);if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d),t+=1,u.current={cleanupToken:t},e.registry.register(a,()=>{s.current?.(),s.current=null,u.current=null},u.current)}else!c.current&&s.current&&(s.current(),s.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));w.useEffect(()=>{if(!s.current&&c.current){const d=(p,h)=>{h.defaultMuiPrevented||c.current?.(p,h)};s.current=n.$$subscribeEvent(r,d)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{s.current?.(),s.current=null}},[n,r])}}const kle={registry:null},Dle=wle(kle),UL=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?UL(t.shadowRoot):t:null},Rle=(e,t)=>{let n=$g(t).find(r=>{if(!e.isItemNavigable(r))return!1;const o=e.getItemMeta(r);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))});return n==null&&(n=oh(e)),n},RC=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const s=Rle(e,o.selectedItems.value),c=ku(S=>{const T=typeof S=="function"?S(n.focusedItemId):S;n.focusedItemId!==T&&r(D=>at({},D,{focusedItemId:T}))}),u=w.useCallback(()=>!!a.current&&a.current.contains(UL(Sle(a.current))),[a]),d=w.useCallback(S=>n.focusedItemId===S&&u(),[n.focusedItemId,u]),p=S=>{const T=e.getItemMeta(S);return T&&(T.parentId==null||e.isItemExpanded(T.parentId))},h=(S,T)=>{const D=e.getItemDOMElement(T);D&&D.focus(),c(T),t.onItemFocus&&t.onItemFocus(S,T)},g=ku((S,T)=>{p(T)&&h(S,T)}),y=ku(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const S=e.getItemDOMElement(n.focusedItemId);S&&S.blur()}c(null)}}),b=S=>S===s;Dle(e,"removeItem",({id:S})=>{n.focusedItemId===S&&h(null,s)});const x=S=>T=>{S.onFocus?.(T),!T.defaultMuiPrevented&&T.target===T.currentTarget&&h(T,s)};return{getRootProps:S=>({onFocus:x(S)}),publicAPI:{focusItem:g},instance:{isItemFocused:d,canItemBeTabbed:b,focusItem:g,removeFocusedItem:y}}};RC.getInitialState=()=>({focusedItemId:null});RC.params={onItemFocus:!0};function Ile(e){return!!e&&e.length===1&&!!e.match(/\S/)}const HL=({instance:e,params:t,state:n})=>{const r=zte(),o=w.useRef({}),a=ku(d=>{o.current=d(o.current)});w.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const d={},p=h=>{d[h.id]=h.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),o.current=d},[n.items.itemMetaMap,t.getItemId,e]);const s=(d,p)=>{const h=p.toLowerCase(),g=S=>{const T=zg(e,S);return T===null?oh(e):T};let y=null,b=g(d);const x={};for(;y==null&&!x[b];)o.current[b]===h?y=b:(x[b]=!0,b=g(b));return y},c=d=>!t.disableSelection&&!e.isItemDisabled(d),u=d=>!e.isItemDisabled(d)&&e.isItemExpandable(d);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(d,p)=>{if(d.defaultMuiPrevented||d.altKey||ah(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,g=d.key;switch(!0){case(g===" "&&c(p)):{d.preventDefault(),t.multiSelect&&d.shiftKey?e.expandSelectionRange(d,p):e.selectItem({event:d,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case g==="Enter":{Vl(e,ba)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):c(p)&&(t.multiSelect?(d.preventDefault(),e.selectItem({event:d,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:d,itemId:p}),d.preventDefault()));break}case g==="ArrowDown":{const y=zg(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case g==="ArrowUp":{const y=DL(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case(g==="ArrowRight"&&!r||g==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const y=zg(e,p);y&&(e.focusItem(d,y),d.preventDefault())}else u(p)&&(e.toggleItemExpansion(d,p),d.preventDefault());break}case(g==="ArrowLeft"&&!r||g==="ArrowRight"&&r):{if(h)return;if(u(p)&&e.isItemExpanded(p))e.toggleItemExpansion(d,p),d.preventDefault();else{const y=e.getItemMeta(p).parentId;y&&(e.focusItem(d,y),d.preventDefault())}break}case g==="Home":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,oh(e)),d.preventDefault();break}case g==="End":{c(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,RL(e)),d.preventDefault();break}case g==="*":{e.expandAllSiblings(d,p),d.preventDefault();break}case(String.fromCharCode(d.keyCode)==="A"&&h&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(d),d.preventDefault();break}case(!h&&!d.shiftKey&&Ile(g)):{const y=s(p,g);y!=null&&(e.focusItem(d,y),d.preventDefault());break}}}}}};HL.params={};const zL=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});zL.params={};const Ole=[Oh,ib,sb,RC,HL,zL,ba],Nle=["ownerState"];function Ple({slots:e,slotProps:t,label:n,id:r,itemId:o,itemsToRender:a}){const s=e?.item??ele,c=Bl({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:o,id:r,label:n},ownerState:{itemId:o,label:n}}),u=Wi(c,Nle),d=w.useMemo(()=>a?E.jsx($L,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return E.jsx(s,at({},u,{children:d}))}function $L(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return E.jsx(w.Fragment,{children:t.map(o=>E.jsx(Ple,{slots:n,slotProps:r,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const Lle=_L(),Mle=e=>{const{classes:t}=e;return CL({root:["root"]},sle,t)},Fle=Nn("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Ble=w.forwardRef(function(e,t){const n=Lle({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:o,instance:a}=gle({plugins:Ole,rootRef:t,props:n}),{slots:s,slotProps:c}=n,u=Mle(n),d=s?.root??Fle,p=Bl({elementType:d,externalSlotProps:c?.root,className:u.root,getSlotProps:r,ownerState:n});return E.jsx(Dse,{value:o,children:E.jsx(d,at({},p,{children:E.jsx($L,{slots:s,slotProps:c,itemsToRender:a.getItemsToRender()})}))})}),jle=In(E.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),Ule=In([E.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),E.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Hle=In(E.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),zle=In(E.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function VL({items:e,defaultExpandedItems:t,navigate:n}){return E.jsx(Ble,{items:Wle(e,n),defaultExpandedItems:t,slots:{item:qle}})}const $le=mee(rh);function Vle(e){const t=tee({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return E.jsx($le,{style:t,...e})}function Gle({item:e,...t}){const n=E.jsxs(ale,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&E.jsx(jle,{})||e.fileType==="notebook"&&E.jsx(Ule,{})||e.fileType==="model"&&E.jsx(zle,{})||e.fileType=="database"&&E.jsx(Hle,{})||E.jsx(bL,{}),E.jsx(Ye,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?E.jsx(er,{title:e.error,placement:"right",children:n}):n}const qle=w.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:s,...c}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:g,status:y,publicAPI:b}=Mse({id:n,itemId:r,children:a,label:o,disabled:s,rootRef:t}),x=b.getItem(r);return y.selected=!1,y.focused=!1,E.jsx(kC,{itemId:r,children:E.jsxs(rle,{...u(c),children:[E.jsxs(ole,{...d(),...x.link&&{onClick:S=>x.link(S)},sx:{pointerEvents:!x.selectable&&"none"},children:[E.jsx(ile,{...h(),children:E.jsx(tle,{status:y})}),E.jsx(Gle,{...p({item:x})})]}),a&&E.jsx(Vle,{...g()})]})})});function Wle(e,t){const n=new Map;return e.map(r=>{let o=n;const a=r.path.split("/");a.forEach((s,c)=>{c===a.length-1?o.set(s,r):(o.has(s)||o.set(s,new Map),o=o.get(s))})}),GL(n,"",t)}function GL(e,t,n){const r=[];return e.forEach((o,a)=>{const s=a.endsWith(".malloy")&&"model"||a.endsWith(".malloynb")&&"notebook"||a.endsWith(".parquet")&&"database"||"unknown";if(s!=="unknown"){const c=o;r.push({id:t+a,label:a,fileType:s,link:s==="model"||s==="notebook"?u=>n(t+a,u):void 0,selectable:s==="model"||s==="notebook",error:"error"in c?c.error:void 0})}else t+=`${a}/`,r.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:GL(o,t,n)})}),r}const Yle=new Z0(new Qr),Kle=["notebooks/","models/"];function Qle({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Co(),{data:o,isError:a,error:s,isSuccess:c}=qo({queryKey:["models",t,n,r],queryFn:u=>Yle.listModels(t,n,r,u)});return E.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:E.jsxs($o,{children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),E.jsx(Hr,{}),E.jsxs(Zt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!a&&E.jsx(_a,{text:"Fetching Models..."}),a&&E.jsx(Go,{error:s,context:`${t} > ${n} > Models`}),c&&o.data.length>0&&E.jsx(VL,{items:o.data.sort((u,d)=>u.path.localeCompare(d.path)),navigate:e,defaultExpandedItems:Kle}),c&&o.data.length===0&&E.jsx(Ye,{variant:"body2",children:"No models found"})]})]})})}const Xle=new bP(new Qr),Zle=["notebooks/"];function Jle({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Co(),{data:o,isError:a,error:s,isSuccess:c}=qo({queryKey:["notebooks",t,n,r],queryFn:u=>Xle.listNotebooks(t,n,r,u)});return E.jsx(_r,{variant:"outlined",sx:{width:"100%"},children:E.jsxs($o,{children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),E.jsx(Hr,{}),E.jsxs(Zt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!a&&E.jsx(_a,{text:"Fetching Notebooks..."}),a&&E.jsx(Go,{error:s,context:`${t} > ${n} > Notebooks`}),c&&o.data.length>0&&E.jsx(VL,{items:o.data.sort((u,d)=>u.path.localeCompare(d.path)),defaultExpandedItems:Zle,navigate:e}),c&&o.data.length===0&&E.jsx(Ye,{variant:"body2",children:"No notebooks found"})]})]})})}const ece=new tre(new Qr);function tce(){const{projectName:e,packageName:t,versionId:n}=Co(),{data:r,isError:o,isLoading:a,error:s}=qo({queryKey:["schedules",e,t,n],queryFn:c=>ece.listSchedules(e,t,n,c)});return a?E.jsx(_a,{text:"Fetching Schedules..."}):o?E.jsx(Go,{error:s,context:`${e} > ${t} > Schedules`}):r.data.length?E.jsx(_r,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:E.jsxs($o,{children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),E.jsx(Hr,{}),E.jsx(Zt,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:E.jsx(x5,{component:Ju,children:E.jsxs(dy,{sx:{minWidth:300},size:"small",children:[E.jsx(xx,{children:E.jsxs(js,{children:[E.jsx(Un,{align:"left",children:"Resource"}),E.jsx(Un,{align:"left",children:"Schedule"}),E.jsx(Un,{align:"left",children:"Action"}),E.jsx(Un,{align:"left",children:"Connection"}),E.jsx(Un,{align:"left",children:"Last Run"}),E.jsx(Un,{align:"left",children:"Status"})]})}),E.jsx(fy,{children:r.data.map(c=>E.jsxs(js,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[E.jsx(Un,{align:"left",children:c.resource}),E.jsx(Un,{align:"left",children:c.schedule}),E.jsx(Un,{align:"left",children:c.action}),E.jsx(Un,{align:"left",children:c.connection}),E.jsx(Un,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),E.jsx(Un,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}const nce="README.malloynb";function rce({navigate:e}){return e||(e=t=>{window.location.href=t}),E.jsxs(Tr,{container:!0,spacing:2,columns:12,children:[E.jsx(Tr,{size:{xs:12,md:4},children:E.jsx(yie,{})}),E.jsx(Tr,{size:{xs:12,md:4},children:E.jsx(Jle,{navigate:e})}),E.jsx(Tr,{size:{xs:12,md:4},children:E.jsx(Qle,{navigate:e})}),E.jsx(Tr,{size:{xs:12,md:6},children:E.jsx(Tie,{})}),E.jsx(Tr,{size:{xs:12,md:6},children:E.jsx(Eie,{})}),E.jsx(Tr,{size:{xs:12,md:12},children:E.jsx(tce,{})}),E.jsx(Tr,{size:{xs:12,md:12},children:E.jsx(yL,{notebookPath:nce,hideEmbeddingIcons:!0})})]})}const oce=Ie(fu)({display:"flex",flexDirection:"column",height:"100%"});function ace({modelPath:e,sourceName:t,queryName:n,expandResult:r,hideResultIcon:o,expandEmbedding:a,hideEmbeddingIcon:s,noView:c,annotations:u}){const[d,p]=$e.useState(r),[h,g]=$e.useState(a),[y,b]=$e.useState(),[x,S]=$e.useState(),{packageName:T,projectName:D}=Co(),k=hL({modelPath:e,sourceName:t,queryName:n,optionalPackageName:T,optionalProjectName:D});return w.useEffect(()=>{tc(k,"typescript").then(R=>{b(R)})},[h,k]),w.useEffect(()=>{if(u&&u.length>0){const R=u.map(I=>`// ${I}`).join(`
|
|
353
|
+
`);tc(R,"typescript").then(I=>{S(I)})}},[u]),E.jsx(E.Fragment,{children:E.jsxs(oce,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[E.jsxs(hn,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[E.jsx(Ye,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${c?"":"View >"} ${n}`}),E.jsxs(T0,{sx:{padding:"0px"},children:[!o&&E.jsx(er,{title:d?"Hide Results":"Show Results",children:E.jsx(Jn,{size:"small",onClick:()=>{p(!d)},children:E.jsx(iie,{})})}),!s&&E.jsx(er,{title:h?"Hide Sharing":"Show Sharing",children:E.jsx(Jn,{size:"small",onClick:()=>{g(!h)},children:E.jsx(Ah,{})})})]})]}),E.jsxs(La,{in:h,timeout:"auto",unmountOnExit:!0,children:[E.jsx(Hr,{}),E.jsxs(hn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ye,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{dangerouslySetInnerHTML:{__html:y}})}),E.jsx(er,{title:"Copy Embeddable Code",children:E.jsx(Jn,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(k)},children:E.jsx(X0,{})})})]})]}),E.jsxs(La,{in:d,timeout:"auto",unmountOnExit:!0,children:[E.jsx(Hr,{sx:{mb:"4px"}}),x&&E.jsxs(E.Fragment,{children:[E.jsx(hn,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(Ye,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:x}})})}),E.jsx(Hr,{sx:{mb:"4px"}})]}),E.jsx(pu,{children:E.jsx(uie,{modelPath:e,sourceName:t,queryName:n})})]})]})})}const ice=new xP(new Qr),sce=Nn(x3)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),lce=Nn(Ur)(({theme:e,selected:t})=>({minHeight:36,padding:e.spacing(.5,2),borderRadius:e.shape.borderRadius,background:t?e.palette.action.selected:"none",color:t?e.palette.primary.main:e.palette.text.primary,fontWeight:t?600:400,border:t?`1px solid ${e.palette.primary.main}`:"1px solid transparent",boxShadow:t?e.shadows[1]:"none",textTransform:"uppercase","&:hover":{background:e.palette.action.hover,border:`1px solid ${e.palette.primary.light}`}}));function qL({sourceAndPaths:e,existingQuery:t,existingSourceName:n,onQueryChange:r,onSourceChange:o}){const[a,s]=$e.useState(n?e.findIndex(d=>d.sourceInfo.name===n):0),[c,u]=$e.useState(t||mp());return $e.useEffect(()=>{o&&o(a)},[a,o]),E.jsxs(_r,{variant:"outlined",children:[E.jsx($o,{children:E.jsx($k,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&E.jsx(sce,{children:e.map((d,p)=>E.jsx(lce,{selected:a===p,onClick:()=>s(p),children:d.sourceInfo.name||`Source ${p+1}`},d.sourceInfo.name||p))})})}),E.jsx(ab,{children:E.jsxs($k,{spacing:2,component:"section",children:[E.jsx(WL,{sourceAndPath:e[a],existingQuery:c,onChange:d=>{u(d),r&&r(d)}}),E.jsx(x3,{height:"5px"})]})})]})}function mp(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function cce({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o}){const[a,s]=$e.useState(n||mp()),[c,u]=$e.useState([]),{MalloyExplorerProvider:d,QueryPanel:p,ResizableCollapsiblePanel:h,ResultPanel:g,SourcePanel:y}=r;$e.useEffect(()=>{t&&t(a)},[t,a]);const{projectName:b,packageName:x,versionId:S}=Co(),T=sie({mutationFn:(I,O)=>{const F=new o.ASTQuery({source:e.sourceInfo,query:a?.malloyQuery}).toMalloy();return s({...a,query:F}),ice.executeQuery(b,x,e.modelPath,F,void 0,void 0,S,O)},onSuccess:I=>{if(I){const O=JSON.parse(I.data.result);s({...a,malloyResult:O})}}}),[D,k]=$e.useState(e.sourceInfo.name);$e.useEffect(()=>{D!==e.sourceInfo.name&&(k(e.sourceInfo.name),s(mp()))},[e,D]);const R=$e.useCallback(I=>{s({...a,malloyQuery:I})},[a]);return D!==e.sourceInfo.name?E.jsx("div",{children:"Loading..."}):E.jsx(uL,{children:E.jsx(dL,{children:E.jsx(d,{source:e.sourceInfo,query:a?.malloyQuery,onQueryChange:R,focusedNestViewPath:c,onFocusedNestViewPathChange:u,onDrill:I=>{console.info(I)},children:E.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:E.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[E.jsx(h,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:E.jsx(y,{onRefresh:()=>s(mp())})}),E.jsx(h,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:E.jsx(p,{runQuery:()=>{T.mutate()}})}),E.jsx(g,{source:e.sourceInfo,draftQuery:a?.malloyQuery,setDraftQuery:I=>s({...a,malloyQuery:I}),submittedQuery:a?.malloyQuery?{executionState:T.isPending?"running":"finished",response:{result:a.malloyResult},query:a.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:T.reset}:void 0,options:{showRawQuery:!0}})]})})})})},e.sourceInfo.name)}function WL(e){const[t,n]=w.useState(null),[r,o]=w.useState(null),[a,s]=w.useState(!0);return w.useEffect(()=>{let c=!0;return Promise.all([G(()=>import("./index-BsMlh93-.js"),__vite__mapDeps([93,94,95])),G(()=>import("./index-BsXDwHRS.js").then(u=>u.i),[])]).then(([u,d])=>{c&&(n(u),o(d),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),c&&s(!1)}),()=>{c=!1}},[]),a||!t||!r?E.jsx(uL,{children:E.jsx(dL,{children:E.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):E.jsx(cce,{...e,explorerComponents:t,QueryBuilder:r})}const uce=new Z0(new Qr);function dce({modelPath:e,expandResults:t,hideResultIcons:n,expandEmbeddings:r,hideEmbeddingIcons:o}){const[a,s]=$e.useState(!1),[c,u]=$e.useState(),[d,p]=$e.useState(0),{projectName:h,packageName:g,versionId:y}=Co(),b=fce(e);w.useEffect(()=>{tc(b,"typescript").then(k=>{u(k)})},[a,b]);const{data:x,isError:S,isLoading:T,error:D}=qo({queryKey:["package",h,g,e,y],queryFn:async k=>(await uce.getModel(h,g,e,y,k)).data});return T?E.jsx(_a,{text:"Fetching Model..."}):S?(console.log("error",D),E.jsx(Go,{error:D,context:`${g} > ${e}`})):E.jsxs(_r,{variant:"outlined",children:[E.jsxs($o,{children:[E.jsxs(hn,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[Array.isArray(x.sourceInfos)&&x.sourceInfos.length>0&&E.jsx(TK,{value:d,onChange:(k,R)=>p(R),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:x.sourceInfos.map((k,R)=>{let I;try{I=JSON.parse(k)}catch{I={name:String(R)}}return E.jsx(OY,{label:I.name||`Source ${R+1}`,sx:{minHeight:36}},I.name||R)})}),!o&&E.jsx(T0,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:E.jsx(er,{title:a?"Hide Embedding":"View Embedding",children:E.jsx(Jn,{size:"small",onClick:()=>{s(!a)},children:E.jsx(Ah,{})})})})]}),E.jsxs(La,{in:a,timeout:"auto",unmountOnExit:!0,children:[E.jsx(Hr,{}),E.jsxs(hn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[E.jsx(Ye,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:E.jsx("div",{dangerouslySetInnerHTML:{__html:c}})}),E.jsx(er,{title:"Copy Embeddable Code",children:E.jsx(Jn,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(b)},children:E.jsx(X0,{})})})]})]}),E.jsx(Hr,{})]}),E.jsx(ab,{children:E.jsxs(hn,{spacing:2,component:"section",children:[Array.isArray(x.sourceInfos)&&x.sourceInfos.length>0&&E.jsx(WL,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(x.sourceInfos[d])}}),x.queries?.length>0&&E.jsxs(_r,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[E.jsx($o,{sx:{p:"10px"},children:E.jsx(Ye,{variant:"subtitle1",children:"Named Queries"})}),E.jsx(hn,{spacing:1,component:"section",children:x.queries.map(k=>E.jsx(ace,{modelPath:e,queryName:k.name,expandResult:t,hideResultIcon:n,expandEmbedding:r,hideEmbeddingIcon:o,noView:!0,annotations:k.annotations},k.name))}),E.jsx(Zt,{height:"10px"})]}),E.jsx(Zt,{height:"5px"})]})})]})}function fce(e){return`<Model
|
|
354
|
+
modelPath="${e}"
|
|
355
|
+
accessToken={accessToken}
|
|
356
|
+
/>`}class YL{makeKey(t,n){let r=`BROWSER_NOTEBOOK_STORAGE__${t.project}/${t.package}`;return n&&(r+=`/${n}`),r}listNotebooks(t){const n=this.makeKey(t),r=[];for(let o=0;o<localStorage.length;o++){const a=localStorage.key(o);if(a&&a.startsWith(n+"/")){const s=a.substring(n.length+1);r.push(s)}}return r}getNotebook(t,n){const r=this.makeKey(t,n),o=localStorage.getItem(r);if(o===null)throw new Error(`Notebook not found at path: ${n}`);return o}deleteNotebook(t,n){const r=this.makeKey(t,n);if(localStorage.getItem(r)===null)throw new Error(`Notebook not found at path: ${n}`);localStorage.removeItem(r)}saveNotebook(t,n,r){const o=this.makeKey(t,n);localStorage.setItem(o,r)}moveNotebook(t,n,r){const o=this.makeKey(t,n),a=this.makeKey(t,r),s=localStorage.getItem(o);if(s===null)throw new Error(`Notebook not found at path: ${n}`);localStorage.setItem(a,s),localStorage.removeItem(o)}}const pce=In(E.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),ou=iS({createStyledComponent:Nn("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ld({props:e,name:"MuiStack"})});function pd(){const e=MT();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}class gp{constructor(t,n,r){this.notebookData=r,this.notebookStorage=t,this.userContext=n,this.notebookData?this.isSaved=!0:(this.notebookData={models:[],cells:[],notebookPath:void 0},this.isSaved=!1)}isSaved;notebookStorage;userContext;getNotebookData(){return this.notebookData}getNotebookPath(){return this.notebookData.notebookPath}renameNotebook(t){if(this.notebookData.notebookPath!==t)try{this.notebookStorage.deleteNotebook(this.userContext,this.notebookData.notebookPath)}catch{}return this.notebookData.notebookPath=t,this.isSaved=!1,this.saveNotebook(),this}getCells(){return this.notebookData.cells}deleteCell(t){return this.notebookData.cells=[...this.notebookData.cells.slice(0,t),...this.notebookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.notebookData.cells=[...this.notebookData.cells.slice(0,t),n,...this.notebookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.notebookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.notebookData.models=t,this.isSaved=!1,this}getModels(){return this.notebookData.models}updateNotebookData(t){return this.notebookData=t,this.isSaved=!1,this}saveNotebook(){if(!this.isSaved){if(!this.notebookData.notebookPath)throw new Error("Notebook path is not set");this.notebookStorage.saveNotebook(this.userContext,this.notebookData.notebookPath,JSON.stringify(this.notebookData)),this.isSaved=!0}return new gp(this.notebookStorage,this.userContext,this.notebookData)}toMalloyNotebook(){return this.notebookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
357
|
+
`+t.value:`>>>malloy
|
|
358
|
+
import {${t.sourceName}}" from '${t.modelPath}'"
|
|
359
|
+
`+t.value+`
|
|
360
|
+
`).join(`
|
|
361
|
+
`)}static newNotebook(t,n){return new gp(t,n,void 0)}static loadNotebook(t,n,r){let o;try{const a=t.getNotebook(n,r);a&&(o=JSON.parse(a))}catch{o={models:[],cells:[],notebookPath:r}}return new gp(t,n,o)}}const KL=w.createContext(void 0),hce=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return E.jsx(KL.Provider,{value:r,children:n})},IC=()=>{const e=w.useContext(KL);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},pg=In(E.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),WI=In(E.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}));function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(null,arguments)}function jy(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(null,arguments)}function mce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const gce=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yce=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bce={};function YI(e,t){return(bce.jsx?yce:gce).test(e)}var au={},TE,KI;function vce(){if(KI)return TE;KI=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u=`
|
|
362
|
+
`,d="/",p="*",h="",g="comment",y="declaration";TE=function(x,S){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];S=S||{};var T=1,D=1;function k(z){var W=z.match(t);W&&(T+=W.length);var Y=z.lastIndexOf(u);D=~Y?z.length-Y:D+z.length}function R(){var z={line:T,column:D};return function(W){return W.position=new I(z),U(),W}}function I(z){this.start=z,this.end={line:T,column:D},this.source=S.source}I.prototype.content=x;function O(z){var W=new Error(S.source+":"+T+":"+D+": "+z);if(W.reason=z,W.filename=S.source,W.line=T,W.column=D,W.source=x,!S.silent)throw W}function F(z){var W=z.exec(x);if(W){var Y=W[0];return k(Y),x=x.slice(Y.length),W}}function U(){F(n)}function H(z){var W;for(z=z||[];W=C();)W!==!1&&z.push(W);return z}function C(){var z=R();if(!(d!=x.charAt(0)||p!=x.charAt(1))){for(var W=2;h!=x.charAt(W)&&(p!=x.charAt(W)||d!=x.charAt(W+1));)++W;if(W+=2,h===x.charAt(W-1))return O("End of comment missing");var Y=x.slice(2,W-2);return D+=2,k(Y),x=x.slice(W),D+=2,z({type:g,comment:Y})}}function M(){var z=R(),W=F(r);if(W){if(C(),!F(o))return O("property missing ':'");var Y=F(a),B=z({type:y,property:b(W[0].replace(e,h)),value:Y?b(Y[0].replace(e,h)):h});return F(s),B}}function V(){var z=[];H(z);for(var W;W=M();)W!==!1&&(z.push(W),H(z));return z}return U(),V()};function b(x){return x?x.replace(c,h):h}return TE}var QI;function Ece(){if(QI)return au;QI=1;var e=au&&au.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(au,"__esModule",{value:!0}),au.default=n;var t=e(vce());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),c=typeof o=="function";return s.forEach(function(u){if(u.type==="declaration"){var d=u.property,p=u.value;c?o(d,p,u):p&&(a=a||{},a[d]=p)}}),a}return au}var Bf={},XI;function xce(){if(XI)return Bf;XI=1,Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(d){return!d||n.test(d)||e.test(d)},s=function(d,p){return p.toUpperCase()},c=function(d,p){return"".concat(p,"-")},u=function(d,p){return p===void 0&&(p={}),a(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(o,c):d=d.replace(r,c),d.replace(t,s))};return Bf.camelCase=u,Bf}var jf,ZI;function Tce(){if(ZI)return jf;ZI=1;var e=jf&&jf.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Ece()),n=xce();function r(o,a){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(c,u){c&&u&&(s[(0,n.camelCase)(c,a)]=u)}),s}return r.default=r,jf=r,jf}var Sce=Tce();const Cce=H0(Sce),lb=QL("end"),gi=QL("start");function QL(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function _ce(e){const t=gi(e),n=lb(e);if(t&&n)return{start:t,end:n}}function yp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?JI(e.position):"start"in e||"end"in e?JI(e):"line"in e||"column"in e?dT(e):""}function dT(e){return eO(e&&e.line)+":"+eO(e&&e.column)}function JI(e){return dT(e&&e.start)+"-"+dT(e&&e.end)}function eO(e){return e&&typeof e=="number"?e:1}class Xr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?o=t:!a.cause&&t&&(s=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=c?c.line:void 0,this.name=yp(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xr.prototype.file="";Xr.prototype.name="";Xr.prototype.reason="";Xr.prototype.message="";Xr.prototype.stack="";Xr.prototype.column=void 0;Xr.prototype.line=void 0;Xr.prototype.ancestors=void 0;Xr.prototype.cause=void 0;Xr.prototype.fatal=void 0;Xr.prototype.place=void 0;Xr.prototype.ruleId=void 0;Xr.prototype.source=void 0;const OC={}.hasOwnProperty,Ace=new Map,wce=/[A-Z]/g,kce=new Set(["table","tbody","thead","tfoot","tr"]),Dce=new Set(["td","th"]),XL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rce(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Bce(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Fce(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?es:dd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ZL(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function ZL(e,t,n){if(t.type==="element")return Ice(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Oce(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Pce(e,t,n);if(t.type==="mdxjsEsm")return Nce(e,t);if(t.type==="root")return Lce(e,t,n);if(t.type==="text")return Mce(e,t)}function Ice(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=es,e.schema=o),e.ancestors.push(t);const a=e6(e,t.tagName,!1),s=jce(e,t);let c=PC(e,t);return kce.has(t.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!Ih(u):!0})),JL(e,s,a,t),NC(s,c),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Oce(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ih(e,t.position)}function Nce(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ih(e,t.position)}function Pce(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=es,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:e6(e,t.name,!0),s=Uce(e,t),c=PC(e,t);return JL(e,s,a,t),NC(s,c),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Lce(e,t,n){const r={};return NC(r,PC(e,t)),e.create(t,e.Fragment,r,n)}function Mce(e,t){return t.value}function JL(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function NC(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Fce(e,t,n){return r;function r(o,a,s,c){const u=Array.isArray(s.children)?n:t;return c?u(a,s,c):u(a,s)}}function Bce(e,t){return n;function n(r,o,a,s){const c=Array.isArray(a.children),u=gi(r);return t(o,a,s,c,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function jce(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&OC.call(t.properties,o)){const a=Hce(e,o,t.properties[o]);if(a){const[s,c]=a;e.tableCellAlignToStyle&&s==="align"&&typeof c=="string"&&Dce.has(t.tagName)?r=c:n[s]=c}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Uce(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else ih(e,t.position);else{const o=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else ih(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function PC(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Ace;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const d=o.get(u)||0;s=u+"-"+d,o.set(u,d+1)}}const c=ZL(e,a,s);c!==void 0&&n.push(c)}return n}function Hce(e,t,n){const r=Rh(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?tb(n):nb(n)),r.property==="style"){let o=typeof n=="object"?n:zce(e,String(n));return e.stylePropertyNameCase==="css"&&(o=$ce(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?hoe[r.property]||r.property:r.attribute,n]}}function zce(e,t){try{return Cce(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new Xr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=XL+"#cannot-parse-style-attribute",o}}function e6(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,s;for(;++a<o.length;){const c=YI(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};s=s?{type:"MemberExpression",object:s,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}r=s}else r=YI(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return OC.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);ih(e)}function ih(e,t){const n=new Xr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=XL+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $ce(e){const t={};let n;for(n in e)OC.call(e,n)&&(t[Vce(n)]=e[n]);return t}function Vce(e){let t=e.replace(wce,Gce);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Gce(e){return"-"+e.toLowerCase()}const SE={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"]},qce={};function LC(e,t){const n=qce,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return t6(e,r,o)}function t6(e,t,n){if(Wce(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return tO(e.children,t,n)}return Array.isArray(e)?tO(e,t,n):""}function tO(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=t6(e[o],t,n);return r.join("")}function Wce(e){return!!(e&&typeof e=="object")}const nO=document.createElement("i");function MC(e){const t="&"+e+";";nO.innerHTML=t;const n=nO.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ho(e,t,n,r){const o=e.length;let a=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function pa(e,t){return e.length>0?(Ho(e,e.length,0,t),e):t}const rO={}.hasOwnProperty;function n6(e){const t={};let n=-1;for(;++n<e.length;)Yce(t,e[n]);return t}function Yce(e,t){let n;for(n in t){const r=(rO.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){rO.call(r,a)||(r[a]=[]);const s=o[a];Kce(r[a],Array.isArray(s)?s:s?[s]:[])}}}function Kce(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ho(e,0,0,r)}function r6(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ma(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const no=nl(/[A-Za-z]/),Kr=nl(/[\dA-Za-z]/),Qce=nl(/[#-'*+\--9=?A-Z^-~]/);function Uy(e){return e!==null&&(e<32||e===127)}const fT=nl(/\d/),Xce=nl(/[\dA-Fa-f]/),Zce=nl(/[!-/:-@[-`{-~]/);function vt(e){return e!==null&&e<-2}function wn(e){return e!==null&&(e<0||e===32)}function Yt(e){return e===-2||e===-1||e===32}const cb=nl(/\p{P}|\p{S}/u),nc=nl(/\s/);function nl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function hd(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&Kr(e.charCodeAt(n+1))&&Kr(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(n+1);a<56320&&c>56319&&c<57344?(s=String.fromCharCode(a,c),o=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function nn(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Yt(u)?(e.enter(n),c(u)):t(u)}function c(u){return Yt(u)&&a++<o?(e.consume(u),c):(e.exit(n),t(u))}}const Jce={tokenize:eue};function eue(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),nn(e,t,"linePrefix")}function o(c){return e.enter("paragraph"),a(c)}function a(c){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(c)}function s(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return vt(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),s)}}const tue={tokenize:nue},oO={tokenize:rue};function nue(e){const t=this,n=[];let r=0,o,a,s;return c;function c(k){if(r<n.length){const R=n[r];return t.containerState=R[1],e.attempt(R[0].continuation,u,d)(k)}return d(k)}function u(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&D();const R=t.events.length;let I=R,O;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){O=t.events[I][1].end;break}T(r);let F=R;for(;F<t.events.length;)t.events[F][1].end={...O},F++;return Ho(t.events,I+1,0,t.events.slice(R)),t.events.length=F,d(k)}return c(k)}function d(k){if(r===n.length){if(!o)return g(k);if(o.currentConstruct&&o.currentConstruct.concrete)return b(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(oO,p,h)(k)}function p(k){return o&&D(),T(r),g(k)}function h(k){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(k)}function g(k){return t.containerState={},e.attempt(oO,y,b)(k)}function y(k){return r++,n.push([t.currentConstruct,t.containerState]),g(k)}function b(k){if(k===null){o&&D(),T(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),x(k)}function x(k){if(k===null){S(e.exit("chunkFlow"),!0),T(0),e.consume(k);return}return vt(k)?(e.consume(k),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(k),x)}function S(k,R){const I=t.sliceStream(k);if(R&&I.push(null),k.previous=a,a&&(a.next=k),a=k,o.defineSkip(k.start),o.write(I),t.parser.lazy[k.start.line]){let O=o.events.length;for(;O--;)if(o.events[O][1].start.offset<s&&(!o.events[O][1].end||o.events[O][1].end.offset>s))return;const F=t.events.length;let U=F,H,C;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(H){C=t.events[U][1].end;break}H=!0}for(T(r),O=F;O<t.events.length;)t.events[O][1].end={...C},O++;Ho(t.events,U+1,0,t.events.slice(F)),t.events.length=O}}function T(k){let R=n.length;for(;R-- >k;){const I=n[R];t.containerState=I[1],I[0].exit.call(t,e)}n.length=k}function D(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function rue(e,t,n){return nn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vu(e){if(e===null||wn(e)||nc(e))return 1;if(cb(e))return 2}function ub(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const pT={name:"attention",resolveAll:oue,tokenize:aue};function oue(e,t){let n=-1,r,o,a,s,c,u,d,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},g={...e[n][1].start};aO(h,-u),aO(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},c={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:u>1?"strong":"emphasis",start:{...s.start},end:{...c.end}},e[r][1].end={...s.start},e[n][1].start={...c.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=pa(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=pa(d,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",a,t]]),d=pa(d,ub(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=pa(d,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=pa(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Ho(e,r-1,n-r+3,d),n=r+d.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function aue(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Vu(r);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),c(u)}function c(u){if(u===a)return e.consume(u),c;const d=e.exit("attentionSequence"),p=Vu(u),h=!p||p===2&&o||n.includes(u),g=!o||o===2&&p||n.includes(r);return d._open=!!(a===42?h:h&&(o||!g)),d._close=!!(a===42?g:g&&(p||!h)),t(u)}}function aO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const iue={name:"autolink",tokenize:sue};function sue(e,t,n){let r=0;return o;function o(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(y){return no(y)?(e.consume(y),s):y===64?n(y):d(y)}function s(y){return y===43||y===45||y===46||Kr(y)?(r=1,c(y)):d(y)}function c(y){return y===58?(e.consume(y),r=0,u):(y===43||y===45||y===46||Kr(y))&&r++<32?(e.consume(y),c):(r=0,d(y))}function u(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Uy(y)?n(y):(e.consume(y),u)}function d(y){return y===64?(e.consume(y),p):Qce(y)?(e.consume(y),d):n(y)}function p(y){return Kr(y)?h(y):n(y)}function h(y){return y===46?(e.consume(y),r=0,p):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):g(y)}function g(y){if((y===45||Kr(y))&&r++<63){const b=y===45?g:h;return e.consume(y),b}return n(y)}}const Nh={partial:!0,tokenize:lue};function lue(e,t,n){return r;function r(a){return Yt(a)?nn(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||vt(a)?t(a):n(a)}}const o6={continuation:{tokenize:uue},exit:due,name:"blockQuote",tokenize:cue};function cue(e,t,n){const r=this;return o;function o(s){if(s===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return Yt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function uue(e,t,n){const r=this;return o;function o(s){return Yt(s)?nn(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(o6,t,n)(s)}}function due(e){e.exit("blockQuote")}const a6={name:"characterEscape",tokenize:fue};function fue(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return Zce(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const i6={name:"characterReference",tokenize:pue};function pue(e,t,n){const r=this;let o=0,a,s;return c;function c(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),a=31,s=Kr,p(h))}function d(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=Xce,p):(e.enter("characterReferenceValue"),a=7,s=fT,p(h))}function p(h){if(h===59&&o){const g=e.exit("characterReferenceValue");return s===Kr&&!MC(r.sliceSerialize(g))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&o++<a?(e.consume(h),p):n(h)}}const iO={partial:!0,tokenize:mue},sO={concrete:!0,name:"codeFenced",tokenize:hue};function hue(e,t,n){const r=this,o={partial:!0,tokenize:I};let a=0,s=0,c;return u;function u(O){return d(O)}function d(O){const F=r.events[r.events.length-1];return a=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,c=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(O)}function p(O){return O===c?(s++,e.consume(O),p):s<3?n(O):(e.exit("codeFencedFenceSequence"),Yt(O)?nn(e,h,"whitespace")(O):h(O))}function h(O){return O===null||vt(O)?(e.exit("codeFencedFence"),r.interrupt?t(O):e.check(iO,x,R)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(O))}function g(O){return O===null||vt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(O)):Yt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nn(e,y,"whitespace")(O)):O===96&&O===c?n(O):(e.consume(O),g)}function y(O){return O===null||vt(O)?h(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(O))}function b(O){return O===null||vt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(O)):O===96&&O===c?n(O):(e.consume(O),b)}function x(O){return e.attempt(o,R,S)(O)}function S(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),T}function T(O){return a>0&&Yt(O)?nn(e,D,"linePrefix",a+1)(O):D(O)}function D(O){return O===null||vt(O)?e.check(iO,x,R)(O):(e.enter("codeFlowValue"),k(O))}function k(O){return O===null||vt(O)?(e.exit("codeFlowValue"),D(O)):(e.consume(O),k)}function R(O){return e.exit("codeFenced"),t(O)}function I(O,F,U){let H=0;return C;function C(Y){return O.enter("lineEnding"),O.consume(Y),O.exit("lineEnding"),M}function M(Y){return O.enter("codeFencedFence"),Yt(Y)?nn(O,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):V(Y)}function V(Y){return Y===c?(O.enter("codeFencedFenceSequence"),z(Y)):U(Y)}function z(Y){return Y===c?(H++,O.consume(Y),z):H>=s?(O.exit("codeFencedFenceSequence"),Yt(Y)?nn(O,W,"whitespace")(Y):W(Y)):U(Y)}function W(Y){return Y===null||vt(Y)?(O.exit("codeFencedFence"),F(Y)):U(Y)}}}function mue(e,t,n){const r=this;return o;function o(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const CE={name:"codeIndented",tokenize:yue},gue={partial:!0,tokenize:bue};function yue(e,t,n){const r=this;return o;function o(d){return e.enter("codeIndented"),nn(e,a,"linePrefix",5)(d)}function a(d){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?s(d):n(d)}function s(d){return d===null?u(d):vt(d)?e.attempt(gue,s,u)(d):(e.enter("codeFlowValue"),c(d))}function c(d){return d===null||vt(d)?(e.exit("codeFlowValue"),s(d)):(e.consume(d),c)}function u(d){return e.exit("codeIndented"),t(d)}}function bue(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):vt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):nn(e,a,"linePrefix",5)(s)}function a(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):vt(s)?o(s):n(s)}}const vue={name:"codeText",previous:xue,resolve:Eue,tokenize:Tue};function Eue(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function xue(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Tue(e,t,n){let r=0,o,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),c(h)}function c(h){return h===96?(e.consume(h),r++,c):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):h===96?(a=e.enter("codeTextSequence"),o=0,p(h)):vt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),d(h))}function d(h){return h===null||h===32||h===96||vt(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),d)}function p(h){return h===96?(e.consume(h),o++,p):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",d(h))}}class Sue{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Uf(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Uf(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Uf(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Uf(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Uf(this.left,n.reverse())}}}function Uf(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function s6(e){const t={};let n=-1,r,o,a,s,c,u,d;const p=new Sue(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(r=p.get(n),n&&r[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Cue(p,n)),n=t[n],d=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(s=p.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(p.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(r[1].end={...p.get(o)[1].start},c=p.slice(o,n),c.unshift(r),p.splice(o,n-o+1,c))}}return Ho(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function Cue(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const c=s.events,u=[],d={};let p,h,g=-1,y=n,b=0,x=0;const S=[x];for(;y;){for(;e.get(++o)[1]!==y;);a.push(o),y._tokenizer||(p=r.sliceStream(y),y.next||p.push(null),h&&s.defineSkip(y.start),y._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(p),y._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=y,y=y.next}for(y=n;++g<c.length;)c[g][0]==="exit"&&c[g-1][0]==="enter"&&c[g][1].type===c[g-1][1].type&&c[g][1].start.line!==c[g][1].end.line&&(x=g+1,S.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(s.events=[],y?(y._tokenizer=void 0,y.previous=void 0):S.pop(),g=S.length;g--;){const T=c.slice(S[g],S[g+1]),D=a.pop();u.push([D,D+T.length-1]),e.splice(D,2,T)}for(u.reverse(),g=-1;++g<u.length;)d[b+u[g][0]]=b+u[g][1],b+=u[g][1]-u[g][0]-1;return d}const _ue={resolve:wue,tokenize:kue},Aue={partial:!0,tokenize:Due};function wue(e){return s6(e),e}function kue(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(c)}function o(c){return c===null?a(c):vt(c)?e.check(Aue,s,a)(c):(e.consume(c),o)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function s(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Due(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),nn(e,a,"linePrefix")}function a(s){if(s===null||vt(s))return n(s);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function l6(e,t,n,r,o,a,s,c,u){const d=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(T){return T===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(T),e.exit(a),g):T===null||T===32||T===41||Uy(T)?n(T):(e.enter(r),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),x(T))}function g(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===62?(e.exit("chunkString"),e.exit(c),g(T)):T===null||T===60||vt(T)?n(T):(e.consume(T),T===92?b:y)}function b(T){return T===60||T===62||T===92?(e.consume(T),y):y(T)}function x(T){return!p&&(T===null||T===41||wn(T))?(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(r),t(T)):p<d&&T===40?(e.consume(T),p++,x):T===41?(e.consume(T),p--,x):T===null||T===32||T===40||Uy(T)?n(T):(e.consume(T),T===92?S:x)}function S(T){return T===40||T===41||T===92?(e.consume(T),x):x(T)}}function c6(e,t,n,r,o,a){const s=this;let c=0,u;return d;function d(y){return e.enter(r),e.enter(o),e.consume(y),e.exit(o),e.enter(a),p}function p(y){return c>999||y===null||y===91||y===93&&!u||y===94&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?n(y):y===93?(e.exit(a),e.enter(o),e.consume(y),e.exit(o),e.exit(r),t):vt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||y===91||y===93||vt(y)||c++>999?(e.exit("chunkString"),p(y)):(e.consume(y),u||(u=!Yt(y)),y===92?g:h)}function g(y){return y===91||y===92||y===93?(e.consume(y),c++,h):h(y)}}function u6(e,t,n,r,o,a){let s;return c;function c(g){return g===34||g===39||g===40?(e.enter(r),e.enter(o),e.consume(g),e.exit(o),s=g===40?41:g,u):n(g)}function u(g){return g===s?(e.enter(o),e.consume(g),e.exit(o),e.exit(r),t):(e.enter(a),d(g))}function d(g){return g===s?(e.exit(a),u(s)):g===null?n(g):vt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),nn(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===s||g===null||vt(g)?(e.exit("chunkString"),d(g)):(e.consume(g),g===92?h:p)}function h(g){return g===s||g===92?(e.consume(g),p):p(g)}}function bp(e,t){let n;return r;function r(o){return vt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Yt(o)?nn(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const Rue={name:"definition",tokenize:Oue},Iue={partial:!0,tokenize:Nue};function Oue(e,t,n){const r=this;let o;return a;function a(y){return e.enter("definition"),s(y)}function s(y){return c6.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return o=Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),u):n(y)}function u(y){return wn(y)?bp(e,d)(y):d(y)}function d(y){return l6(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(Iue,h,h)(y)}function h(y){return Yt(y)?nn(e,g,"whitespace")(y):g(y)}function g(y){return y===null||vt(y)?(e.exit("definition"),r.parser.defined.push(o),t(y)):n(y)}}function Nue(e,t,n){return r;function r(c){return wn(c)?bp(e,o)(c):n(c)}function o(c){return u6(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return Yt(c)?nn(e,s,"whitespace")(c):s(c)}function s(c){return c===null||vt(c)?t(c):n(c)}}const Pue={name:"hardBreakEscape",tokenize:Lue};function Lue(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return vt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Mue={name:"headingAtx",resolve:Fue,tokenize:Bue};function Fue(e,t){let n=e.length-2,r=3,o,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ho(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function Bue(e,t,n){let r=0;return o;function o(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),s(p)}function s(p){return p===35&&r++<6?(e.consume(p),s):p===null||wn(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||vt(p)?(e.exit("atxHeading"),t(p)):Yt(p)?nn(e,c,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),c(p))}function d(p){return p===null||p===35||wn(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),d)}}const jue=["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"],lO=["pre","script","style","textarea"],Uue={concrete:!0,name:"htmlFlow",resolveTo:$ue,tokenize:Vue},Hue={partial:!0,tokenize:que},zue={partial:!0,tokenize:Gue};function $ue(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Vue(e,t,n){const r=this;let o,a,s,c,u;return d;function d(P){return p(P)}function p(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),h}function h(P){return P===33?(e.consume(P),g):P===47?(e.consume(P),a=!0,x):P===63?(e.consume(P),o=3,r.interrupt?t:N):no(P)?(e.consume(P),s=String.fromCharCode(P),S):n(P)}function g(P){return P===45?(e.consume(P),o=2,y):P===91?(e.consume(P),o=5,c=0,b):no(P)?(e.consume(P),o=4,r.interrupt?t:N):n(P)}function y(P){return P===45?(e.consume(P),r.interrupt?t:N):n(P)}function b(P){const re="CDATA[";return P===re.charCodeAt(c++)?(e.consume(P),c===re.length?r.interrupt?t:V:b):n(P)}function x(P){return no(P)?(e.consume(P),s=String.fromCharCode(P),S):n(P)}function S(P){if(P===null||P===47||P===62||wn(P)){const re=P===47,me=s.toLowerCase();return!re&&!a&&lO.includes(me)?(o=1,r.interrupt?t(P):V(P)):jue.includes(s.toLowerCase())?(o=6,re?(e.consume(P),T):r.interrupt?t(P):V(P)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):a?D(P):k(P))}return P===45||Kr(P)?(e.consume(P),s+=String.fromCharCode(P),S):n(P)}function T(P){return P===62?(e.consume(P),r.interrupt?t:V):n(P)}function D(P){return Yt(P)?(e.consume(P),D):C(P)}function k(P){return P===47?(e.consume(P),C):P===58||P===95||no(P)?(e.consume(P),R):Yt(P)?(e.consume(P),k):C(P)}function R(P){return P===45||P===46||P===58||P===95||Kr(P)?(e.consume(P),R):I(P)}function I(P){return P===61?(e.consume(P),O):Yt(P)?(e.consume(P),I):k(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),u=P,F):Yt(P)?(e.consume(P),O):U(P)}function F(P){return P===u?(e.consume(P),u=null,H):P===null||vt(P)?n(P):(e.consume(P),F)}function U(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||wn(P)?I(P):(e.consume(P),U)}function H(P){return P===47||P===62||Yt(P)?k(P):n(P)}function C(P){return P===62?(e.consume(P),M):n(P)}function M(P){return P===null||vt(P)?V(P):Yt(P)?(e.consume(P),M):n(P)}function V(P){return P===45&&o===2?(e.consume(P),B):P===60&&o===1?(e.consume(P),J):P===62&&o===4?(e.consume(P),K):P===63&&o===3?(e.consume(P),N):P===93&&o===5?(e.consume(P),ne):vt(P)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Hue,ee,z)(P)):P===null||vt(P)?(e.exit("htmlFlowData"),z(P)):(e.consume(P),V)}function z(P){return e.check(zue,W,ee)(P)}function W(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Y}function Y(P){return P===null||vt(P)?z(P):(e.enter("htmlFlowData"),V(P))}function B(P){return P===45?(e.consume(P),N):V(P)}function J(P){return P===47?(e.consume(P),s="",ae):V(P)}function ae(P){if(P===62){const re=s.toLowerCase();return lO.includes(re)?(e.consume(P),K):V(P)}return no(P)&&s.length<8?(e.consume(P),s+=String.fromCharCode(P),ae):V(P)}function ne(P){return P===93?(e.consume(P),N):V(P)}function N(P){return P===62?(e.consume(P),K):P===45&&o===2?(e.consume(P),N):V(P)}function K(P){return P===null||vt(P)?(e.exit("htmlFlowData"),ee(P)):(e.consume(P),K)}function ee(P){return e.exit("htmlFlow"),t(P)}}function Gue(e,t,n){const r=this;return o;function o(s){return vt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function que(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Nh,t,n)}}const Wue={name:"htmlText",tokenize:Yue};function Yue(e,t,n){const r=this;let o,a,s;return c;function c(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),d):N===47?(e.consume(N),I):N===63?(e.consume(N),k):no(N)?(e.consume(N),U):n(N)}function d(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,b):no(N)?(e.consume(N),D):n(N)}function p(N){return N===45?(e.consume(N),y):n(N)}function h(N){return N===null?n(N):N===45?(e.consume(N),g):vt(N)?(s=h,J(N)):(e.consume(N),h)}function g(N){return N===45?(e.consume(N),y):h(N)}function y(N){return N===62?B(N):N===45?g(N):h(N)}function b(N){const K="CDATA[";return N===K.charCodeAt(a++)?(e.consume(N),a===K.length?x:b):n(N)}function x(N){return N===null?n(N):N===93?(e.consume(N),S):vt(N)?(s=x,J(N)):(e.consume(N),x)}function S(N){return N===93?(e.consume(N),T):x(N)}function T(N){return N===62?B(N):N===93?(e.consume(N),T):x(N)}function D(N){return N===null||N===62?B(N):vt(N)?(s=D,J(N)):(e.consume(N),D)}function k(N){return N===null?n(N):N===63?(e.consume(N),R):vt(N)?(s=k,J(N)):(e.consume(N),k)}function R(N){return N===62?B(N):k(N)}function I(N){return no(N)?(e.consume(N),O):n(N)}function O(N){return N===45||Kr(N)?(e.consume(N),O):F(N)}function F(N){return vt(N)?(s=F,J(N)):Yt(N)?(e.consume(N),F):B(N)}function U(N){return N===45||Kr(N)?(e.consume(N),U):N===47||N===62||wn(N)?H(N):n(N)}function H(N){return N===47?(e.consume(N),B):N===58||N===95||no(N)?(e.consume(N),C):vt(N)?(s=H,J(N)):Yt(N)?(e.consume(N),H):B(N)}function C(N){return N===45||N===46||N===58||N===95||Kr(N)?(e.consume(N),C):M(N)}function M(N){return N===61?(e.consume(N),V):vt(N)?(s=M,J(N)):Yt(N)?(e.consume(N),M):H(N)}function V(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),o=N,z):vt(N)?(s=V,J(N)):Yt(N)?(e.consume(N),V):(e.consume(N),W)}function z(N){return N===o?(e.consume(N),o=void 0,Y):N===null?n(N):vt(N)?(s=z,J(N)):(e.consume(N),z)}function W(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||wn(N)?H(N):(e.consume(N),W)}function Y(N){return N===47||N===62||wn(N)?H(N):n(N)}function B(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function J(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),ae}function ae(N){return Yt(N)?nn(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ne(N)}function ne(N){return e.enter("htmlTextData"),s(N)}}const FC={name:"labelEnd",resolveAll:Zue,resolveTo:Jue,tokenize:ede},Kue={tokenize:tde},Que={tokenize:nde},Xue={tokenize:rde};function Zue(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Ho(e,0,e.length,n),e}function Jue(e,t){let n=e.length,r=0,o,a,s,c;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(s=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},p={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return c=[["enter",u,t],["enter",d,t]],c=pa(c,e.slice(a+1,a+r+3)),c=pa(c,[["enter",p,t]]),c=pa(c,ub(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),c=pa(c,[["exit",p,t],e[s-2],e[s-1],["exit",d,t]]),c=pa(c,e.slice(s+1)),c=pa(c,[["exit",u,t]]),Ho(e,a,e.length,c),e}function ede(e,t,n){const r=this;let o=r.events.length,a,s;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return c;function c(g){return a?a._inactive?h(g):(s=r.parser.defined.includes(Ma(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),u):n(g)}function u(g){return g===40?e.attempt(Kue,p,s?p:h)(g):g===91?e.attempt(Que,p,s?d:h)(g):s?p(g):h(g)}function d(g){return e.attempt(Xue,p,h)(g)}function p(g){return t(g)}function h(g){return a._balanced=!0,n(g)}}function tde(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),o}function o(h){return wn(h)?bp(e,a)(h):a(h)}function a(h){return h===41?p(h):l6(e,s,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return wn(h)?bp(e,u)(h):p(h)}function c(h){return n(h)}function u(h){return h===34||h===39||h===40?u6(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function d(h){return wn(h)?bp(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function nde(e,t,n){const r=this;return o;function o(c){return c6.call(r,e,a,s,"reference","referenceMarker","referenceString")(c)}function a(c){return r.parser.defined.includes(Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function s(c){return n(c)}}function rde(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const ode={name:"labelStartImage",resolveAll:FC.resolveAll,tokenize:ade};function ade(e,t,n){const r=this;return o;function o(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),s):n(c)}function s(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const ide={name:"labelStartLink",resolveAll:FC.resolveAll,tokenize:sde};function sde(e,t,n){const r=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const _E={name:"lineEnding",tokenize:lde};function lde(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),nn(e,t,"linePrefix")}}const Vg={name:"thematicBreak",tokenize:cde};function cde(e,t,n){let r=0,o;return a;function a(d){return e.enter("thematicBreak"),s(d)}function s(d){return o=d,c(d)}function c(d){return d===o?(e.enter("thematicBreakSequence"),u(d)):r>=3&&(d===null||vt(d))?(e.exit("thematicBreak"),t(d)):n(d)}function u(d){return d===o?(e.consume(d),r++,u):(e.exit("thematicBreakSequence"),Yt(d)?nn(e,c,"whitespace")(d):c(d))}}const po={continuation:{tokenize:pde},exit:mde,name:"list",tokenize:fde},ude={partial:!0,tokenize:gde},dde={partial:!0,tokenize:hde};function fde(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return c;function c(y){const b=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:fT(y)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Vg,n,d)(y):d(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(y)}return n(y)}function u(y){return fT(y)&&++s<10?(e.consume(y),u):(!r.interrupt||s<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),d(y)):n(y)}function d(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Nh,r.interrupt?n:p,e.attempt(ude,g,h))}function p(y){return r.containerState.initialBlankLine=!0,a++,g(y)}function h(y){return Yt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),g):n(y)}function g(y){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function pde(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Nh,o,a);function o(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nn(e,t,"listItemIndent",r.containerState.size+1)(c)}function a(c){return r.containerState.furtherBlankLines||!Yt(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(dde,t,s)(c))}function s(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,nn(e,e.attempt(po,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function hde(e,t,n){const r=this;return nn(e,o,"listItemIndent",r.containerState.size+1);function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function mde(e){e.exit(this.containerState.type)}function gde(e,t,n){const r=this;return nn(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const s=r.events[r.events.length-1];return!Yt(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const cO={name:"setextUnderline",resolveTo:yde,tokenize:bde};function yde(e,t){let n=e.length,r,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function bde(e,t,n){const r=this;let o;return a;function a(d){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),o=d,s(d)):n(d)}function s(d){return e.enter("setextHeadingLineSequence"),c(d)}function c(d){return d===o?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Yt(d)?nn(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||vt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const vde={tokenize:Ede};function Ede(e){const t=this,n=e.attempt(Nh,r,e.attempt(this.parser.constructs.flowInitial,o,nn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(_ue,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const xde={resolveAll:f6()},Tde=d6("string"),Sde=d6("text");function d6(e){return{resolveAll:f6(e==="text"?Cde:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,s,c);return s;function s(p){return d(p)?a(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return d(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function d(p){if(p===null)return!0;const h=o[p];let g=-1;if(h)for(;++g<h.length;){const y=h[g];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function f6(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function Cde(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let a=o.length,s=-1,c=0,u;for(;a--;){const d=o[a];if(typeof d=="string"){for(s=d.length;d.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(d===-2)u=!0,c++;else if(d!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const d={type:n===e.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const _de={42:po,43:po,45:po,48:po,49:po,50:po,51:po,52:po,53:po,54:po,55:po,56:po,57:po,62:o6},Ade={91:Rue},wde={[-2]:CE,[-1]:CE,32:CE},kde={35:Mue,42:Vg,45:[cO,Vg],60:Uue,61:cO,95:Vg,96:sO,126:sO},Dde={38:i6,92:a6},Rde={[-5]:_E,[-4]:_E,[-3]:_E,33:ode,38:i6,42:pT,60:[iue,Wue],91:ide,92:[Pue,a6],93:FC,95:pT,96:vue},Ide={null:[pT,xde]},Ode={null:[42,95]},Nde={null:[]},Pde=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ode,contentInitial:Ade,disable:Nde,document:_de,flow:kde,flowInitial:wde,insideSpan:Ide,string:Dde,text:Rde},Symbol.toStringTag,{value:"Module"}));function Lde(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let s=[],c=[];const u={attempt:F(I),check:F(O),consume:D,enter:k,exit:R,interrupt:F(O,{interrupt:!0})},d={code:null,containerState:{},defineSkip:x,events:[],now:b,parser:e,previous:null,sliceSerialize:g,sliceStream:y,write:h};let p=t.tokenize.call(d,u);return t.resolveAll&&a.push(t),d;function h(M){return s=pa(s,M),S(),s[s.length-1]!==null?[]:(U(t,0),d.events=ub(a,d.events,d),d.events)}function g(M,V){return Fde(y(M),V)}function y(M){return Mde(s,M)}function b(){const{_bufferIndex:M,_index:V,line:z,column:W,offset:Y}=r;return{_bufferIndex:M,_index:V,line:z,column:W,offset:Y}}function x(M){o[M.line]=M.column,C()}function S(){let M;for(;r._index<s.length;){const V=s[r._index];if(typeof V=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<V.length;)T(V.charCodeAt(r._bufferIndex));else T(V)}}function T(M){p=p(M)}function D(M){vt(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,C()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=M}function k(M,V){const z=V||{};return z.type=M,z.start=b(),d.events.push(["enter",z,d]),c.push(z),z}function R(M){const V=c.pop();return V.end=b(),d.events.push(["exit",V,d]),V}function I(M,V){U(M,V.from)}function O(M,V){V.restore()}function F(M,V){return z;function z(W,Y,B){let J,ae,ne,N;return Array.isArray(W)?ee(W):"tokenize"in W?ee([W]):K(W);function K(oe){return ve;function ve(ye){const Ve=ye!==null&&oe[ye],Le=ye!==null&&oe.null,Oe=[...Array.isArray(Ve)?Ve:Ve?[Ve]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return ee(Oe)(ye)}}function ee(oe){return J=oe,ae=0,oe.length===0?B:P(oe[ae])}function P(oe){return ve;function ve(ye){return N=H(),ne=oe,oe.partial||(d.currentConstruct=oe),oe.name&&d.parser.constructs.disable.null.includes(oe.name)?me():oe.tokenize.call(V?Object.assign(Object.create(d),V):d,u,re,me)(ye)}}function re(oe){return M(ne,N),Y}function me(oe){return N.restore(),++ae<J.length?P(J[ae]):B}}}function U(M,V){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&Ho(d.events,V,d.events.length-V,M.resolve(d.events.slice(V),d)),M.resolveTo&&(d.events=M.resolveTo(d.events,d))}function H(){const M=b(),V=d.previous,z=d.currentConstruct,W=d.events.length,Y=Array.from(c);return{from:W,restore:B};function B(){r=M,d.previous=V,d.currentConstruct=z,d.events.length=W,c=Y,C()}}function C(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Mde(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,a)];else{if(s=e.slice(n,o),r>-1){const c=s[0];typeof c=="string"?s[0]=c.slice(r):s.shift()}a>0&&s.push(e[o].slice(0,a))}return s}function Fde(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
363
|
+
`;break}case-3:{s=`\r
|
|
364
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(a)}o=a===-2,r.push(s)}return r.join("")}function Bde(e){const t={constructs:n6([Pde,...(e||{}).extensions||[]]),content:n(Jce),defined:[],document:n(tue),flow:n(vde),lazy:{},string:n(Tde),text:n(Sde)};return t;function n(r){return o;function o(a){return Lde(t,r,a)}}}function jde(e){for(;!s6(e););return e}const uO=/[\0\t\n\r]/g;function Ude(){let e=1,t="",n=!0,r;return o;function o(a,s,c){const u=[];let d,p,h,g,y;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(uO.lastIndex=h,d=uO.exec(a),g=d&&d.index!==void 0?d.index:a.length,y=a.charCodeAt(g),!d){t=a.slice(h);break}if(y===10&&h===g&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<g&&(u.push(a.slice(h,g)),e+=g-h),y){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}h=g+1}return c&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Hde=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zde(e){return e.replace(Hde,$de)}function $de(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return r6(n.slice(o?2:1),o?16:10)}return MC(n)||e}const p6={}.hasOwnProperty;function Vde(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Gde(n)(jde(Bde(n).document().write(Ude()(e,t,!0))))}function Gde(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(it),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(gt),blockQuote:a(Le),characterEscape:H,characterReference:H,codeFenced:a(Oe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Oe,s),codeText:a(Qe,s),codeTextData:H,data:H,codeFlowValue:H,definition:a(nt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(De),hardBreakEscape:a(Ct),hardBreakTrailing:a(Ct),htmlFlow:a(Be,s),htmlFlowData:H,htmlText:a(Be,s),htmlTextData:H,image:a(mt),label:s,link:a(it),listItem:a(je),listItemValue:g,listOrdered:a(lt,h),listUnordered:a(lt),paragraph:a(Pe),reference:P,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(gt),strong:a(Jt),thematicBreak:a(_t)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:Ve,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:oe,characterReference:ve,codeFenced:u(S),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:b,codeFlowValue:C,codeIndented:u(T),codeText:u(Y),codeTextData:C,data:C,definition:u(),definitionDestinationString:R,definitionLabelString:D,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(V),hardBreakTrailing:u(V),htmlFlow:u(z),htmlFlowData:C,htmlText:u(W),htmlTextData:C,image:u(J),label:ne,labelText:ae,lineEnding:M,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:re,resourceDestinationString:N,resourceTitleString:K,resource:ee,setextHeading:u(U),setextHeadingLineSequence:F,setextHeadingText:O,strong:u(),thematicBreak:u()}};h6(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ge={type:"root",children:[]};const Ue={stack:[ge],tokenStack:[],config:t,enter:c,exit:d,buffer:s,resume:p,data:n},Xe=[];let Et=-1;for(;++Et<ue.length;)if(ue[Et][1].type==="listOrdered"||ue[Et][1].type==="listUnordered")if(ue[Et][0]==="enter")Xe.push(Et);else{const Je=Xe.pop();Et=o(ue,Je,Et)}for(Et=-1;++Et<ue.length;){const Je=t[ue[Et][0]];p6.call(Je,ue[Et][1].type)&&Je[ue[Et][1].type].call(Object.assign({sliceSerialize:ue[Et][2].sliceSerialize},Ue),ue[Et][1])}if(Ue.tokenStack.length>0){const Je=Ue.tokenStack[Ue.tokenStack.length-1];(Je[1]||dO).call(Ue,void 0,Je[0])}for(ge.position={start:Ns(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Ns(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Et=-1;++Et<t.transforms.length;)ge=t.transforms[Et](ge)||ge;return ge}function o(ue,ge,Ue){let Xe=ge-1,Et=-1,Je=!1,en,Ut,Ke,Ee;for(;++Xe<=Ue;){const Se=ue[Xe];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?Et++:Et--,Ee=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(en&&!Ee&&!Et&&!Ke&&(Ke=Xe),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!Et&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||Et===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(en){let ht=Xe;for(Ut=void 0;ht--;){const rt=ue[ht];if(rt[1].type==="lineEnding"||rt[1].type==="lineEndingBlank"){if(rt[0]==="exit")continue;Ut&&(ue[Ut][1].type="lineEndingBlank",Je=!0),rt[1].type="lineEnding",Ut=ht}else if(!(rt[1].type==="linePrefix"||rt[1].type==="blockQuotePrefix"||rt[1].type==="blockQuotePrefixWhitespace"||rt[1].type==="blockQuoteMarker"||rt[1].type==="listItemIndent"))break}Ke&&(!Ut||Ke<Ut)&&(en._spread=!0),en.end=Object.assign({},Ut?ue[Ut][1].start:Se[1].end),ue.splice(Ut||Xe,0,["exit",en,Se[2]]),Xe++,Ue++}if(Se[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};en=ht,ue.splice(Xe,0,["enter",ht,Se[2]]),Xe++,Ue++,Ke=void 0,Ee=!0}}}return ue[ge][1]._spread=Je,Ue}function a(ue,ge){return Ue;function Ue(Xe){c.call(this,ue(Xe),Xe),ge&&ge.call(this,Xe)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(ue,ge,Ue){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([ge,Ue||void 0]),ue.position={start:Ns(ge.start),end:void 0}}function u(ue){return ge;function ge(Ue){ue&&ue.call(this,Ue),d.call(this,Ue)}}function d(ue,ge){const Ue=this.stack.pop(),Xe=this.tokenStack.pop();if(Xe)Xe[0].type!==ue.type&&(ge?ge.call(this,ue,Xe[0]):(Xe[1]||dO).call(this,ue,Xe[0]));else throw new Error("Cannot close `"+ue.type+"` ("+yp({start:ue.start,end:ue.end})+"): it’s not open");Ue.position.end=Ns(ue.end)}function p(){return LC(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(ue){if(this.data.expectingFirstListItemValue){const ge=this.stack[this.stack.length-2];ge.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.lang=ue}function b(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.meta=ue}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ue.replace(/(\r?\n|\r)$/g,"")}function D(ue){const ge=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=ge,Ue.identifier=Ma(this.sliceSerialize(ue)).toLowerCase()}function k(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.title=ue}function R(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.url=ue}function I(ue){const ge=this.stack[this.stack.length-1];if(!ge.depth){const Ue=this.sliceSerialize(ue).length;ge.depth=Ue}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function F(ue){const ge=this.stack[this.stack.length-1];ge.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function H(ue){const ge=this.stack[this.stack.length-1].children;let Ue=ge[ge.length-1];(!Ue||Ue.type!=="text")&&(Ue=Mt(),Ue.position={start:Ns(ue.start),end:void 0},ge.push(Ue)),this.stack.push(Ue)}function C(ue){const ge=this.stack.pop();ge.value+=this.sliceSerialize(ue),ge.position.end=Ns(ue.end)}function M(ue){const ge=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ue=ge.children[ge.children.length-1];Ue.position.end=Ns(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ge.type)&&(H.call(this,ue),C.call(this,ue))}function V(){this.data.atHardBreak=!0}function z(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ue}function W(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ue}function Y(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.value=ue}function B(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ge,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function J(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ge,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function ae(ue){const ge=this.sliceSerialize(ue),Ue=this.stack[this.stack.length-2];Ue.label=zde(ge),Ue.identifier=Ma(ge).toLowerCase()}function ne(){const ue=this.stack[this.stack.length-1],ge=this.resume(),Ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ue.type==="link"){const Xe=ue.children;Ue.children=Xe}else Ue.alt=ge}function N(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.url=ue}function K(){const ue=this.resume(),ge=this.stack[this.stack.length-1];ge.title=ue}function ee(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function re(ue){const ge=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=ge,Ue.identifier=Ma(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function me(ue){this.data.characterReferenceType=ue.type}function oe(ue){const ge=this.sliceSerialize(ue),Ue=this.data.characterReferenceType;let Xe;Ue?(Xe=r6(ge,Ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Xe=MC(ge);const Et=this.stack[this.stack.length-1];Et.value+=Xe}function ve(ue){const ge=this.stack.pop();ge.position.end=Ns(ue.end)}function ye(ue){C.call(this,ue);const ge=this.stack[this.stack.length-1];ge.url=this.sliceSerialize(ue)}function Ve(ue){C.call(this,ue);const ge=this.stack[this.stack.length-1];ge.url="mailto:"+this.sliceSerialize(ue)}function Le(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function Qe(){return{type:"inlineCode",value:""}}function nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function De(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:0,children:[]}}function Ct(){return{type:"break"}}function Be(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function it(){return{type:"link",title:null,url:"",children:[]}}function lt(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function je(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Pe(){return{type:"paragraph",children:[]}}function Jt(){return{type:"strong",children:[]}}function Mt(){return{type:"text",value:""}}function _t(){return{type:"thematicBreak"}}}function Ns(e){return{line:e.line,column:e.column,offset:e.offset}}function h6(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?h6(e,r):qde(e,r)}}function qde(e,t){let n;for(n in t)if(p6.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function dO(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yp({start:t.start,end:t.end})+") is still open")}function Wde(e){const t=this;t.parser=n;function n(r){return Vde(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Yde(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Kde(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
365
|
+
`}]}function Qde(e,t){const n=t.value?t.value+`
|
|
366
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Xde(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zde(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jde(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=hd(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,c+=1,e.footnoteCounts.set(r,c);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const d={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,d),e.applyData(t,d)}function efe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tfe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function m6(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&a.type==="text"?a.value="["+a.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function nfe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return m6(e,t);const o={src:hd(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)}function rfe(e,t){const n={src:hd(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ofe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function afe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return m6(e,t);const o={href:hd(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ife(e,t){const n={href:hd(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sfe(e,t,n){const r=e.all(t),o=n?lfe(n):g6(t),a={},s=[];if(typeof t.checked=="boolean"){const p=r[0];let h;p&&p.type==="element"&&p.tagName==="p"?h=p:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const p=r[c];(o||c!==0||p.type!=="element"||p.tagName!=="p")&&s.push({type:"text",value:`
|
|
367
|
+
`}),p.type==="element"&&p.tagName==="p"&&!o?s.push(...p.children):s.push(p)}const u=r[r.length-1];u&&(o||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
368
|
+
`});const d={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,d),e.applyData(t,d)}function lfe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=g6(n[r])}return t}function g6(e){return e.spread??e.children.length>1}function cfe(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function ufe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dfe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ffe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pfe(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=gi(t.children[1]),u=lb(t.children[t.children.length-1]);c&&u&&(s.position={start:c,end:u}),o.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function hfe(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let c=-1;const u=[];for(;++c<s;){const p=t.children[c],h={},g=a?a[c]:void 0;g&&(h.align=g);let y={type:"element",tagName:o,properties:h,children:[]};p&&(y.children=e.all(p),e.patch(p,y),y=e.applyData(p,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function mfe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const fO=9,pO=32;function gfe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(hO(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(hO(t.slice(o),o>0,!1)),a.join("")}function hO(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===fO||a===pO;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===fO||a===pO;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function yfe(e,t){const n={type:"text",value:gfe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function bfe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const vfe={blockquote:Yde,break:Kde,code:Qde,delete:Xde,emphasis:Zde,footnoteReference:Jde,heading:efe,html:tfe,imageReference:nfe,image:rfe,inlineCode:ofe,linkReference:afe,link:ife,listItem:sfe,list:cfe,paragraph:ufe,root:dfe,strong:ffe,table:pfe,tableCell:mfe,tableRow:hfe,text:yfe,thematicBreak:bfe,toml:hg,yaml:hg,definition:hg,footnoteDefinition:hg};function hg(){}const y6=-1,db=0,vp=1,Hy=2,BC=3,jC=4,UC=5,HC=6,b6=7,v6=8,mO=typeof self=="object"?self:globalThis,Efe=(e,t)=>{const n=(o,a)=>(e.set(a,o),o),r=o=>{if(e.has(o))return e.get(o);const[a,s]=t[o];switch(a){case db:case y6:return n(s,o);case vp:{const c=n([],o);for(const u of s)c.push(r(u));return c}case Hy:{const c=n({},o);for(const[u,d]of s)c[r(u)]=r(d);return c}case BC:return n(new Date(s),o);case jC:{const{source:c,flags:u}=s;return n(new RegExp(c,u),o)}case UC:{const c=n(new Map,o);for(const[u,d]of s)c.set(r(u),r(d));return c}case HC:{const c=n(new Set,o);for(const u of s)c.add(r(u));return c}case b6:{const{name:c,message:u}=s;return n(new mO[c](u),o)}case v6:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:c}=new Uint8Array(s);return n(new DataView(c),s)}}return n(new mO[a](s),o)};return r},gO=e=>Efe(new Map,e)(0),iu="",{toString:xfe}={},{keys:Tfe}=Object,Hf=e=>{const t=typeof e;if(t!=="object"||!e)return[db,t];const n=xfe.call(e).slice(8,-1);switch(n){case"Array":return[vp,iu];case"Object":return[Hy,iu];case"Date":return[BC,iu];case"RegExp":return[jC,iu];case"Map":return[UC,iu];case"Set":return[HC,iu];case"DataView":return[vp,n]}return n.includes("Array")?[vp,n]:n.includes("Error")?[b6,n]:[Hy,n]},mg=([e,t])=>e===db&&(t==="function"||t==="symbol"),Sfe=(e,t,n,r)=>{const o=(s,c)=>{const u=r.push(s)-1;return n.set(c,u),u},a=s=>{if(n.has(s))return n.get(s);let[c,u]=Hf(s);switch(c){case db:{let p=s;switch(u){case"bigint":c=v6,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return o([y6],s)}return o([c,p],s)}case vp:{if(u){let g=s;return u==="DataView"?g=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(g=new Uint8Array(s)),o([u,[...g]],s)}const p=[],h=o([c,p],s);for(const g of s)p.push(a(g));return h}case Hy:{if(u)switch(u){case"BigInt":return o([u,s.toString()],s);case"Boolean":case"Number":case"String":return o([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const p=[],h=o([c,p],s);for(const g of Tfe(s))(e||!mg(Hf(s[g])))&&p.push([a(g),a(s[g])]);return h}case BC:return o([c,s.toISOString()],s);case jC:{const{source:p,flags:h}=s;return o([c,{source:p,flags:h}],s)}case UC:{const p=[],h=o([c,p],s);for(const[g,y]of s)(e||!(mg(Hf(g))||mg(Hf(y))))&&p.push([a(g),a(y)]);return h}case HC:{const p=[],h=o([c,p],s);for(const g of s)(e||!mg(Hf(g)))&&p.push(a(g));return h}}const{message:d}=s;return o([c,{name:u,message:d}],s)};return a},yO=(e,{json:t,lossy:n}={})=>{const r=[];return Sfe(!(t||n),!!t,new Map,r)(e),r},rc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gO(yO(e,t)):structuredClone(e):(e,t)=>gO(yO(e,t));function Cfe(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function _fe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Afe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Cfe,r=e.options.footnoteBackLabel||_fe,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let u=-1;for(;++u<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[u]);if(!d)continue;const p=e.all(d),h=String(d.identifier).toUpperCase(),g=hd(h.toLowerCase());let y=0;const b=[],x=e.footnoteCounts.get(h);for(;x!==void 0&&++y<=x;){b.length>0&&b.push({type:"text",value:" "});let D=typeof n=="string"?n:n(u,y);typeof D=="string"&&(D={type:"text",value:D}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,y),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const S=p[p.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const D=S.children[S.children.length-1];D&&D.type==="text"?D.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...b)}else p.push(...b);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(p,!0)};e.patch(d,T),c.push(T)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...rc(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
369
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
370
|
+
`}]}}const fb=function(e){if(e==null)return Rfe;if(typeof e=="function")return pb(e);if(typeof e=="object")return Array.isArray(e)?wfe(e):kfe(e);if(typeof e=="string")return Dfe(e);throw new Error("Expected function, string, or object as test")};function wfe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=fb(e[n]);return pb(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function kfe(e){const t=e;return pb(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function Dfe(e){return pb(t);function t(n){return n&&n.type===e}}function pb(e){return t;function t(n,r,o){return!!(Ife(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function Rfe(){return!0}function Ife(e){return e!==null&&typeof e=="object"&&"type"in e}const E6=[],Ofe=!0,zy=!1,Ep="skip";function x6(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=fb(o),s=r?-1:1;c(e,void 0,[])();function c(u,d,p){const h=u&&typeof u=="object"?u:{};if(typeof h.type=="string"){const y=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(u.type+(y?"<"+y+">":""))+")"})}return g;function g(){let y=E6,b,x,S;if((!t||a(u,d,p[p.length-1]||void 0))&&(y=Nfe(n(u,p)),y[0]===zy))return y;if("children"in u&&u.children){const T=u;if(T.children&&y[0]!==Ep)for(x=(r?T.children.length:-1)+s,S=p.concat(T);x>-1&&x<T.children.length;){const D=T.children[x];if(b=c(D,x,S)(),b[0]===zy)return b;x=typeof b[1]=="number"?b[1]:x+s}}return y}}}function Nfe(e){return Array.isArray(e)?e:typeof e=="number"?[Ofe,e]:e==null?E6:[e]}function To(e,t,n,r){let o,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,o=n):(a=t,s=n,o=r),x6(e,a,c,o);function c(u,d){const p=d[d.length-1],h=p?p.children.indexOf(u):void 0;return s(u,h,p)}}const hT={}.hasOwnProperty,Pfe={};function Lfe(e,t){const n=t||Pfe,r=new Map,o=new Map,a=new Map,s={...vfe,...n.handlers},c={all:d,applyData:Ffe,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:Mfe,wrap:jfe};return To(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const h=p.type==="definition"?r:o,g=String(p.identifier).toUpperCase();h.has(g)||h.set(g,p)}}),c;function u(p,h){const g=p.type,y=c.handlers[g];if(hT.call(c.handlers,g)&&y)return y(c,p,h);if(c.options.passThrough&&c.options.passThrough.includes(g)){if("children"in p){const{children:b,...x}=p,S=rc(x);return S.children=c.all(p),S}return rc(p)}return(c.options.unknownHandler||Bfe)(c,p,h)}function d(p){const h=[];if("children"in p){const g=p.children;let y=-1;for(;++y<g.length;){const b=c.one(g[y],p);if(b){if(y&&g[y-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=bO(b.value)),!Array.isArray(b)&&b.type==="element")){const x=b.children[0];x&&x.type==="text"&&(x.value=bO(x.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function Mfe(e,t){e.position&&(t.position=_ce(e))}function Ffe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,rc(a)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Bfe(e,t){const n=t.data||{},r="value"in t&&!(hT.call(n,"hProperties")||hT.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function jfe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
371
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
372
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
373
|
+
`}),n}function bO(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function vO(e,t){const n=Lfe(e,t),r=n.one(e,void 0),o=Afe(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
|
|
374
|
+
`},o),a}function Ufe(e,t){return e&&"run"in e?async function(n,r){const o=vO(n,{file:r,...t});await e.run(o,r)}:function(n,r){return vO(n,{file:r,...e||t})}}function EO(e){if(e)throw e}var AE,xO;function Hfe(){if(xO)return AE;xO=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},s=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},c=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return AE=function u(){var d,p,h,g,y,b,x=arguments[0],S=1,T=arguments.length,D=!1;for(typeof x=="boolean"&&(D=x,x=arguments[1]||{},S=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});S<T;++S)if(d=arguments[S],d!=null)for(p in d)h=c(x,p),g=c(d,p),x!==g&&(D&&g&&(a(g)||(y=o(g)))?(y?(y=!1,b=h&&o(h)?h:[]):b=h&&a(h)?h:{},s(x,{name:p,newValue:u(D,b,g)})):typeof g<"u"&&s(x,{name:p,newValue:g}));return x},AE}var zfe=Hfe();const wE=H0(zfe);function mT(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $fe(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);c(null,...o);function c(u,...d){const p=e[++a];let h=-1;if(u){s(u);return}for(;++h<o.length;)(d[h]===null||d[h]===void 0)&&(d[h]=o[h]);o=d,p?Vfe(p,c)(...d):s(null,...d)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function Vfe(e,t){let n;return r;function r(...s){const c=e.length>s.length;let u;c&&s.push(o);try{u=e.apply(this,s)}catch(d){const p=d;if(c&&n)throw p;return o(p)}c||(u&&u.then&&typeof u.then=="function"?u.then(a,o):u instanceof Error?o(u):a(u))}function o(s,...c){n||(n=!0,t(s,...c))}function a(s){o(null,s)}}const ni={basename:Gfe,dirname:qfe,extname:Wfe,join:Yfe,sep:"/"};function Gfe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ph(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else s<0&&(a=!0,s=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(r=o):(c=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function qfe(e){if(Ph(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Wfe(e){Ph(e);let t=e.length,n=-1,r=0,o=-1,a=0,s;for(;t--;){const c=e.codePointAt(t);if(c===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),c===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function Yfe(...e){let t=-1,n;for(;++t<e.length;)Ph(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Kfe(n)}function Kfe(e){Ph(e);const t=e.codePointAt(0)===47;let n=Qfe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Qfe(e,t){let n="",r=0,o=-1,a=0,s=-1,c,u;for(;++s<=e.length;){if(s<e.length)c=e.codePointAt(s);else{if(c===47)break;c=47}if(c===47){if(!(o===s-1||a===1))if(o!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),o=s,a=0;continue}}else if(n.length>0){n="",r=0,o=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),r=s-o-1;o=s,a=0}else c===46&&a>-1?a++:a=-1}return n}function Ph(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xfe={cwd:Zfe};function Zfe(){return"/"}function gT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Jfe(e){if(typeof e=="string")e=new URL(e);else if(!gT(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return epe(e)}function epe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const kE=["history","path","basename","stem","extname","dirname"];class T6{constructor(t){let n;t?gT(t)?n={path:t}:typeof t=="string"||tpe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Xfe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<kE.length;){const a=kE[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)kE.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ni.basename(this.path):void 0}set basename(t){RE(t,"basename"),DE(t,"basename"),this.path=ni.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ni.dirname(this.path):void 0}set dirname(t){TO(this.basename,"dirname"),this.path=ni.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ni.extname(this.path):void 0}set extname(t){if(DE(t,"extname"),TO(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ni.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){gT(t)&&(t=Jfe(t)),RE(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ni.basename(this.path,this.extname):void 0}set stem(t){RE(t,"stem"),DE(t,"stem"),this.path=ni.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Xr(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function DE(e,t){if(e&&e.includes(ni.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ni.sep+"`")}function RE(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function TO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function tpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const npe=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},rpe={}.hasOwnProperty;class zC extends npe{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=$fe()}copy(){const t=new zC;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(wE(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(NE("data",this.frozen),this.namespace[t]=n,this):rpe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(NE("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=gg(t),r=this.parser||this.Parser;return IE("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),IE("process",this.parser||this.Parser),OE("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,s){const c=gg(t),u=r.parse(c);r.run(u,c,function(p,h,g){if(p||!h||!g)return d(p);const y=h,b=r.stringify(y,g);ipe(b)?g.value=b:g.result=b,d(p,g)});function d(p,h){p||!h?s(p):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),IE("processSync",this.parser||this.Parser),OE("processSync",this.compiler||this.Compiler),this.process(t,o),CO("processSync","process",n),r;function o(a,s){n=!0,EO(a),r=s}}run(t,n,r){SO(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,c){const u=gg(n);o.run(t,u,d);function d(p,h,g){const y=h||t;p?c(p):s?s(y):r(void 0,y,g)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),CO("runSync","run",r),o;function a(s,c){EO(s),o=c,r=!0}}stringify(t,n){this.freeze();const r=gg(n),o=this.compiler||this.Compiler;return OE("stringify",o),SO(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(NE("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(d){if(typeof d=="function")u(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[p,...h]=d;u(p,h)}else s(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function s(d){if(!("plugins"in d)&&!("settings"in d))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");c(d.plugins),d.settings&&(o.settings=wE(!0,o.settings,d.settings))}function c(d){let p=-1;if(d!=null)if(Array.isArray(d))for(;++p<d.length;){const h=d[p];a(h)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function u(d,p){let h=-1,g=-1;for(;++h<r.length;)if(r[h][0]===d){g=h;break}if(g===-1)r.push([d,...p]);else if(p.length>0){let[y,...b]=p;const x=r[g][1];mT(x)&&mT(y)&&(y=wE(!0,x,y)),r[g]=[d,y,...b]}}}}const ope=new zC().freeze();function IE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function OE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function NE(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function SO(e){if(!mT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function CO(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function gg(e){return ape(e)?e:new T6(e)}function ape(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ipe(e){return typeof e=="string"||spe(e)}function spe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lpe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_O=[],AO={allowDangerousHtml:!0},cpe=/^(https?|ircs?|mailto|xmpp)$/i,upe=[{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:"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 dpe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,s=e.disallowedElements,c=e.rehypePlugins||_O,u=e.remarkPlugins||_O,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...AO}:AO,p=e.skipHtml,h=e.unwrapDisallowed,g=e.urlTransform||fpe,y=ope().use(Wde).use(u).use(Ufe,d).use(c),b=new T6;typeof r=="string"&&(b.value=r);for(const D of upe)Object.hasOwn(e,D.from)&&""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+lpe+D.id;const x=y.parse(b);let S=y.runSync(x,b);return o&&(S={type:"element",tagName:"div",properties:{className:o},children:S.type==="root"?S.children:[S]}),To(S,T),Rce(S,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function T(D,k,R){if(D.type==="raw"&&R&&typeof k=="number")return p?R.children.splice(k,1):R.children[k]={type:"text",value:D.value},k;if(D.type==="element"){let I;for(I in SE)if(Object.hasOwn(SE,I)&&Object.hasOwn(D.properties,I)){const O=D.properties[I],F=SE[I];(F===null||F.includes(D.tagName))&&(D.properties[I]=g(String(O||""),I,D))}}if(D.type==="element"){let I=t?!t.includes(D.tagName):s?s.includes(D.tagName):!1;if(!I&&n&&typeof k=="number"&&(I=!n(D,k,R)),I&&R&&typeof k=="number")return h&&D.children?R.children.splice(k,1,...D.children):R.children.splice(k,1),k}}}function fpe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||cpe.test(e.slice(0,t))?e:""}function ppe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function hpe(e,t,n){const r=fb((n||{}).ignore||[]),o=mpe(t);let a=-1;for(;++a<o.length;)x6(e,"text",s);function s(u,d){let p=-1,h;for(;++p<d.length;){const g=d[p],y=h?h.children:void 0;if(r(g,y?y.indexOf(g):void 0,h))return;h=g}if(h)return c(u,d)}function c(u,d){const p=d[d.length-1],h=o[a][0],g=o[a][1];let y=0;const b=p.children.indexOf(u);let x=!1,S=[];h.lastIndex=0;let T=h.exec(u.value);for(;T;){const D=T.index,k={index:T.index,input:T.input,stack:[...d,u]};let R=g(...T,k);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?h.lastIndex=D+1:(y!==D&&S.push({type:"text",value:u.value.slice(y,D)}),Array.isArray(R)?S.push(...R):R&&S.push(R),y=D+T[0].length,x=!0),!h.global)break;T=h.exec(u.value)}return x?(y<u.value.length&&S.push({type:"text",value:u.value.slice(y)}),p.children.splice(b,1,...S)):S=[u],b+S.length}}function mpe(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([gpe(o[0]),ype(o[1])])}return t}function gpe(e){return typeof e=="string"?new RegExp(ppe(e),"g"):e}function ype(e){return typeof e=="function"?e:function(){return e}}const PE="phrasing",LE=["autolink","link","image","label"];function bpe(){return{transforms:[_pe],enter:{literalAutolink:Epe,literalAutolinkEmail:ME,literalAutolinkHttp:ME,literalAutolinkWww:ME},exit:{literalAutolink:Cpe,literalAutolinkEmail:Spe,literalAutolinkHttp:xpe,literalAutolinkWww:Tpe}}}function vpe(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:PE,notInConstruct:LE},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:PE,notInConstruct:LE},{character:":",before:"[ps]",after:"\\/",inConstruct:PE,notInConstruct:LE}]}}function Epe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ME(e){this.config.enter.autolinkProtocol.call(this,e)}function xpe(e){this.config.exit.autolinkProtocol.call(this,e)}function Tpe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Spe(e){this.config.exit.autolinkEmail.call(this,e)}function Cpe(e){this.exit(e)}function _pe(e){hpe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ape],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,wpe]],{ignore:["link","linkReference"]})}function Ape(e,t,n,r,o){let a="";if(!S6(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!kpe(n)))return!1;const s=Dpe(n+r);if(!s[0])return!1;const c={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[c,{type:"text",value:s[1]}]:c}function wpe(e,t,n,r){return!S6(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function kpe(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Dpe(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=Ry(e,"(");let a=Ry(e,")");for(;r!==-1&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function S6(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||nc(n)||cb(n))&&(!t||n!==47)}C6.peek=Bpe;function Rpe(){this.buffer()}function Ipe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ope(){this.buffer()}function Npe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ppe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Lpe(e){this.exit(e)}function Mpe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Fpe(e){this.exit(e)}function Bpe(){return"["}function C6(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const s=n.enter("footnoteReference"),c=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),c(),s(),a+=o.move("]"),a}function jpe(){return{enter:{gfmFootnoteCallString:Rpe,gfmFootnoteCall:Ipe,gfmFootnoteDefinitionLabelString:Ope,gfmFootnoteDefinition:Npe},exit:{gfmFootnoteCallString:Ppe,gfmFootnoteCall:Lpe,gfmFootnoteDefinitionLabelString:Mpe,gfmFootnoteDefinition:Fpe}}}function Upe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:C6},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,s){const c=a.createTracker(s);let u=c.move("[^");const d=a.enter("footnoteDefinition"),p=a.enter("label");return u+=c.move(a.safe(a.associationId(r),{before:u,after:"]"})),p(),u+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),u+=c.move((t?`
|
|
375
|
+
`:" ")+a.indentLines(a.containerFlow(r,c.current()),t?_6:Hpe))),d(),u}}function Hpe(e,t,n){return t===0?e:_6(e,t,n)}function _6(e,t,n){return(n?"":" ")+e}const zpe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];A6.peek=Wpe;function $pe(){return{canContainEols:["delete"],enter:{strikethrough:Gpe},exit:{strikethrough:qpe}}}function Vpe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zpe}],handlers:{delete:A6}}}function Gpe(e){this.enter({type:"delete",children:[]},e)}function qpe(e){this.exit(e)}function A6(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let s=o.move("~~");return s+=n.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),a(),s}function Wpe(){return"~"}function Ype(e){return e.length}function Kpe(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Ype,a=[],s=[],c=[],u=[];let d=0,p=-1;for(;++p<e.length;){const x=[],S=[];let T=-1;for(e[p].length>d&&(d=e[p].length);++T<e[p].length;){const D=Qpe(e[p][T]);if(n.alignDelimiters!==!1){const k=o(D);S[T]=k,(u[T]===void 0||k>u[T])&&(u[T]=k)}x.push(D)}s[p]=x,c[p]=S}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<d;)a[h]=wO(r[h]);else{const x=wO(r);for(;++h<d;)a[h]=x}h=-1;const g=[],y=[];for(;++h<d;){const x=a[h];let S="",T="";x===99?(S=":",T=":"):x===108?S=":":x===114&&(T=":");let D=n.alignDelimiters===!1?1:Math.max(1,u[h]-S.length-T.length);const k=S+"-".repeat(D)+T;n.alignDelimiters!==!1&&(D=S.length+D+T.length,D>u[h]&&(u[h]=D),y[h]=D),g[h]=k}s.splice(1,0,g),c.splice(1,0,y),p=-1;const b=[];for(;++p<s.length;){const x=s[p],S=c[p];h=-1;const T=[];for(;++h<d;){const D=x[h]||"";let k="",R="";if(n.alignDelimiters!==!1){const I=u[h]-(S[h]||0),O=a[h];O===114?k=" ".repeat(I):O===99?I%2?(k=" ".repeat(I/2+.5),R=" ".repeat(I/2-.5)):(k=" ".repeat(I/2),R=k):R=" ".repeat(I)}n.delimiterStart!==!1&&!h&&T.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||h)&&T.push(" "),n.alignDelimiters!==!1&&T.push(k),T.push(D),n.alignDelimiters!==!1&&T.push(R),n.padding!==!1&&T.push(" "),(n.delimiterEnd!==!1||h!==d-1)&&T.push("|")}b.push(n.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return b.join(`
|
|
376
|
+
`)}function Qpe(e){return e==null?"":String(e)}function wO(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Xpe(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),Zpe);return o(),s}function Zpe(e,t,n){return">"+(n?"":" ")+e}function Jpe(e,t){return kO(e,t.inConstruct,!0)&&!kO(e,t.notInConstruct,!1)}function kO(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function DO(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
|
|
377
|
+
`&&Jpe(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
378
|
+
`}function ehe(e,t){const n=String(e);let r=n.indexOf(t),o=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++a>s&&(s=a):a=1,o=r+t.length,r=n.indexOf(t,o);return s}function the(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function nhe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function rhe(e,t,n,r){const o=nhe(n),a=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(the(e,n)){const h=n.enter("codeIndented"),g=n.indentLines(a,ohe);return h(),g}const c=n.createTracker(r),u=o.repeat(Math.max(ehe(a,o)+1,3)),d=n.enter("codeFenced");let p=c.move(u);if(e.lang){const h=n.enter(`codeFencedLang${s}`);p+=c.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...c.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);p+=c.move(" "),p+=c.move(n.safe(e.meta,{before:p,after:`
|
|
379
|
+
`,encode:["`"],...c.current()})),h()}return p+=c.move(`
|
|
380
|
+
`),a&&(p+=c.move(a+`
|
|
381
|
+
`)),p+=c.move(u),d(),p}function ohe(e,t,n){return(n?"":" ")+e}function $C(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ahe(e,t,n,r){const o=$C(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("definition");let c=n.enter("label");const u=n.createTracker(r);let d=u.move("[");return d+=u.move(n.safe(n.associationId(e),{before:d,after:"]",...u.current()})),d+=u.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(c=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":`
|
|
382
|
+
`,...u.current()}))),c(),e.title&&(c=n.enter(`title${a}`),d+=u.move(" "+o),d+=u.move(n.safe(e.title,{before:d,after:o,...u.current()})),d+=u.move(o),c()),s(),d}function ihe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function sh(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $y(e,t,n){const r=Vu(e),o=Vu(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}w6.peek=she;function w6(e,t,n,r){const o=ihe(n),a=n.enter("emphasis"),s=n.createTracker(r),c=s.move(o);let u=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const d=u.charCodeAt(0),p=$y(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=sh(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=$y(r.after.charCodeAt(0),h,o);g.inside&&(u=u.slice(0,-1)+sh(h));const y=s.move(o);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},c+u+y}function she(e,t,n){return n.options.emphasis||"*"}function lhe(e,t){let n=!1;return To(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,zy}),!!((!e.depth||e.depth<3)&&LC(e)&&(t.options.setext||n))}function che(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(lhe(e,n)){const p=n.enter("headingSetext"),h=n.enter("phrasing"),g=n.containerPhrasing(e,{...a.current(),before:`
|
|
383
|
+
`,after:`
|
|
384
|
+
`});return h(),p(),g+`
|
|
385
|
+
`+(o===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
|
|
386
|
+
`))+1))}const s="#".repeat(o),c=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
|
|
387
|
+
`,...a.current()});return/^[\t ]/.test(d)&&(d=sh(d.charCodeAt(0))+d.slice(1)),d=d?s+" "+d:s,n.options.closeAtx&&(d+=" "+s),u(),c(),d}k6.peek=uhe;function k6(e){return e.value||""}function uhe(){return"<"}D6.peek=dhe;function D6(e,t,n,r){const o=$C(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("image");let c=n.enter("label");const u=n.createTracker(r);let d=u.move("![");return d+=u.move(n.safe(e.alt,{before:d,after:"]",...u.current()})),d+=u.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(c=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),c(),e.title&&(c=n.enter(`title${a}`),d+=u.move(" "+o),d+=u.move(n.safe(e.title,{before:d,after:o,...u.current()})),d+=u.move(o),c()),d+=u.move(")"),s(),d}function dhe(){return"!"}R6.peek=fhe;function R6(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(r);let u=c.move("![");const d=n.safe(e.alt,{before:u,after:"]",...c.current()});u+=c.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return s(),n.stack=p,a(),o==="full"||!d||d!==h?u+=c.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function fhe(){return"!"}I6.peek=phe;function I6(e,t,n){let r=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],c=n.compilePattern(s);let u;if(s.atBreak)for(;u=c.exec(r);){let d=u.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(u.index+1)}}return o+r+o}function phe(){return"`"}function O6(e,t){const n=LC(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}N6.peek=hhe;function N6(e,t,n,r){const o=$C(n),a=o==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let c,u;if(O6(e,n)){const p=n.stack;n.stack=[],c=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),c(),n.stack=p,h}c=n.enter("link"),u=n.enter("label");let d=s.move("[");return d+=s.move(n.containerPhrasing(e,{before:d,after:"](",...s.current()})),d+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),d+=s.move("<"),d+=s.move(n.safe(e.url,{before:d,after:">",...s.current()})),d+=s.move(">")):(u=n.enter("destinationRaw"),d+=s.move(n.safe(e.url,{before:d,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),d+=s.move(" "+o),d+=s.move(n.safe(e.title,{before:d,after:o,...s.current()})),d+=s.move(o),u()),d+=s.move(")"),c(),d}function hhe(e,t,n){return O6(e,n)?"<":"["}P6.peek=mhe;function P6(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(r);let u=c.move("[");const d=n.containerPhrasing(e,{before:u,after:"]",...c.current()});u+=c.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return s(),n.stack=p,a(),o==="full"||!d||d!==h?u+=c.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function mhe(){return"["}function VC(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ghe(e){const t=VC(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function yhe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function L6(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function bhe(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?yhe(n):VC(n);const c=e.ordered?s==="."?")":".":ghe(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),L6(n)===s&&p){let h=-1;for(;++h<e.children.length;){const g=e.children[h];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=c),n.bulletCurrent=s;const d=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,o(),d}function vhe(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ehe(e,t,n,r){const o=vhe(n);let a=n.bulletCurrent||VC(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const c=n.createTracker(r);c.move(a+" ".repeat(s-a.length)),c.shift(s);const u=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,c.current()),p);return u(),d;function p(h,g,y){return g?(y?"":" ".repeat(s))+h:(y?a:a+" ".repeat(s-a.length))+h}}function xhe(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),o(),s}const The=fb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function She(e,t,n,r){return(e.children.some(function(o){return The(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Che(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}M6.peek=_he;function M6(e,t,n,r){const o=Che(n),a=n.enter("strong"),s=n.createTracker(r),c=s.move(o+o);let u=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const d=u.charCodeAt(0),p=$y(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=sh(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=$y(r.after.charCodeAt(0),h,o);g.inside&&(u=u.slice(0,-1)+sh(h));const y=s.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},c+u+y}function _he(e,t,n){return n.options.strong||"*"}function Ahe(e,t,n,r){return n.safe(e.value,r)}function whe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function khe(e,t,n){const r=(L6(n)+(n.options.ruleSpaces?" ":"")).repeat(whe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const F6={blockquote:Xpe,break:DO,code:rhe,definition:ahe,emphasis:w6,hardBreak:DO,heading:che,html:k6,image:D6,imageReference:R6,inlineCode:I6,link:N6,linkReference:P6,list:bhe,listItem:Ehe,paragraph:xhe,root:She,strong:M6,text:Ahe,thematicBreak:khe};function Dhe(){return{enter:{table:Rhe,tableData:RO,tableHeader:RO,tableRow:Ohe},exit:{codeText:Nhe,table:Ihe,tableData:FE,tableHeader:FE,tableRow:FE}}}function Rhe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Ihe(e){this.exit(e),this.data.inTable=void 0}function Ohe(e){this.enter({type:"tableRow",children:[]},e)}function FE(e){this.exit(e)}function RO(e){this.enter({type:"tableCell",children:[]},e)}function Nhe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Phe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Phe(e,t){return t==="|"?t:e}function Lhe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
388
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:s,tableCell:u,tableRow:c}};function s(y,b,x,S){return d(p(y,x,S),y.align)}function c(y,b,x,S){const T=h(y,x,S),D=d([T]);return D.slice(0,D.indexOf(`
|
|
389
|
+
`))}function u(y,b,x,S){const T=x.enter("tableCell"),D=x.enter("phrasing"),k=x.containerPhrasing(y,{...S,before:a,after:a});return D(),T(),k}function d(y,b){return Kpe(y,{align:b,alignDelimiters:r,padding:n,stringLength:o})}function p(y,b,x){const S=y.children;let T=-1;const D=[],k=b.enter("table");for(;++T<S.length;)D[T]=h(S[T],b,x);return k(),D}function h(y,b,x){const S=y.children;let T=-1;const D=[],k=b.enter("tableRow");for(;++T<S.length;)D[T]=u(S[T],y,b,x);return k(),D}function g(y,b,x){let S=F6.inlineCode(y,b,x);return x.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function Mhe(){return{exit:{taskListCheckValueChecked:IO,taskListCheckValueUnchecked:IO,paragraph:Bhe}}}function Fhe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jhe}}}function IO(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Bhe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let a=-1,s;for(;++a<o.length;){const c=o[a];if(c.type==="paragraph"){s=c;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function jhe(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);a&&c.move(s);let u=F6.listItem(e,t,n,{...r,...c.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),u;function d(p){return p+s}}function Uhe(){return[bpe(),jpe(),$pe(),Dhe(),Mhe()]}function Hhe(e){return{extensions:[vpe(),Upe(e),Vpe(),Lhe(e),Fhe()]}}const zhe={tokenize:Yhe,partial:!0},B6={tokenize:Khe,partial:!0},j6={tokenize:Qhe,partial:!0},U6={tokenize:Xhe,partial:!0},$he={tokenize:Zhe,partial:!0},H6={name:"wwwAutolink",tokenize:qhe,previous:$6},z6={name:"protocolAutolink",tokenize:Whe,previous:V6},ns={name:"emailAutolink",tokenize:Ghe,previous:G6},yi={};function Vhe(){return{text:yi}}let Tl=48;for(;Tl<123;)yi[Tl]=ns,Tl++,Tl===58?Tl=65:Tl===91&&(Tl=97);yi[43]=ns;yi[45]=ns;yi[46]=ns;yi[95]=ns;yi[72]=[ns,z6];yi[104]=[ns,z6];yi[87]=[ns,H6];yi[119]=[ns,H6];function Ghe(e,t,n){const r=this;let o,a;return s;function s(h){return!yT(h)||!G6.call(r,r.previous)||GC(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(h))}function c(h){return yT(h)?(e.consume(h),c):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check($he,p,d)(h):h===45||h===95||Kr(h)?(a=!0,e.consume(h),u):p(h)}function d(h){return e.consume(h),o=!0,u}function p(h){return a&&o&&no(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function qhe(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!$6.call(r,r.previous)||GC(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zhe,e.attempt(B6,e.attempt(j6,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Whe(e,t,n){const r=this;let o="",a=!1;return s;function s(h){return(h===72||h===104)&&V6.call(r,r.previous)&&!GC(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),c):n(h)}function c(h){if(no(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),c;if(h===58){const g=o.toLowerCase();if(g==="http"||g==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),a?d:(a=!0,u)):n(h)}function d(h){return h===null||Uy(h)||wn(h)||nc(h)||cb(h)?n(h):e.attempt(B6,e.attempt(j6,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Yhe(e,t,n){let r=0;return o;function o(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),o):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function Khe(e,t,n){let r,o,a;return s;function s(d){return d===46||d===95?e.check(U6,u,c)(d):d===null||wn(d)||nc(d)||d!==45&&cb(d)?u(d):(a=!0,e.consume(d),s)}function c(d){return d===95?r=!0:(o=r,r=void 0),e.consume(d),s}function u(d){return o||r||!a?n(d):t(d)}}function Qhe(e,t){let n=0,r=0;return o;function o(s){return s===40?(n++,e.consume(s),o):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(U6,t,a)(s):s===null||wn(s)||nc(s)?t(s):(e.consume(s),o)}function a(s){return s===41&&r++,e.consume(s),o}}function Xhe(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),a):c===93?(e.consume(c),o):c===60||c===null||wn(c)||nc(c)?t(c):n(c)}function o(c){return c===null||c===40||c===91||wn(c)||nc(c)?t(c):r(c)}function a(c){return no(c)?s(c):n(c)}function s(c){return c===59?(e.consume(c),r):no(c)?(e.consume(c),s):n(c)}}function Zhe(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return Kr(a)?n(a):t(a)}}function $6(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||wn(e)}function V6(e){return!no(e)}function G6(e){return!(e===47||yT(e))}function yT(e){return e===43||e===45||e===46||e===95||Kr(e)}function GC(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Jhe={tokenize:sme,partial:!0};function eme(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ome,continuation:{tokenize:ame},exit:ime}},text:{91:{name:"gfmFootnoteCall",tokenize:rme},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tme,resolveTo:nme}}}}function tme(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;o--;){const u=r.events[o][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return c;function c(u){if(!s||!s._balanced)return n(u);const d=Ma(r.sliceSerialize({start:s.end,end:r.now()}));return d.codePointAt(0)!==94||!a.includes(d.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function nme(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function rme(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return c;function c(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(h){if(a>999||h===93&&!s||h===null||h===91||wn(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return o.includes(Ma(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return wn(h)||(s=!0),a++,e.consume(h),h===92?p:d}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,d):d(h)}}function ome(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,c;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(s>999||b===93&&!c||b===null||b===91||wn(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=Ma(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return wn(b)||(c=!0),s++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),s++,p):p(b)}function g(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),o.includes(a)||o.push(a),nn(e,y,"gfmFootnoteDefinitionWhitespace")):n(b)}function y(b){return t(b)}}function ame(e,t,n){return e.check(Nh,t,e.attempt(Jhe,t,n))}function ime(e){e.exit("gfmFootnoteDefinition")}function sme(e,t,n){const r=this;return nn(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function lme(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:o,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(a,s){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let u=c;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[c][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[c][1].end)},p={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[c][1].start)},h=[["enter",d,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",p,s]],g=s.parser.constructs.insideSpan.null;g&&Ho(h,h.length,0,ub(g,a.slice(u+1,c),s)),Ho(h,h.length,0,[["exit",p,s],["enter",a[c][1],s],["exit",a[c][1],s],["exit",d,s]]),Ho(a,u-1,c-u+3,h),c=u+h.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function o(a,s,c){const u=this.previous,d=this.events;let p=0;return h;function h(y){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(y):(a.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const b=Vu(u);if(y===126)return p>1?c(y):(a.consume(y),p++,g);if(p<2&&!t)return c(y);const x=a.exit("strikethroughSequenceTemporary"),S=Vu(y);return x._open=!S||S===2&&!!b,x._close=!b||b===2&&!!S,s(y)}}}class cme{constructor(){this.map=[]}add(t,n,r){ume(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const a of o)t.push(a);o=r.pop()}this.map.length=0}}function ume(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function dme(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function fme(){return{flow:{null:{name:"table",tokenize:pme,resolveAll:hme}}}}function pme(e,t,n){const r=this;let o=0,a=0,s;return c;function c(C){let M=r.events.length-1;for(;M>-1;){const W=r.events[M][1].type;if(W==="lineEnding"||W==="linePrefix")M--;else break}const V=M>-1?r.events[M][1].type:null,z=V==="tableHead"||V==="tableRow"?O:u;return z===O&&r.parser.lazy[r.now().line]?n(C):z(C)}function u(C){return e.enter("tableHead"),e.enter("tableRow"),d(C)}function d(C){return C===124||(s=!0,a+=1),p(C)}function p(C){return C===null?n(C):vt(C)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),y):n(C):Yt(C)?nn(e,p,"whitespace")(C):(a+=1,s&&(s=!1,o+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,p):(e.enter("data"),h(C)))}function h(C){return C===null||C===124||wn(C)?(e.exit("data"),p(C)):(e.consume(C),C===92?g:h)}function g(C){return C===92||C===124?(e.consume(C),h):h(C)}function y(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),s=!1,Yt(C)?nn(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):b(C))}function b(C){return C===45||C===58?S(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),x):I(C)}function x(C){return Yt(C)?nn(e,S,"whitespace")(C):S(C)}function S(C){return C===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),T):C===45?(a+=1,T(C)):C===null||vt(C)?R(C):I(C)}function T(C){return C===45?(e.enter("tableDelimiterFiller"),D(C)):I(C)}function D(C){return C===45?(e.consume(C),D):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(C))}function k(C){return Yt(C)?nn(e,R,"whitespace")(C):R(C)}function R(C){return C===124?b(C):C===null||vt(C)?!s||o!==a?I(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):I(C)}function I(C){return n(C)}function O(C){return e.enter("tableRow"),F(C)}function F(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),F):C===null||vt(C)?(e.exit("tableRow"),t(C)):Yt(C)?nn(e,F,"whitespace")(C):(e.enter("data"),U(C))}function U(C){return C===null||C===124||wn(C)?(e.exit("data"),F(C)):(e.consume(C),C===92?H:U)}function H(C){return C===92||C===124?(e.consume(C),U):U(C)}}function hme(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],s=[0,0,0,0],c=!1,u=0,d,p,h;const g=new cme;for(;++n<e.length;){const y=e[n],b=y[1];y[0]==="enter"?b.type==="tableHead"?(c=!1,u!==0&&(OO(g,t,u,d,p),p=void 0,u=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",d,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,h=void 0,a=[0,0,0,0],s=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},g.add(n,0,[["enter",p,t]])),o=b.type==="tableDelimiterRow"?2:p?3:1):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=yg(g,t,a,o,void 0,h),a=[0,0,0,0]),s[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],h=yg(g,t,a,o,void 0,h)),a=s,s=[a[1],n,0,0])):b.type==="tableHead"?(c=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],h=yg(g,t,a,o,n,h)):s[1]!==0&&(h=yg(g,t,s,o,n,h)),o=0):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&OO(g,t,u,d,p),g.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=dme(t.events,n))}return e}function yg(e,t,n,r,o,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(a.end=Object.assign({},du(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=du(t.events,n[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const d=du(t.events,n[2]),p=du(t.events,n[3]),h={type:c,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const g=t.events[n[2]],y=t.events[n[3]];if(g[1].end=Object.assign({},y[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,x=n[3]-n[2]-1;e.add(b,x,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return o!==void 0&&(a.end=Object.assign({},du(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function OO(e,t,n,r,o){const a=[],s=du(t.events,n);o&&(o.end=Object.assign({},s),a.push(["exit",o,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function du(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const mme={name:"tasklistCheck",tokenize:yme};function gme(){return{text:{91:mme}}}function yme(e,t,n){const r=this;return o;function o(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return wn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(u)}function c(u){return vt(u)?t(u):Yt(u)?e.check({tokenize:bme},t,n)(u):n(u)}}function bme(e,t,n){return nn(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function vme(e){return n6([Vhe(),eme(),lme(e),fme(),gme()])}const Eme={};function xme(e){const t=this,n=e||Eme,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(vme(n)),a.push(Uhe()),s.push(Hhe(n))}const NO=/[#.]/g;function Tme(e,t){const n=e||"",r={};let o=0,a,s;for(;o<n.length;){NO.lastIndex=o;const c=NO.exec(n),u=n.slice(o,c?c.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,o+=u.length),c&&(a=c[0],o++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function q6(e,t,n){const r=n?Ame(n):void 0;function o(a,s,...c){let u;if(a==null){u={type:"root",children:[]};const d=s;c.unshift(d)}else{u=Tme(a,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,Sme(s))c.unshift(s);else for(const[h,g]of Object.entries(s))Cme(e,u.properties,h,g)}for(const d of c)bT(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return o}function Sme(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const o=t[r];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const a=o;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Cme(e,t,n,r){const o=Rh(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?o.spaceSeparated?a=aT(r):o.commaSeparated?a=oT(r):o.commaOrSpaceSeparated?a=aT(oT(r).join(" ")):a=PO(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?_me(r):String(r);if(Array.isArray(a)){const s=[];for(const c of a)s.push(PO(o,o.property,c));a=s}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function bT(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)bT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?bT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function PO(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||th(n)===th(t)))return!0}return n}function _me(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Ame(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const wme=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],kme=q6(dd,"div"),Dme=q6(es,"g",wme);function Rme(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let c=n[s];if(c===void 0){const u=LO(t,n[s-1]);c=u===-1?t.length+1:u+1,n[s]=c}if(c>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function o(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const c=n[n.length-1],u=LO(t,c),d=u===-1?t.length+1:u+1;if(c===d)break;n.push(d)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function LO(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
390
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const jl={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},W6={}.hasOwnProperty,Ime=Object.prototype;function Ome(e,t){const n=t||{};return qC({file:n.file||void 0,location:!1,schema:n.space==="svg"?es:dd,verbose:n.verbose||!1},e)}function qC(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Gg(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Y6(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),s=Rme(a),c=s.toPoint(0),u=s.toPoint(a.length);n.position={start:c,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Gg(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Gg(e,r,n),n}default:return n=Nme(e,t),n}}function Y6(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=qC(e,t[n]);r.push(o)}return r}function Nme(e,t){const n=e.schema;e.schema=t.namespaceURI===jl.svg?es:dd;let r=-1;const o={};for(;++r<t.attrs.length;){const s=t.attrs[r],c=(s.prefix?s.prefix+":":"")+s.name;W6.call(Ime,c)||(o[c]=s.value)}const a=(e.schema.space==="svg"?Dme:kme)(t.tagName,o,Y6(e,t.childNodes));if(Gg(e,t,a),a.tagName==="template"){const s=t,c=s.sourceCodeLocation,u=c&&c.startTag&&yu(c.startTag),d=c&&c.endTag&&yu(c.endTag),p=qC(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),a.content=p}return e.schema=n,a}function Gg(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Pme(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Pme(e,t,n){const r=yu(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)W6.call(n.attrs,s)&&(a[Rh(e.schema,s).property]=yu(n.attrs[s]));n.startTag;const c=yu(n.startTag),u=n.endTag?yu(n.endTag):void 0,d={opening:c};u&&(d.closing=u),d.properties=a,t.data={position:d}}}return r}function yu(e){const t=MO({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=MO({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function MO(e){return e.line&&e.column?e:void 0}class Lh{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Lh.prototype.property={};Lh.prototype.normal={};Lh.prototype.space=null;function K6(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new Lh(n,r,t)}function vT(e){return e.toLowerCase()}class Aa{constructor(t,n){this.property=t,this.attribute=n}}Aa.prototype.space=null;Aa.prototype.boolean=!1;Aa.prototype.booleanish=!1;Aa.prototype.overloadedBoolean=!1;Aa.prototype.number=!1;Aa.prototype.commaSeparated=!1;Aa.prototype.spaceSeparated=!1;Aa.prototype.commaOrSpaceSeparated=!1;Aa.prototype.mustUseProperty=!1;Aa.prototype.defined=!1;let Lme=0;const Ot=uc(),dr=uc(),Q6=uc(),ze=uc(),Rn=uc(),Du=uc(),No=uc();function uc(){return 2**++Lme}const ET=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ot,booleanish:dr,commaOrSpaceSeparated:No,commaSeparated:Du,number:ze,overloadedBoolean:Q6,spaceSeparated:Rn},Symbol.toStringTag,{value:"Module"})),BE=Object.keys(ET);class WC extends Aa{constructor(t,n,r,o){let a=-1;if(super(t,n),FO(this,"space",o),typeof r=="number")for(;++a<BE.length;){const s=BE[a];FO(this,BE[a],(r&ET[s])===ET[s])}}}WC.prototype.defined=!0;function FO(e,t,n){n&&(e[t]=n)}const Mme={}.hasOwnProperty;function md(e){const t={},n={};let r;for(r in e.properties)if(Mme.call(e.properties,r)){const o=e.properties[r],a=new WC(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[vT(r)]=r,n[vT(a.attribute)]=r}return new Lh(t,n,e.space)}const X6=md({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Z6=md({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function J6(e,t){return t in e?e[t]:t}function eM(e,t){return J6(e,t.toLowerCase())}const tM=md({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:eM,properties:{xmlns:null,xmlnsXLink:null}}),nM=md({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:dr,ariaAutoComplete:null,ariaBusy:dr,ariaChecked:dr,ariaColCount:ze,ariaColIndex:ze,ariaColSpan:ze,ariaControls:Rn,ariaCurrent:null,ariaDescribedBy:Rn,ariaDetails:null,ariaDisabled:dr,ariaDropEffect:Rn,ariaErrorMessage:null,ariaExpanded:dr,ariaFlowTo:Rn,ariaGrabbed:dr,ariaHasPopup:null,ariaHidden:dr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rn,ariaLevel:ze,ariaLive:null,ariaModal:dr,ariaMultiLine:dr,ariaMultiSelectable:dr,ariaOrientation:null,ariaOwns:Rn,ariaPlaceholder:null,ariaPosInSet:ze,ariaPressed:dr,ariaReadOnly:dr,ariaRelevant:null,ariaRequired:dr,ariaRoleDescription:Rn,ariaRowCount:ze,ariaRowIndex:ze,ariaRowSpan:ze,ariaSelected:dr,ariaSetSize:ze,ariaSort:null,ariaValueMax:ze,ariaValueMin:ze,ariaValueNow:ze,ariaValueText:null,role:null}}),Fme=md({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:eM,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Du,acceptCharset:Rn,accessKey:Rn,action:null,allow:null,allowFullScreen:Ot,allowPaymentRequest:Ot,allowUserMedia:Ot,alt:null,as:null,async:Ot,autoCapitalize:null,autoComplete:Rn,autoFocus:Ot,autoPlay:Ot,blocking:Rn,capture:null,charSet:null,checked:Ot,cite:null,className:Rn,cols:ze,colSpan:null,content:null,contentEditable:dr,controls:Ot,controlsList:Rn,coords:ze|Du,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ot,defer:Ot,dir:null,dirName:null,disabled:Ot,download:Q6,draggable:dr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ot,formTarget:null,headers:Rn,height:ze,hidden:Ot,high:ze,href:null,hrefLang:null,htmlFor:Rn,httpEquiv:Rn,id:null,imageSizes:null,imageSrcSet:null,inert:Ot,inputMode:null,integrity:null,is:null,isMap:Ot,itemId:null,itemProp:Rn,itemRef:Rn,itemScope:Ot,itemType:Rn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ot,low:ze,manifest:null,max:null,maxLength:ze,media:null,method:null,min:null,minLength:ze,multiple:Ot,muted:Ot,name:null,nonce:null,noModule:Ot,noValidate:Ot,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:Ot,optimum:ze,pattern:null,ping:Rn,placeholder:null,playsInline:Ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ot,referrerPolicy:null,rel:Rn,required:Ot,reversed:Ot,rows:ze,rowSpan:ze,sandbox:Rn,scope:null,scoped:Ot,seamless:Ot,selected:Ot,shadowRootClonable:Ot,shadowRootDelegatesFocus:Ot,shadowRootMode:null,shape:null,size:ze,sizes:null,slot:null,span:ze,spellCheck:dr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ze,step:null,style:null,tabIndex:ze,target:null,title:null,translate:null,type:null,typeMustMatch:Ot,useMap:null,value:dr,width:ze,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rn,axis:null,background:null,bgColor:null,border:ze,borderColor:null,bottomMargin:ze,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ot,declare:Ot,event:null,face:null,frame:null,frameBorder:null,hSpace:ze,leftMargin:ze,link:null,longDesc:null,lowSrc:null,marginHeight:ze,marginWidth:ze,noResize:Ot,noHref:Ot,noShade:Ot,noWrap:Ot,object:null,profile:null,prompt:null,rev:null,rightMargin:ze,rules:null,scheme:null,scrolling:dr,standby:null,summary:null,text:null,topMargin:ze,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ze,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ot,disableRemotePlayback:Ot,prefix:null,property:null,results:ze,security:null,unselectable:null}}),Bme=md({space:"svg",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"},transform:J6,properties:{about:No,accentHeight:ze,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ze,amplitude:ze,arabicForm:null,ascent:ze,attributeName:null,attributeType:null,azimuth:ze,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ze,by:null,calcMode:null,capHeight:ze,className:Rn,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:ze,diffuseConstant:ze,direction:null,display:null,dur:null,divisor:ze,dominantBaseline:null,download:Ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:ze,enableBackground:null,end:null,event:null,exponent:ze,externalResourcesRequired:null,fill:null,fillOpacity:ze,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:Du,g2:Du,glyphName:Du,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ze,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ze,horizOriginX:ze,horizOriginY:ze,id:null,ideographic:ze,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ze,k:ze,k1:ze,k2:ze,k3:ze,k4:ze,kernelMatrix:No,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ze,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:ze,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:ze,overlineThickness:ze,paintOrder:null,panose1:null,path:null,pathLength:ze,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ze,pointsAtY:ze,pointsAtZ:ze,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:No,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:No,rev:No,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:No,requiredFeatures:No,requiredFonts:No,requiredFormats:No,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:ze,specularExponent:ze,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ze,strikethroughThickness:ze,string:null,stroke:null,strokeDashArray:No,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ze,strokeOpacity:ze,strokeWidth:null,style:null,surfaceScale:ze,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:No,tabIndex:ze,tableValues:null,target:null,targetX:ze,targetY:ze,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:No,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ze,underlineThickness:ze,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ze,values:null,vAlphabetic:ze,vMathematical:ze,vectorEffect:null,vHanging:ze,vIdeographic:ze,version:null,vertAdvY:ze,vertOriginX:ze,vertOriginY:ze,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ze,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),jme=/^data[-\w.:]+$/i,BO=/-[a-z]/g,Ume=/[A-Z]/g;function Hme(e,t){const n=vT(t);let r=t,o=Aa;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&jme.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(BO,$me);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!BO.test(a)){let s=a.replace(Ume,zme);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=WC}return new o(r,t)}function zme(e){return"-"+e.toLowerCase()}function $me(e){return e.charAt(1).toUpperCase()}const Vme=K6([Z6,X6,tM,nM,Fme],"html"),rM=K6([Z6,X6,tM,nM,Bme],"svg"),Gme={},qme={}.hasOwnProperty,oM=eb("type",{handlers:{root:Yme,element:Jme,text:Xme,comment:Zme,doctype:Qme}});function Wme(e,t){const n=(t||Gme).space;return oM(e,n==="svg"?rM:Vme)}function Yme(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=YC(e.children,n,t),gd(e,n),n}function Kme(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=YC(e.children,n,t),gd(e,n),n}function Qme(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return gd(e,t),t}function Xme(e){const t={nodeName:"#text",value:e.value,parentNode:null};return gd(e,t),t}function Zme(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return gd(e,t),t}function Jme(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=rM);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&qme.call(e.properties,a)){const u=ege(r,a,e.properties[a]);u&&o.push(u)}}const s=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:jl[s],childNodes:[],parentNode:null};return c.childNodes=YC(e.children,c,r),gd(e,c),e.tagName==="template"&&e.content&&(c.content=Kme(e.content,r)),c}function ege(e,t,n){const r=Hme(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?tb(n):nb(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=o.name.indexOf(":");a<0?o.prefix="":(o.name=o.name.slice(a+1),o.prefix=r.attribute.slice(0,a)),o.namespace=jl[r.space]}return o}function YC(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=oM(e[r],n);a.parentNode=t,o.push(a)}return o}function gd(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const tge=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),jn="�";var $;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})($||($={}));const fo={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function aM(e){return e>=55296&&e<=57343}function nge(e){return e>=56320&&e<=57343}function rge(e,t){return(e-55296)*1024+9216+t}function iM(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function sM(e){return e>=64976&&e<=65007||tge.has(e)}var Te;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Te||(Te={}));const oge=65536;class age{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=oge,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:a}=this,s=o+n,c=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(nge(n))return this.pos++,this._addGap(),rge(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$.EOF;return this._err(Te.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;const r=this.html.charCodeAt(n);return r===$.CARRIAGE_RETURN?$.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$.EOF;let t=this.html.charCodeAt(this.pos);return t===$.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$.LINE_FEED):t===$.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,aM(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===$.LINE_FEED||t===$.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){iM(t)?this._err(Te.controlCharacterInInputStream):sM(t)&&this._err(Te.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var $t;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})($t||($t={}));function lM(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const cM=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ige=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var jE;const sge=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),lge=(jE=String.fromCodePoint)!==null&&jE!==void 0?jE:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function cge(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=sge.get(e))!==null&&t!==void 0?t:e}var Or;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Or||(Or={}));const uge=32;var $s;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})($s||($s={}));function xT(e){return e>=Or.ZERO&&e<=Or.NINE}function dge(e){return e>=Or.UPPER_A&&e<=Or.UPPER_F||e>=Or.LOWER_A&&e<=Or.LOWER_F}function fge(e){return e>=Or.UPPER_A&&e<=Or.UPPER_Z||e>=Or.LOWER_A&&e<=Or.LOWER_Z||xT(e)}function pge(e){return e===Or.EQUALS||fge(e)}var Rr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Rr||(Rr={}));var Gi;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Gi||(Gi={}));class uM{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Rr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Gi.Strict}startEntity(t){this.decodeMode=t,this.state=Rr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Rr.EntityStart:return t.charCodeAt(n)===Or.NUM?(this.state=Rr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Rr.NamedEntity,this.stateNamedEntity(t,n));case Rr.NumericStart:return this.stateNumericStart(t,n);case Rr.NumericDecimal:return this.stateNumericDecimal(t,n);case Rr.NumericHex:return this.stateNumericHex(t,n);case Rr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|uge)===Or.LOWER_X?(this.state=Rr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Rr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const a=r-n;this.result=this.result*Math.pow(o,a)+parseInt(t.substr(n,a),o),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(xT(o)||dge(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(xT(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Or.SEMI)this.consumed+=1;else if(this.decodeMode===Gi.Strict)return 0;return this.emitCodePoint(cge(this.result),this.consumed),this.errors&&(t!==Or.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],a=(o&$s.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=hge(r,o,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Gi.Attribute&&(a===0||pge(s))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&$s.VALUE_LENGTH)>>14,a!==0){if(s===Or.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Gi.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&$s.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~$s.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Rr.NamedEntity:return this.result!==0&&(this.decodeMode!==Gi.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Rr.NumericDecimal:return this.emitNumericEntity(0,2);case Rr.NumericHex:return this.emitNumericEntity(0,3);case Rr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Rr.EntityStart:return 0}}}function dM(e){let t="";const n=new uM(e,r=>t+=lge(r));return function(r,o){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(a,s),n.startEntity(o);const u=n.write(r,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const c=t+r.slice(a);return t="",c}}function hge(e,t,n,r){const o=(t&$s.BRANCH_LENGTH)>>7,a=t&$s.JUMP_TABLE;if(o===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=o?-1:e[n+u]-1}let s=n,c=s+o-1;for(;s<=c;){const u=s+c>>>1,d=e[u];if(d<r)s=u+1;else if(d>r)c=u-1;else return e[u+o]}return-1}dM(cM);dM(ige);var Ne;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Ne||(Ne={}));var Gl;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Gl||(Gl={}));var ha;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ha||(ha={}));var de;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(de||(de={}));var A;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(A||(A={}));const mge=new Map([[de.A,A.A],[de.ADDRESS,A.ADDRESS],[de.ANNOTATION_XML,A.ANNOTATION_XML],[de.APPLET,A.APPLET],[de.AREA,A.AREA],[de.ARTICLE,A.ARTICLE],[de.ASIDE,A.ASIDE],[de.B,A.B],[de.BASE,A.BASE],[de.BASEFONT,A.BASEFONT],[de.BGSOUND,A.BGSOUND],[de.BIG,A.BIG],[de.BLOCKQUOTE,A.BLOCKQUOTE],[de.BODY,A.BODY],[de.BR,A.BR],[de.BUTTON,A.BUTTON],[de.CAPTION,A.CAPTION],[de.CENTER,A.CENTER],[de.CODE,A.CODE],[de.COL,A.COL],[de.COLGROUP,A.COLGROUP],[de.DD,A.DD],[de.DESC,A.DESC],[de.DETAILS,A.DETAILS],[de.DIALOG,A.DIALOG],[de.DIR,A.DIR],[de.DIV,A.DIV],[de.DL,A.DL],[de.DT,A.DT],[de.EM,A.EM],[de.EMBED,A.EMBED],[de.FIELDSET,A.FIELDSET],[de.FIGCAPTION,A.FIGCAPTION],[de.FIGURE,A.FIGURE],[de.FONT,A.FONT],[de.FOOTER,A.FOOTER],[de.FOREIGN_OBJECT,A.FOREIGN_OBJECT],[de.FORM,A.FORM],[de.FRAME,A.FRAME],[de.FRAMESET,A.FRAMESET],[de.H1,A.H1],[de.H2,A.H2],[de.H3,A.H3],[de.H4,A.H4],[de.H5,A.H5],[de.H6,A.H6],[de.HEAD,A.HEAD],[de.HEADER,A.HEADER],[de.HGROUP,A.HGROUP],[de.HR,A.HR],[de.HTML,A.HTML],[de.I,A.I],[de.IMG,A.IMG],[de.IMAGE,A.IMAGE],[de.INPUT,A.INPUT],[de.IFRAME,A.IFRAME],[de.KEYGEN,A.KEYGEN],[de.LABEL,A.LABEL],[de.LI,A.LI],[de.LINK,A.LINK],[de.LISTING,A.LISTING],[de.MAIN,A.MAIN],[de.MALIGNMARK,A.MALIGNMARK],[de.MARQUEE,A.MARQUEE],[de.MATH,A.MATH],[de.MENU,A.MENU],[de.META,A.META],[de.MGLYPH,A.MGLYPH],[de.MI,A.MI],[de.MO,A.MO],[de.MN,A.MN],[de.MS,A.MS],[de.MTEXT,A.MTEXT],[de.NAV,A.NAV],[de.NOBR,A.NOBR],[de.NOFRAMES,A.NOFRAMES],[de.NOEMBED,A.NOEMBED],[de.NOSCRIPT,A.NOSCRIPT],[de.OBJECT,A.OBJECT],[de.OL,A.OL],[de.OPTGROUP,A.OPTGROUP],[de.OPTION,A.OPTION],[de.P,A.P],[de.PARAM,A.PARAM],[de.PLAINTEXT,A.PLAINTEXT],[de.PRE,A.PRE],[de.RB,A.RB],[de.RP,A.RP],[de.RT,A.RT],[de.RTC,A.RTC],[de.RUBY,A.RUBY],[de.S,A.S],[de.SCRIPT,A.SCRIPT],[de.SEARCH,A.SEARCH],[de.SECTION,A.SECTION],[de.SELECT,A.SELECT],[de.SOURCE,A.SOURCE],[de.SMALL,A.SMALL],[de.SPAN,A.SPAN],[de.STRIKE,A.STRIKE],[de.STRONG,A.STRONG],[de.STYLE,A.STYLE],[de.SUB,A.SUB],[de.SUMMARY,A.SUMMARY],[de.SUP,A.SUP],[de.TABLE,A.TABLE],[de.TBODY,A.TBODY],[de.TEMPLATE,A.TEMPLATE],[de.TEXTAREA,A.TEXTAREA],[de.TFOOT,A.TFOOT],[de.TD,A.TD],[de.TH,A.TH],[de.THEAD,A.THEAD],[de.TITLE,A.TITLE],[de.TR,A.TR],[de.TRACK,A.TRACK],[de.TT,A.TT],[de.U,A.U],[de.UL,A.UL],[de.SVG,A.SVG],[de.VAR,A.VAR],[de.WBR,A.WBR],[de.XMP,A.XMP]]);function yd(e){var t;return(t=mge.get(e))!==null&&t!==void 0?t:A.UNKNOWN}const Me=A,gge={[Ne.HTML]:new Set([Me.ADDRESS,Me.APPLET,Me.AREA,Me.ARTICLE,Me.ASIDE,Me.BASE,Me.BASEFONT,Me.BGSOUND,Me.BLOCKQUOTE,Me.BODY,Me.BR,Me.BUTTON,Me.CAPTION,Me.CENTER,Me.COL,Me.COLGROUP,Me.DD,Me.DETAILS,Me.DIR,Me.DIV,Me.DL,Me.DT,Me.EMBED,Me.FIELDSET,Me.FIGCAPTION,Me.FIGURE,Me.FOOTER,Me.FORM,Me.FRAME,Me.FRAMESET,Me.H1,Me.H2,Me.H3,Me.H4,Me.H5,Me.H6,Me.HEAD,Me.HEADER,Me.HGROUP,Me.HR,Me.HTML,Me.IFRAME,Me.IMG,Me.INPUT,Me.LI,Me.LINK,Me.LISTING,Me.MAIN,Me.MARQUEE,Me.MENU,Me.META,Me.NAV,Me.NOEMBED,Me.NOFRAMES,Me.NOSCRIPT,Me.OBJECT,Me.OL,Me.P,Me.PARAM,Me.PLAINTEXT,Me.PRE,Me.SCRIPT,Me.SECTION,Me.SELECT,Me.SOURCE,Me.STYLE,Me.SUMMARY,Me.TABLE,Me.TBODY,Me.TD,Me.TEMPLATE,Me.TEXTAREA,Me.TFOOT,Me.TH,Me.THEAD,Me.TITLE,Me.TR,Me.TRACK,Me.UL,Me.WBR,Me.XMP]),[Ne.MATHML]:new Set([Me.MI,Me.MO,Me.MN,Me.MS,Me.MTEXT,Me.ANNOTATION_XML]),[Ne.SVG]:new Set([Me.TITLE,Me.FOREIGN_OBJECT,Me.DESC]),[Ne.XLINK]:new Set,[Ne.XML]:new Set,[Ne.XMLNS]:new Set},TT=new Set([Me.H1,Me.H2,Me.H3,Me.H4,Me.H5,Me.H6]);de.STYLE,de.SCRIPT,de.XMP,de.IFRAME,de.NOEMBED,de.NOFRAMES,de.PLAINTEXT;var q;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(q||(q={}));const rr={DATA:q.DATA,RCDATA:q.RCDATA,RAWTEXT:q.RAWTEXT,SCRIPT_DATA:q.SCRIPT_DATA,PLAINTEXT:q.PLAINTEXT,CDATA_SECTION:q.CDATA_SECTION};function yge(e){return e>=$.DIGIT_0&&e<=$.DIGIT_9}function np(e){return e>=$.LATIN_CAPITAL_A&&e<=$.LATIN_CAPITAL_Z}function bge(e){return e>=$.LATIN_SMALL_A&&e<=$.LATIN_SMALL_Z}function Ls(e){return bge(e)||np(e)}function jO(e){return Ls(e)||yge(e)}function bg(e){return e+32}function fM(e){return e===$.SPACE||e===$.LINE_FEED||e===$.TABULATION||e===$.FORM_FEED}function UO(e){return fM(e)||e===$.SOLIDUS||e===$.GREATER_THAN_SIGN}function vge(e){return e===$.NULL?Te.nullCharacterReference:e>1114111?Te.characterReferenceOutsideUnicodeRange:aM(e)?Te.surrogateCharacterReference:sM(e)?Te.noncharacterCharacterReference:iM(e)||e===$.CARRIAGE_RETURN?Te.controlCharacterReference:null}class Ege{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=q.DATA,this.returnState=q.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new age(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new uM(cM,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Te.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(Te.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=vge(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:$t.START_TAG,tagName:"",tagID:A.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:$t.END_TAG,tagName:"",tagID:A.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:$t.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:$t.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(lM(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Te.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=yd(t.tagName),t.type===$t.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(Te.endTagWithAttributes),t.selfClosing&&this._err(Te.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case $t.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case $t.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case $t.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:$t.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=fM(t)?$t.WHITESPACE_CHARACTER:t===$.NULL?$t.NULL_CHARACTER:$t.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken($t.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=q.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Gi.Attribute:Gi.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===q.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===q.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===q.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case q.DATA:{this._stateData(t);break}case q.RCDATA:{this._stateRcdata(t);break}case q.RAWTEXT:{this._stateRawtext(t);break}case q.SCRIPT_DATA:{this._stateScriptData(t);break}case q.PLAINTEXT:{this._statePlaintext(t);break}case q.TAG_OPEN:{this._stateTagOpen(t);break}case q.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case q.TAG_NAME:{this._stateTagName(t);break}case q.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case q.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case q.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case q.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case q.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case q.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case q.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case q.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case q.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case q.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case q.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case q.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case q.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case q.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case q.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case q.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case q.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case q.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case q.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case q.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case q.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case q.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case q.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case q.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case q.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case q.BOGUS_COMMENT:{this._stateBogusComment(t);break}case q.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case q.COMMENT_START:{this._stateCommentStart(t);break}case q.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case q.COMMENT:{this._stateComment(t);break}case q.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case q.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case q.COMMENT_END:{this._stateCommentEnd(t);break}case q.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case q.DOCTYPE:{this._stateDoctype(t);break}case q.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case q.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case q.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case q.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case q.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case q.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case q.CDATA_SECTION:{this._stateCdataSection(t);break}case q.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case q.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case q.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case q.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=q.TAG_OPEN;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this._emitCodePoint(t);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case $.AMPERSAND:{this._startCharacterReference();break}case $.LESS_THAN_SIGN:{this.state=q.RCDATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(jn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case $.LESS_THAN_SIGN:{this.state=q.RAWTEXT_LESS_THAN_SIGN;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(jn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case $.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_LESS_THAN_SIGN;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(jn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case $.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(jn);break}case $.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ls(t))this._createStartTagToken(),this.state=q.TAG_NAME,this._stateTagName(t);else switch(t){case $.EXCLAMATION_MARK:{this.state=q.MARKUP_DECLARATION_OPEN;break}case $.SOLIDUS:{this.state=q.END_TAG_OPEN;break}case $.QUESTION_MARK:{this._err(Te.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t);break}case $.EOF:{this._err(Te.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Te.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=q.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ls(t))this._createEndTagToken(),this.state=q.TAG_NAME,this._stateTagName(t);else switch(t){case $.GREATER_THAN_SIGN:{this._err(Te.missingEndTagName),this.state=q.DATA;break}case $.EOF:{this._err(Te.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Te.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=q.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this.state=q.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(Te.unexpectedNullCharacter),n.tagName+=jn;break}case $.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(np(t)?bg(t):t)}}_stateRcdataLessThanSign(t){t===$.SOLIDUS?this.state=q.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=q.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ls(t)?(this.state=q.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=q.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=q.BEFORE_ATTRIBUTE_NAME,!1;case $.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=q.SELF_CLOSING_START_TAG,!1;case $.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=q.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===$.SOLIDUS?this.state=q.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ls(t)?(this.state=q.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case $.SOLIDUS:{this.state=q.SCRIPT_DATA_END_TAG_OPEN;break}case $.EXCLAMATION_MARK:{this.state=q.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=q.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ls(t)?(this.state=q.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===$.HYPHEN_MINUS?(this.state=q.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===$.HYPHEN_MINUS?(this.state=q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=q.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(jn);break}case $.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_ESCAPED,this._emitChars(jn);break}case $.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case $.GREATER_THAN_SIGN:{this.state=q.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_ESCAPED,this._emitChars(jn);break}case $.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===$.SOLIDUS?this.state=q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ls(t)?(this._emitChars("<"),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ls(t)?(this.state=q.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(fo.SCRIPT,!1)&&UO(this.preprocessor.peek(fo.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<fo.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case $.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(jn);break}case $.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case $.HYPHEN_MINUS:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(jn);break}case $.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case $.HYPHEN_MINUS:{this._emitChars("-");break}case $.LESS_THAN_SIGN:{this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case $.GREATER_THAN_SIGN:{this.state=q.SCRIPT_DATA,this._emitChars(">");break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(jn);break}case $.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===$.SOLIDUS?(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(fo.SCRIPT,!1)&&UO(this.preprocessor.peek(fo.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<fo.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=q.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this.state=q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._err(Te.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=q.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=q.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:case $.SOLIDUS:case $.GREATER_THAN_SIGN:case $.EOF:{this._leaveAttrName(),this.state=q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case $.EQUALS_SIGN:{this._leaveAttrName(),this.state=q.BEFORE_ATTRIBUTE_VALUE;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:{this._err(Te.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.name+=jn;break}default:this.currentAttr.name+=String.fromCodePoint(np(t)?bg(t):t)}}_stateAfterAttributeName(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.SOLIDUS:{this.state=q.SELF_CLOSING_START_TAG;break}case $.EQUALS_SIGN:{this.state=q.BEFORE_ATTRIBUTE_VALUE;break}case $.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=q.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{this.state=q.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this.state=q.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(Te.missingAttributeValue),this.state=q.DATA,this.emitCurrentTagToken();break}default:this.state=q.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case $.QUOTATION_MARK:{this.state=q.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=jn;break}case $.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case $.APOSTROPHE:{this.state=q.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=jn;break}case $.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=q.BEFORE_ATTRIBUTE_NAME;break}case $.AMPERSAND:{this._startCharacterReference();break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=q.DATA,this.emitCurrentTagToken();break}case $.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=jn;break}case $.QUOTATION_MARK:case $.APOSTROPHE:case $.LESS_THAN_SIGN:case $.EQUALS_SIGN:case $.GRAVE_ACCENT:{this._err(Te.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case $.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this._leaveAttrValue(),this.state=q.BEFORE_ATTRIBUTE_NAME;break}case $.SOLIDUS:{this._leaveAttrValue(),this.state=q.SELF_CLOSING_START_TAG;break}case $.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=q.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._err(Te.missingWhitespaceBetweenAttributes),this.state=q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case $.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=q.DATA,this.emitCurrentTagToken();break}case $.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._err(Te.unexpectedSolidusInTag),this.state=q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentComment(n);break}case $.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case $.NULL:{this._err(Te.unexpectedNullCharacter),n.data+=jn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(fo.DASH_DASH,!0)?(this._createCommentToken(fo.DASH_DASH.length+1),this.state=q.COMMENT_START):this._consumeSequenceIfMatch(fo.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(fo.DOCTYPE.length+1),this.state=q.DOCTYPE):this._consumeSequenceIfMatch(fo.CDATA_START,!0)?this.inForeignNode?this.state=q.CDATA_SECTION:(this._err(Te.cdataInHtmlContent),this._createCommentToken(fo.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=q.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Te.incorrectlyOpenedComment),this._createCommentToken(2),this.state=q.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case $.HYPHEN_MINUS:{this.state=q.COMMENT_START_DASH;break}case $.GREATER_THAN_SIGN:{this._err(Te.abruptClosingOfEmptyComment),this.state=q.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=q.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=q.COMMENT_END;break}case $.GREATER_THAN_SIGN:{this._err(Te.abruptClosingOfEmptyComment),this.state=q.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=q.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=q.COMMENT_END_DASH;break}case $.LESS_THAN_SIGN:{n.data+="<",this.state=q.COMMENT_LESS_THAN_SIGN;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),n.data+=jn;break}case $.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case $.EXCLAMATION_MARK:{n.data+="!",this.state=q.COMMENT_LESS_THAN_SIGN_BANG;break}case $.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=q.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===$.HYPHEN_MINUS?this.state=q.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=q.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===$.HYPHEN_MINUS?this.state=q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=q.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==$.GREATER_THAN_SIGN&&t!==$.EOF&&this._err(Te.nestedComment),this.state=q.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{this.state=q.COMMENT_END;break}case $.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=q.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentComment(n);break}case $.EXCLAMATION_MARK:{this.state=q.COMMENT_END_BANG;break}case $.HYPHEN_MINUS:{n.data+="-";break}case $.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=q.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case $.HYPHEN_MINUS:{n.data+="--!",this.state=q.COMMENT_END_DASH;break}case $.GREATER_THAN_SIGN:{this._err(Te.incorrectlyClosedComment),this.state=q.DATA,this.emitCurrentComment(n);break}case $.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=q.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case $.EOF:{this._err(Te.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingWhitespaceBeforeDoctypeName),this.state=q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(np(t))this._createDoctypeToken(String.fromCharCode(bg(t))),this.state=q.DOCTYPE_NAME;else switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.NULL:{this._err(Te.unexpectedNullCharacter),this._createDoctypeToken(jn),this.state=q.DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case $.EOF:{this._err(Te.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=q.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=q.AFTER_DOCTYPE_NAME;break}case $.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case $.NULL:{this._err(Te.unexpectedNullCharacter),n.name+=jn;break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(np(t)?bg(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(fo.PUBLIC,!1)?this.state=q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(fo.SYSTEM,!1)?this.state=q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Te.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(Te.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(Te.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(Te.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.publicId="",this.state=q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(Te.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),n.publicId+=jn;break}case $.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case $.APOSTROPHE:{this.state=q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),n.publicId+=jn;break}case $.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case $.GREATER_THAN_SIGN:{this.state=q.DATA,this.emitCurrentDoctype(n);break}case $.QUOTATION_MARK:{this._err(Te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(Te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case $.QUOTATION_MARK:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:{this.state=q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.QUOTATION_MARK:{this._err(Te.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{this._err(Te.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.QUOTATION_MARK:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case $.APOSTROPHE:{n.systemId="",this.state=q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case $.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.DATA,this.emitCurrentDoctype(n);break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case $.QUOTATION_MARK:{this.state=q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),n.systemId+=jn;break}case $.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case $.APOSTROPHE:{this.state=q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case $.NULL:{this._err(Te.unexpectedNullCharacter),n.systemId+=jn;break}case $.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=q.DATA;break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case $.SPACE:case $.LINE_FEED:case $.TABULATION:case $.FORM_FEED:break;case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case $.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=q.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case $.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=q.DATA;break}case $.NULL:{this._err(Te.unexpectedNullCharacter);break}case $.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case $.RIGHT_SQUARE_BRACKET:{this.state=q.CDATA_SECTION_BRACKET;break}case $.EOF:{this._err(Te.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===$.RIGHT_SQUARE_BRACKET?this.state=q.CDATA_SECTION_END:(this._emitChars("]"),this.state=q.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case $.GREATER_THAN_SIGN:{this.state=q.DATA;break}case $.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=q.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference($.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&jO(this.preprocessor.peek(1))?q.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){jO(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===$.SEMICOLON&&this._err(Te.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const pM=new Set([A.DD,A.DT,A.LI,A.OPTGROUP,A.OPTION,A.P,A.RB,A.RP,A.RT,A.RTC]),HO=new Set([...pM,A.CAPTION,A.COLGROUP,A.TBODY,A.TD,A.TFOOT,A.TH,A.THEAD,A.TR]),Vy=new Set([A.APPLET,A.CAPTION,A.HTML,A.MARQUEE,A.OBJECT,A.TABLE,A.TD,A.TEMPLATE,A.TH]),xge=new Set([...Vy,A.OL,A.UL]),Tge=new Set([...Vy,A.BUTTON]),zO=new Set([A.ANNOTATION_XML,A.MI,A.MN,A.MO,A.MS,A.MTEXT]),$O=new Set([A.DESC,A.FOREIGN_OBJECT,A.TITLE]),Sge=new Set([A.TR,A.TEMPLATE,A.HTML]),Cge=new Set([A.TBODY,A.TFOOT,A.THEAD,A.TEMPLATE,A.HTML]),_ge=new Set([A.TABLE,A.TEMPLATE,A.HTML]),Age=new Set([A.TD,A.TH]);class wge{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=A.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===A.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ne.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Ne.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(TT,Ne.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Age,Ne.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(_ge,Ne.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Cge,Ne.HTML)}clearBackToTableRowContext(){this.clearBackTo(Sge,Ne.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===A.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===A.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Ne.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case Ne.SVG:{if($O.has(o))return!1;break}case Ne.MATHML:{if(zO.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Vy)}hasInListItemScope(t){return this.hasInDynamicScope(t,xge)}hasInButtonScope(t){return this.hasInDynamicScope(t,Tge)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Ne.HTML:{if(TT.has(n))return!0;if(Vy.has(n))return!1;break}case Ne.SVG:{if($O.has(n))return!1;break}case Ne.MATHML:{if(zO.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ne.HTML)switch(this.tagIDs[n]){case t:return!0;case A.TABLE:case A.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ne.HTML)switch(this.tagIDs[t]){case A.TBODY:case A.THEAD:case A.TFOOT:return!0;case A.TABLE:case A.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ne.HTML)switch(this.tagIDs[n]){case t:return!0;case A.OPTION:case A.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;pM.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;HO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&HO.has(this.currentTagId);)this.pop()}}const UE=3;var ii;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ii||(ii={}));const VO={type:ii.Marker};class kge{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const u=this.entries[c];if(u.type===ii.Marker)break;const{element:d}=u;if(this.treeAdapter.getTagName(d)===a&&this.treeAdapter.getNamespaceURI(d)===s){const p=this.treeAdapter.getAttrList(d);p.length===o&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<UE)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<UE)return;const o=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const c=r[s];c.attrs.every(u=>o.get(u.name)===u.value)&&(a+=1,a>=UE&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(VO)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ii.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ii.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(VO);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ii.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ii.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ii.Element&&n.element===t)}}const Ms={createDocument(){return{nodeName:"#document",mode:ha.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(a=>a.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ms.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ms.isTextNode(n)){n.value+=t;return}}Ms.appendChild(e,Ms.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ms.isTextNode(r)?r.value+=t:Ms.insertBefore(e,Ms.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},hM="html",Dge="about:legacy-compat",Rge="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",mM=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ige=[...mM,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Oge=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),gM=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Nge=[...gM,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function GO(e,t){return t.some(n=>e.startsWith(n))}function Pge(e){return e.name===hM&&e.publicId===null&&(e.systemId===null||e.systemId===Dge)}function Lge(e){if(e.name!==hM)return ha.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Rge)return ha.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Oge.has(n))return ha.QUIRKS;let r=t===null?Ige:mM;if(GO(n,r))return ha.QUIRKS;if(r=t===null?gM:Nge,GO(n,r))return ha.LIMITED_QUIRKS}return ha.NO_QUIRKS}const qO={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Mge="definitionurl",Fge="definitionURL",Bge=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),jge=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ne.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ne.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ne.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ne.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ne.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ne.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ne.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ne.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ne.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ne.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ne.XMLNS}]]),Uge=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Hge=new Set([A.B,A.BIG,A.BLOCKQUOTE,A.BODY,A.BR,A.CENTER,A.CODE,A.DD,A.DIV,A.DL,A.DT,A.EM,A.EMBED,A.H1,A.H2,A.H3,A.H4,A.H5,A.H6,A.HEAD,A.HR,A.I,A.IMG,A.LI,A.LISTING,A.MENU,A.META,A.NOBR,A.OL,A.P,A.PRE,A.RUBY,A.S,A.SMALL,A.SPAN,A.STRONG,A.STRIKE,A.SUB,A.SUP,A.TABLE,A.TT,A.U,A.UL,A.VAR]);function zge(e){const t=e.tagID;return t===A.FONT&&e.attrs.some(({name:n})=>n===Gl.COLOR||n===Gl.SIZE||n===Gl.FACE)||Hge.has(t)}function yM(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Mge){e.attrs[t].name=Fge;break}}function bM(e){for(let t=0;t<e.attrs.length;t++){const n=Bge.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function KC(e){for(let t=0;t<e.attrs.length;t++){const n=jge.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function $ge(e){const t=Uge.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=yd(e.tagName))}function Vge(e,t){return t===Ne.MATHML&&(e===A.MI||e===A.MO||e===A.MN||e===A.MS||e===A.MTEXT)}function Gge(e,t,n){if(t===Ne.MATHML&&e===A.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Gl.ENCODING){const o=n[r].value.toLowerCase();return o===qO.TEXT_HTML||o===qO.APPLICATION_XML}}return t===Ne.SVG&&(e===A.FOREIGN_OBJECT||e===A.DESC||e===A.TITLE)}function qge(e,t,n,r){return(!r||r===Ne.HTML)&&Gge(e,t,n)||(!r||r===Ne.MATHML)&&Vge(e,t)}const Wge="hidden",Yge=8,Kge=3;var Q;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Q||(Q={}));const Qge={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},vM=new Set([A.TABLE,A.TBODY,A.TFOOT,A.THEAD,A.TR]),WO={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ms,onParseError:null};class YO{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=Q.INITIAL,this.originalInsertionMode=Q.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...WO,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Ege(this.options,this),this.activeFormattingElements=new kge(this.treeAdapter),this.fragmentContextID=r?yd(this.treeAdapter.getTagName(r)):A.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new wge(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...WO,...n};t??(t=r.treeAdapter.createElement(de.TEMPLATE,Ne.HTML,[]));const o=r.treeAdapter.createElement("documentmock",Ne.HTML,[]),a=new this(r,o,t);return a.fragmentContextID===A.TEMPLATE&&a.tmplInsertionModeStack.unshift(Q.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const a=(o=t.location)!==null&&o!==void 0?o:Qge,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var o,a;(a=(o=this.treeAdapter).onItemPush)===null||a===void 0||a.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Ne.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Ne.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Q.TEXT}switchToPlaintextParsing(){this.insertionMode=Q.TEXT,this.originalInsertionMode=Q.IN_BODY,this.tokenizer.state=rr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===de.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Ne.HTML))switch(this.fragmentContextID){case A.TITLE:case A.TEXTAREA:{this.tokenizer.state=rr.RCDATA;break}case A.STYLE:case A.XMP:case A.IFRAME:case A.NOEMBED:case A.NOFRAMES:case A.NOSCRIPT:{this.tokenizer.state=rr.RAWTEXT;break}case A.SCRIPT:{this.tokenizer.state=rr.SCRIPT_DATA;break}case A.PLAINTEXT:{this.tokenizer.state=rr.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Ne.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ne.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(de.HTML,Ne.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,A.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),a=r?o.lastIndexOf(r):o.length,s=o[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),a=n.type===$t.END_TAG&&o===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===A.SVG&&this.treeAdapter.getTagName(n)===de.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Ne.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===A.MGLYPH||t.tagID===A.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Ne.HTML)}_processToken(t){switch(t.type){case $t.CHARACTER:{this.onCharacter(t);break}case $t.NULL_CHARACTER:{this.onNullCharacter(t);break}case $t.COMMENT:{this.onComment(t);break}case $t.DOCTYPE:{this.onDoctype(t);break}case $t.START_TAG:{this._processStartTag(t);break}case $t.END_TAG:{this.onEndTag(t);break}case $t.EOF:{this.onEof(t);break}case $t.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return qge(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===ii.Marker||this.openElements.contains(o.element)),r=n<0?t-1:n-1;for(let o=r;o>=0;o--){const a=this.activeFormattingElements.entries[o];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Q.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(A.P),this.openElements.popUntilTagNamePopped(A.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case A.TR:{this.insertionMode=Q.IN_ROW;return}case A.TBODY:case A.THEAD:case A.TFOOT:{this.insertionMode=Q.IN_TABLE_BODY;return}case A.CAPTION:{this.insertionMode=Q.IN_CAPTION;return}case A.COLGROUP:{this.insertionMode=Q.IN_COLUMN_GROUP;return}case A.TABLE:{this.insertionMode=Q.IN_TABLE;return}case A.BODY:{this.insertionMode=Q.IN_BODY;return}case A.FRAMESET:{this.insertionMode=Q.IN_FRAMESET;return}case A.SELECT:{this._resetInsertionModeForSelect(t);return}case A.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case A.HTML:{this.insertionMode=this.headElement?Q.AFTER_HEAD:Q.BEFORE_HEAD;return}case A.TD:case A.TH:{if(t>0){this.insertionMode=Q.IN_CELL;return}break}case A.HEAD:{if(t>0){this.insertionMode=Q.IN_HEAD;return}break}}this.insertionMode=Q.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===A.TEMPLATE)break;if(r===A.TABLE){this.insertionMode=Q.IN_SELECT_IN_TABLE;return}}this.insertionMode=Q.IN_SELECT}_isElementCausesFosterParenting(t){return vM.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case A.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Ne.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case A.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return gge[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){A0e(this,t);return}switch(this.insertionMode){case Q.INITIAL:{zf(this,t);break}case Q.BEFORE_HTML:{xp(this,t);break}case Q.BEFORE_HEAD:{Tp(this,t);break}case Q.IN_HEAD:{Sp(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Cp(this,t);break}case Q.AFTER_HEAD:{_p(this,t);break}case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:{xM(this,t);break}case Q.TEXT:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:{HE(this,t);break}case Q.IN_TABLE_TEXT:{wM(this,t);break}case Q.IN_COLUMN_GROUP:{Gy(this,t);break}case Q.AFTER_BODY:{qy(this,t);break}case Q.AFTER_AFTER_BODY:{qg(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_0e(this,t);return}switch(this.insertionMode){case Q.INITIAL:{zf(this,t);break}case Q.BEFORE_HTML:{xp(this,t);break}case Q.BEFORE_HEAD:{Tp(this,t);break}case Q.IN_HEAD:{Sp(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Cp(this,t);break}case Q.AFTER_HEAD:{_p(this,t);break}case Q.TEXT:{this._insertCharacters(t);break}case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:{HE(this,t);break}case Q.IN_COLUMN_GROUP:{Gy(this,t);break}case Q.AFTER_BODY:{qy(this,t);break}case Q.AFTER_AFTER_BODY:{qg(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ST(this,t);return}switch(this.insertionMode){case Q.INITIAL:case Q.BEFORE_HTML:case Q.BEFORE_HEAD:case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:case Q.IN_BODY:case Q.IN_TABLE:case Q.IN_CAPTION:case Q.IN_COLUMN_GROUP:case Q.IN_TABLE_BODY:case Q.IN_ROW:case Q.IN_CELL:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:case Q.IN_TEMPLATE:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:{ST(this,t);break}case Q.IN_TABLE_TEXT:{$f(this,t);break}case Q.AFTER_BODY:{rye(this,t);break}case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:{oye(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Q.INITIAL:{aye(this,t);break}case Q.BEFORE_HEAD:case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:{this._err(t,Te.misplacedDoctype);break}case Q.IN_TABLE_TEXT:{$f(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Te.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?w0e(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Q.INITIAL:{zf(this,t);break}case Q.BEFORE_HTML:{iye(this,t);break}case Q.BEFORE_HEAD:{lye(this,t);break}case Q.IN_HEAD:{Va(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{dye(this,t);break}case Q.AFTER_HEAD:{pye(this,t);break}case Q.IN_BODY:{Zr(this,t);break}case Q.IN_TABLE:{Gu(this,t);break}case Q.IN_TABLE_TEXT:{$f(this,t);break}case Q.IN_CAPTION:{c0e(this,t);break}case Q.IN_COLUMN_GROUP:{ZC(this,t);break}case Q.IN_TABLE_BODY:{gb(this,t);break}case Q.IN_ROW:{yb(this,t);break}case Q.IN_CELL:{f0e(this,t);break}case Q.IN_SELECT:{RM(this,t);break}case Q.IN_SELECT_IN_TABLE:{h0e(this,t);break}case Q.IN_TEMPLATE:{g0e(this,t);break}case Q.AFTER_BODY:{b0e(this,t);break}case Q.IN_FRAMESET:{v0e(this,t);break}case Q.AFTER_FRAMESET:{x0e(this,t);break}case Q.AFTER_AFTER_BODY:{S0e(this,t);break}case Q.AFTER_AFTER_FRAMESET:{C0e(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?k0e(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Q.INITIAL:{zf(this,t);break}case Q.BEFORE_HTML:{sye(this,t);break}case Q.BEFORE_HEAD:{cye(this,t);break}case Q.IN_HEAD:{uye(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{fye(this,t);break}case Q.AFTER_HEAD:{hye(this,t);break}case Q.IN_BODY:{mb(this,t);break}case Q.TEXT:{Jye(this,t);break}case Q.IN_TABLE:{lh(this,t);break}case Q.IN_TABLE_TEXT:{$f(this,t);break}case Q.IN_CAPTION:{u0e(this,t);break}case Q.IN_COLUMN_GROUP:{d0e(this,t);break}case Q.IN_TABLE_BODY:{CT(this,t);break}case Q.IN_ROW:{DM(this,t);break}case Q.IN_CELL:{p0e(this,t);break}case Q.IN_SELECT:{IM(this,t);break}case Q.IN_SELECT_IN_TABLE:{m0e(this,t);break}case Q.IN_TEMPLATE:{y0e(this,t);break}case Q.AFTER_BODY:{NM(this,t);break}case Q.IN_FRAMESET:{E0e(this,t);break}case Q.AFTER_FRAMESET:{T0e(this,t);break}case Q.AFTER_AFTER_BODY:{qg(this,t);break}}}onEof(t){switch(this.insertionMode){case Q.INITIAL:{zf(this,t);break}case Q.BEFORE_HTML:{xp(this,t);break}case Q.BEFORE_HEAD:{Tp(this,t);break}case Q.IN_HEAD:{Sp(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Cp(this,t);break}case Q.AFTER_HEAD:{_p(this,t);break}case Q.IN_BODY:case Q.IN_TABLE:case Q.IN_CAPTION:case Q.IN_COLUMN_GROUP:case Q.IN_TABLE_BODY:case Q.IN_ROW:case Q.IN_CELL:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:{_M(this,t);break}case Q.TEXT:{e0e(this,t);break}case Q.IN_TABLE_TEXT:{$f(this,t);break}case Q.IN_TEMPLATE:{OM(this,t);break}case Q.AFTER_BODY:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:{XC(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===$.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Q.IN_HEAD:case Q.IN_HEAD_NO_SCRIPT:case Q.AFTER_HEAD:case Q.TEXT:case Q.IN_COLUMN_GROUP:case Q.IN_SELECT:case Q.IN_SELECT_IN_TABLE:case Q.IN_FRAMESET:case Q.AFTER_FRAMESET:{this._insertCharacters(t);break}case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:case Q.AFTER_BODY:case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:{EM(this,t);break}case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:{HE(this,t);break}case Q.IN_TABLE_TEXT:{AM(this,t);break}}}}function Xge(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):CM(e,t),n}function Zge(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Jge(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,s=o;s!==n;a++,s=o){o=e.openElements.getCommonAncestor(s);const c=e.activeFormattingElements.getElementEntry(s),u=c&&a>=Kge;!c||u?(u&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(s)):(s=eye(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function eye(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function tye(e,t,n){const r=e.treeAdapter.getTagName(t),o=yd(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===A.TEMPLATE&&a===Ne.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function nye(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function QC(e,t){for(let n=0;n<Yge;n++){const r=Xge(e,t);if(!r)break;const o=Zge(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=Jge(e,o,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&tye(e,s,a),nye(e,o,r)}}function ST(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function rye(e,t){e._appendCommentNode(t,e.openElements.items[0])}function oye(e,t){e._appendCommentNode(t,e.document)}function XC(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function aye(e,t){e._setDocumentType(t);const n=t.forceQuirks?ha.QUIRKS:Lge(t);Pge(t)||e._err(t,Te.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Q.BEFORE_HTML}function zf(e,t){e._err(t,Te.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ha.QUIRKS),e.insertionMode=Q.BEFORE_HTML,e._processToken(t)}function iye(e,t){t.tagID===A.HTML?(e._insertElement(t,Ne.HTML),e.insertionMode=Q.BEFORE_HEAD):xp(e,t)}function sye(e,t){const n=t.tagID;(n===A.HTML||n===A.HEAD||n===A.BODY||n===A.BR)&&xp(e,t)}function xp(e,t){e._insertFakeRootElement(),e.insertionMode=Q.BEFORE_HEAD,e._processToken(t)}function lye(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.HEAD:{e._insertElement(t,Ne.HTML),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD;break}default:Tp(e,t)}}function cye(e,t){const n=t.tagID;n===A.HEAD||n===A.BODY||n===A.HTML||n===A.BR?Tp(e,t):e._err(t,Te.endTagWithoutMatchingOpenElement)}function Tp(e,t){e._insertFakeElement(de.HEAD,A.HEAD),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD,e._processToken(t)}function Va(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:{e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0;break}case A.TITLE:{e._switchToTextParsing(t,rr.RCDATA);break}case A.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,rr.RAWTEXT):(e._insertElement(t,Ne.HTML),e.insertionMode=Q.IN_HEAD_NO_SCRIPT);break}case A.NOFRAMES:case A.STYLE:{e._switchToTextParsing(t,rr.RAWTEXT);break}case A.SCRIPT:{e._switchToTextParsing(t,rr.SCRIPT_DATA);break}case A.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Q.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Q.IN_TEMPLATE);break}case A.HEAD:{e._err(t,Te.misplacedStartTagForHeadElement);break}default:Sp(e,t)}}function uye(e,t){switch(t.tagID){case A.HEAD:{e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD;break}case A.BODY:case A.BR:case A.HTML:{Sp(e,t);break}case A.TEMPLATE:{dc(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function dc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==A.TEMPLATE&&e._err(t,Te.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(A.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Te.endTagWithoutMatchingOpenElement)}function Sp(e,t){e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD,e._processToken(t)}function dye(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.BASEFONT:case A.BGSOUND:case A.HEAD:case A.LINK:case A.META:case A.NOFRAMES:case A.STYLE:{Va(e,t);break}case A.NOSCRIPT:{e._err(t,Te.nestedNoscriptInHead);break}default:Cp(e,t)}}function fye(e,t){switch(t.tagID){case A.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Q.IN_HEAD;break}case A.BR:{Cp(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function Cp(e,t){const n=t.type===$t.EOF?Te.openElementsLeftAfterEof:Te.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Q.IN_HEAD,e._processToken(t)}function pye(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.BODY:{e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_BODY;break}case A.FRAMESET:{e._insertElement(t,Ne.HTML),e.insertionMode=Q.IN_FRAMESET;break}case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:case A.NOFRAMES:case A.SCRIPT:case A.STYLE:case A.TEMPLATE:case A.TITLE:{e._err(t,Te.abandonedHeadElementChild),e.openElements.push(e.headElement,A.HEAD),Va(e,t),e.openElements.remove(e.headElement);break}case A.HEAD:{e._err(t,Te.misplacedStartTagForHeadElement);break}default:_p(e,t)}}function hye(e,t){switch(t.tagID){case A.BODY:case A.HTML:case A.BR:{_p(e,t);break}case A.TEMPLATE:{dc(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function _p(e,t){e._insertFakeElement(de.BODY,A.BODY),e.insertionMode=Q.IN_BODY,hb(e,t)}function hb(e,t){switch(t.type){case $t.CHARACTER:{xM(e,t);break}case $t.WHITESPACE_CHARACTER:{EM(e,t);break}case $t.COMMENT:{ST(e,t);break}case $t.START_TAG:{Zr(e,t);break}case $t.END_TAG:{mb(e,t);break}case $t.EOF:{_M(e,t);break}}}function EM(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function xM(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function mye(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function gye(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function yye(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ne.HTML),e.insertionMode=Q.IN_FRAMESET)}function bye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function vye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),TT.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ne.HTML)}function Eye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function xye(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),n||(e.formElement=e.openElements.current))}function Tye(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===A.LI&&o===A.LI||(n===A.DD||n===A.DT)&&(o===A.DD||o===A.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==A.ADDRESS&&o!==A.DIV&&o!==A.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Ne.HTML)}function Sye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.tokenizer.state=rr.PLAINTEXT}function Cye(e,t){e.openElements.hasInScope(A.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.framesetOk=!1}function _ye(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(de.A);n&&(QC(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Aye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wye(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(A.NOBR)&&(QC(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ne.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Dye(e,t){e.treeAdapter.getDocumentMode(e.document)!==ha.QUIRKS&&e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_TABLE}function TM(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function SM(e){const t=lM(e,Gl.TYPE);return t!=null&&t.toLowerCase()===Wge}function Rye(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ne.HTML),SM(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Iye(e,t){e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0}function Oye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._appendElement(t,Ne.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Nye(e,t){t.tagName=de.IMG,t.tagID=A.IMG,TM(e,t)}function Pye(e,t){e._insertElement(t,Ne.HTML),e.skipNextNewLine=!0,e.tokenizer.state=rr.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Q.TEXT}function Lye(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,rr.RAWTEXT)}function Mye(e,t){e.framesetOk=!1,e._switchToTextParsing(t,rr.RAWTEXT)}function KO(e,t){e._switchToTextParsing(t,rr.RAWTEXT)}function Fye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Q.IN_TABLE||e.insertionMode===Q.IN_CAPTION||e.insertionMode===Q.IN_TABLE_BODY||e.insertionMode===Q.IN_ROW||e.insertionMode===Q.IN_CELL?Q.IN_SELECT_IN_TABLE:Q.IN_SELECT}function Bye(e,t){e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML)}function jye(e,t){e.openElements.hasInScope(A.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ne.HTML)}function Uye(e,t){e.openElements.hasInScope(A.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(A.RTC),e._insertElement(t,Ne.HTML)}function Hye(e,t){e._reconstructActiveFormattingElements(),yM(t),KC(t),t.selfClosing?e._appendElement(t,Ne.MATHML):e._insertElement(t,Ne.MATHML),t.ackSelfClosing=!0}function zye(e,t){e._reconstructActiveFormattingElements(),bM(t),KC(t),t.selfClosing?e._appendElement(t,Ne.SVG):e._insertElement(t,Ne.SVG),t.ackSelfClosing=!0}function QO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ne.HTML)}function Zr(e,t){switch(t.tagID){case A.I:case A.S:case A.B:case A.U:case A.EM:case A.TT:case A.BIG:case A.CODE:case A.FONT:case A.SMALL:case A.STRIKE:case A.STRONG:{Aye(e,t);break}case A.A:{_ye(e,t);break}case A.H1:case A.H2:case A.H3:case A.H4:case A.H5:case A.H6:{vye(e,t);break}case A.P:case A.DL:case A.OL:case A.UL:case A.DIV:case A.DIR:case A.NAV:case A.MAIN:case A.MENU:case A.ASIDE:case A.CENTER:case A.FIGURE:case A.FOOTER:case A.HEADER:case A.HGROUP:case A.DIALOG:case A.DETAILS:case A.ADDRESS:case A.ARTICLE:case A.SEARCH:case A.SECTION:case A.SUMMARY:case A.FIELDSET:case A.BLOCKQUOTE:case A.FIGCAPTION:{bye(e,t);break}case A.LI:case A.DD:case A.DT:{Tye(e,t);break}case A.BR:case A.IMG:case A.WBR:case A.AREA:case A.EMBED:case A.KEYGEN:{TM(e,t);break}case A.HR:{Oye(e,t);break}case A.RB:case A.RTC:{jye(e,t);break}case A.RT:case A.RP:{Uye(e,t);break}case A.PRE:case A.LISTING:{Eye(e,t);break}case A.XMP:{Lye(e,t);break}case A.SVG:{zye(e,t);break}case A.HTML:{mye(e,t);break}case A.BASE:case A.LINK:case A.META:case A.STYLE:case A.TITLE:case A.SCRIPT:case A.BGSOUND:case A.BASEFONT:case A.TEMPLATE:{Va(e,t);break}case A.BODY:{gye(e,t);break}case A.FORM:{xye(e,t);break}case A.NOBR:{wye(e,t);break}case A.MATH:{Hye(e,t);break}case A.TABLE:{Dye(e,t);break}case A.INPUT:{Rye(e,t);break}case A.PARAM:case A.TRACK:case A.SOURCE:{Iye(e,t);break}case A.IMAGE:{Nye(e,t);break}case A.BUTTON:{Cye(e,t);break}case A.APPLET:case A.OBJECT:case A.MARQUEE:{kye(e,t);break}case A.IFRAME:{Mye(e,t);break}case A.SELECT:{Fye(e,t);break}case A.OPTION:case A.OPTGROUP:{Bye(e,t);break}case A.NOEMBED:case A.NOFRAMES:{KO(e,t);break}case A.FRAMESET:{yye(e,t);break}case A.TEXTAREA:{Pye(e,t);break}case A.NOSCRIPT:{e.options.scriptingEnabled?KO(e,t):QO(e,t);break}case A.PLAINTEXT:{Sye(e,t);break}case A.COL:case A.TH:case A.TD:case A.TR:case A.HEAD:case A.FRAME:case A.TBODY:case A.TFOOT:case A.THEAD:case A.CAPTION:case A.COLGROUP:break;default:QO(e,t)}}function $ye(e,t){if(e.openElements.hasInScope(A.BODY)&&(e.insertionMode=Q.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Vye(e,t){e.openElements.hasInScope(A.BODY)&&(e.insertionMode=Q.AFTER_BODY,NM(e,t))}function Gye(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function qye(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(A.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(A.FORM):n&&e.openElements.remove(n))}function Wye(e){e.openElements.hasInButtonScope(A.P)||e._insertFakeElement(de.P,A.P),e._closePElement()}function Yye(e){e.openElements.hasInListItemScope(A.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(A.LI),e.openElements.popUntilTagNamePopped(A.LI))}function Kye(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Qye(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Xye(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Zye(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(de.BR,A.BR),e.openElements.pop(),e.framesetOk=!1}function CM(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const a=e.openElements.items[o],s=e.openElements.tagIDs[o];if(r===s&&(r!==A.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(a,s))break}}function mb(e,t){switch(t.tagID){case A.A:case A.B:case A.I:case A.S:case A.U:case A.EM:case A.TT:case A.BIG:case A.CODE:case A.FONT:case A.NOBR:case A.SMALL:case A.STRIKE:case A.STRONG:{QC(e,t);break}case A.P:{Wye(e);break}case A.DL:case A.UL:case A.OL:case A.DIR:case A.DIV:case A.NAV:case A.PRE:case A.MAIN:case A.MENU:case A.ASIDE:case A.BUTTON:case A.CENTER:case A.FIGURE:case A.FOOTER:case A.HEADER:case A.HGROUP:case A.DIALOG:case A.ADDRESS:case A.ARTICLE:case A.DETAILS:case A.SEARCH:case A.SECTION:case A.SUMMARY:case A.LISTING:case A.FIELDSET:case A.BLOCKQUOTE:case A.FIGCAPTION:{Gye(e,t);break}case A.LI:{Yye(e);break}case A.DD:case A.DT:{Kye(e,t);break}case A.H1:case A.H2:case A.H3:case A.H4:case A.H5:case A.H6:{Qye(e);break}case A.BR:{Zye(e);break}case A.BODY:{$ye(e,t);break}case A.HTML:{Vye(e,t);break}case A.FORM:{qye(e);break}case A.APPLET:case A.OBJECT:case A.MARQUEE:{Xye(e,t);break}case A.TEMPLATE:{dc(e,t);break}default:CM(e,t)}}function _M(e,t){e.tmplInsertionModeStack.length>0?OM(e,t):XC(e,t)}function Jye(e,t){var n;t.tagID===A.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function e0e(e,t){e._err(t,Te.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function HE(e,t){if(vM.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Q.IN_TABLE_TEXT,t.type){case $t.CHARACTER:{wM(e,t);break}case $t.WHITESPACE_CHARACTER:{AM(e,t);break}}else Mh(e,t)}function t0e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ne.HTML),e.insertionMode=Q.IN_CAPTION}function n0e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ne.HTML),e.insertionMode=Q.IN_COLUMN_GROUP}function r0e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(de.COLGROUP,A.COLGROUP),e.insertionMode=Q.IN_COLUMN_GROUP,ZC(e,t)}function o0e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ne.HTML),e.insertionMode=Q.IN_TABLE_BODY}function a0e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(de.TBODY,A.TBODY),e.insertionMode=Q.IN_TABLE_BODY,gb(e,t)}function i0e(e,t){e.openElements.hasInTableScope(A.TABLE)&&(e.openElements.popUntilTagNamePopped(A.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function s0e(e,t){SM(t)?e._appendElement(t,Ne.HTML):Mh(e,t),t.ackSelfClosing=!0}function l0e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ne.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Gu(e,t){switch(t.tagID){case A.TD:case A.TH:case A.TR:{a0e(e,t);break}case A.STYLE:case A.SCRIPT:case A.TEMPLATE:{Va(e,t);break}case A.COL:{r0e(e,t);break}case A.FORM:{l0e(e,t);break}case A.TABLE:{i0e(e,t);break}case A.TBODY:case A.TFOOT:case A.THEAD:{o0e(e,t);break}case A.INPUT:{s0e(e,t);break}case A.CAPTION:{t0e(e,t);break}case A.COLGROUP:{n0e(e,t);break}default:Mh(e,t)}}function lh(e,t){switch(t.tagID){case A.TABLE:{e.openElements.hasInTableScope(A.TABLE)&&(e.openElements.popUntilTagNamePopped(A.TABLE),e._resetInsertionMode());break}case A.TEMPLATE:{dc(e,t);break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TBODY:case A.TD:case A.TFOOT:case A.TH:case A.THEAD:case A.TR:break;default:Mh(e,t)}}function Mh(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,hb(e,t),e.fosterParentingEnabled=n}function AM(e,t){e.pendingCharacterTokens.push(t)}function wM(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function $f(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Mh(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const kM=new Set([A.CAPTION,A.COL,A.COLGROUP,A.TBODY,A.TD,A.TFOOT,A.TH,A.THEAD,A.TR]);function c0e(e,t){const n=t.tagID;kM.has(n)?e.openElements.hasInTableScope(A.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Q.IN_TABLE,Gu(e,t)):Zr(e,t)}function u0e(e,t){const n=t.tagID;switch(n){case A.CAPTION:case A.TABLE:{e.openElements.hasInTableScope(A.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Q.IN_TABLE,n===A.TABLE&&lh(e,t));break}case A.BODY:case A.COL:case A.COLGROUP:case A.HTML:case A.TBODY:case A.TD:case A.TFOOT:case A.TH:case A.THEAD:case A.TR:break;default:mb(e,t)}}function ZC(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.COL:{e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0;break}case A.TEMPLATE:{Va(e,t);break}default:Gy(e,t)}}function d0e(e,t){switch(t.tagID){case A.COLGROUP:{e.openElements.currentTagId===A.COLGROUP&&(e.openElements.pop(),e.insertionMode=Q.IN_TABLE);break}case A.TEMPLATE:{dc(e,t);break}case A.COL:break;default:Gy(e,t)}}function Gy(e,t){e.openElements.currentTagId===A.COLGROUP&&(e.openElements.pop(),e.insertionMode=Q.IN_TABLE,e._processToken(t))}function gb(e,t){switch(t.tagID){case A.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ne.HTML),e.insertionMode=Q.IN_ROW;break}case A.TH:case A.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(de.TR,A.TR),e.insertionMode=Q.IN_ROW,yb(e,t);break}case A.CAPTION:case A.COL:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE,Gu(e,t));break}default:Gu(e,t)}}function CT(e,t){const n=t.tagID;switch(t.tagID){case A.TBODY:case A.TFOOT:case A.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE);break}case A.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE,lh(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TD:case A.TH:case A.TR:break;default:lh(e,t)}}function yb(e,t){switch(t.tagID){case A.TH:case A.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ne.HTML),e.insertionMode=Q.IN_CELL,e.activeFormattingElements.insertMarker();break}case A.CAPTION:case A.COL:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:case A.TR:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE_BODY,gb(e,t));break}default:Gu(e,t)}}function DM(e,t){switch(t.tagID){case A.TR:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE_BODY);break}case A.TABLE:{e.openElements.hasInTableScope(A.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE_BODY,CT(e,t));break}case A.TBODY:case A.TFOOT:case A.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(A.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Q.IN_TABLE_BODY,CT(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:case A.TD:case A.TH:break;default:lh(e,t)}}function f0e(e,t){const n=t.tagID;kM.has(n)?(e.openElements.hasInTableScope(A.TD)||e.openElements.hasInTableScope(A.TH))&&(e._closeTableCell(),yb(e,t)):Zr(e,t)}function p0e(e,t){const n=t.tagID;switch(n){case A.TD:case A.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Q.IN_ROW);break}case A.TABLE:case A.TBODY:case A.TFOOT:case A.THEAD:case A.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),DM(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:break;default:mb(e,t)}}function RM(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.OPTION:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e._insertElement(t,Ne.HTML);break}case A.OPTGROUP:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ne.HTML);break}case A.HR:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0;break}case A.INPUT:case A.KEYGEN:case A.TEXTAREA:case A.SELECT:{e.openElements.hasInSelectScope(A.SELECT)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),t.tagID!==A.SELECT&&e._processStartTag(t));break}case A.SCRIPT:case A.TEMPLATE:{Va(e,t);break}}}function IM(e,t){switch(t.tagID){case A.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===A.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===A.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop();break}case A.OPTION:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop();break}case A.SELECT:{e.openElements.hasInSelectScope(A.SELECT)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode());break}case A.TEMPLATE:{dc(e,t);break}}}function h0e(e,t){const n=t.tagID;n===A.CAPTION||n===A.TABLE||n===A.TBODY||n===A.TFOOT||n===A.THEAD||n===A.TR||n===A.TD||n===A.TH?(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),e._processStartTag(t)):RM(e,t)}function m0e(e,t){const n=t.tagID;n===A.CAPTION||n===A.TABLE||n===A.TBODY||n===A.TFOOT||n===A.THEAD||n===A.TR||n===A.TD||n===A.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(A.SELECT),e._resetInsertionMode(),e.onEndTag(t)):IM(e,t)}function g0e(e,t){switch(t.tagID){case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:case A.NOFRAMES:case A.SCRIPT:case A.STYLE:case A.TEMPLATE:case A.TITLE:{Va(e,t);break}case A.CAPTION:case A.COLGROUP:case A.TBODY:case A.TFOOT:case A.THEAD:{e.tmplInsertionModeStack[0]=Q.IN_TABLE,e.insertionMode=Q.IN_TABLE,Gu(e,t);break}case A.COL:{e.tmplInsertionModeStack[0]=Q.IN_COLUMN_GROUP,e.insertionMode=Q.IN_COLUMN_GROUP,ZC(e,t);break}case A.TR:{e.tmplInsertionModeStack[0]=Q.IN_TABLE_BODY,e.insertionMode=Q.IN_TABLE_BODY,gb(e,t);break}case A.TD:case A.TH:{e.tmplInsertionModeStack[0]=Q.IN_ROW,e.insertionMode=Q.IN_ROW,yb(e,t);break}default:e.tmplInsertionModeStack[0]=Q.IN_BODY,e.insertionMode=Q.IN_BODY,Zr(e,t)}}function y0e(e,t){t.tagID===A.TEMPLATE&&dc(e,t)}function OM(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(A.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):XC(e,t)}function b0e(e,t){t.tagID===A.HTML?Zr(e,t):qy(e,t)}function NM(e,t){var n;if(t.tagID===A.HTML){if(e.fragmentContext||(e.insertionMode=Q.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===A.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else qy(e,t)}function qy(e,t){e.insertionMode=Q.IN_BODY,hb(e,t)}function v0e(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.FRAMESET:{e._insertElement(t,Ne.HTML);break}case A.FRAME:{e._appendElement(t,Ne.HTML),t.ackSelfClosing=!0;break}case A.NOFRAMES:{Va(e,t);break}}}function E0e(e,t){t.tagID===A.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==A.FRAMESET&&(e.insertionMode=Q.AFTER_FRAMESET))}function x0e(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.NOFRAMES:{Va(e,t);break}}}function T0e(e,t){t.tagID===A.HTML&&(e.insertionMode=Q.AFTER_AFTER_FRAMESET)}function S0e(e,t){t.tagID===A.HTML?Zr(e,t):qg(e,t)}function qg(e,t){e.insertionMode=Q.IN_BODY,hb(e,t)}function C0e(e,t){switch(t.tagID){case A.HTML:{Zr(e,t);break}case A.NOFRAMES:{Va(e,t);break}}}function _0e(e,t){t.chars=jn,e._insertCharacters(t)}function A0e(e,t){e._insertCharacters(t),e.framesetOk=!1}function PM(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ne.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function w0e(e,t){if(zge(t))PM(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ne.MATHML?yM(t):r===Ne.SVG&&($ge(t),bM(t)),KC(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function k0e(e,t){if(t.tagID===A.P||t.tagID===A.BR){PM(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ne.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}de.AREA,de.BASE,de.BASEFONT,de.BGSOUND,de.BR,de.COL,de.EMBED,de.FRAME,de.HR,de.IMG,de.INPUT,de.KEYGEN,de.LINK,de.META,de.PARAM,de.SOURCE,de.TRACK,de.WBR;const D0e=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,R0e=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),XO={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function LM(e,t){const n=U0e(e),r=eb("type",{handlers:{root:I0e,element:O0e,text:N0e,comment:FM,doctype:P0e,raw:M0e},unknown:F0e}),o={parser:n?new YO(XO):YO.getFragmentParser(void 0,XO),handle(c){r(c,o)},stitches:!1,options:t||{}};r(e,o),bd(o,gi());const a=n?o.parser.document:o.parser.getFragment(),s=Ome(a,{file:o.options.file});return o.stitches&&To(s,"comment",function(c,u,d){const p=c;if(p.value.stitch&&d&&u!==void 0){const h=d.children;return h[u]=p.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function MM(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function I0e(e,t){MM(e.children,t)}function O0e(e,t){B0e(e,t),MM(e.children,t),j0e(e,t)}function N0e(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:$t.CHARACTER,chars:e.value,location:Fh(e)};bd(t,gi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function P0e(e,t){const n={type:$t.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Fh(e)};bd(t,gi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function L0e(e,t){t.stitches=!0;const n=H0e(e);if("children"in e&&"children"in n){const r=LM({type:"root",children:e.children},t.options);n.children=r.children}FM({type:"comment",value:{stitch:n}},t)}function FM(e,t){const n=e.value,r={type:$t.COMMENT,data:n,location:Fh(e)};bd(t,gi(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function M0e(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,BM(t,gi(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(D0e,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function F0e(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))L0e(n,t);else{let r="";throw R0e.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function bd(e,t){BM(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=rr.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function BM(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function B0e(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===rr.PLAINTEXT)return;bd(t,gi(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:jl.html;o===jl.html&&n==="svg"&&(o=jl.svg);const a=Wme({...e,children:[]},{space:o===jl.svg?"svg":"html"}),s={type:$t.START_TAG,tagName:n,tagID:yd(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Fh(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function j0e(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&jP.includes(n)||t.parser.tokenizer.state===rr.PLAINTEXT)return;bd(t,lb(e));const r={type:$t.END_TAG,tagName:n,tagID:yd(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Fh(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===rr.RCDATA||t.parser.tokenizer.state===rr.RAWTEXT||t.parser.tokenizer.state===rr.SCRIPT_DATA)&&(t.parser.tokenizer.state=rr.DATA)}function U0e(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Fh(e){const t=gi(e)||{line:void 0,column:void 0,offset:void 0},n=lb(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function H0e(e){return"children"in e?rc({...e,children:[]}):rc(e)}function jM(e){return function(t,n){return LM(t,{...e,file:n})}}const z0e=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,$0e=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,V0e=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{To(n,"blockquote",(r,o,a)=>{let s="",c="",u=!0,d=r.children.map(p=>{if(u&&p.type==="paragraph"){const h=p.children[0],g=h.type==="text"?h.value:"",y=e?$0e:z0e,b=g.match(y);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),c=e&&b[2]||s.toLocaleUpperCase(),g.includes(`
|
|
391
|
+
`)&&(p.children[0]={type:"text",value:g.replace(y,"").replace(/^\n+/,"")}),!g.includes(`
|
|
392
|
+
`))){const x=[];p.children.forEach((S,T)=>{T!=0&&(T==1&&S.type==="break"||x.push(S))}),p.children=[...x]}}return p});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},d.unshift({type:"paragraph",children:[G0e(s),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function G0e(e){let t=q0e[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const q0e={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function W0e(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let o=!1;try{o=!!document.execCommand("copy")}catch{o=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(o)}function UM(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?UM(t.parentElement):null}function Y0e(e){var t=n=>{var r=UM(n.target);r&&(r.classList.add("active"),W0e(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};w.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var o;(o=e.current)==null||o.removeEventListener("click",t,!1)}},[e])}var K0e=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Q0e=e=>e;const X0e=$e.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:o,style:a,disableCopy:s=!1,skipHtml:c=!0,onScroll:u,onMouseOver:d,pluginsFilter:p,wrapperElement:h={},warpperElement:g={},urlTransform:y}=e,b=mce(e,K0e),x=$e.useRef(null);w.useImperativeHandle(t,()=>Yi({},e,{mdp:x}),[x,e]);var S=(n||"")+" "+(r||"");Y0e(x);var T=[...b.rehypePlugins||[]],D={allowElement:(I,O,F)=>b.allowElement?b.allowElement(I,O,F):/^[A-Za-z0-9]+$/.test(I.tagName)};c&&T.push(jM);var k=[V0e,...b.remarkPlugins||[],xme],R=Yi({},g,h);return E.jsx("div",Yi({ref:x,onScroll:u,onMouseOver:d},R,{className:S,style:a,children:E.jsx(dpe,Yi({},D,b,{skipHtml:c,urlTransform:y||Q0e,rehypePlugins:p?p("rehype",T):T,remarkPlugins:p?p("remark",k):k,children:o||""}))}))});var Wg={},_T={};function Z0e(e,t){for(var n=t,r=0;r<e.length;r++){var o=r===e.length-1,a=e.charAt(r),s=n[a]||(n[a]={chars:{}});o&&(s.self=e),n=s.chars}}function ZO(e){if(e.length===0)return Wg;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];Z0e(o,t)}return t}function J0e(e){if(e.length===0)return _T;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}var vg={},JO={type:"String",optional:!0};function ebe(e){var t={type:"NoArgument",optional:!1};function n(s){if(t.type&&t.type!==s&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(s,'".'));t.type=s}for(var r=0,o=e;r<o.length;r++){var a=o[r];a==="NoArgument"&&(t.optional=!0),a==="Formula"&&n("Formula"),a==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),a==="String"&&n("String"),a==="Selector"&&n("Selector")}return t}function tbe(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var o=r[n],a=e[o];if(a)for(var s=0,c=a;s<c.length;s++){var u=c[s];(t[u]||(t[u]=[])).push(o)}}return t}function eN(e){for(var t=tbe(e),n={},r=0,o=Object.keys(t);r<o.length;r++){var a=o[r],s=t[a];s&&(n[a]=ebe(s))}return n}var qu=function(){return qu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qu.apply(this,arguments)},nbe={},AT={wildcard:!0};function rbe(e){return e?typeof e=="boolean"?AT:e:nbe}function obe(e,t){return function(n,r){return t(e(n),e(r))}}function abe(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function tN(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function su(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=qu({},t),o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],c=s[0],u=s[1];if(c!=="latest"){var d=e[c];r[c]=d(t[c],u)}}return r}}function Hi(e,t){return t!==void 0?t:e}function Eg(e,t){return t?e?e.concat(t):t:e}function nN(e,t){if(!t)return e;if(!e)return t;for(var n=qu({},e),r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],s=a[0],c=a[1];if(!c){delete n[s];continue}var u=e[s];if(!u){n[s]=c;continue}n[s]=u.concat(c)}return n}var ql=abe(su({baseSyntax:Hi,modules:Eg,tag:tN(AT,su({wildcard:Hi})),ids:Hi,classNames:Hi,namespace:tN(AT,su({wildcard:Hi})),combinators:Eg,attributes:su({operators:Eg,caseSensitivityModifiers:Eg,unknownCaseSensitivityModifiers:Hi}),pseudoClasses:su({unknown:Hi,definitions:nN}),pseudoElements:su({unknown:Hi,notation:Hi,definitions:obe(function(e){return Array.isArray(e)?{NoArgument:e}:e},nN)})})),HM={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},zM=ql(HM,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),wT=ql(zM,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),$M=ql(wT,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"],Selector:["part"]}}}),Wy={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{Selector:["part"]}}}},VM=qu(qu({},$M),{modules:Object.entries(Wy).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),ibe=ql(VM,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),kT={css1:HM,css2:zM,css3:wT,"selectors-3":wT,"selectors-4":$M,latest:VM,progressive:ibe};function sbe(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var o=r[n],a=kT[o];if(a.pseudoClasses&&typeof a.pseudoClasses=="object"){var s=a.pseudoClasses.definitions;if(s)for(var c=0,u=Object.entries(s);c<u.length;c++)for(var d=u[c],p=d[1],h=0,g=p;h<g.length;h++){var y=g[h];e.pseudoClasses[y]||(e.pseudoClasses[y]=[]),e.pseudoClasses[y].includes(o)||e.pseudoClasses[y].push(o)}}if(a.pseudoElements&&typeof a.pseudoElements=="object"){var s=a.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var b=0,x=s;b<x.length;b++){var S=x[b];e.pseudoElements[S]||(e.pseudoElements[S]=[]),e.pseudoElements[S].includes(o)||e.pseudoElements[S].push(o)}else for(var T=0,D=Object.values(s);T<D.length;T++)for(var p=D[T],k=0,R=p;k<R.length;k++){var I=R[k];e.pseudoElements[I]||(e.pseudoElements[I]=[]),e.pseudoElements[I].includes(o)||e.pseudoElements[I].push(o)}}}for(var O=0,F=Object.entries(Wy);O<F.length;O++){var U=F[O],H=U[0],C=U[1];if(C.pseudoClasses&&typeof C.pseudoClasses=="object"){var s=C.pseudoClasses.definitions;if(s)for(var M=0,V=Object.values(s);M<V.length;M++)for(var p=V[M],z=0,W=p;z<W.length;z++){var Y=W[z];e.pseudoClasses[Y]||(e.pseudoClasses[Y]=[]),e.pseudoClasses[Y].includes(H)||e.pseudoClasses[Y].push(H)}}if(C.pseudoElements&&typeof C.pseudoElements=="object"){var s=C.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var B=0,J=s;B<J.length;B++){var ae=J[B];e.pseudoElements[ae]||(e.pseudoElements[ae]=[]),e.pseudoElements[ae].includes(H)||e.pseudoElements[ae].push(H)}else for(var ne=0,N=Object.values(s);ne<N.length;ne++)for(var p=N[ne],K=0,ee=p;K<ee.length;K++){var P=ee[K];e.pseudoElements[P]||(e.pseudoElements[P]=[]),e.pseudoElements[P].includes(H)||e.pseudoElements[P].push(H)}}}return e}var rN=sbe();function Vf(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function oN(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Gf(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var lbe={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},cbe={'"':!0,"'":!0},zE={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},ube=6,$E="css-selector-parser parse error: ";function dbe(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,o=e.strict,a=o===void 0?!0:o,s=e.modules,c=typeof n=="object"?n:kT[n];if(c.baseSyntax&&(c=ql(kT[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var u=0,d=c.modules;u<d.length;u++){var p=d[u],h=Wy[p];h&&(c=ql(h,c))}if(s&&s.length>0)for(var g=0,y=s;g<y.length;g++){var b=y[g],h=Wy[b];h&&(c=ql(h,c))}var x=c.tag?[!0,!!rbe(c.tag).wildcard]:[!1,!1],S=x[0],T=x[1],D=!!c.ids,k=!!c.classNames,R=!!c.namespace,I=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(R&&!S)throw new Error("".concat($E,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,F=c.combinators?ZO(c.combinators):Wg,U=c.attributes?[!0,c.attributes.operators?ZO(c.attributes.operators):Wg,c.attributes.caseSensitivityModifiers?J0e(c.attributes.caseSensitivityModifiers):_T,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,Wg,_T,!1],H=U[0],C=U[1],M=U[2],V=U[3],z=V||Object.keys(M).length>0,W=c.pseudoClasses?[!0,c.pseudoClasses.definitions?eN(c.pseudoClasses.definitions):vg,c.pseudoClasses.unknown==="accept"]:[!1,vg,!1],Y=W[0],B=W[1],J=W[2],ae=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?eN(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):vg,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,vg,!1],ne=ae[0],N=ae[1],K=ae[2],ee=ae[3],P=ae[4],re="",me=re.length,oe=0,ve="",ye=function(Ee){return ve===Ee},Ve=function(){return ye("*")||Vf(ve)},Le=function(Ee){oe=Ee,ve=re.charAt(oe)},Oe=function(){oe++,ve=re.charAt(oe)},Qe=function(){var Ee=ve;return oe++,ve=re.charAt(oe),Ee};function nt(Ee){var Se=Math.min(me-1,oe),ht=new Error("".concat($E).concat(Ee," Pos: ").concat(Se,"."));throw ht.position=Se,ht.name="ParserError",ht}function De(Ee,Se){if(!Ee)return nt(Se)}var gt=function(){De(oe<me,"Unexpected end of input.")},Ct=function(){return oe>=me},Be=function(Ee){De(oe<me,'Expected "'.concat(Ee,'" but end of input reached.')),De(ve===Ee,'Expected "'.concat(Ee,'" but "').concat(ve,'" found.')),oe++,ve=re.charAt(oe)};function mt(Ee){var Se=it(Ee,oe);if(Se)return oe+=Se.length,ve=re.charAt(oe),Se}function it(Ee,Se){var ht=re.charAt(Se),rt=Ee[ht];if(rt){var mn=it(rt.chars,Se+1);if(mn)return mn;if(rt.self)return rt.self}}function lt(){for(var Ee=Qe(),Se=1;Gf(ve)&&Se<ube;)Ee+=Qe(),Se++;return Mt(),String.fromCharCode(parseInt(Ee,16))}function je(Ee){var Se="";for(Be(Ee);oe<me;){if(ye(Ee))return Oe(),Se;ye("\\")?(Oe(),ye(Ee)?(Se+=Ee,Oe()):ve===`
|
|
393
|
+
`||ve==="\f"?Oe():ve==="\r"?(Oe(),ye(`
|
|
394
|
+
`)&&Oe()):Gf(ve)?Se+=lt():(Se+=ve,Oe())):(Se+=ve,Oe())}return Se}function Pe(){if(!Vf(ve))return null;for(var Ee="";ye("-");)Ee+=ve,Oe();for(Ee==="-"&&!oN(ve)&&!ye("\\")&&nt("Identifiers cannot consist of a single hyphen."),a&&Ee.length>=2&&nt("Identifiers cannot start with two hyphens with strict mode on."),zE[ve]&&nt("Identifiers cannot start with hyphens followed by digits.");oe<me;)if(oN(ve))Ee+=Qe();else if(ye("\\"))Oe(),gt(),Gf(ve)?Ee+=lt():Ee+=Qe();else break;return Ee}function Jt(){for(var Ee="";oe<me&&!ye(")");)if(ye("\\")){if(Oe(),Ct()&&!a)return(Ee+"\\").trim();gt(),Gf(ve)?Ee+=lt():Ee+=Qe()}else Ee+=Qe();return Ee.trim()}function Mt(){if(ve===" "||ve===" "||ve==="\f"||ve===`
|
|
395
|
+
`){Oe();return}ve==="\r"&&Oe(),ve===`
|
|
396
|
+
`&&Oe()}function _t(){for(;lbe[ve];)Oe()}function ue(Ee){Ee===void 0&&(Ee=!1),_t();for(var Se=[Ke(Ee)];ye(",");)Oe(),_t(),Se.push(Ke(Ee));return{type:"Selector",rules:Se}}function ge(){Be("["),_t();var Ee;if(ye("|")){De(R,"Namespaces are not enabled."),Oe();var Se=Pe();De(Se,"Expected attribute name."),Ee={type:"Attribute",name:Se,namespace:{type:"NoNamespace"}}}else if(ye("*")){De(R,"Namespaces are not enabled."),De(I,"Wildcard namespace is not enabled."),Oe(),Be("|");var ht=Pe();De(ht,"Expected attribute name."),Ee={type:"Attribute",name:ht,namespace:{type:"WildcardNamespace"}}}else{var rt=Pe();if(De(rt,"Expected attribute name."),Ee={type:"Attribute",name:rt},ye("|")){var mn=oe;if(Oe(),Vf(ve)){De(R,"Namespaces are not enabled.");var Pr=Pe();De(Pr,"Expected attribute name."),Ee={type:"Attribute",name:Pr,namespace:{type:"NamespaceName",name:rt}}}else Le(mn)}}if(De(Ee.name,"Expected attribute name."),_t(),Ct()&&!a)return Ee;if(ye("]"))Oe();else{if(Ee.operator=mt(C),De(Ee.operator,"Expected a valid attribute selector operator."),_t(),gt(),cbe[ve])Ee.value={type:"String",value:je(ve)};else if(O&&ye("$")){Oe();var vr=Pe();De(vr,"Expected substitute name."),Ee.value={type:"Substitution",name:vr}}else{var $n=Pe();De($n,"Expected attribute value."),Ee.value={type:"String",value:$n}}if(_t(),Ct()&&!a)return Ee;if(!ye("]")){var sr=Pe();if(De(sr,"Expected end of attribute selector."),Ee.caseSensitivityModifier=sr,De(z,"Attribute case sensitivity modifiers are not enabled."),De(V||M[Ee.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),_t(),Ct()&&!a)return Ee}Be("]")}return Ee}function Ue(){for(var Ee="";zE[ve];)Ee+=Qe();return De(Ee!=="","Formula parse error."),parseInt(Ee)}var Xe=function(){return ye("-")||ye("+")||zE[ve]};function Et(){if(ye("e")||ye("o")){var Ee=Pe();if(Ee==="even")return _t(),[2,0];if(Ee==="odd")return _t(),[2,1]}var Se=null,ht=1;if(ye("-")&&(Oe(),ht=-1),Xe()&&(ye("+")&&Oe(),Se=Ue(),!ye("\\")&&!ye("n")))return[0,Se*ht];Se===null&&(Se=1),Se*=ht;var rt;if(ye("\\")?(Oe(),Gf(ve)?rt=lt():rt=Qe()):rt=Qe(),De(rt==="n",'Formula parse error: expected "n".'),_t(),ye("+")||ye("-")){var mn=ye("+")?1:-1;return Oe(),_t(),[Se,mn*Ue()]}else return[Se,0]}function Je(Ee,Se,ht){var rt;if(ye("(")){if(Oe(),_t(),O&&ye("$")){Oe();var mn=Pe();De(mn,"Expected substitute name."),rt={type:"Substitution",name:mn}}else if(ht.type==="String")rt={type:"String",value:Jt()},De(rt.value,"Expected ".concat(Se," argument value."));else if(ht.type==="Selector")rt=ue(!0);else if(ht.type==="Formula"){var Pr=Et(),vr=Pr[0],$n=Pr[1];if(rt={type:"Formula",a:vr,b:$n},ht.ofSelector&&(_t(),ye("o")||ye("\\"))){var sr=Pe();De(sr==="of","Formula of selector parse error."),_t(),rt={type:"FormulaOfSelector",a:vr,b:$n,selector:Ke()}}}else return nt("Invalid ".concat(Se," signature."));if(_t(),Ct()&&!a)return rt;Be(")")}else De(ht.optional,"Argument is required for ".concat(Se,' "').concat(Ee,'".'));return rt}function en(){if(ye("*"))return De(T,"Wildcard tag name is not enabled."),Oe(),{type:"WildcardTag"};if(Vf(ve)){De(S,"Tag names are not enabled.");var Ee=Pe();return De(Ee,"Expected tag name."),{type:"TagName",name:Ee}}else return nt("Expected tag name.")}function Ut(){if(ye("*")){var Ee=oe;if(Oe(),!ye("|")||(Oe(),!Ve()))return Le(Ee),en();De(R,"Namespaces are not enabled."),De(I,"Wildcard namespace is not enabled.");var Se=en();return Se.namespace={type:"WildcardNamespace"},Se}else if(ye("|")){De(R,"Namespaces are not enabled."),Oe();var Se=en();return Se.namespace={type:"NoNamespace"},Se}else if(Vf(ve)){var ht=Pe();if(De(ht,"Expected tag name."),!ye("|"))return De(S,"Tag names are not enabled."),{type:"TagName",name:ht};var Ee=oe;if(Oe(),!Ve())return Le(Ee),{type:"TagName",name:ht};De(R,"Namespaces are not enabled.");var Se=en();return Se.namespace={type:"NamespaceName",name:ht},Se}else return nt("Expected tag name.")}function Ke(Ee){var Se,ht;Ee===void 0&&(Ee=!1);var rt={type:"Rule",items:[]};if(Ee){var mn=mt(F);mn&&(rt.combinator=mn,_t())}for(;oe<me;)if(Ve())De(rt.items.length===0,"Unexpected tag/namespace start."),rt.items.push(Ut());else if(ye("|")){var Pr=oe;if(Oe(),Ve())De(rt.items.length===0,"Unexpected tag/namespace start."),Le(Pr),rt.items.push(Ut());else{Le(Pr);break}}else if(ye(".")){De(k,"Class names are not enabled."),Oe();var vr=Pe();De(vr,"Expected class name."),rt.items.push({type:"ClassName",name:vr})}else if(ye("#")){De(D,"IDs are not enabled."),Oe();var $n=Pe();De($n,"Expected ID name."),rt.items.push({type:"Id",name:$n})}else if(ye("["))De(H,"Attributes are not enabled."),rt.items.push(ge());else if(ye(":")){var sr=!1,oo=!1;Oe(),ye(":")&&(De(ne,"Pseudo elements are not enabled."),De(K,"Pseudo elements double colon notation is not enabled."),sr=!0,Oe());var xn=Pe();if(De(sr||xn,"Expected pseudo-class name."),De(!sr||xn,"Expected pseudo-element name."),De(xn,"Expected pseudo-class name."),!(!sr||P||Object.prototype.hasOwnProperty.call(ee,xn))){var Lr=rN.pseudoElements[xn],yt='Unknown pseudo-element "'.concat(xn,'"');Lr&&Lr.length>0&&(yt+=". It is defined in: ".concat(Lr.join(", "))),nt(yt+".")}if(oo=ne&&(sr||!sr&&N&&Object.prototype.hasOwnProperty.call(ee,xn)),oo){var te=(Se=ee[xn])!==null&&Se!==void 0?Se:P&&JO,Z={type:"PseudoElement",name:xn},ie=Je(xn,"pseudo-element",te);ie&&(De(ie.type!=="Formula"&&ie.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),Z.argument=ie),rt.items.push(Z)}else{De(Y,"Pseudo-classes are not enabled.");var te=(ht=B[xn])!==null&&ht!==void 0?ht:J&&JO;if(!te){var Lr=rN.pseudoClasses[xn],yt='Unknown pseudo-class: "'.concat(xn,'"');Lr&&Lr.length>0&&(yt+=". It is defined in: ".concat(Lr.join(", "))),nt(yt+".")}var ie=Je(xn,"pseudo-class",te),be={type:"PseudoClass",name:xn};ie&&(be.argument=ie),rt.items.push(be)}}else break;if(rt.items.length===0)return Ct()?nt("Expected rule but end of input reached."):nt('Expected rule but "'.concat(ve,'" found.'));if(_t(),!Ct()&&!ye(",")&&!ye(")")){var mn=mt(F);_t(),rt.nestedRule=Ke(),rt.nestedRule.combinator=mn}return rt}return function(Ee){if(typeof Ee!="string")throw new Error("".concat($E,"Expected string input."));return re=Ee,me=re.length,oe=0,ve=re.charAt(0),ue()}}const fbe=dbe({syntax:"selectors-4"});function pbe(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return fbe(e)}const GM="֑-߿יִ-﷽ﹰ-ﻼ",qM="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",hbe=new RegExp("^[^"+qM+"]*["+GM+"]"),mbe=new RegExp("^[^"+GM+"]*["+qM+"]");function gbe(e){const t=String(e||"");return hbe.test(t)?"rtl":mbe.test(t)?"ltr":"neutral"}function WM(e){return"children"in e?YM(e):"value"in e?e.value:""}function ybe(e){return e.type==="text"?e.value:"children"in e?YM(e):""}function YM(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=ybe(e.children[t]);return n.join("")}function bbe(e,t){const n=e.schema,r=e.language,o=e.direction,a=e.editableOrEditingHost;let s;if(t.type==="element"){const d=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",h=aN(t);d!=null&&(e.language=String(d)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=es),h==="rtl"?s=h:h==="ltr"||h!=="auto"&&t.tagName==="html"||h!=="auto"&&t.tagName==="input"&&p==="tel"?s="ltr":(h==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?s=VE(WM(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?VE(String(t.properties.value)):"ltr":To(t,u)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=o,e.editableOrEditingHost=a}function u(d){if(d.type==="text")return s=VE(d.value),s?zy:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||aN(d)))return Ep}}function VE(e){const t=gbe(e);return t==="neutral"?void 0:t}function aN(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function vbe(e,t,n){const r=Rh(n,e.name),o=t.properties[r.property];let a=Ebe(o,r);if(!e.value)return a!==void 0;e.value.type;let s=e.value.value;if(e.caseSensitivityModifier==="i"&&(s=s.toLowerCase(),a&&(a=a.toLowerCase())),a!==void 0)switch(e.operator){case"=":return s===a;case"$=":return s===a.slice(-s.length);case"*=":return a.includes(s);case"^=":return s===a.slice(0,s.length);case"|=":return s===a||s===a.slice(0,s.length)&&a.charAt(s.length)==="-";case"~=":return s===a||aT(a).includes(s)}return!1}function Ebe(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?tb:nb)(e)}else return String(e)}const xbe=[];function Tbe(e,t){return(t.properties.className||xbe).includes(e.name)}function Sbe(e,t){return t.properties.id===e.name}function Cbe(e,t){return e.name===t.tagName}function _be(e,t){return function(n,r){let o=iN(n,"tag");const a=iN(r??"*","range"),s=[];let c=-1;for(;++c<a.length;){const u=a[c].toLowerCase();let d=-1;const p=[];for(;++d<o.length;)e(o[d].toLowerCase(),u)?s.push(o[d]):p.push(o[d]);o=p}return s}}const Abe=_be(function(e,t){const n=e.split("-"),r=t.split("-");let o=0,a=0;if(r[a]!=="*"&&n[o]!==r[a])return!1;for(o++,a++;a<r.length;){if(r[a]==="*"){a++;continue}if(!n[o])return!1;if(n[o]===r[a]){o++,a++;continue}if(n[o].length===1)return!1;o++}return!0});function iN(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const wbe={}.hasOwnProperty;function oc(e,t){const n=e.type==="element"&&wbe.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const kbe=new Set([9,10,12,13,32]),sN=48,Dbe=57;function Rbe(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=a(),o=s();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(o??1),c(),t<e.length?(r=a(),c(),o=s()):r=o=0),o===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*o];function a(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function s(){const u=t;let d=0;for(;t<e.length&&e.charCodeAt(t)>=sN&&e.charCodeAt(t)<=Dbe;)d=d*10+(e.charCodeAt(t)-sN),t++;return t===u?null:d}function c(){for(;t<e.length&&kbe.has(e.charCodeAt(t));)t++}}var lN,cN;function Ibe(){return cN||(cN=1,lN={trueFunc:function(){return!0},falseFunc:function(){return!1}}),lN}var Obe=Ibe();const uN=H0(Obe);function Nbe(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return uN.falseFunc;if(t===-1)return a=>a<=n;if(t===0)return a=>a===n;if(t===1)return n<0?uN.trueFunc:a=>a>=n;const r=Math.abs(t),o=(n%r+r)%r;return t>1?a=>a>=n&&a%r===o:a=>a<=n&&a%r===o}function dN(e){return Nbe(Rbe(e))}const Pbe=dN.default||dN,Lbe=eb("name",{handlers:{"any-link":Mbe,blank:Fbe,checked:Bbe,dir:jbe,disabled:KM,empty:Ube,enabled:Hbe,"first-child":zbe,"first-of-type":$be,has:Vbe,is:QM,lang:qbe,"last-child":Wbe,"last-of-type":Ybe,not:Kbe,"nth-child":Qbe,"nth-last-child":Xbe,"nth-last-of-type":Zbe,"nth-of-type":Jbe,"only-child":eve,"only-of-type":tve,optional:nve,"read-only":rve,"read-write":XM,required:ZM,root:ove,scope:ave},invalid:Gbe,unknown:ive});function Mbe(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&oc(t,"href")}function bi(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Fbe(e,t){return!JM(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Ih(r)}}function Bbe(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&oc(t,"checked")):t.tagName==="option"?oc(t,"selected"):!1}function jbe(e,t,n,r,o){return e.argument,e.argument.type,o.direction===e.argument.value}function KM(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&oc(t,"disabled")}function Ube(e,t){return!JM(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Hbe(e,t){return!KM(e,t)}function zbe(e,t,n,r,o){return bi(o,e),o.elementIndex===0}function $be(e,t,n,r,o){return bi(o,e),o.typeIndex===0}function bb(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=Pbe(n.a+"n+"+n.b),e._cachedFn=t}return t}function Vbe(e,t,n,r,o){e.argument,e.argument.type;const a={...o,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return JC(a,{type:"root",children:t.children}),a.results.length>0}function Gbe(){}function QM(e,t,n,r,o){e.argument,e.argument.type;const a={...o,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return JC(a,t),a.results[0]===t}function qbe(e,t,n,r,o){return e.argument,e.argument.type,o.language!==""&&o.language!==void 0&&Abe(o.language,oT(e.argument.value)).length>0}function Wbe(e,t,n,r,o){return bi(o,e),!!(o.elementCount&&o.elementIndex===o.elementCount-1)}function Ybe(e,t,n,r,o){return bi(o,e),typeof o.typeIndex=="number"&&typeof o.typeCount=="number"&&o.typeIndex===o.typeCount-1}function Kbe(e,t,n,r,o){return!QM(e,t,n,r,o)}function Qbe(e,t,n,r,o){const a=bb(e);return bi(o,e),typeof o.elementIndex=="number"&&a(o.elementIndex)}function Xbe(e,t,n,r,o){const a=bb(e);return bi(o,e),!!(typeof o.elementCount=="number"&&typeof o.elementIndex=="number"&&a(o.elementCount-o.elementIndex-1))}function Zbe(e,t,n,r,o){const a=bb(e);return bi(o,e),typeof o.typeCount=="number"&&typeof o.typeIndex=="number"&&a(o.typeCount-1-o.typeIndex)}function Jbe(e,t,n,r,o){const a=bb(e);return bi(o,e),typeof o.typeIndex=="number"&&a(o.typeIndex)}function eve(e,t,n,r,o){return bi(o,e),o.elementCount===1}function tve(e,t,n,r,o){return bi(o,e),o.typeCount===1}function nve(e,t){return!ZM(e,t)}function rve(e,t,n,r,o){return!XM(e,t,n,r,o)}function XM(e,t,n,r,o){return t.tagName==="input"||t.tagName==="textarea"?!oc(t,"readOnly")&&!oc(t,"disabled"):!!o.editableOrEditingHost}function ZM(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&oc(t,"required")}function ove(e,t,n,r,o){return!!((!r||r.type==="root")&&o.schema&&(o.schema.space==="html"||o.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function ave(e,t,n,r,o){return o.scopeElements.includes(t)}function JM(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function ive(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function sve(e,t,n,r,o){for(const a of e.items)if(a.type==="Attribute"){if(!vbe(a,t,o.schema))return!1}else if(a.type==="Id"){if(!Sbe(a,t))return!1}else if(a.type==="ClassName"){if(!Tbe(a,t))return!1}else if(a.type==="PseudoClass"){if(!Lbe(a,t,n,r,o))return!1}else{if(a.type==="PseudoElement")throw new Error("Invalid selector: `::"+a.name+"`");if(a.type==="TagName"&&!Cbe(a,t))return!1}return!0}const lve=[];function JC(e,t){t&&e8(e,[],t,void 0,void 0,t)}function GE(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function cve(e,t,n,r){const o=Yg(t.descendant,t.directChild);let a,s=-1;const c={count:0,types:new Map},u={count:0,types:new Map};for(;++s<n.children.length;)fN(c,n.children[s]);for(s=-1;++s<n.children.length;){const d=n.children[s],p=d.type==="element"?d.tagName.toUpperCase():void 0;if(e.elementIndex=u.count,e.typeIndex=p&&u.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in d){const h=Yg(o,a),g=e8(e,h,n.children[s],s,n,r);a=Yg(g.generalSibling,g.adjacentSibling)}if(e.one&&e.found)break;fN(u,n.children[s])}}function uve(e,t,n,r,o){const a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const c=t[s];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(sve(c,n,r,o,e)){const u=c.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";GE(a,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?GE(a,"descendant",c):c.combinator==="~"&&GE(a,"generalSibling",c)}return a}function Yg(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:lve}function fN(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function e8(e,t,n,r,o,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=bbe(e,n);if(n.type==="element"){let u=e.rootQuery.rules;o&&o!==a&&(u=e.rootQuery.rules.filter(d=>d.combinator===void 0||d.combinator===">"&&o===a)),s=uve(e,Yg(t,u),n,r,o)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&cve(e,s,n,a),c(),s}function dve(e,t,n){const r=fve(e,t);return JC(r,t||void 0),r.results}function fve(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:pbe(e),schema:dd,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const t8=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=t8(n.children))}),t),pve=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const o=dve(t,r);o&&o.length>0&&To(r,o,(a,s,c)=>{n(a,s,c)});return}To(r,(o,a,s)=>{n(o,a,s)})}}},hve=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),mve=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},n8=(e=[],t,n,r)=>{let o=t;for(;o<e.length;)if(o++,n){const a=e[o];if(a&&a.value&&a.value.replace(/(\n|\s)/g,"")!==""||e[o]&&e[o].type==="element")return a.tagName===n?a:void 0}else{const a=e[o];if(!a||a.type==="element"||a.type==="text"&&a.value.replace(/(\n|\s)/g,"")!=="")return;if(a.type&&/^(comment|raw)$/ig.test(a.type))return a.value&&!/^rehype:/.test(a.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?n8(e,o,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},pN=({value:e=""})=>{const t=hve(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},hN=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},gve=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{To(r,"element",(o,a,s)=>{if(n&&o.tagName==="pre"&&o&&Array.isArray(o.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const c=o.children[0];if(c&&c.tagName==="code"&&typeof a=="number"){const u=mve(s.children,a);if(u){const d=pN(u);Object.keys(d).length>0&&(o.properties={...o.properties,"data-type":"rehyp"},c.properties=hN(c.properties,d,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(o.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const c=n8(s.children,a,"",n);if(c){const u=pN(c);Object.keys(u).length>0&&(o.properties=hN(o.properties,u,t))}}})}};var yve=function(e){return t=>{To(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Yi({},n.properties,{"data-meta":String(n.data.meta)}))})}},bve=function(e){return t=>{To(t,n=>{if(n.type==="element"&&n.tagName==="code"&&n.properties&&n.properties.dataMeta){n.data||(n.data={});var r=n.properties.dataMeta;typeof r=="string"&&(n.data.meta=r),delete n.properties.dataMeta}})}};const vve=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Eve=Object.hasOwnProperty;class xve{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let o=Tve(t,n===!0);const a=o;for(;Eve.call(r.occurrences,o);)r.occurrences[a]++,o=a+"-"+r.occurrences[a];return r.occurrences[o]=0,o}reset(){this.occurrences=Object.create(null)}}function Tve(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(vve,"").replace(/ /g,"-"))}function r8(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Sve={},mN=new xve;function Cve(e){const t=(e||Sve).prefix||"";return function(n){mN.reset(),To(n,"element",function(r){r8(r)&&!r.properties.id&&(r.properties.id=t+mN.slug(WM(r)))})}}const o8=function(e){if(e==null)return wve;if(typeof e=="string")return Ave(e);if(typeof e=="object")return _ve(e);if(typeof e=="function")return e_(e);throw new Error("Expected function, string, or array as `test`")};function _ve(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=o8(e[n]);return e_(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function Ave(e){return e_(t);function t(n){return n.tagName===e}}function e_(e){return t;function t(n,r,o){return!!(kve(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function wve(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function kve(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const gN={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},Dve={};function Rve(e){const t=e||Dve;let n=t.properties;const r=t.headingProperties,o=t.behavior||"prepend",a=t.content,s=t.group,c=o8(t.test);let u;return o==="after"||o==="before"?u=p:o==="wrap"?u=h:(u=d,n||(n={ariaHidden:"true",tabIndex:-1})),function(g){To(g,"element",function(y,b,x){if(r8(y)&&y.properties.id&&c(y,b,x))return Object.assign(y.properties,xg(r,y)),u(y,b,x)})};function d(g){const y=yN(a||gN,g);return g.children[o==="prepend"?"unshift":"push"](qE(g,xg(n,g),y)),[Ep]}function p(g,y,b){if(typeof y!="number"||!b)return;const x=yN(a||gN,g),S=qE(g,xg(n,g),x);let T=o==="before"?[S,g]:[g,S];if(s){const D=a8(s,g);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=T,T=[D])}return b.children.splice(y,1,...T),[Ep,y+T.length]}function h(g){let y=g.children,b=[];return typeof a=="function"?(y=[],b=a(g)):a&&(b=t_(a)),g.children=[qE(g,xg(n,g),Array.isArray(b)?[...y,...b]:[...y,b])],[Ep]}}function t_(e){return rc(e)}function qE(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function yN(e,t){const n=a8(e,t);return Array.isArray(n)?n:[n]}function a8(e,t){return typeof e=="function"?e(t):t_(e)}function xg(e,t){return typeof e=="function"?e(t):e?t_(e):{}}const Ive=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{To(r,(o,a,s)=>{if(o.type==="element"||o.type==="root"){let c=!1;o.children=o.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let d=(u.value||"").trim();if(d=d.replace(/^<!--(.*?)-->/,"$1"),d===t)return c=!0,!1;if(d===n)return c=!1,!1}return!c})}})}};var Ove={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Nve(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var Pve=(e,t)=>(n,r,o)=>{if(n.type==="element"&&o&&o.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=Yi({class:"anchor"},a.properties),a.children=[Ove])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=t8(n.children);n.children.push(Nve(s))}t&&t(n,r===null?void 0:r,o===null?void 0:o)},Lve=[Cve,Rve,Ive];const i8=$e.forwardRef((e,t)=>{var n,r=[yve,jM,bve,...Lve,[pve,{rewrite:Pve((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[gve,{properties:"attr"}],...e.rehypePlugins||[]];return E.jsx(X0e,Yi({},e,{rehypePlugins:r,ref:t}))});function Mve(e,t){return dn({},e,t)}var vd=$e.createContext({markdown:""});function s8(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=dn({},t,s8(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function l8(e,t,n,r,o){t===void 0&&(t=[]);var a=s8(t||[]),s=[];if(e.altKey&&s.push("alt"),e.shiftKey&&s.push("shift"),e.metaKey&&s.push("cmd"),e.ctrlKey&&s.push("ctrl"),s.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&s.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&s.push("escape"),!(s.length<1)){var c=!!a[s.join("+")],u=c?a[s.join("+")]:void 0;if(Object.keys(a).forEach(d=>{var p=d.split("+").every(h=>/ctrlcmd/.test(h)?s.includes("ctrl")||s.includes("cmd"):s.includes(h));p&&(u=a[d])}),u&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(u,r,o,s);return}}}var WE;function bN(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof WE>"u"){var t=document.createElement("textarea");t.value="1",WE=!!t.firstChild}return WE}function Ru(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var o=e.selectionStart,a=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var s=document.createRange(),c=document.createTextNode(t);if(bN(e)){var u=e.firstChild;if(!u)e.appendChild(c);else{for(var d=0,p=null,h=null;u&&(p===null||h===null);){var g=u.nodeValue.length;o>=d&&o<=d+g&&s.setStart(p=u,o-d),a>=d&&a<=d+g&&s.setEnd(h=u,a-d),d+=g,u=u.nextSibling}o!==a&&s.deleteContents()}}if(bN(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(c);else{var y=e.value;e.value=y.slice(0,o)+t+y.slice(a)}}e.setSelectionRange(o+t.length,o+t.length);var b=document.createEvent("UIEvent");b.initEvent("input",!0,!1),e.dispatchEvent(b)}}function ro(e){var{text:t,selection:n,prefix:r,suffix:o=r}=e,a=n;if(t&&t.length&&n.start===n.end&&(a=Fve(t,n.start)),a.start>=r.length&&a.end<=t.length-o.length){var s=t.slice(a.start-r.length,a.end+o.length);if(s.startsWith(r)&&s.endsWith(o))return{start:a.start-r.length,end:a.end+o.length}}return a}function Ap(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
|
|
397
|
+
`)+1,o=t.slice(n.end).indexOf(`
|
|
398
|
+
`)+n.end;return o===n.end-1&&(o=t.length),{start:r,end:o}}function c8(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,o=t-1;o>=0&&n>=0;o--)switch(e.charCodeAt(o)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function u8(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,o=t;o<e.length&&n>=0;o++)switch(e.charCodeAt(o)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function Fve(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=c=>c===" "||c.charCodeAt(0)===10,r=0,o=e.length,a=t;a-1>-1;a--)if(n(e[a-1])){r=a;break}for(var s=t;s<e.length;s++)if(n(e[s])){o=s;break}return{start:r,end:o}}function zr(e){var{api:t,selectedText:n,selection:r,prefix:o,suffix:a=o}=e;n.length>=o.length+a.length&&n.startsWith(o)&&n.endsWith(a)?(t.replaceSelection(n.slice(o.length,a.length?-a.length:void 0)),t.setSelectionRange({start:r.start-o.length,end:r.end-o.length})):(t.replaceSelection(""+o+n+a),t.setSelectionRange({start:r.start+o.length,end:r.end+o.length}))}function n_(e,t){var n=e.split(/\n/),r=0,o=n.map((a,s)=>{if(typeof t=="string")return a.startsWith(t)?(r-=t.length,a.slice(t.length)):(r+=t.length,t+a);if(typeof t=="function"){if(a.startsWith(t(a,s)))return r-=t(a,s).length,a.slice(t(a,s).length);var c=t(a,s);return r+=c.length,t(a,s)+a}throw Error("insertion is expected to be either a string or a function")}).join(`
|
|
399
|
+
`);return{modifiedText:o,insertionLength:r}}var Bve={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:E.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:E.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},d8={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:E.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:E.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),o="\n```\n",a="\n```\n";r.selectedText.length>=o.length+a.length-2&&r.selectedText.startsWith(o)&&r.selectedText.endsWith(a)?(o="```\n",a="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
|
|
400
|
+
`||r.selection.start===0)&&(o="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
|
|
401
|
+
`||r.selection.end===e.text.length)&&(a="\n```"));var s=ro({text:e.text,selection:e.selection,prefix:o,suffix:a}),c=t.setSelectionRange(s);zr({api:t,selectedText:c.selectedText,selection:e.selection,prefix:o,suffix:a})}},jve={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:E.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:E.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
|
|
402
|
+
`)===-1){var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else d8.execute(e,t)}},Uve={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:E.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:E.jsxs("g",{fill:"none",fillRule:"evenodd",children:[E.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),E.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),E.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},Kg={keyCommand:"divider"},Hve={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,o)=>{t.textArea.focus(),o&&n&&r&&n({fullscreen:!r.fullscreen})}};function zve(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var $ve=(e,t)=>{var n=dn({children:e,icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var o=dn({},(zve(r),r));return o.parent=n,dn({},o)})),n},Vve={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
`,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:E.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},Gve={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:E.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:E.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=ro({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:""}):zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},qve={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:E.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:E.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},Wve={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:E.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=ro({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},r_=(e,t,n)=>{var r=ro({text:e.text,selection:e.selection,prefix:e.command.prefix}),o=t.setSelectionRange(r),a=c8(o.text,o.selection.start),s=Array(a+1).join(`
|
|
406
|
+
`),c=u8(o.text,o.selection.end),u=Array(c+1).join(`
|
|
407
|
+
`),{modifiedText:d,insertionLength:p}=n_(o.selectedText,n);if(p<0){var h=o.selection.start,g=o.selection.end;o.selection.start>0&&e.text.slice(o.selection.start-1,o.selection.start)===`
|
|
408
|
+
`&&(h-=1),o.selection.end<e.text.length-1&&e.text.slice(o.selection.end,o.selection.end+1)===`
|
|
409
|
+
`&&(g+=1),t.setSelectionRange({start:h,end:g}),t.replaceSelection(""+d),t.setSelectionRange({start:h,end:h+d.length})}else{t.replaceSelection(""+s+d+u);var y=o.selection.start+a,b=y+d.length;t.setSelectionRange({start:y,end:b})}},Yve={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:E.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{r_(e,t,"- ")}},Kve={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:E.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{r_(e,t,(n,r)=>r+1+". ")}},Qve={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:E.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{r_(e,t,(n,r)=>"- [ ] ")}},Xve={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),E.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,o)=>{t.textArea.focus(),o&&n&&r&&n({preview:"preview"})}},Zve={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),E.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,o)=>{t.textArea.focus(),o&&n&&r&&n({preview:"edit"})}},Jve={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:E.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[E.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),E.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,o)=>{t.textArea.focus(),o&&n&&r&&n({preview:"live"})}},e1e={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),o=c8(r.text,r.selection.start),a=Array(o+1).join(`
|
|
410
|
+
`),s=u8(r.text,r.selection.end),c=Array(s+1).join(`
|
|
411
|
+
`),u=n_(r.selectedText,e.command.prefix);t.replaceSelection(""+a+u.modifiedText+c);var d=r.selection.start+o,p=d+u.modifiedText.length;t.setSelectionRange({start:d,end:p})}},t1e={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:E.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},f8={name:"title1",keyCommand:"title1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert title1 (ctrl + 1)",title:"Insert title1 (ctrl + 1)"},icon:E.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Title 1"}),execute:(e,t)=>{Ed({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}};function Ed(e){var{state:t,api:n,prefix:r,suffix:o=r}=e,a=Ap({text:t.text,selection:t.selection}),s=n.setSelectionRange(a);zr({api:n,selectedText:s.selectedText,selection:t.selection,prefix:r,suffix:o})}dn({},f8,{icon:E.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:E.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var n1e={name:"title2",keyCommand:"title2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert title2 (ctrl + 2)",title:"Insert title2 (ctrl + 2)"},icon:E.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Title 2"}),execute:(e,t)=>{Ed({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},r1e={name:"title3",keyCommand:"title3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert title3 (ctrl + 3)",title:"Insert title3 (ctrl + 3)"},icon:E.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Title 3"}),execute:(e,t)=>{Ed({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},o1e={name:"title4",keyCommand:"title4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert title4 (ctrl + 4)",title:"Insert title4 (ctrl + 4)"},icon:E.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Title 4"}),execute:(e,t)=>{Ed({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},a1e={name:"title5",keyCommand:"title5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert title5 (ctrl + 5)",title:"Insert title5 (ctrl + 5)"},icon:E.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Title 5"}),execute:(e,t)=>{Ed({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},i1e={name:"title6",keyCommand:"title6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert title6 (ctrl + 6)",title:"Insert title6 (ctrl + 6)"},icon:E.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Title 6"}),execute:(e,t)=>{Ed({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},s1e={name:"table",keyCommand:"table",prefix:`
|
|
412
|
+
| Header | Header |
|
|
413
|
+
|--------|--------|
|
|
414
|
+
| Cell | Cell |
|
|
415
|
+
| Cell | Cell |
|
|
416
|
+
| Cell | Cell |
|
|
417
|
+
|
|
418
|
+
`,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:E.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:E.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=ro({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},l1e={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:E.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:E.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},c1e=()=>[Bve,qve,t1e,Vve,$ve([f8,n1e,r1e,o1e,a1e,i1e],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),Kg,Wve,e1e,jve,d8,Uve,Gve,s1e,Kg,Yve,Kve,Qve,Kg,l1e],u1e=()=>[Zve,Jve,Xve,Kg,Hve];function Yy(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}class o_{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return Ru(this.textArea,t),Yy(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,Yy(this.textArea)}}class a_{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new o_(t)}getState(){return this.textArea?Yy(this.textArea):!1}executeCommand(t,n,r,o){t.execute&&t.execute(dn({command:t},Yy(this.textArea)),this.textApi,n,r,o)}}function Qg(e){e.stopPropagation(),e.preventDefault()}function vN(e,t){Qg(e);var n=e.target,r=new o_(n),o={start:n.selectionStart,end:n.selectionEnd};if(o=Ap({text:n.value,selection:o}),!(t<0&&o.start<=0||t>0&&o.end>=n.value.length)){var a=n.value.slice(o.start,o.end);if(t<0){var s=Ap({text:n.value,selection:{start:o.start-1,end:o.start-1}}),c=n.value.slice(s.start,s.end);r.setSelectionRange({start:s.start,end:o.end}),Ru(n,a+`
|
|
419
|
+
`+c),r.setSelectionRange({start:s.start,end:s.start+a.length})}else{var u=Ap({text:n.value,selection:{start:o.end+1,end:o.end+1}}),d=n.value.slice(u.start,u.end);r.setSelectionRange({start:o.start,end:u.end}),Ru(n,d+`
|
|
420
|
+
`+a),r.setSelectionRange({start:u.end-a.length,end:u.end})}}}function d1e(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,o=r.value.substr(0,r.selectionStart),a=o.split(`
|
|
421
|
+
`),s=a[a.length-1],c=new o_(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){Qg(e);var u=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var d=r.value.substring(0,r.selectionStart).split(`
|
|
422
|
+
`),p=r.value.substring(0,r.selectionEnd).split(`
|
|
423
|
+
`),h=[];p.forEach((F,U)=>{F!==d[U]&&h.push(F)});var g=h.join(`
|
|
424
|
+
`),y=r.value.substring(r.selectionStart,r.selectionEnd),b=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(g),end:r.selectionEnd});var x=n_(g,e.shiftKey?"":u),S=x.modifiedText;e.shiftKey&&(S=S.split(`
|
|
425
|
+
`).map(F=>F.replace(new RegExp("^"+u),"")).join(`
|
|
426
|
+
`)),c.replaceSelection(S);var T=e.shiftKey?-t:t,D=e.shiftKey?-h.length*t:h.length*t;c.setSelectionRange({start:b+T,end:b+y.length+D})}else return Ru(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){Qg(e);var k=`
|
|
427
|
+
- `;return s.startsWith("*")&&(k=`
|
|
428
|
+
* `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(k=`
|
|
429
|
+
- [ ] `),/^\d+.\s/.test(s)&&(k=`
|
|
430
|
+
`+(parseInt(s)+1)+". "),Ru(r,k)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){Qg(e);var R={start:r.selectionStart,end:r.selectionEnd},I=R;R=Ap({text:r.value,selection:R});var O=r.value.slice(R.start,R.end);c.setSelectionRange({start:R.end,end:R.end}),Ru(r,`
|
|
431
|
+
`+O),c.setSelectionRange({start:I.start,end:I.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?vN(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&vN(e,1)}var f1e=["prefixCls","onChange"],p1e=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function h1e(e){var{prefixCls:t,onChange:n}=e,r=jy(e,f1e),o=w.useContext(vd),{markdown:a,commands:s,fullscreen:c,preview:u,highlightEnable:d,extraCommands:p,tabSize:h,defaultTabEnable:g,autoFocusEnd:y,textareaWarp:b,dispatch:x}=o;jy(o,p1e);var S=$e.useRef(null),T=$e.useRef(),D=$e.useRef({fullscreen:c,preview:u});w.useEffect(()=>{D.current={fullscreen:c,preview:u,highlightEnable:d}},[c,u,d]),w.useEffect(()=>{if(S.current&&x){var R=new a_(S.current);T.current=R,x({textarea:S.current,commandOrchestrator:R})}},[]),w.useEffect(()=>{if(y&&S.current&&b){S.current.focus();var R=S.current.value.length;S.current.setSelectionRange(R,R),setTimeout(()=>{b&&(b.scrollTop=b.scrollHeight),S.current&&(S.current.scrollTop=S.current.scrollHeight)},0)}},[b]);var k=R=>{d1e(R,h,g),l8(R,[...s||[],...p||[]],T.current,x,D.current)};return w.useEffect(()=>(S.current&&S.current.addEventListener("keydown",k),()=>{S.current&&S.current.removeEventListener("keydown",k)}),[]),E.jsx("textarea",dn({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:S,className:t+"-text-input "+(r.className?r.className:""),value:a,onChange:R=>{x&&x({markdown:R.target.value}),n&&n(R)}}))}var m1e=["prefixCls","className","onScroll","renderTextarea"];function g1e(e){var t=e||{},{prefixCls:n,className:r,onScroll:o,renderTextarea:a}=t,s=jy(t,m1e),{markdown:c,scrollTop:u,commands:d,extraCommands:p,dispatch:h}=w.useContext(vd),g=$e.useRef(null),y=$e.useRef(),b=$e.createRef();w.useEffect(()=>{var S={};b.current&&(S.textareaWarp=b.current||void 0,b.current.scrollTop=u||0),h&&h(dn({},S))},[]),w.useEffect(()=>{if(g.current&&h){var S=new a_(g.current);y.current=S,h({textarea:g.current,commandOrchestrator:S})}},[]);var x={WebkitTextFillColor:"initial",overflow:"auto"};return E.jsx("div",{ref:b,className:n+"-area "+(r||""),onScroll:o,children:E.jsx("div",{className:n+"-text",children:a?$e.cloneElement(a(dn({},s,{value:c,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:h,onChange:s.onChange,shortcuts:l8,useContext:{commands:d,extraCommands:p,commandOrchestrator:y.current}}),{ref:g}):E.jsx(w.Fragment,{children:E.jsx(h1e,dn({prefixCls:n},s,{style:x}))})})})}function y1e(e){var{prefixCls:t,groupName:n,commands:r,children:o}=e||{},{barPopup:a={}}=w.useContext(vd);return w.useMemo(()=>E.jsx("div",{className:t+"-toolbar-child "+(n&&a[n]?"active":""),onClick:s=>s.stopPropagation(),children:Array.isArray(r)?E.jsx(p8,dn({commands:r},e,{isChild:!0})):o}),[r,a,n,t])}function EN(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:o,barPopup:a={},components:s,commandOrchestrator:c,dispatch:u}=w.useContext(vd),d=w.useRef("");function p(h,g){if(u){var y={barPopup:dn({},a)};h.keyCommand==="preview"&&(y.preview=h.value),h.keyCommand==="fullscreen"&&(y.fullscreen=!r),e.commands&&h.keyCommand==="group"?e.commands.forEach(b=>{g===b.groupName?y.barPopup[g]=!0:b.keyCommand&&(y.barPopup[b.groupName]=!1)}):(g||h.parent)&&Object.keys(y.barPopup||{}).forEach(b=>{y.barPopup[b]=!1}),Object.keys(y).length&&u(dn({},y)),c&&c.executeCommand(h)}}return w.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(d.current||(d.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=d.current))},[r,d,n]),E.jsx("ul",{children:(e.commands||[]).map((h,g)=>{if(h.keyCommand==="divider")return E.jsx("li",dn({},h.liProps,{className:t+"-toolbar-divider"}),g);if(!h.keyCommand)return E.jsx(w.Fragment,{},g);var y=r&&h.keyCommand==="fullscreen"||h.keyCommand==="preview"&&o===h.value,b=h.children&&typeof h.children=="function"?h.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>p({},h.groupName),execute:()=>p({execute:h.execute}),dispatch:u}):void 0,x=a&&o&&o==="preview"&&!/(preview|fullscreen)/.test(h.keyCommand),S=s?.toolbar||h.render,T=S&&typeof S=="function"?S(h,!!x,p,g):null;return E.jsxs("li",dn({},h.liProps,{className:y?"active":"",children:[T&&$e.isValidElement(T)&&T,!T&&!h.buttonProps&&h.icon,!T&&h.buttonProps&&$e.createElement("button",dn({type:"button",key:g,disabled:x,"data-name":h.name},h.buttonProps,{onClick:D=>{D.stopPropagation(),p(h,h.groupName)}}),h.icon),h.children&&E.jsx(y1e,{overflow:n,groupName:h.groupName,prefixCls:t,children:b,commands:Array.isArray(h.children)?h.children:void 0})]}),g)})})}function p8(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:o,extraCommands:a}=w.useContext(vd);return E.jsxs("div",{className:t+"-toolbar "+r,children:[E.jsx(EN,dn({},e,{commands:e.commands||o||[]})),!n&&E.jsx(EN,dn({},e,{commands:a||[]}))]})}function xN(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:o,prefixCls:a}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var s=n?"bottom":"";return E.jsx(p8,{prefixCls:a,overflow:o,className:s})}var b1e=e=>{var{prefixCls:t,onChange:n}=e||{},r=w.useRef(null),o=w.useRef(),a=w.useRef(e.height);w.useEffect(()=>{a.current!==e.height&&(a.current=e.height)},[e.height]);function s(p){if(o.current){var h,g=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY),y=o.current.height+g-o.current.dragY;y>=e.minHeight&&y<=e.maxHeight&&n&&n(o.current.height+(g-o.current.dragY))}}function c(){var p,h;o.current=void 0,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",c),(p=r.current)==null||p.removeEventListener("touchmove",s),(h=r.current)==null||h.removeEventListener("touchend",c)}function u(p){var h,g,y;p.preventDefault();var b=p.clientY||((h=p.changedTouches[0])==null?void 0:h.clientY);o.current={height:a.current,dragY:b},document.addEventListener("mousemove",s),document.addEventListener("mouseup",c),(g=r.current)==null||g.addEventListener("touchmove",s,{passive:!1}),(y=r.current)==null||y.addEventListener("touchend",c,{passive:!1})}w.useEffect(()=>{if(document){var p,h;(p=r.current)==null||p.addEventListener("touchstart",u,{passive:!1}),(h=r.current)==null||h.addEventListener("mousedown",u)}return()=>{if(document){var g;(g=r.current)==null||g.removeEventListener("touchstart",u),document.removeEventListener("mousemove",s)}}},[]);var d=w.useMemo(()=>E.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:E.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return E.jsx("div",{className:t+"-bar",ref:r,children:d})},v1e=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function E1e(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var x1e=$e.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:o,value:a,commands:s=c1e(),commandsFilter:c,direction:u,extraCommands:d=u1e(),height:p=200,enableScroll:h=!0,visibleDragbar:g=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:y=!0,preview:b="live",fullscreen:x=!1,overflow:S=!0,previewOptions:T={},textareaProps:D,maxHeight:k=1200,minHeight:R=100,autoFocus:I,autoFocusEnd:O=!1,tabSize:F=2,defaultTabEnable:U=!1,onChange:H,onStatistics:C,onHeightChange:M,hideToolbar:V,toolbarBottom:z=!1,components:W,renderTextarea:Y}=n,B=jy(n,v1e),J=s.map(Be=>c?c(Be,!1):Be).filter(Boolean),ae=d.map(Be=>c?c(Be,!0):Be).filter(Boolean),[ne,N]=w.useReducer(Mve,{markdown:a,preview:b,components:W,height:p,minHeight:R,highlightEnable:y,tabSize:F,defaultTabEnable:U,scrollTop:0,scrollTopPreview:0,commands:J,extraCommands:ae,fullscreen:x,barPopup:{}}),K=w.useRef(null),ee=w.useRef(null),P=w.useRef(h);w.useImperativeHandle(t,()=>dn({},ne,{container:K.current,dispatch:N})),w.useMemo(()=>P.current=h,[h]),w.useEffect(()=>{var Be={};K.current&&(Be.container=K.current||void 0),Be.markdown=a||"",Be.barPopup={},N&&N(dn({},ne,Be))},[]);var re=[o,"wmde-markdown-var",u?r+"-"+u:null,r,ne.preview?r+"-show-"+ne.preview:null,ne.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();w.useMemo(()=>a!==ne.markdown&&N({markdown:a||""}),[a,ne.markdown]),w.useMemo(()=>b!==ne.preview&&N({preview:b}),[b]),w.useMemo(()=>F!==ne.tabSize&&N({tabSize:F}),[F]),w.useMemo(()=>y!==ne.highlightEnable&&N({highlightEnable:y}),[y]),w.useMemo(()=>I!==ne.autoFocus&&N({autoFocus:I}),[I]),w.useMemo(()=>O!==ne.autoFocusEnd&&N({autoFocusEnd:O}),[O]),w.useMemo(()=>x!==ne.fullscreen&&N({fullscreen:x}),[x]),w.useMemo(()=>p!==ne.height&&N({height:p}),[p]),w.useMemo(()=>p!==ne.height&&M&&M(ne.height,p,ne),[p,M,ne]),w.useMemo(()=>s!==ne.commands&&N({commands:J}),[e.commands]),w.useMemo(()=>d!==ne.extraCommands&&N({extraCommands:ae}),[e.extraCommands]);var me=w.useRef(),oe=w.useRef("preview"),ve=w.useRef(!1);w.useMemo(()=>{me.current=ne.textareaWarp,ne.textareaWarp&&(ne.textareaWarp.addEventListener("mouseover",()=>{oe.current="text"}),ne.textareaWarp.addEventListener("mouseleave",()=>{oe.current="preview"}))},[ne.textareaWarp]);var ye=(Be,mt)=>{if(P.current){var it=me.current,lt=ee.current?ee.current:void 0;if(ve.current||(oe.current=mt,ve.current=!0),it&<){var je=(it.scrollHeight-it.offsetHeight)/(lt.scrollHeight-lt.offsetHeight);Be.target===it&&oe.current==="text"&&(lt.scrollTop=it.scrollTop/je),Be.target===lt&&oe.current==="preview"&&(it.scrollTop=lt.scrollTop*je);var Pe=0;oe.current==="text"?Pe=it.scrollTop||0:oe.current==="preview"&&(Pe=lt.scrollTop||0),N({scrollTop:Pe})}}},Ve=r+"-preview "+(T.className||""),Le=Be=>ye(Be,"preview"),Oe=w.useMemo(()=>E.jsx("div",{ref:ee,className:Ve,children:E.jsx(i8,dn({},T,{onScroll:Le,source:ne.markdown||""}))}),[Ve,T,ne.markdown]),Qe=W?.preview&&W?.preview(ne.markdown||"",ne,N);Qe&&$e.isValidElement(Qe)&&(Oe=E.jsx("div",{className:Ve,ref:ee,onScroll:Le,children:Qe}));var nt=dn({},B.style,{height:ne.height||"100%"}),De=()=>N({barPopup:dn({},E1e(ne.barPopup))}),gt=Be=>N({height:Be}),Ct=Be=>{if(H&&H(Be.target.value,Be,ne),D&&D.onChange&&D.onChange(Be),ne.textarea&&ne.textarea instanceof HTMLTextAreaElement&&C){var mt=new a_(ne.textarea),it=mt.getState()||{};C(dn({},it,{lineCount:Be.target.value.split(`
|
|
432
|
+
`).length,length:Be.target.value.length}))}};return E.jsx(vd.Provider,{value:dn({},ne,{dispatch:N}),children:E.jsxs("div",dn({ref:K,className:re},B,{onClick:De,style:nt,children:[E.jsx(xN,{hideToolbar:V,toolbarBottom:z,prefixCls:r,overflow:S,placement:"top"}),E.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(ne.preview||"")&&E.jsx(g1e,dn({className:r+"-input",prefixCls:r,autoFocus:I},D,{onChange:Ct,renderTextarea:W?.textarea||Y,onScroll:Be=>ye(Be,"text")})),/(live|preview)/.test(ne.preview||"")&&Oe]}),g&&!ne.fullscreen&&E.jsx(b1e,{prefixCls:r,height:ne.height,maxHeight:k,minHeight:R,onChange:gt}),E.jsx(xN,{hideToolbar:V,toolbarBottom:z,prefixCls:r,overflow:S,placement:"bottom"})]}))})}),h8=x1e;h8.Markdown=i8;function T1e({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const o={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0,sourceName:e.sourceName,modelPath:e.modelPath};return E.jsx(qL,{sourceAndPaths:t,existingQuery:o,existingSourceName:e.sourceName,onQueryChange:n,onSourceChange:r})}function S1e({cell:e,expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMalloy:o,editingMarkdown:a,sourceAndPaths:s,onCellChange:c,onClose:u,onEdit:d,onDelete:p,addButtonCallback:h}){const[g,y]=$e.useState(t),[b,x]=$e.useState(n),[S,T]=$e.useState(),[D]=$e.useState(),[k,R]=$e.useState(mp()),[I,O]=$e.useState(!1),[F,U]=$e.useState(e.sourceName?s.findIndex(P=>P.sourceInfo.name===e.sourceName):0);w.useEffect(()=>{e.isMarkdown||tc(e.value,"malloy").then(P=>{T(P)})},[e]);const[H,C]=w.useState(e.value);$e.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const M=C1e(P=>{c({...e,value:P})}),[V,z]=w.useState(!1),W=()=>{p(),z(!1)},Y=s.length===0,B=()=>{const P=s[F],re=P?.modelPath||e.modelPath||"",me=P?.sourceInfo.name||e.sourceName||"";c({...e,value:k.query,result:k.malloyResult?JSON.stringify(k.malloyResult):void 0,queryInfo:k.malloyQuery?JSON.stringify(k.malloyQuery):void 0,sourceName:me,modelPath:re})},J=E.jsx(er,{title:"Delete Cell",children:E.jsx(Jn,{size:"small",onClick:()=>z(!0),children:E.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),ae=E.jsxs(Fp,{open:V,onClose:()=>z(!1),children:[E.jsx(jp,{children:"Confirm Delete"}),E.jsx(Bp,{children:E.jsx(Ye,{children:"Are you sure you want to delete this cell?"})}),E.jsxs(f5,{children:[E.jsx(Ur,{onClick:()=>z(!1),children:"Cancel"}),E.jsx(Ur,{onClick:W,color:"error",children:"Delete"})]})]}),ne=e.isMarkdown?E.jsxs(E.Fragment,{children:[a?E.jsx(er,{title:"Save",children:E.jsx(Jn,{size:"small",onClick:u,children:E.jsx(pg,{})})}):E.jsx(er,{title:"Edit",children:E.jsx(Jn,{size:"small",onClick:d,children:E.jsx(WI,{})})}),!a&&J]}):E.jsxs(E.Fragment,{children:[!o&&E.jsx(er,{title:g?"Hide Code":"View Code",children:E.jsx(Jn,{size:"small",onClick:()=>{y(!g)},children:E.jsx(mL,{})})}),!r&&!o&&e.result&&E.jsx(er,{title:b?"Hide Embedding":"View Embedding",children:E.jsx(Jn,{size:"small",onClick:()=>{x(!b)},children:E.jsx(Ah,{})})}),o&&E.jsx(er,{title:"Save",children:E.jsx(Jn,{size:"small",onClick:()=>{B(),u()},children:E.jsx(pg,{})})}),!o&&E.jsx(er,{title:"Edit",children:E.jsx(Jn,{size:"small",onClick:d,children:E.jsx(WI,{})})}),!o&&J]}),N=o||a,K=a?E.jsx(er,{title:"Save",children:E.jsx(Jn,{size:"small",onClick:u,children:E.jsx(pg,{})})}):o?E.jsx(er,{title:"Save",children:E.jsx(Jn,{size:"small",onClick:()=>{B(),u()},children:E.jsx(pg,{})})}):null,ee=I&&E.jsx(Zt,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!N&&E.jsxs(E.Fragment,{children:[h(!0),h(!1),ne]})||K});return E.jsxs(_r,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>O(!0),onMouseLeave:()=>{O(!1)},children:[ee,e.isMarkdown?E.jsx(E.Fragment,{children:a?E.jsx(h8,{value:H,preview:"edit",autoFocus:!0,onChange:P=>{C(P),M(P)},onBlur:()=>{B(),I||u()}}):E.jsx(Zt,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:H?E.jsx(Zt,{onClick:d,sx:{cursor:"pointer"},children:E.jsx(jS,{children:H})}):E.jsxs(Zt,{onClick:d,sx:{cursor:"pointer"},children:[E.jsx(Ye,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),E.jsx(Ye,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):E.jsxs(E.Fragment,{children:[E.jsx(La,{in:b,timeout:"auto",unmountOnExit:!0,children:E.jsx(hn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(Ye,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:D}})})}),E.jsx(La,{in:g,timeout:"auto",unmountOnExit:!0,children:E.jsx(hn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:E.jsx(Ye,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:S}})})}),o&&(Y?E.jsxs(E.Fragment,{children:[E.jsx(Ye,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),E.jsx(Ye,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):E.jsx(T1e,{sourceAndPaths:s,onQueryChange:P=>{R(P)},cell:e,onSourceChange:U})),!o&&e.result&&E.jsx(_r,{variant:"outlined",sx:{borderRadius:0},children:E.jsx(gL,{result:e.result,minHeight:300,maxHeight:800})}),!o&&!e.result&&E.jsxs(Zt,{onClick:d,sx:{cursor:"pointer"},children:[E.jsx(Ye,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),E.jsx(Ye,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),V&&ae]})}function C1e(e,t=2e3){const n=$e.useRef(void 0);return $e.useCallback(r=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(r)},t)},[e,t])}const m8=w.createContext(void 0);function g8({children:e,userContext:t,notebookStorage:n}){const r=w.useMemo(()=>({notebookStorage:n,userContext:t}),[n,t]);return E.jsx(m8.Provider,{value:r,children:e})}function y8(){const e=w.useContext(m8);if(!e)throw new Error("useNotebookStorage must be used within a NotebookStorageProvider");return e}const _1e=In(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),A1e=In(E.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"})),w1e=new Z0(new Qr);function k1e({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:o}=Co(),{data:a,isLoading:s,isSuccess:c,isError:u,error:d}=qo({queryKey:["models",n,r,o],queryFn:T=>w1e.listModels(n,r,o,T)}),[p,h]=$e.useState(e||[]),[g,y]=$e.useState(null);$e.useEffect(()=>{h(e||[])},[e]);const b=T=>{const D=p.filter(k=>k!==T);h(D),t(D)},x=T=>{const D=[...p,T];h(D),t(D),y(null)};let S=[];return c&&a?.data&&(S=a.data.filter(T=>!p.includes(T.path)).map(T=>T.path)),u?E.jsx(Go,{error:d,context:`${n} > ${r} > Model Picker`}):E.jsxs(E.Fragment,{children:[E.jsxs(CS,{fullWidth:!0,children:[s&&E.jsx(Ye,{children:"Loading..."}),E.jsxs(hn,{direction:"row",spacing:1,children:[p.map(T=>E.jsx(Hl,{label:T,onDelete:()=>b(T),deleteIcon:E.jsx(_1e,{}),sx:{marginBottom:"5px"}},T)),E.jsx(Ur,{size:"small",startIcon:E.jsx(A1e,{}),onClick:T=>y(T.currentTarget),disabled:s||u||S.length===0,children:"Add Model"})]})]}),E.jsxs(S0,{anchorEl:g,open:!!g,onClose:()=>y(null),children:[E.jsx(Ye,{variant:"subtitle2",sx:{ml:1},children:"Models"}),E.jsx(Hr,{}),S.length===0?E.jsx(Bu,{disabled:!0,children:"No models available"}):S.map(T=>E.jsx(Bu,{onClick:()=>x(T),children:E.jsx(Ye,{variant:"body2",children:T})},T))]})]})}const D1e=new Z0(new Qr);function R1e({notebookPath:e,expandCodeCells:t,expandEmbeddings:n,hideEmbeddingIcons:r}){const o=pd(),{projectName:a,packageName:s,versionId:c}=Co(),{server:u,getAccessToken:d}=IC(),{notebookStorage:p,userContext:h}=y8();if(!a||!s)throw new Error("Project and package must be provided via PubliserPackageProvider");if(!p||!h)throw new Error("Notebook storage and user context must be provided via NotebookStorageProvider");const[g,y]=$e.useState(),[b,x]=$e.useState(),[S,T]=$e.useState(),[D,k]=$e.useState([]),[R,I]=$e.useState(null),[O,F]=$e.useState(null),U=!!R,H=()=>{I(null),F(null)},C=(N,K)=>{g.insertCell(K,{isMarkdown:N,value:""}),B(),N?T(K):x(K),H()},[M,V]=$e.useState(!1),z=()=>{V(!0)},W=N=>{e&&p&&h&&p.deleteNotebook(h,e),V(!1),o(`/${a}/${s}`,N)},Y=()=>{V(!1)},B=$e.useCallback(()=>{y(g.saveNotebook())},[g]);if($e.useEffect(()=>{g&&(async()=>{const N=new Map(D.map(({modelPath:P,sourceInfos:re})=>[P,re])),K=[],ee=[];for(const P of g.getModels())N.has(P)?K.push({modelPath:P,sourceInfos:N.get(P)}):(console.log("Fetching model from Publisher",P),ee.push(D1e.getModel(a,s,P,c,await xC(u,d)).then(re=>({modelPath:P,sourceInfos:re.data.sourceInfos.map(me=>JSON.parse(me))}))));if(ee.length>0){const P=await Promise.all(ee);k([...K,...P])}else k(K)})()},[d,g,s,a,u,c]),$e.useEffect(()=>{e&&y(gp.loadNotebook(p,h,e))},[e,p,h]),!g)return E.jsx("div",{children:"Loading..."});const J=N=>{const K=[];for(const ee of N)for(const P of ee.sourceInfos)K.push({modelPath:ee.modelPath,sourceInfo:P});return K},ae=(N,K)=>E.jsx(Ur,{size:"small",startIcon:E.jsx(pce,{}),onClick:()=>C(N,K),variant:"contained",sx:{backgroundColor:"#fff",color:ee=>ee.palette.mode==="dark"?ee.palette.grey[100]:ee.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:ee=>ee.palette.mode==="dark"?ee.palette.grey[500]:ee.palette.grey[300],boxShadow:"none"}},children:N?"Markdown":"Explore"}),ne=E.jsxs(Zt,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[ae(!1,g.getCells().length),ae(!0,g.getCells().length)]});return E.jsxs(_r,{variant:"outlined",children:[E.jsxs($o,{children:[E.jsxs(ou,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[E.jsxs(ou,{direction:"row",spacing:1,alignItems:"center",children:[E.jsx(Ye,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),E.jsx(Ye,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${a} > ${s} > ${e}`})]}),E.jsxs(ou,{sx:{display:"flex",flexDirection:"row",gap:1},children:[E.jsx(Zt,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:E.jsx(I1e,{notebookData:g})}),E.jsxs(Zt,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[E.jsx(Ur,{color:"error",onClick:z,size:"small",children:"Delete"}),E.jsxs(Fp,{open:M,onClose:Y,children:[E.jsx(jp,{children:"Delete Notebook"}),E.jsx(Bp,{children:E.jsxs(Gq,{children:['Are you sure you want to delete the notebook "',e,'"? This action cannot be undone.']})}),E.jsxs(f5,{children:[E.jsx(Ur,{onClick:Y,color:"primary",size:"small",children:"Cancel"}),E.jsx(Ur,{onClick:N=>W(N),color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),E.jsx(Hr,{}),E.jsxs(ou,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[E.jsx(Zt,{sx:{flex:1},children:E.jsx(k1e,{initialSelectedModels:g.getModels(),onModelChange:N=>{y(g.setModels(N)),B()}})}),E.jsx(Zt,{sx:{flex:1}})]})]}),E.jsx(ab,{children:E.jsxs(ou,{children:[g.getCells().length===0&&E.jsxs(E.Fragment,{children:[E.jsx(Ye,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),E.jsx(Ye,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),g.getCells().map((N,K)=>E.jsx($e.Fragment,{children:E.jsx(S1e,{cell:N,addButtonCallback:ee=>ae(ee,K),sourceAndPaths:J(D),expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMarkdown:S===K,editingMalloy:b===K,onDelete:()=>{y(g.deleteCell(K)),B()},onCellChange:ee=>{y(g.setCell(K,ee)),B()},onEdit:()=>{N.isMarkdown?T(K):x(K)},onClose:()=>{N.isMarkdown?T(void 0):x(void 0)}},`${K}-${N.isMarkdown}-${e}-${a}-${s}`)},`${K}-${g.getCells().length}`)),ne,E.jsxs(S0,{anchorEl:R,open:U,onClose:H,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[E.jsx(Bu,{onClick:()=>C(!0,O??0),children:"Add Markdown"}),E.jsx(Bu,{onClick:()=>C(!1,O??0),children:"Add Malloy"})]}),E.jsx(ou,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function I1e({notebookData:e}){const[t,n]=$e.useState(!1);return E.jsx(Ur,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyNotebook();try{await navigator.clipboard.writeText(r),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}},size:"small",children:t?"Copied!":"Export"})}function O1e({onNotebookClick:e}){const{notebookStorage:t,userContext:n}=y8(),[r,o]=$e.useState([]);return $e.useEffect(()=>{t&&n&&o(t.listNotebooks(n))},[t,n]),E.jsxs(E.Fragment,{children:[E.jsx(Hr,{}),E.jsx(Zt,{sx:{maxHeight:"300px",overflow:"auto","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0,0,0,0.2)",borderRadius:"4px"}},children:E.jsxs(AS,{dense:!0,children:[r.length===0&&E.jsx(hu,{children:E.jsx(zl,{primary:"No notebooks found.",sx:{textAlign:"center"}})}),r.map(a=>E.jsx(hu,{onClick:s=>e(a,s),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:E.jsx(zl,{primary:a})},a))]})})]})}const N1e=new EP(new Qr);function P1e(){const{projectName:e}=v8(),{data:t,isSuccess:n,isError:r,error:o}=qo({queryKey:["about",e],queryFn:a=>N1e.getProject(e,!1,a)});return E.jsxs(E.Fragment,{children:[!n&&!r&&E.jsx(_a,{text:"Fetching About..."}),n&&E.jsxs(_r,{variant:"outlined",sx:{p:2},children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),E.jsx(_r,{sx:{p:1},children:E.jsx(jS,{children:t.data.readme})})]}),r&&E.jsx(Go,{error:o,context:`${e} > About`})]})}const L1e=new vP(new Qr);function M1e({navigate:e}){const{projectName:t}=v8(),{data:n,isSuccess:r,isError:o,error:a}=qo({queryKey:["packages",t],queryFn:s=>L1e.listPackages(t,s)});return E.jsxs(E.Fragment,{children:[!r&&!o&&E.jsx(_a,{text:"Fetching Packages..."}),r&&E.jsxs(_r,{variant:"outlined",sx:{p:2},children:[E.jsx(Ye,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),E.jsx(Tr,{container:!0,spacing:2,columns:12,children:n.data.sort((s,c)=>s.name.localeCompare(c.name)).map(s=>E.jsx(Tr,{size:{xs:12,sm:12,md:12,lg:4},children:E.jsx(_r,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",transform:"translateY(-2px)"}},onClick:c=>e(s.name+"/",c),children:E.jsxs($o,{children:[E.jsx(Ye,{variant:"overline",color:"primary.main",children:s.name}),E.jsx(Zt,{sx:{maxHeight:"120px",overflowY:"auto"},children:E.jsx(Ye,{variant:"body2",children:s.description})})]})})},s.name))})]}),o&&E.jsx(Go,{error:a,context:`${t} > Packages`})]})}const b8=w.createContext(void 0);function v8(){const e=w.useContext(b8);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function F1e({children:e,projectName:t}){return E.jsx(b8.Provider,{value:{projectName:t},children:e})}function B1e({navigate:e}){return E.jsxs(Tr,{container:!0,spacing:2,columns:12,children:[E.jsx(Tr,{size:{xs:12,md:12},children:E.jsx(M1e,{navigate:e})}),E.jsx(Tr,{size:{xs:12,md:12},children:E.jsx(P1e,{})})]})}const j1e=In(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),U1e=In(E.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),TN=In(E.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),H1e=In(E.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),z1e=In(E.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),$1e=In([E.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),E.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),SN=In(E.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),V1e=new EP(new Qr),G1e=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),n=t.split(/\n\s*\n/)[0]||t;if(n.length<=120)return n;const r=n.substring(0,120).split(" ");return r.pop(),r.join(" ")+"..."};function q1e({navigate:e}){const{data:t,isSuccess:n,isError:r,error:o}=qo({queryKey:["projects"],queryFn:a=>V1e.listProjects(a)});return r?E.jsx(Go,{error:o,context:"Projects List"}):n?E.jsxs(TS,{maxWidth:"lg",sx:{py:4},children:[E.jsxs(Zt,{sx:{textAlign:"center",mb:6},children:[E.jsxs(hn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(TN,{sx:{fontSize:32,color:"primary.main"}}),E.jsx(Ye,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),E.jsx(Ye,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),E.jsx(Ye,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),E.jsxs(Tr,{container:!0,spacing:3,sx:{mb:6},children:[E.jsx(Tr,{size:{xs:12,md:4},children:E.jsx(fu,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(pu,{sx:{p:3},children:[E.jsxs(hn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(j1e,{sx:{color:"info.main",fontSize:28}}),E.jsx(Ye,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),E.jsx(Ye,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),E.jsx(Hl,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),E.jsx(Tr,{size:{xs:12,md:4},children:E.jsx(fu,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(pu,{sx:{p:3},children:[E.jsxs(hn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(H1e,{sx:{color:"warning.main",fontSize:28}}),E.jsx(Ye,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),E.jsx(Ye,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),E.jsx(Hl,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),E.jsx(Tr,{size:{xs:12,md:4},children:E.jsx(fu,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:E.jsxs(pu,{sx:{p:3},children:[E.jsxs(hn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx($1e,{sx:{color:"success.main",fontSize:28}}),E.jsx(Ye,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),E.jsx(Ye,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),E.jsx(Hl,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),E.jsx(Hr,{sx:{my:4}}),t.data.length>0?E.jsxs(E.Fragment,{children:[E.jsxs(Zt,{sx:{textAlign:"center",mb:4},children:[E.jsxs(hn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(SN,{sx:{color:"primary.main",fontSize:24}}),E.jsx(Ye,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),E.jsx(Ye,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),E.jsx(Tr,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(a=>E.jsx(Tr,{size:{xs:12,sm:6,md:4},children:E.jsx(fu,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:s=>e(`/${a.name}/`,s),children:E.jsxs(pu,{sx:{p:3,textAlign:"center"},children:[E.jsx(z1e,{sx:{fontSize:48,color:"primary.main",mb:2}}),E.jsx(Ye,{variant:"h6",fontWeight:600,gutterBottom:!0,children:a.name}),E.jsx(Ye,{variant:"body2",color:"text.secondary",sx:{mb:2},children:G1e(a.readme)}),E.jsx(Ur,{variant:"contained",color:"secondary",endIcon:E.jsx(U1e,{}),fullWidth:!0,children:"Open Project"})]})})},a.name))})]}):E.jsxs(Zt,{sx:{textAlign:"center",mb:4},children:[E.jsxs(hn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[E.jsx(SN,{sx:{color:"primary.main",fontSize:24}}),E.jsx(Ye,{variant:"h4",fontWeight:600,children:"Get Started"})]}),E.jsx(Ye,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),E.jsx(Ur,{variant:"contained",size:"large",color:"primary",startIcon:E.jsx(TN,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),E.jsx(Zt,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:E.jsxs(Ye,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",E.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):E.jsx(_a,{text:"Loading projects..."})}function W1e(){const{projectName:e,packageName:t}=sc(),[n,r]=$e.useState(""),[o,a]=$e.useState(null),[s,c]=$e.useState(!1),[u,d]=$e.useState(!1),p=pd(),h=!!o,g=D=>{a(D.currentTarget)},y=()=>{a(null)},b=()=>{d(!1)},x=()=>{c(!1)},S=(D,k)=>{d(!1),p(`/${e}/${t}/scratchNotebook/${encodeURIComponent(D)}`,k)},T=D=>{c(!1),p(`/${e}/${t}/scratchNotebook/${encodeURIComponent(n)}`,D),r("")};return!e||!t?null:E.jsxs(E.Fragment,{children:[E.jsx(Ur,{"aria-controls":h?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":h?"true":void 0,onClick:g,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),E.jsxs(S0,{id:"basic-menu",anchorEl:o,open:h,onClose:y,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[E.jsxs(Bu,{onClick:()=>{c(!0),y()},sx:{py:1,px:2},children:[E.jsx(DD,{children:E.jsx(VZ,{fontSize:"small"})}),E.jsxs(zl,{children:[E.jsx(Ye,{variant:"body2",fontWeight:500,children:"New Workbook"}),E.jsx(Ye,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),E.jsxs(Bu,{onClick:()=>{d(!0),y()},sx:{py:1,px:2},children:[E.jsx(DD,{children:E.jsx(YZ,{fontSize:"small"})}),E.jsxs(zl,{children:[E.jsx(Ye,{variant:"body2",fontWeight:500,children:"Open Workbook"}),E.jsx(Ye,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),E.jsxs(Fp,{open:s,onClose:x,maxWidth:"sm",fullWidth:!0,children:[E.jsxs(jp,{sx:{pb:1,pt:2,px:2},children:[E.jsx(Ye,{variant:"h6",fontWeight:600,sx:{mb:.5},children:"Create New Workbook"}),E.jsx(Ye,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),E.jsx(Bp,{sx:{px:2,pb:2},children:E.jsxs(hn,{spacing:2,sx:{mt:1},children:[E.jsx(CS,{fullWidth:!0,children:E.jsx(wK,{label:"Workbook Name",value:n,onChange:D=>r(D.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),E.jsxs(hn,{direction:"row",spacing:1,justifyContent:"flex-end",children:[E.jsx(Ur,{onClick:x,variant:"outlined",size:"small",children:"Cancel"}),E.jsx(Ur,{onClick:D=>T(D),variant:"contained",disabled:!n.trim(),size:"small",children:"Create Workbook"})]})]})})]}),E.jsxs(Fp,{open:u,onClose:b,maxWidth:"md",fullWidth:!0,children:[E.jsxs(jp,{sx:{pb:1,pt:2,px:2},children:[E.jsx(Ye,{variant:"h6",fontWeight:600,sx:{mb:.5},children:"Open Workbook"}),E.jsx(Ye,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),E.jsx(Bp,{sx:{px:2,pb:2},children:E.jsx(g8,{notebookStorage:new YL,userContext:{project:e,package:t},children:E.jsx(O1e,{onNotebookClick:S})})})]})]})}new yP(new Qr);Pt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function Y1e(){const e=pd();return E.jsx(q1e,{navigate:e})}function K1e(){const e=sc(),t=e["*"],n=pd();return E.jsx(Zt,{sx:{display:"flex",alignItems:"center"},children:E.jsxs(PG,{"aria-label":"breadcrumb",separator:E.jsx(GZ,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&E.jsx(Hl,{onClick:r=>n(`/${e.projectName}/`,r),label:e.projectName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"primary.100"}}}),e.packageName&&E.jsx(Hl,{onClick:r=>n(`/${e.projectName}/${e.packageName}/`,r),label:e.packageName,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"secondary.100"}}}),t&&E.jsx(Hl,{onClick:r=>n(`/${e.projectName}/${e.packageName}/${t}`,r),label:t,size:"medium",sx:{backgroundColor:"white",color:"primary.main",fontWeight:500,height:"32px",fontSize:"0.875rem",cursor:"pointer","&:hover":{backgroundColor:"grey.200"}}})]})})}function Q1e({logoHeader:e,endCap:t}){const n=MT(),{projectName:r,packageName:o}=sc();return E.jsx(U$,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:E.jsxs(eK,{sx:{justifyContent:"space-between"},children:[E.jsxs(hn,{direction:"row",spacing:2,alignItems:"center",children:[e||E.jsxs(Zt,{sx:{display:"flex",alignItems:"center",gap:1},children:[E.jsx(Zt,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),E.jsx(Ye,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),E.jsx(K1e,{})]}),E.jsxs(hn,{direction:"row",spacing:2,alignItems:"center",children:[!r||!o?!e&&E.jsxs(E.Fragment,{children:[E.jsx(Ur,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),E.jsx(Ur,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),E.jsx(Ur,{href:"/api-doc.html",children:"Publisher API"})]}):E.jsx(E.Fragment,{children:E.jsx(W1e,{})}),t]})]})})}function X1e({headerProps:e}){return E.jsxs(Zt,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[E.jsx(Q1e,{...e}),E.jsx(TS,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:E.jsx(Zt,{sx:{flex:1},children:E.jsx(oB,{})})})]})}function Z1e(){const e=sc(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?E.jsx(My,{projectName:e.projectName,packageName:e.packageName,children:E.jsx(dce,{modelPath:t,hideEmbeddingIcons:!0})}):t?.endsWith(".malloynb")?E.jsx(My,{projectName:e.projectName,packageName:e.packageName,children:E.jsx(yL,{notebookPath:t,hideEmbeddingIcons:!0,expandResults:!1})}):E.jsx("div",{children:E.jsxs("h2",{children:["Unrecognized file type: ",t]})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function J1e(){const{projectName:e,packageName:t}=sc(),n=pd();return e?t?E.jsx(My,{projectName:e,packageName:t,children:E.jsx(rce,{navigate:n})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function eEe(){const e=pd(),{projectName:t}=sc();return t?E.jsx(F1e,{projectName:t,children:E.jsx(B1e,{navigate:e})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}function tEe(){const e=VN();return console.error(e),E.jsx(TS,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:E.jsxs(hn,{sx:{m:"auto",flexDirection:"column"},children:[E.jsx(Zt,{sx:{height:"300px"}}),E.jsx("img",{src:"/error.png"}),E.jsx(Ye,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function nEe(){const{projectName:e,packageName:t,notebookPath:n}=sc();return e?t?E.jsx(My,{projectName:e,packageName:t,children:E.jsx(g8,{notebookStorage:new YL,userContext:{project:e,package:t},children:E.jsx(R1e,{notebookPath:n,hideEmbeddingIcons:!0},`${n}-${e}-${t}`)})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing package name"})}):E.jsx("div",{children:E.jsx("h2",{children:"Missing project name"})})}const Bn={primary:{main:"#14b3cb",light:"#22d3ee",dark:"#0e7490",50:"#ecfeff",100:"#cffafe",500:"#14b3cb",600:"#0891b2",700:"#0e7490"},secondary:{main:"#fbbb04",light:"#fde047",dark:"#eab308",50:"#fefce8",100:"#fef3c7",500:"#fbbb04",600:"#eab308",700:"#ca8a04"},grey:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},success:{main:"#059669",light:"#10b981",dark:"#047857"},warning:{main:"#d97706",light:"#f59e0b",dark:"#b45309"},error:{main:"#dc2626",light:"#ef4444",dark:"#b91c1c"},info:{main:"#0891b2",light:"#06b6d4",dark:"#0e7490"}},rEe=h0({palette:{mode:"light",primary:Bn.primary,secondary:Bn.secondary,grey:Bn.grey,success:Bn.success,warning:Bn.warning,error:Bn.error,info:Bn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Bn.grey[900],secondary:Bn.grey[600]},divider:Bn.grey[200]},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:700,letterSpacing:"-0.025em"},h2:{fontWeight:700,letterSpacing:"-0.025em"},h3:{fontWeight:600,letterSpacing:"-0.025em"},h4:{fontWeight:600,letterSpacing:"-0.025em"},h5:{fontWeight:600,letterSpacing:"-0.025em"},h6:{fontWeight:600,letterSpacing:"-0.025em"},subtitle1:{fontWeight:500,letterSpacing:"-0.025em"},subtitle2:{fontWeight:500,letterSpacing:"-0.025em"},body1:{letterSpacing:"-0.025em"},body2:{letterSpacing:"-0.025em"},button:{fontWeight:500,letterSpacing:"-0.025em",textTransform:"none"}},shape:{borderRadius:4},components:{MuiCssBaseline:{styleOverrides:{body:{scrollbarWidth:"thin",scrollbarColor:`${Bn.grey[300]} ${Bn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Bn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Bn.grey[300],borderRadius:"4px","&:hover":{background:Bn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Bn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Bn.grey[300]} ${Bn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Bn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Bn.grey[300],borderRadius:"4px","&:hover":{background:Bn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Bn.grey[100]}}}},MuiButton:{styleOverrides:{root:{borderRadius:4,textTransform:"none",fontWeight:500,boxShadow:"none","&:hover":{boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"}},contained:{"&:hover":{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}}}},MuiCard:{styleOverrides:{root:{borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",border:"1px solid",borderColor:"rgba(0, 0, 0, 0.05)"}}},MuiChip:{styleOverrides:{root:{borderRadius:4,fontWeight:500}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:4}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"}}},MuiMenu:{styleOverrides:{paper:{borderRadius:4,boxShadow:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid rgba(0, 0, 0, 0.05)"}}},MuiBreadcrumbs:{styleOverrides:{root:{"& .MuiBreadcrumbs-separator":{margin:"0 6px",color:Bn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Bn.grey[200]}},defaultProps:{sx:{my:1}}}}}),oEe=(e="/",t,n,r)=>DB([{path:e,element:E.jsx(hce,{server:n,getAccessToken:r,children:E.jsxs(Iz,{theme:rEe,children:[E.jsx(lq,{}),E.jsx(X1e,{headerProps:t})]})}),errorElement:E.jsx(tEe,{}),children:[{path:"",element:E.jsx(Y1e,{})},{path:":projectName",element:E.jsx(eEe,{})},{path:":projectName/:packageName",element:E.jsx(J1e,{})},{path:":projectName/:packageName/*",element:E.jsx(Z1e,{})},{path:":projectName/:packageName/scratchNotebook/:notebookPath",element:E.jsx(nEe,{})}]}]),aEe=`${window.location.protocol}//${window.location.host}/api/v0`,iEe=oEe("/",void 0,aEe);PF.createRoot(document.getElementById("root")).render(E.jsx(w.StrictMode,{children:E.jsx(HB,{router:iEe})}));export{YE as R,G as _,Bs as a,$e as b,Xy as c,sEe as d,CN as g,E as j,w as r};
|