@malloy-publisher/server 0.0.87 → 0.0.89

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.
Files changed (35) hide show
  1. package/build.ts +26 -0
  2. package/dist/app/api-doc.yaml +126 -5
  3. package/dist/app/assets/RenderedResult-BAZuT25g-QakVAbYy.js +2 -0
  4. package/dist/app/assets/{index-BbW5TZg_.js → index-Bq29VQqL.js} +2 -2
  5. package/dist/app/assets/{index-2xWCh-ya.css → index-CcIq0aEZ.css} +1 -1
  6. package/dist/app/assets/index-DZMePHJ5.js +251 -0
  7. package/dist/app/assets/{index-CIfV3yj1.js → index-TslDWlxH.js} +6 -6
  8. package/dist/app/assets/{index.umd-x-naS8R7.js → index.umd-BN4_E5KD.js} +259 -259
  9. package/dist/app/assets/mui-BEbinrI-.js +161 -0
  10. package/dist/app/assets/vendor-c5ypKtDW.js +17 -0
  11. package/dist/app/index.html +4 -2
  12. package/dist/instrumentation.js +67818 -35196
  13. package/dist/server.js +80404 -82231
  14. package/package.json +11 -5
  15. package/publisher.config.json +1 -1
  16. package/src/config.ts +20 -0
  17. package/src/constants.ts +14 -0
  18. package/src/controller/connection.controller.ts +21 -4
  19. package/src/controller/package.controller.ts +52 -2
  20. package/src/controller/schedule.controller.ts +3 -3
  21. package/src/controller/watch-mode.controller.ts +83 -0
  22. package/src/errors.ts +2 -1
  23. package/src/logger.ts +9 -0
  24. package/src/server.ts +33 -19
  25. package/src/service/connection.ts +159 -161
  26. package/src/service/model.ts +6 -6
  27. package/src/service/package.spec.ts +12 -10
  28. package/src/service/package.ts +15 -8
  29. package/src/service/project.ts +77 -36
  30. package/src/service/project_store.spec.ts +83 -56
  31. package/src/service/project_store.ts +330 -50
  32. package/src/utils.ts +0 -18
  33. package/tests/harness/mcp_test_setup.ts +5 -5
  34. package/dist/app/assets/RenderedResult-BAZuT25g-BMU632YI.js +0 -2
  35. package/dist/app/assets/index-C7whj6wK.js +0 -432
@@ -1,432 +0,0 @@
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-CIfV3yj1.js","assets/index-BbW5TZg_.js","assets/index.umd-x-naS8R7.js"])))=>i.map(i=>d[i]);
2
- function OF(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 UEe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O1={exports:{}},xf={};/**
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 Kk;function NF(){if(Kk)return xf;Kk=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 l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return xf.Fragment=t,xf.jsx=n,xf.jsxs=n,xf}var Qk;function PF(){return Qk||(Qk=1,O1.exports=NF()),O1.exports}var v=PF(),N1={exports:{}},jt={};/**
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 Xk;function LF(){if(Xk)return jt;Xk=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"),l=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,oe,K){this.props=N,this.context=oe,this.refs=x,this.updater=K||y}S.prototype.isReactComponent={},S.prototype.setState=function(N,oe){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,oe,"setState")},S.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function T(){}T.prototype=S.prototype;function D(N,oe,K){this.props=N,this.context=oe,this.refs=x,this.updater=K||y}var w=D.prototype=new T;w.constructor=D,b(w,S.prototype),w.isPureReactComponent=!0;var R=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function F(N,oe,K,P,ee,ce){return K=ce.ref,{$$typeof:e,type:N,key:oe,ref:K!==void 0?K:null,props:ce}}function j(N,oe){return F(N.type,oe,void 0,void 0,void 0,N.props)}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function C(N){var oe={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(K){return oe[K]})}var M=/\/+/g;function $(N,oe){return typeof N=="object"&&N!==null&&N.key!=null?C(""+N.key):oe.toString(36)}function z(){}function q(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(oe){N.status==="pending"&&(N.status="fulfilled",N.value=oe)},function(oe){N.status==="pending"&&(N.status="rejected",N.reason=oe)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function Y(N,oe,K,P,ee){var ce=typeof N;(ce==="undefined"||ce==="boolean")&&(N=null);var re=!1;if(N===null)re=!0;else switch(ce){case"bigint":case"string":case"number":re=!0;break;case"object":switch(N.$$typeof){case e:case t:re=!0;break;case p:return re=N._init,Y(re(N._payload),oe,K,P,ee)}}if(re)return ee=ee(N),re=P===""?"."+$(N,0):P,R(ee)?(K="",re!=null&&(K=re.replace(M,"$&/")+"/"),Y(ee,oe,K,"",function(Ge){return Ge})):ee!=null&&(H(ee)&&(ee=j(ee,K+(ee.key==null||N&&N.key===ee.key?"":(""+ee.key).replace(M,"$&/")+"/")+re)),oe.push(ee)),1;re=0;var be=P===""?".":P+":";if(R(N))for(var ye=0;ye<N.length;ye++)P=N[ye],ce=be+$(P,ye),re+=Y(P,oe,K,ce,ee);else if(ye=g(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(P=N.next()).done;)P=P.value,ce=be+$(P,ye++),re+=Y(P,oe,K,ce,ee);else if(ce==="object"){if(typeof N.then=="function")return Y(q(N),oe,K,P,ee);throw oe=String(N),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return re}function B(N,oe,K){if(N==null)return N;var P=[],ee=0;return Y(N,P,"","",function(ce){return oe.call(K,ce,ee++)}),P}function X(N){if(N._status===-1){var oe=N._result;oe=oe(),oe.then(function(K){(N._status===0||N._status===-1)&&(N._status=1,N._result=K)},function(K){(N._status===0||N._status===-1)&&(N._status=2,N._result=K)}),N._status===-1&&(N._status=0,N._result=oe)}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 oe=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(oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function te(){}return jt.Children={map:B,forEach:function(N,oe,K){B(N,function(){oe.apply(this,arguments)},K)},count:function(N){var oe=0;return B(N,function(){oe++}),oe},toArray:function(N){return B(N,function(oe){return oe})||[]},only:function(N){if(!H(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},jt.Component=S,jt.Fragment=n,jt.Profiler=o,jt.PureComponent=D,jt.StrictMode=r,jt.Suspense=u,jt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,jt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return I.H.useMemoCache(N)}},jt.cache=function(N){return function(){return N.apply(null,arguments)}},jt.cloneElement=function(N,oe,K){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var P=b({},N.props),ee=N.key,ce=void 0;if(oe!=null)for(re in oe.ref!==void 0&&(ce=void 0),oe.key!==void 0&&(ee=""+oe.key),oe)!O.call(oe,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&oe.ref===void 0||(P[re]=oe[re]);var re=arguments.length-2;if(re===1)P.children=K;else if(1<re){for(var be=Array(re),ye=0;ye<re;ye++)be[ye]=arguments[ye+2];P.children=be}return F(N.type,ee,void 0,void 0,ce,P)},jt.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},jt.createElement=function(N,oe,K){var P,ee={},ce=null;if(oe!=null)for(P in oe.key!==void 0&&(ce=""+oe.key),oe)O.call(oe,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ee[P]=oe[P]);var re=arguments.length-2;if(re===1)ee.children=K;else if(1<re){for(var be=Array(re),ye=0;ye<re;ye++)be[ye]=arguments[ye+2];ee.children=be}if(N&&N.defaultProps)for(P in re=N.defaultProps,re)ee[P]===void 0&&(ee[P]=re[P]);return F(N,ce,void 0,void 0,null,ee)},jt.createRef=function(){return{current:null}},jt.forwardRef=function(N){return{$$typeof:l,render:N}},jt.isValidElement=H,jt.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:X}},jt.memo=function(N,oe){return{$$typeof:d,type:N,compare:oe===void 0?null:oe}},jt.startTransition=function(N){var oe=I.T,K={};I.T=K;try{var P=N(),ee=I.S;ee!==null&&ee(K,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(te,ae)}catch(ce){ae(ce)}finally{I.T=oe}},jt.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},jt.use=function(N){return I.H.use(N)},jt.useActionState=function(N,oe,K){return I.H.useActionState(N,oe,K)},jt.useCallback=function(N,oe){return I.H.useCallback(N,oe)},jt.useContext=function(N){return I.H.useContext(N)},jt.useDebugValue=function(){},jt.useDeferredValue=function(N,oe){return I.H.useDeferredValue(N,oe)},jt.useEffect=function(N,oe,K){var P=I.H;if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return P.useEffect(N,oe)},jt.useId=function(){return I.H.useId()},jt.useImperativeHandle=function(N,oe,K){return I.H.useImperativeHandle(N,oe,K)},jt.useInsertionEffect=function(N,oe){return I.H.useInsertionEffect(N,oe)},jt.useLayoutEffect=function(N,oe){return I.H.useLayoutEffect(N,oe)},jt.useMemo=function(N,oe){return I.H.useMemo(N,oe)},jt.useOptimistic=function(N,oe){return I.H.useOptimistic(N,oe)},jt.useReducer=function(N,oe,K){return I.H.useReducer(N,oe,K)},jt.useRef=function(N){return I.H.useRef(N)},jt.useState=function(N){return I.H.useState(N)},jt.useSyncExternalStore=function(N,oe,K){return I.H.useSyncExternalStore(N,oe,K)},jt.useTransition=function(){return I.H.useTransition()},jt.version="19.1.0",jt}var Zk;function FT(){return Zk||(Zk=1,N1.exports=LF()),N1.exports}var k=FT();const Fe=LN(k),ox=OF({__proto__:null,default:Fe},[k]);var P1={exports:{}},Tf={},L1={exports:{}},M1={};/**
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 Jk;function MF(){return Jk||(Jk=1,function(e){function t(B,X){var ae=B.length;B.push(X);e:for(;0<ae;){var te=ae-1>>>1,N=B[te];if(0<o(N,X))B[te]=X,B[ae]=N,ae=te;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var X=B[0],ae=B.pop();if(ae!==X){B[0]=ae;e:for(var te=0,N=B.length,oe=N>>>1;te<oe;){var K=2*(te+1)-1,P=B[K],ee=K+1,ce=B[ee];if(0>o(P,ae))ee<N&&0>o(ce,P)?(B[te]=ce,B[ee]=ae,te=ee):(B[te]=P,B[K]=ae,te=K);else if(ee<N&&0>o(ce,ae))B[te]=ce,B[ee]=ae,te=ee;else break e}}return X}function o(B,X){var ae=B.sortIndex-X.sortIndex;return ae!==0?ae:B.id-X.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,l=s.now();e.unstable_now=function(){return s.now()-l}}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,w=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var X=n(d);X!==null;){if(X.callback===null)r(d);else if(X.startTime<=B)r(d),X.sortIndex=X.expirationTime,t(u,X);else break;X=n(d)}}function I(B){if(x=!1,R(B),!b)if(n(u)!==null)b=!0,O||(O=!0,$());else{var X=n(d);X!==null&&Y(I,X.startTime-B)}}var O=!1,F=-1,j=5,H=-1;function C(){return S?!0:!(e.unstable_now()-H<j)}function M(){if(S=!1,O){var B=e.unstable_now();H=B;var X=!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 te=h.callback;if(typeof te=="function"){h.callback=null,g=h.priorityLevel;var N=te(h.expirationTime<=B);if(B=e.unstable_now(),typeof N=="function"){h.callback=N,R(B),X=!0;break t}h===n(u)&&r(u),R(B)}else r(u);h=n(u)}if(h!==null)X=!0;else{var oe=n(d);oe!==null&&Y(I,oe.startTime-B),X=!1}}break e}finally{h=null,g=ae,y=!1}X=void 0}}finally{X?$():O=!1}}}var $;if(typeof w=="function")$=function(){w(M)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,q=z.port2;z.port1.onmessage=M,$=function(){q.postMessage(null)}}else $=function(){T(M,0)};function Y(B,X){F=T(function(){B(e.unstable_now())},X)}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"):j=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 X=3;break;default:X=g}var ae=g;g=X;try{return B()}finally{g=ae}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ae=g;g=B;try{return X()}finally{g=ae}},e.unstable_scheduleCallback=function(B,X,ae){var te=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?te+ae:te):ae=te,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:X,priorityLevel:B,startTime:ae,expirationTime:N,sortIndex:-1},ae>te?(B.sortIndex=ae,t(d,B),n(u)===null&&B===n(d)&&(x?(D(F),F=-1):x=!0,Y(I,ae-te))):(B.sortIndex=N,t(u,B),b||y||(b=!0,O||(O=!0,$()))),B},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(B){var X=g;return function(){var ae=g;g=X;try{return B.apply(this,arguments)}finally{g=ae}}}}(M1)),M1}var ew;function FF(){return ew||(ew=1,L1.exports=MF()),L1.exports}var F1={exports:{}},Wr={};/**
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 tw;function BF(){if(tw)return Wr;tw=1;var e=FT();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 l(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Wr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Wr.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)},Wr.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()}},Wr.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))},Wr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Wr.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var p=d.as,h=l(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})}},Wr.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=l(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)},Wr.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,h=l(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})}},Wr.preloadModule=function(u,d){if(typeof u=="string")if(d){var p=l(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)},Wr.requestFormReset=function(u){r.d.r(u)},Wr.unstable_batchedUpdates=function(u,d){return u(d)},Wr.useFormState=function(u,d,p){return s.H.useFormState(u,d,p)},Wr.useFormStatus=function(){return s.H.useHostTransitionStatus()},Wr.version="19.1.0",Wr}var nw;function MN(){if(nw)return F1.exports;nw=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(),F1.exports=BF(),F1.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 rw;function jF(){if(rw)return Tf;rw=1;var e=FF(),t=FT(),n=MN();function r(i){var c="https://react.dev/errors/"+i;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)c+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+i+"; visit "+c+" 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 c=i,f=i;if(i.alternate)for(;c.return;)c=c.return;else{i=c;do c=i,(c.flags&4098)!==0&&(f=c.return),i=c.return;while(i)}return c.tag===3?f:null}function s(i){if(i.tag===13){var c=i.memoizedState;if(c===null&&(i=i.alternate,i!==null&&(c=i.memoizedState)),c!==null)return c.dehydrated}return null}function l(i){if(a(i)!==i)throw Error(r(188))}function u(i){var c=i.alternate;if(!c){if(c=a(i),c===null)throw Error(r(188));return c!==i?null:i}for(var f=i,m=c;;){var E=f.return;if(E===null)break;var _=E.alternate;if(_===null){if(m=E.return,m!==null){f=m;continue}break}if(E.child===_.child){for(_=E.child;_;){if(_===f)return l(E),i;if(_===m)return l(E),c;_=_.sibling}throw Error(r(188))}if(f.return!==m.return)f=E,m=_;else{for(var L=!1,U=E.child;U;){if(U===f){L=!0,f=E,m=_;break}if(U===m){L=!0,m=E,f=_;break}U=U.sibling}if(!L){for(U=_.child;U;){if(U===f){L=!0,f=_,m=E;break}if(U===m){L=!0,m=_,f=E;break}U=U.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:c}function d(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i;for(i=i.child;i!==null;){if(c=d(i),c!==null)return c;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"),w=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"),j=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function $(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 q(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 w:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case R:var c=i.render;return i=i.displayName,i||(i=c.displayName||c.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case F:return c=i.displayName||null,c!==null?c:q(i.type)||"Memo";case j:c=i._payload,i=i._init;try{return q(i(c))}catch{}}return null}var Y=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},te=[],N=-1;function oe(i){return{current:i}}function K(i){0>N||(i.current=te[N],te[N]=null,N--)}function P(i,c){N++,te[N]=i.current,i.current=c}var ee=oe(null),ce=oe(null),re=oe(null),be=oe(null);function ye(i,c){switch(P(re,c),P(ce,i),P(ee,null),c.nodeType){case 9:case 11:i=(i=c.documentElement)&&(i=i.namespaceURI)?Sk(i):0;break;default:if(i=c.tagName,c=c.namespaceURI)c=Sk(c),i=Ck(c,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}K(ee),P(ee,i)}function Ge(){K(ee),K(ce),K(re)}function Me(i){i.memoizedState!==null&&P(be,i);var c=ee.current,f=Ck(c,i.type);c!==f&&(P(ce,i),P(ee,f))}function Oe(i){ce.current===i&&(K(ee),K(ce)),be.current===i&&(K(be),gf._currentValue=ae)}var Qe=Object.prototype.hasOwnProperty,nt=e.unstable_scheduleCallback,Re=e.unstable_cancelCallback,gt=e.unstable_shouldYield,At=e.unstable_requestPaint,je=e.unstable_now,mt=e.unstable_getCurrentPriorityLevel,lt=e.unstable_ImmediatePriority,ft=e.unstable_UserBlockingPriority,Ue=e.unstable_NormalPriority,Le=e.unstable_LowPriority,Jt=e.unstable_IdlePriority,Ut=e.log,kt=e.unstable_setDisableYieldValue,de=null,ge=null;function ze(i){if(typeof Ut=="function"&&kt(i),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(de,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 zt=256,Ke=4194304;function Ee(i){var c=i&42;if(c!==0)return c;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,c,f){var m=i.pendingLanes;if(m===0)return 0;var E=0,_=i.suspendedLanes,L=i.pingedLanes;i=i.warmLanes;var U=m&134217727;return U!==0?(m=U&~_,m!==0?E=Ee(m):(L&=U,L!==0?E=Ee(L):f||(f=U&~i,f!==0&&(E=Ee(f))))):(U=m&~_,U!==0?E=Ee(U):L!==0?E=Ee(L):f||(f=m&~i,f!==0&&(E=Ee(f)))),E===0?0:c!==0&&c!==E&&(c&_)===0&&(_=E&-E,f=c&-c,_>=f||_===32&&(f&4194048)!==0)?c:E}function ht(i,c){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&c)===0}function rt(i,c){switch(i){case 1:case 2:case 4:case 8:case 64:return c+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 c+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=zt;return zt<<=1,(zt&4194048)===0&&(zt=256),i}function Lr(){var i=Ke;return Ke<<=1,(Ke&62914560)===0&&(Ke=4194304),i}function xr(i){for(var c=[],f=0;31>f;f++)c.push(i);return c}function Qn(i,c){i.pendingLanes|=c,c!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function pr(i,c,f,m,E,_){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 U=i.entanglements,Z=i.expirationTimes,pe=i.hiddenUpdates;for(f=L&~f;0<f;){var Ae=31-Xe(f),Ie=1<<Ae;U[Ae]=0,Z[Ae]=-1;var he=pe[Ae];if(he!==null)for(pe[Ae]=null,Ae=0;Ae<he.length;Ae++){var me=he[Ae];me!==null&&(me.lane&=-536870913)}f&=~Ie}m!==0&&fo(i,m,0),_!==0&&E===0&&i.tag!==0&&(i.suspendedLanes|=_&~(L&~c))}function fo(i,c,f){i.pendingLanes|=c,i.suspendedLanes&=~c;var m=31-Xe(c);i.entangledLanes|=c,i.entanglements[m]=i.entanglements[m]|1073741824|f&4194090}function Tn(i,c){var f=i.entangledLanes|=c;for(i=i.entanglements;f;){var m=31-Xe(f),E=1<<m;E&c|i[m]&c&&(i[m]|=c),f&=~E}}function Mr(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 ne(){var i=X.p;return i!==0?i:(i=window.event,i===void 0?32:$k(i.type))}function J(i,c){var f=X.p;try{return X.p=i,c()}finally{X.p=f}}var ie=Math.random().toString(36).slice(2),ve="__reactFiber$"+ie,we="__reactProps$"+ie,Ye="__reactContainer$"+ie,ot="__reactEvents$"+ie,Ze="__reactListeners$"+ie,ct="__reactHandles$"+ie,et="__reactResources$"+ie,bt="__reactMarker$"+ie;function wt(i){delete i[ve],delete i[we],delete i[ot],delete i[Ze],delete i[ct]}function Ot(i){var c=i[ve];if(c)return c;for(var f=i.parentNode;f;){if(c=f[Ye]||f[ve]){if(f=c.alternate,c.child!==null||f!==null&&f.child!==null)for(i=wk(i);i!==null;){if(f=i[ve])return f;i=wk(i)}return c}i=f,f=i.parentNode}return null}function rn(i){if(i=i[ve]||i[Ye]){var c=i.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return i}return null}function jn(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i.stateNode;throw Error(r(33))}function Wn(i){var c=i[et];return c||(c=i[et]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function on(i){i[bt]=!0}var Xt=new Set,ls={};function no(i,c){Qo(i,c),Qo(i+"Capture",c)}function Qo(i,c){for(ls[i]=c,i=0;i<c.length;i++)Xt.add(c[i])}var po=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]*$"),cs={},us={};function Ad(i){return Qe.call(us,i)?!0:Qe.call(cs,i)?!1:po.test(i)?us[i]=!0:(cs[i]=!0,!1)}function Xo(i,c,f){if(Ad(c))if(f===null)i.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":i.removeAttribute(c);return;case"boolean":var m=c.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){i.removeAttribute(c);return}}i.setAttribute(c,""+f)}}function Si(i,c,f){if(f===null)i.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttribute(c,""+f)}}function $t(i,c,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(c,f,""+m)}}var Gr,wa;function Da(i){if(Gr===void 0)try{throw Error()}catch(f){var c=f.stack.trim().match(/\n( *(at )?)/);Gr=c&&c[1]||"",wa=-1<f.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+Gr+i+wa}var sl=!1;function Hn(i,c){if(!i||sl)return"";sl=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(c){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(me){var he=me}Reflect.construct(i,[],Ie)}else{try{Ie.call()}catch(me){he=me}i.call(Ie.prototype)}}else{try{throw Error()}catch(me){he=me}(Ie=i())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(me){if(me&&he&&typeof me.stack=="string")return[me.stack,he.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=m.DetermineComponentFrameRoot(),L=_[0],U=_[1];if(L&&U){var Z=L.split(`
45
- `),pe=U.split(`
46
- `);for(E=m=0;m<Z.length&&!Z[m].includes("DetermineComponentFrameRoot");)m++;for(;E<pe.length&&!pe[E].includes("DetermineComponentFrameRoot");)E++;if(m===Z.length||E===pe.length)for(m=Z.length-1,E=pe.length-1;1<=m&&0<=E&&Z[m]!==pe[E];)E--;for(;1<=m&&0<=E;m--,E--)if(Z[m]!==pe[E]){if(m!==1||E!==1)do if(m--,E--,0>E||Z[m]!==pe[E]){var Ae=`
47
- `+Z[m].replace(" at new "," at ");return i.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",i.displayName)),Ae}while(1<=m&&0<=E);break}}}finally{sl=!1,Error.prepareStackTrace=f}return(f=i?i.displayName||i.name:"")?Da(f):""}function ds(i){switch(i.tag){case 26:case 27:case 5:return Da(i.type);case 16:return Da("Lazy");case 13:return Da("Suspense");case 19:return Da("SuspenseList");case 0:case 15:return Hn(i.type,!1);case 11:return Hn(i.type.render,!1);case 1:return Hn(i.type,!0);case 31:return Da("Activity");default:return""}}function kd(i){try{var c="";do c+=ds(i),i=i.return;while(i);return c}catch(f){return`
48
- Error generating stack: `+f.message+`
49
- `+f.stack}}function ho(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function b_(i){var c=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function k8(i){var c=b_(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,c),m=""+i[c];if(!i.hasOwnProperty(c)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var E=f.get,_=f.set;return Object.defineProperty(i,c,{configurable:!0,get:function(){return E.call(this)},set:function(L){m=""+L,_.call(this,L)}}),Object.defineProperty(i,c,{enumerable:f.enumerable}),{getValue:function(){return m},setValue:function(L){m=""+L},stopTracking:function(){i._valueTracker=null,delete i[c]}}}}function Qh(i){i._valueTracker||(i._valueTracker=k8(i))}function v_(i){if(!i)return!1;var c=i._valueTracker;if(!c)return!0;var f=c.getValue(),m="";return i&&(m=b_(i)?i.checked?"true":"false":i.value),i=m,i!==f?(c.setValue(i),!0):!1}function Xh(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 w8=/[\n"\\]/g;function Zo(i){return i.replace(w8,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Db(i,c,f,m,E,_,L,U){i.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?i.type=L:i.removeAttribute("type"),c!=null?L==="number"?(c===0&&i.value===""||i.value!=c)&&(i.value=""+ho(c)):i.value!==""+ho(c)&&(i.value=""+ho(c)):L!=="submit"&&L!=="reset"||i.removeAttribute("value"),c!=null?Rb(i,L,ho(c)):f!=null?Rb(i,L,ho(f)):m!=null&&i.removeAttribute("value"),E==null&&_!=null&&(i.defaultChecked=!!_),E!=null&&(i.checked=E&&typeof E!="function"&&typeof E!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?i.name=""+ho(U):i.removeAttribute("name")}function E_(i,c,f,m,E,_,L,U){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),c!=null||f!=null){if(!(_!=="submit"&&_!=="reset"||c!=null))return;f=f!=null?""+ho(f):"",c=c!=null?""+ho(c):f,U||c===i.value||(i.value=c),i.defaultValue=c}m=m??E,m=typeof m!="function"&&typeof m!="symbol"&&!!m,i.checked=U?i.checked:!!m,i.defaultChecked=!!m,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(i.name=L)}function Rb(i,c,f){c==="number"&&Xh(i.ownerDocument)===i||i.defaultValue===""+f||(i.defaultValue=""+f)}function yc(i,c,f,m){if(i=i.options,c){c={};for(var E=0;E<f.length;E++)c["$"+f[E]]=!0;for(f=0;f<i.length;f++)E=c.hasOwnProperty("$"+i[f].value),i[f].selected!==E&&(i[f].selected=E),E&&m&&(i[f].defaultSelected=!0)}else{for(f=""+ho(f),c=null,E=0;E<i.length;E++){if(i[E].value===f){i[E].selected=!0,m&&(i[E].defaultSelected=!0);return}c!==null||i[E].disabled||(c=i[E])}c!==null&&(c.selected=!0)}}function x_(i,c,f){if(c!=null&&(c=""+ho(c),c!==i.value&&(i.value=c),f==null)){i.defaultValue!==c&&(i.defaultValue=c);return}i.defaultValue=f!=null?""+ho(f):""}function T_(i,c,f,m){if(c==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=""),c=f}f=ho(c),i.defaultValue=f,m=i.textContent,m===f&&m!==""&&m!==null&&(i.value=m)}function bc(i,c){if(c){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=c;return}}i.textContent=c}var D8=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 S_(i,c,f){var m=c.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?i.setProperty(c,""):c==="float"?i.cssFloat="":i[c]="":m?i.setProperty(c,f):typeof f!="number"||f===0||D8.has(c)?c==="float"?i.cssFloat=f:i[c]=(""+f).trim():i[c]=f+"px"}function C_(i,c,f){if(c!=null&&typeof c!="object")throw Error(r(62));if(i=i.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||c!=null&&c.hasOwnProperty(m)||(m.indexOf("--")===0?i.setProperty(m,""):m==="float"?i.cssFloat="":i[m]="");for(var E in c)m=c[E],c.hasOwnProperty(E)&&f[E]!==m&&S_(i,E,m)}else for(var _ in c)c.hasOwnProperty(_)&&S_(i,_,c[_])}function Ib(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 R8=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"]]),I8=/^[\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 Zh(i){return I8.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Ob=null;function Nb(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var vc=null,Ec=null;function __(i){var c=rn(i);if(c&&(i=c.stateNode)){var f=i[we]||null;e:switch(i=c.stateNode,c.type){case"input":if(Db(i,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),c=f.name,f.type==="radio"&&c!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Zo(""+c)+'"][type="radio"]'),c=0;c<f.length;c++){var m=f[c];if(m!==i&&m.form===i.form){var E=m[we]||null;if(!E)throw Error(r(90));Db(m,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(c=0;c<f.length;c++)m=f[c],m.form===i.form&&v_(m)}break e;case"textarea":x_(i,f.value,f.defaultValue);break e;case"select":c=f.value,c!=null&&yc(i,!!f.multiple,c,!1)}}}var Pb=!1;function A_(i,c,f){if(Pb)return i(c,f);Pb=!0;try{var m=i(c);return m}finally{if(Pb=!1,(vc!==null||Ec!==null)&&(Fm(),vc&&(c=vc,i=Ec,Ec=vc=null,__(c),i)))for(c=0;c<i.length;c++)__(i[c])}}function wd(i,c){var f=i.stateNode;if(f===null)return null;var m=f[we]||null;if(m===null)return null;f=m[c];e:switch(c){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,c,typeof f));return f}var Ci=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lb=!1;if(Ci)try{var Dd={};Object.defineProperty(Dd,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Dd,Dd),window.removeEventListener("test",Dd,Dd)}catch{Lb=!1}var fs=null,Mb=null,Jh=null;function k_(){if(Jh)return Jh;var i,c=Mb,f=c.length,m,E="value"in fs?fs.value:fs.textContent,_=E.length;for(i=0;i<f&&c[i]===E[i];i++);var L=f-i;for(m=1;m<=L&&c[f-m]===E[_-m];m++);return Jh=E.slice(i,1<m?1-m:void 0)}function em(i){var c=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&c===13&&(i=13)):i=c,i===10&&(i=13),32<=i||i===13?i:0}function tm(){return!0}function w_(){return!1}function mo(i){function c(f,m,E,_,L){this._reactName=f,this._targetInst=E,this.type=m,this.nativeEvent=_,this.target=L,this.currentTarget=null;for(var U in i)i.hasOwnProperty(U)&&(f=i[U],this[U]=f?f(_):_[U]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?tm:w_,this.isPropagationStopped=w_,this}return p(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=tm)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=tm)},persist:function(){},isPersistent:tm}),c}var ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nm=mo(ll),Rd=p({},ll,{view:0,detail:0}),O8=mo(Rd),Fb,Bb,Id,rm=p({},Rd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ub,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!==Id&&(Id&&i.type==="mousemove"?(Fb=i.screenX-Id.screenX,Bb=i.screenY-Id.screenY):Bb=Fb=0,Id=i),Fb)},movementY:function(i){return"movementY"in i?i.movementY:Bb}}),D_=mo(rm),N8=p({},rm,{dataTransfer:0}),P8=mo(N8),L8=p({},Rd,{relatedTarget:0}),jb=mo(L8),M8=p({},ll,{animationName:0,elapsedTime:0,pseudoElement:0}),F8=mo(M8),B8=p({},ll,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),j8=mo(B8),U8=p({},ll,{data:0}),R_=mo(U8),H8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z8={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"},$8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function V8(i){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(i):(i=$8[i])?!!c[i]:!1}function Ub(){return V8}var G8=p({},Rd,{key:function(i){if(i.key){var c=H8[i.key]||i.key;if(c!=="Unidentified")return c}return i.type==="keypress"?(i=em(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?z8[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ub,charCode:function(i){return i.type==="keypress"?em(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?em(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),q8=mo(G8),W8=p({},rm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),I_=mo(W8),Y8=p({},Rd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ub}),K8=mo(Y8),Q8=p({},ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),X8=mo(Q8),Z8=p({},rm,{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}),J8=mo(Z8),e7=p({},ll,{newState:0,oldState:0}),t7=mo(e7),n7=[9,13,27,32],Hb=Ci&&"CompositionEvent"in window,Od=null;Ci&&"documentMode"in document&&(Od=document.documentMode);var r7=Ci&&"TextEvent"in window&&!Od,O_=Ci&&(!Hb||Od&&8<Od&&11>=Od),N_=" ",P_=!1;function L_(i,c){switch(i){case"keyup":return n7.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var xc=!1;function o7(i,c){switch(i){case"compositionend":return M_(c);case"keypress":return c.which!==32?null:(P_=!0,N_);case"textInput":return i=c.data,i===N_&&P_?null:i;default:return null}}function a7(i,c){if(xc)return i==="compositionend"||!Hb&&L_(i,c)?(i=k_(),Jh=Mb=fs=null,xc=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return O_&&c.locale!=="ko"?null:c.data;default:return null}}var i7={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 F_(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c==="input"?!!i7[i.type]:c==="textarea"}function B_(i,c,f,m){vc?Ec?Ec.push(m):Ec=[m]:vc=m,c=$m(c,"onChange"),0<c.length&&(f=new nm("onChange","change",null,f,m),i.push({event:f,listeners:c}))}var Nd=null,Pd=null;function s7(i){bk(i,0)}function om(i){var c=jn(i);if(v_(c))return i}function j_(i,c){if(i==="change")return c}var U_=!1;if(Ci){var zb;if(Ci){var $b="oninput"in document;if(!$b){var H_=document.createElement("div");H_.setAttribute("oninput","return;"),$b=typeof H_.oninput=="function"}zb=$b}else zb=!1;U_=zb&&(!document.documentMode||9<document.documentMode)}function z_(){Nd&&(Nd.detachEvent("onpropertychange",$_),Pd=Nd=null)}function $_(i){if(i.propertyName==="value"&&om(Pd)){var c=[];B_(c,Pd,i,Nb(i)),A_(s7,c)}}function l7(i,c,f){i==="focusin"?(z_(),Nd=c,Pd=f,Nd.attachEvent("onpropertychange",$_)):i==="focusout"&&z_()}function c7(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return om(Pd)}function u7(i,c){if(i==="click")return om(c)}function d7(i,c){if(i==="input"||i==="change")return om(c)}function f7(i,c){return i===c&&(i!==0||1/i===1/c)||i!==i&&c!==c}var Ro=typeof Object.is=="function"?Object.is:f7;function Ld(i,c){if(Ro(i,c))return!0;if(typeof i!="object"||i===null||typeof c!="object"||c===null)return!1;var f=Object.keys(i),m=Object.keys(c);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var E=f[m];if(!Qe.call(c,E)||!Ro(i[E],c[E]))return!1}return!0}function V_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function G_(i,c){var f=V_(i);i=0;for(var m;f;){if(f.nodeType===3){if(m=i+f.textContent.length,i<=c&&m>=c)return{node:f,offset:c-i};i=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=V_(f)}}function q_(i,c){return i&&c?i===c?!0:i&&i.nodeType===3?!1:c&&c.nodeType===3?q_(i,c.parentNode):"contains"in i?i.contains(c):i.compareDocumentPosition?!!(i.compareDocumentPosition(c)&16):!1:!1}function W_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var c=Xh(i.document);c instanceof i.HTMLIFrameElement;){try{var f=typeof c.contentWindow.location.href=="string"}catch{f=!1}if(f)i=c.contentWindow;else break;c=Xh(i.document)}return c}function Vb(i){var c=i&&i.nodeName&&i.nodeName.toLowerCase();return c&&(c==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||c==="textarea"||i.contentEditable==="true")}var p7=Ci&&"documentMode"in document&&11>=document.documentMode,Tc=null,Gb=null,Md=null,qb=!1;function Y_(i,c,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;qb||Tc==null||Tc!==Xh(m)||(m=Tc,"selectionStart"in m&&Vb(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}),Md&&Ld(Md,m)||(Md=m,m=$m(Gb,"onSelect"),0<m.length&&(c=new nm("onSelect","select",null,c,f),i.push({event:c,listeners:m}),c.target=Tc)))}function cl(i,c){var f={};return f[i.toLowerCase()]=c.toLowerCase(),f["Webkit"+i]="webkit"+c,f["Moz"+i]="moz"+c,f}var Sc={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionrun:cl("Transition","TransitionRun"),transitionstart:cl("Transition","TransitionStart"),transitioncancel:cl("Transition","TransitionCancel"),transitionend:cl("Transition","TransitionEnd")},Wb={},K_={};Ci&&(K_=document.createElement("div").style,"AnimationEvent"in window||(delete Sc.animationend.animation,delete Sc.animationiteration.animation,delete Sc.animationstart.animation),"TransitionEvent"in window||delete Sc.transitionend.transition);function ul(i){if(Wb[i])return Wb[i];if(!Sc[i])return i;var c=Sc[i],f;for(f in c)if(c.hasOwnProperty(f)&&f in K_)return Wb[i]=c[f];return i}var Q_=ul("animationend"),X_=ul("animationiteration"),Z_=ul("animationstart"),h7=ul("transitionrun"),m7=ul("transitionstart"),g7=ul("transitioncancel"),J_=ul("transitionend"),eA=new Map,Yb="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(" ");Yb.push("scrollEnd");function Ra(i,c){eA.set(i,c),no(c,[i])}var tA=new WeakMap;function Jo(i,c){if(typeof i=="object"&&i!==null){var f=tA.get(i);return f!==void 0?f:(c={value:i,source:c,stack:kd(c)},tA.set(i,c),c)}return{value:i,source:c,stack:kd(c)}}var ea=[],Cc=0,Kb=0;function am(){for(var i=Cc,c=Kb=Cc=0;c<i;){var f=ea[c];ea[c++]=null;var m=ea[c];ea[c++]=null;var E=ea[c];ea[c++]=null;var _=ea[c];if(ea[c++]=null,m!==null&&E!==null){var L=m.pending;L===null?E.next=E:(E.next=L.next,L.next=E),m.pending=E}_!==0&&nA(f,E,_)}}function im(i,c,f,m){ea[Cc++]=i,ea[Cc++]=c,ea[Cc++]=f,ea[Cc++]=m,Kb|=m,i.lanes|=m,i=i.alternate,i!==null&&(i.lanes|=m)}function Qb(i,c,f,m){return im(i,c,f,m),sm(i)}function _c(i,c){return im(i,null,null,c),sm(i)}function nA(i,c,f){i.lanes|=f;var m=i.alternate;m!==null&&(m.lanes|=f);for(var E=!1,_=i.return;_!==null;)_.childLanes|=f,m=_.alternate,m!==null&&(m.childLanes|=f),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(E=!0)),i=_,_=_.return;return i.tag===3?(_=i.stateNode,E&&c!==null&&(E=31-Xe(f),i=_.hiddenUpdates,m=i[E],m===null?i[E]=[c]:m.push(c),c.lane=f|536870912),_):null}function sm(i){if(50<lf)throw lf=0,n1=null,Error(r(185));for(var c=i.return;c!==null;)i=c,c=i.return;return i.tag===3?i.stateNode:null}var Ac={};function y7(i,c,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=c,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 Io(i,c,f,m){return new y7(i,c,f,m)}function Xb(i){return i=i.prototype,!(!i||!i.isReactComponent)}function _i(i,c){var f=i.alternate;return f===null?(f=Io(i.tag,c,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=c,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,c=i.dependencies,f.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f.refCleanup=i.refCleanup,f}function rA(i,c){i.flags&=65011714;var f=i.alternate;return f===null?(i.childLanes=0,i.lanes=c,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,c=f.dependencies,i.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),i}function lm(i,c,f,m,E,_){var L=0;if(m=i,typeof i=="function")Xb(i)&&(L=1);else if(typeof i=="string")L=vF(i,f,ee.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case H:return i=Io(31,f,c,E),i.elementType=H,i.lanes=_,i;case b:return dl(f.children,E,_,c);case x:L=8,E|=24;break;case S:return i=Io(12,f,c,E|2),i.elementType=S,i.lanes=_,i;case I:return i=Io(13,f,c,E),i.elementType=I,i.lanes=_,i;case O:return i=Io(19,f,c,E),i.elementType=O,i.lanes=_,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:case w:L=10;break e;case D:L=9;break e;case R:L=11;break e;case F:L=14;break e;case j:L=16,m=null;break e}L=29,f=Error(r(130,i===null?"null":typeof i,"")),m=null}return c=Io(L,f,c,E),c.elementType=i,c.type=m,c.lanes=_,c}function dl(i,c,f,m){return i=Io(7,i,m,c),i.lanes=f,i}function Zb(i,c,f){return i=Io(6,i,null,c),i.lanes=f,i}function Jb(i,c,f){return c=Io(4,i.children!==null?i.children:[],i.key,c),c.lanes=f,c.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},c}var kc=[],wc=0,cm=null,um=0,ta=[],na=0,fl=null,Ai=1,ki="";function pl(i,c){kc[wc++]=um,kc[wc++]=cm,cm=i,um=c}function oA(i,c,f){ta[na++]=Ai,ta[na++]=ki,ta[na++]=fl,fl=i;var m=Ai;i=ki;var E=32-Xe(m)-1;m&=~(1<<E),f+=1;var _=32-Xe(c)+E;if(30<_){var L=E-E%5;_=(m&(1<<L)-1).toString(32),m>>=L,E-=L,Ai=1<<32-Xe(c)+E|f<<E|m,ki=_+i}else Ai=1<<_|f<<E|m,ki=i}function ev(i){i.return!==null&&(pl(i,1),oA(i,1,0))}function tv(i){for(;i===cm;)cm=kc[--wc],kc[wc]=null,um=kc[--wc],kc[wc]=null;for(;i===fl;)fl=ta[--na],ta[na]=null,ki=ta[--na],ta[na]=null,Ai=ta[--na],ta[na]=null}var ro=null,Xn=null,sn=!1,hl=null,Wa=!1,nv=Error(r(519));function ml(i){var c=Error(r(418,""));throw jd(Jo(c,i)),nv}function aA(i){var c=i.stateNode,f=i.type,m=i.memoizedProps;switch(c[ve]=i,c[we]=m,f){case"dialog":Wt("cancel",c),Wt("close",c);break;case"iframe":case"object":case"embed":Wt("load",c);break;case"video":case"audio":for(f=0;f<uf.length;f++)Wt(uf[f],c);break;case"source":Wt("error",c);break;case"img":case"image":case"link":Wt("error",c),Wt("load",c);break;case"details":Wt("toggle",c);break;case"input":Wt("invalid",c),E_(c,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0),Qh(c);break;case"select":Wt("invalid",c);break;case"textarea":Wt("invalid",c),T_(c,m.value,m.defaultValue,m.children),Qh(c)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||c.textContent===""+f||m.suppressHydrationWarning===!0||Tk(c.textContent,f)?(m.popover!=null&&(Wt("beforetoggle",c),Wt("toggle",c)),m.onScroll!=null&&Wt("scroll",c),m.onScrollEnd!=null&&Wt("scrollend",c),m.onClick!=null&&(c.onclick=Vm),c=!0):c=!1,c||ml(i)}function iA(i){for(ro=i.return;ro;)switch(ro.tag){case 5:case 13:Wa=!1;return;case 27:case 3:Wa=!0;return;default:ro=ro.return}}function Fd(i){if(i!==ro)return!1;if(!sn)return iA(i),sn=!0,!1;var c=i.tag,f;if((f=c!==3&&c!==27)&&((f=c===5)&&(f=i.type,f=!(f!=="form"&&f!=="button")||b1(i.type,i.memoizedProps)),f=!f),f&&Xn&&ml(i),iA(i),c===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,c=0;i;){if(i.nodeType===8)if(f=i.data,f==="/$"){if(c===0){Xn=Oa(i.nextSibling);break e}c--}else f!=="$"&&f!=="$!"&&f!=="$?"||c++;i=i.nextSibling}Xn=null}}else c===27?(c=Xn,ws(i.type)?(i=T1,T1=null,Xn=i):Xn=c):Xn=ro?Oa(i.stateNode.nextSibling):null;return!0}function Bd(){Xn=ro=null,sn=!1}function sA(){var i=hl;return i!==null&&(bo===null?bo=i:bo.push.apply(bo,i),hl=null),i}function jd(i){hl===null?hl=[i]:hl.push(i)}var rv=oe(null),gl=null,wi=null;function ps(i,c,f){P(rv,c._currentValue),c._currentValue=f}function Di(i){i._currentValue=rv.current,K(rv)}function ov(i,c,f){for(;i!==null;){var m=i.alternate;if((i.childLanes&c)!==c?(i.childLanes|=c,m!==null&&(m.childLanes|=c)):m!==null&&(m.childLanes&c)!==c&&(m.childLanes|=c),i===f)break;i=i.return}}function av(i,c,f,m){var E=i.child;for(E!==null&&(E.return=i);E!==null;){var _=E.dependencies;if(_!==null){var L=E.child;_=_.firstContext;e:for(;_!==null;){var U=_;_=E;for(var Z=0;Z<c.length;Z++)if(U.context===c[Z]){_.lanes|=f,U=_.alternate,U!==null&&(U.lanes|=f),ov(_.return,f,i),m||(L=null);break e}_=U.next}}else if(E.tag===18){if(L=E.return,L===null)throw Error(r(341));L.lanes|=f,_=L.alternate,_!==null&&(_.lanes|=f),ov(L,f,i),L=null}else L=E.child;if(L!==null)L.return=E;else for(L=E;L!==null;){if(L===i){L=null;break}if(E=L.sibling,E!==null){E.return=L.return,L=E;break}L=L.return}E=L}}function Ud(i,c,f,m){i=null;for(var E=c,_=!1;E!==null;){if(!_){if((E.flags&524288)!==0)_=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var L=E.alternate;if(L===null)throw Error(r(387));if(L=L.memoizedProps,L!==null){var U=E.type;Ro(E.pendingProps.value,L.value)||(i!==null?i.push(U):i=[U])}}else if(E===be.current){if(L=E.alternate,L===null)throw Error(r(387));L.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(gf):i=[gf])}E=E.return}i!==null&&av(c,i,f,m),c.flags|=262144}function dm(i){for(i=i.firstContext;i!==null;){if(!Ro(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function yl(i){gl=i,wi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function qr(i){return lA(gl,i)}function fm(i,c){return gl===null&&yl(i),lA(i,c)}function lA(i,c){var f=c._currentValue;if(c={context:c,memoizedValue:f,next:null},wi===null){if(i===null)throw Error(r(308));wi=c,i.dependencies={lanes:0,firstContext:c},i.flags|=524288}else wi=wi.next=c;return f}var b7=typeof AbortController<"u"?AbortController:function(){var i=[],c=this.signal={aborted:!1,addEventListener:function(f,m){i.push(m)}};this.abort=function(){c.aborted=!0,i.forEach(function(f){return f()})}},v7=e.unstable_scheduleCallback,E7=e.unstable_NormalPriority,Tr={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function iv(){return{controller:new b7,data:new Map,refCount:0}}function Hd(i){i.refCount--,i.refCount===0&&v7(E7,function(){i.controller.abort()})}var zd=null,sv=0,Dc=0,Rc=null;function x7(i,c){if(zd===null){var f=zd=[];sv=0,Dc=c1(),Rc={status:"pending",value:void 0,then:function(m){f.push(m)}}}return sv++,c.then(cA,cA),c}function cA(){if(--sv===0&&zd!==null){Rc!==null&&(Rc.status="fulfilled");var i=zd;zd=null,Dc=0,Rc=null;for(var c=0;c<i.length;c++)(0,i[c])()}}function T7(i,c){var f=[],m={status:"pending",value:null,reason:null,then:function(E){f.push(E)}};return i.then(function(){m.status="fulfilled",m.value=c;for(var E=0;E<f.length;E++)(0,f[E])(c)},function(E){for(m.status="rejected",m.reason=E,E=0;E<f.length;E++)(0,f[E])(void 0)}),m}var uA=B.S;B.S=function(i,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&x7(i,c),uA!==null&&uA(i,c)};var bl=oe(null);function lv(){var i=bl.current;return i!==null?i:In.pooledCache}function pm(i,c){c===null?P(bl,bl.current):P(bl,c.pool)}function dA(){var i=lv();return i===null?null:{parent:Tr._currentValue,pool:i}}var $d=Error(r(460)),fA=Error(r(474)),hm=Error(r(542)),cv={then:function(){}};function pA(i){return i=i.status,i==="fulfilled"||i==="rejected"}function mm(){}function hA(i,c,f){switch(f=i[f],f===void 0?i.push(c):f!==c&&(c.then(mm,mm),c=f),c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,gA(i),i;default:if(typeof c.status=="string")c.then(mm,mm);else{if(i=In,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=c,i.status="pending",i.then(function(m){if(c.status==="pending"){var E=c;E.status="fulfilled",E.value=m}},function(m){if(c.status==="pending"){var E=c;E.status="rejected",E.reason=m}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw i=c.reason,gA(i),i}throw Vd=c,$d}}var Vd=null;function mA(){if(Vd===null)throw Error(r(459));var i=Vd;return Vd=null,i}function gA(i){if(i===$d||i===hm)throw Error(r(483))}var hs=!1;function uv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dv(i,c){i=i.updateQueue,c.updateQueue===i&&(c.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function ms(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function gs(i,c,f){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(pn&2)!==0){var E=m.pending;return E===null?c.next=c:(c.next=E.next,E.next=c),m.pending=c,c=sm(i),nA(i,null,f),c}return im(i,m,c,f),sm(i)}function Gd(i,c,f){if(c=c.updateQueue,c!==null&&(c=c.shared,(f&4194048)!==0)){var m=c.lanes;m&=i.pendingLanes,f|=m,c.lanes=f,Tn(i,f)}}function fv(i,c){var f=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var E=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?E=_=L:_=_.next=L,f=f.next}while(f!==null);_===null?E=_=c:_=_.next=c}else E=_=c;f={baseState:m.baseState,firstBaseUpdate:E,lastBaseUpdate:_,shared:m.shared,callbacks:m.callbacks},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=c:i.next=c,f.lastBaseUpdate=c}var pv=!1;function qd(){if(pv){var i=Rc;if(i!==null)throw i}}function Wd(i,c,f,m){pv=!1;var E=i.updateQueue;hs=!1;var _=E.firstBaseUpdate,L=E.lastBaseUpdate,U=E.shared.pending;if(U!==null){E.shared.pending=null;var Z=U,pe=Z.next;Z.next=null,L===null?_=pe:L.next=pe,L=Z;var Ae=i.alternate;Ae!==null&&(Ae=Ae.updateQueue,U=Ae.lastBaseUpdate,U!==L&&(U===null?Ae.firstBaseUpdate=pe:U.next=pe,Ae.lastBaseUpdate=Z))}if(_!==null){var Ie=E.baseState;L=0,Ae=pe=Z=null,U=_;do{var he=U.lane&-536870913,me=he!==U.lane;if(me?(tn&he)===he:(m&he)===he){he!==0&&he===Dc&&(pv=!0),Ae!==null&&(Ae=Ae.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var Dt=i,xt=U;he=c;var bn=f;switch(xt.tag){case 1:if(Dt=xt.payload,typeof Dt=="function"){Ie=Dt.call(bn,Ie,he);break e}Ie=Dt;break e;case 3:Dt.flags=Dt.flags&-65537|128;case 0:if(Dt=xt.payload,he=typeof Dt=="function"?Dt.call(bn,Ie,he):Dt,he==null)break e;Ie=p({},Ie,he);break e;case 2:hs=!0}}he=U.callback,he!==null&&(i.flags|=64,me&&(i.flags|=8192),me=E.callbacks,me===null?E.callbacks=[he]:me.push(he))}else me={lane:he,tag:U.tag,payload:U.payload,callback:U.callback,next:null},Ae===null?(pe=Ae=me,Z=Ie):Ae=Ae.next=me,L|=he;if(U=U.next,U===null){if(U=E.shared.pending,U===null)break;me=U,U=me.next,me.next=null,E.lastBaseUpdate=me,E.shared.pending=null}}while(!0);Ae===null&&(Z=Ie),E.baseState=Z,E.firstBaseUpdate=pe,E.lastBaseUpdate=Ae,_===null&&(E.shared.lanes=0),Cs|=L,i.lanes=L,i.memoizedState=Ie}}function yA(i,c){if(typeof i!="function")throw Error(r(191,i));i.call(c)}function bA(i,c){var f=i.callbacks;if(f!==null)for(i.callbacks=null,i=0;i<f.length;i++)yA(f[i],c)}var Ic=oe(null),gm=oe(0);function vA(i,c){i=Mi,P(gm,i),P(Ic,c),Mi=i|c.baseLanes}function hv(){P(gm,Mi),P(Ic,Ic.current)}function mv(){Mi=gm.current,K(Ic),K(gm)}var ys=0,Ht=null,gn=null,hr=null,ym=!1,Oc=!1,vl=!1,bm=0,Yd=0,Nc=null,S7=0;function ir(){throw Error(r(321))}function gv(i,c){if(c===null)return!1;for(var f=0;f<c.length&&f<i.length;f++)if(!Ro(i[f],c[f]))return!1;return!0}function yv(i,c,f,m,E,_){return ys=_,Ht=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,B.H=i===null||i.memoizedState===null?n2:r2,vl=!1,_=f(m,E),vl=!1,Oc&&(_=xA(c,f,m,E)),EA(i),_}function EA(i){B.H=Cm;var c=gn!==null&&gn.next!==null;if(ys=0,hr=gn=Ht=null,ym=!1,Yd=0,Nc=null,c)throw Error(r(300));i===null||wr||(i=i.dependencies,i!==null&&dm(i)&&(wr=!0))}function xA(i,c,f,m){Ht=i;var E=0;do{if(Oc&&(Nc=null),Yd=0,Oc=!1,25<=E)throw Error(r(301));if(E+=1,hr=gn=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}B.H=R7,_=c(f,m)}while(Oc);return _}function C7(){var i=B.H,c=i.useState()[0];return c=typeof c.then=="function"?Kd(c):c,i=i.useState()[0],(gn!==null?gn.memoizedState:null)!==i&&(Ht.flags|=1024),c}function bv(){var i=bm!==0;return bm=0,i}function vv(i,c,f){c.updateQueue=i.updateQueue,c.flags&=-2053,i.lanes&=~f}function Ev(i){if(ym){for(i=i.memoizedState;i!==null;){var c=i.queue;c!==null&&(c.pending=null),i=i.next}ym=!1}ys=0,hr=gn=Ht=null,Oc=!1,Yd=bm=0,Nc=null}function go(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hr===null?Ht.memoizedState=hr=i:hr=hr.next=i,hr}function mr(){if(gn===null){var i=Ht.alternate;i=i!==null?i.memoizedState:null}else i=gn.next;var c=hr===null?Ht.memoizedState:hr.next;if(c!==null)hr=c,gn=i;else{if(i===null)throw Ht.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},hr===null?Ht.memoizedState=hr=i:hr=hr.next=i}return hr}function xv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kd(i){var c=Yd;return Yd+=1,Nc===null&&(Nc=[]),i=hA(Nc,i,c),c=Ht,(hr===null?c.memoizedState:hr.next)===null&&(c=c.alternate,B.H=c===null||c.memoizedState===null?n2:r2),i}function vm(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Kd(i);if(i.$$typeof===w)return qr(i)}throw Error(r(438,String(i)))}function Tv(i){var c=null,f=Ht.updateQueue;if(f!==null&&(c=f.memoCache),c==null){var m=Ht.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(c={data:m.data.map(function(E){return E.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),f===null&&(f=xv(),Ht.updateQueue=f),f.memoCache=c,f=c.data[c.index],f===void 0)for(f=c.data[c.index]=Array(i),m=0;m<i;m++)f[m]=C;return c.index++,f}function Ri(i,c){return typeof c=="function"?c(i):c}function Em(i){var c=mr();return Sv(c,gn,i)}function Sv(i,c,f){var m=i.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=f;var E=i.baseQueue,_=m.pending;if(_!==null){if(E!==null){var L=E.next;E.next=_.next,_.next=L}c.baseQueue=E=_,m.pending=null}if(_=i.baseState,E===null)i.memoizedState=_;else{c=E.next;var U=L=null,Z=null,pe=c,Ae=!1;do{var Ie=pe.lane&-536870913;if(Ie!==pe.lane?(tn&Ie)===Ie:(ys&Ie)===Ie){var he=pe.revertLane;if(he===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),Ie===Dc&&(Ae=!0);else if((ys&he)===he){pe=pe.next,he===Dc&&(Ae=!0);continue}else Ie={lane:0,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},Z===null?(U=Z=Ie,L=_):Z=Z.next=Ie,Ht.lanes|=he,Cs|=he;Ie=pe.action,vl&&f(_,Ie),_=pe.hasEagerState?pe.eagerState:f(_,Ie)}else he={lane:Ie,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},Z===null?(U=Z=he,L=_):Z=Z.next=he,Ht.lanes|=Ie,Cs|=Ie;pe=pe.next}while(pe!==null&&pe!==c);if(Z===null?L=_:Z.next=U,!Ro(_,i.memoizedState)&&(wr=!0,Ae&&(f=Rc,f!==null)))throw f;i.memoizedState=_,i.baseState=L,i.baseQueue=Z,m.lastRenderedState=_}return E===null&&(m.lanes=0),[i.memoizedState,m.dispatch]}function Cv(i){var c=mr(),f=c.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=i;var m=f.dispatch,E=f.pending,_=c.memoizedState;if(E!==null){f.pending=null;var L=E=E.next;do _=i(_,L.action),L=L.next;while(L!==E);Ro(_,c.memoizedState)||(wr=!0),c.memoizedState=_,c.baseQueue===null&&(c.baseState=_),f.lastRenderedState=_}return[_,m]}function TA(i,c,f){var m=Ht,E=mr(),_=sn;if(_){if(f===void 0)throw Error(r(407));f=f()}else f=c();var L=!Ro((gn||E).memoizedState,f);L&&(E.memoizedState=f,wr=!0),E=E.queue;var U=_A.bind(null,m,E,i);if(Qd(2048,8,U,[i]),E.getSnapshot!==c||L||hr!==null&&hr.memoizedState.tag&1){if(m.flags|=2048,Pc(9,xm(),CA.bind(null,m,E,f,c),null),In===null)throw Error(r(349));_||(ys&124)!==0||SA(m,c,f)}return f}function SA(i,c,f){i.flags|=16384,i={getSnapshot:c,value:f},c=Ht.updateQueue,c===null?(c=xv(),Ht.updateQueue=c,c.stores=[i]):(f=c.stores,f===null?c.stores=[i]:f.push(i))}function CA(i,c,f,m){c.value=f,c.getSnapshot=m,AA(c)&&kA(i)}function _A(i,c,f){return f(function(){AA(c)&&kA(i)})}function AA(i){var c=i.getSnapshot;i=i.value;try{var f=c();return!Ro(i,f)}catch{return!0}}function kA(i){var c=_c(i,2);c!==null&&Mo(c,i,2)}function _v(i){var c=go();if(typeof i=="function"){var f=i;if(i=f(),vl){ze(!0);try{f()}finally{ze(!1)}}}return c.memoizedState=c.baseState=i,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:i},c}function wA(i,c,f,m){return i.baseState=f,Sv(i,gn,typeof m=="function"?m:Ri)}function _7(i,c,f,m,E){if(Sm(i))throw Error(r(485));if(i=c.action,i!==null){var _={payload:E,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=c.pending,f===null?(_.next=c.pending=_,DA(c,_)):(_.next=f.next,c.pending=f.next=_)}}function DA(i,c){var f=c.action,m=c.payload,E=i.state;if(c.isTransition){var _=B.T,L={};B.T=L;try{var U=f(E,m),Z=B.S;Z!==null&&Z(L,U),RA(i,c,U)}catch(pe){Av(i,c,pe)}finally{B.T=_}}else try{_=f(E,m),RA(i,c,_)}catch(pe){Av(i,c,pe)}}function RA(i,c,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){IA(i,c,m)},function(m){return Av(i,c,m)}):IA(i,c,f)}function IA(i,c,f){c.status="fulfilled",c.value=f,OA(c),i.state=f,c=i.pending,c!==null&&(f=c.next,f===c?i.pending=null:(f=f.next,c.next=f,DA(i,f)))}function Av(i,c,f){var m=i.pending;if(i.pending=null,m!==null){m=m.next;do c.status="rejected",c.reason=f,OA(c),c=c.next;while(c!==m)}i.action=null}function OA(i){i=i.listeners;for(var c=0;c<i.length;c++)(0,i[c])()}function NA(i,c){return c}function PA(i,c){if(sn){var f=In.formState;if(f!==null){e:{var m=Ht;if(sn){if(Xn){t:{for(var E=Xn,_=Wa;E.nodeType!==8;){if(!_){E=null;break t}if(E=Oa(E.nextSibling),E===null){E=null;break t}}_=E.data,E=_==="F!"||_==="F"?E:null}if(E){Xn=Oa(E.nextSibling),m=E.data==="F!";break e}}ml(m)}m=!1}m&&(c=f[0])}}return f=go(),f.memoizedState=f.baseState=c,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:NA,lastRenderedState:c},f.queue=m,f=JA.bind(null,Ht,m),m.dispatch=f,m=_v(!1),_=Iv.bind(null,Ht,!1,m.queue),m=go(),E={state:c,dispatch:null,action:i,pending:null},m.queue=E,f=_7.bind(null,Ht,E,_,f),E.dispatch=f,m.memoizedState=i,[c,f,!1]}function LA(i){var c=mr();return MA(c,gn,i)}function MA(i,c,f){if(c=Sv(i,c,NA)[0],i=Em(Ri)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var m=Kd(c)}catch(L){throw L===$d?hm:L}else m=c;c=mr();var E=c.queue,_=E.dispatch;return f!==c.memoizedState&&(Ht.flags|=2048,Pc(9,xm(),A7.bind(null,E,f),null)),[m,_,i]}function A7(i,c){i.action=c}function FA(i){var c=mr(),f=gn;if(f!==null)return MA(c,f,i);mr(),c=c.memoizedState,f=mr();var m=f.queue.dispatch;return f.memoizedState=i,[c,m,!1]}function Pc(i,c,f,m){return i={tag:i,create:f,deps:m,inst:c,next:null},c=Ht.updateQueue,c===null&&(c=xv(),Ht.updateQueue=c),f=c.lastEffect,f===null?c.lastEffect=i.next=i:(m=f.next,f.next=i,i.next=m,c.lastEffect=i),i}function xm(){return{destroy:void 0,resource:void 0}}function BA(){return mr().memoizedState}function Tm(i,c,f,m){var E=go();m=m===void 0?null:m,Ht.flags|=i,E.memoizedState=Pc(1|c,xm(),f,m)}function Qd(i,c,f,m){var E=mr();m=m===void 0?null:m;var _=E.memoizedState.inst;gn!==null&&m!==null&&gv(m,gn.memoizedState.deps)?E.memoizedState=Pc(c,_,f,m):(Ht.flags|=i,E.memoizedState=Pc(1|c,_,f,m))}function jA(i,c){Tm(8390656,8,i,c)}function UA(i,c){Qd(2048,8,i,c)}function HA(i,c){return Qd(4,2,i,c)}function zA(i,c){return Qd(4,4,i,c)}function $A(i,c){if(typeof c=="function"){i=i();var f=c(i);return function(){typeof f=="function"?f():c(null)}}if(c!=null)return i=i(),c.current=i,function(){c.current=null}}function VA(i,c,f){f=f!=null?f.concat([i]):null,Qd(4,4,$A.bind(null,c,i),f)}function kv(){}function GA(i,c){var f=mr();c=c===void 0?null:c;var m=f.memoizedState;return c!==null&&gv(c,m[1])?m[0]:(f.memoizedState=[i,c],i)}function qA(i,c){var f=mr();c=c===void 0?null:c;var m=f.memoizedState;if(c!==null&&gv(c,m[1]))return m[0];if(m=i(),vl){ze(!0);try{i()}finally{ze(!1)}}return f.memoizedState=[m,c],m}function wv(i,c,f){return f===void 0||(ys&1073741824)!==0?i.memoizedState=c:(i.memoizedState=f,i=K2(),Ht.lanes|=i,Cs|=i,f)}function WA(i,c,f,m){return Ro(f,c)?f:Ic.current!==null?(i=wv(i,f,m),Ro(i,c)||(wr=!0),i):(ys&42)===0?(wr=!0,i.memoizedState=f):(i=K2(),Ht.lanes|=i,Cs|=i,c)}function YA(i,c,f,m,E){var _=X.p;X.p=_!==0&&8>_?_:8;var L=B.T,U={};B.T=U,Iv(i,!1,c,f);try{var Z=E(),pe=B.S;if(pe!==null&&pe(U,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var Ae=T7(Z,m);Xd(i,c,Ae,Lo(i))}else Xd(i,c,m,Lo(i))}catch(Ie){Xd(i,c,{then:function(){},status:"rejected",reason:Ie},Lo())}finally{X.p=_,B.T=L}}function k7(){}function Dv(i,c,f,m){if(i.tag!==5)throw Error(r(476));var E=KA(i).queue;YA(i,E,c,ae,f===null?k7:function(){return QA(i),f(m)})}function KA(i){var c=i.memoizedState;if(c!==null)return c;c={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:ae},next:null};var f={};return c.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:f},next:null},i.memoizedState=c,i=i.alternate,i!==null&&(i.memoizedState=c),c}function QA(i){var c=KA(i).next.queue;Xd(i,c,{},Lo())}function Rv(){return qr(gf)}function XA(){return mr().memoizedState}function ZA(){return mr().memoizedState}function w7(i){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var f=Lo();i=ms(f);var m=gs(c,i,f);m!==null&&(Mo(m,c,f),Gd(m,c,f)),c={cache:iv()},i.payload=c;return}c=c.return}}function D7(i,c,f){var m=Lo();f={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null},Sm(i)?e2(c,f):(f=Qb(i,c,f,m),f!==null&&(Mo(f,i,m),t2(f,c,m)))}function JA(i,c,f){var m=Lo();Xd(i,c,f,m)}function Xd(i,c,f,m){var E={lane:m,revertLane:0,action:f,hasEagerState:!1,eagerState:null,next:null};if(Sm(i))e2(c,E);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=c.lastRenderedReducer,_!==null))try{var L=c.lastRenderedState,U=_(L,f);if(E.hasEagerState=!0,E.eagerState=U,Ro(U,L))return im(i,c,E,0),In===null&&am(),!1}catch{}finally{}if(f=Qb(i,c,E,m),f!==null)return Mo(f,i,m),t2(f,c,m),!0}return!1}function Iv(i,c,f,m){if(m={lane:2,revertLane:c1(),action:m,hasEagerState:!1,eagerState:null,next:null},Sm(i)){if(c)throw Error(r(479))}else c=Qb(i,f,m,2),c!==null&&Mo(c,i,2)}function Sm(i){var c=i.alternate;return i===Ht||c!==null&&c===Ht}function e2(i,c){Oc=ym=!0;var f=i.pending;f===null?c.next=c:(c.next=f.next,f.next=c),i.pending=c}function t2(i,c,f){if((f&4194048)!==0){var m=c.lanes;m&=i.pendingLanes,f|=m,c.lanes=f,Tn(i,f)}}var Cm={readContext:qr,use:vm,useCallback:ir,useContext:ir,useEffect:ir,useImperativeHandle:ir,useLayoutEffect:ir,useInsertionEffect:ir,useMemo:ir,useReducer:ir,useRef:ir,useState:ir,useDebugValue:ir,useDeferredValue:ir,useTransition:ir,useSyncExternalStore:ir,useId:ir,useHostTransitionStatus:ir,useFormState:ir,useActionState:ir,useOptimistic:ir,useMemoCache:ir,useCacheRefresh:ir},n2={readContext:qr,use:vm,useCallback:function(i,c){return go().memoizedState=[i,c===void 0?null:c],i},useContext:qr,useEffect:jA,useImperativeHandle:function(i,c,f){f=f!=null?f.concat([i]):null,Tm(4194308,4,$A.bind(null,c,i),f)},useLayoutEffect:function(i,c){return Tm(4194308,4,i,c)},useInsertionEffect:function(i,c){Tm(4,2,i,c)},useMemo:function(i,c){var f=go();c=c===void 0?null:c;var m=i();if(vl){ze(!0);try{i()}finally{ze(!1)}}return f.memoizedState=[m,c],m},useReducer:function(i,c,f){var m=go();if(f!==void 0){var E=f(c);if(vl){ze(!0);try{f(c)}finally{ze(!1)}}}else E=c;return m.memoizedState=m.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},m.queue=i,i=i.dispatch=D7.bind(null,Ht,i),[m.memoizedState,i]},useRef:function(i){var c=go();return i={current:i},c.memoizedState=i},useState:function(i){i=_v(i);var c=i.queue,f=JA.bind(null,Ht,c);return c.dispatch=f,[i.memoizedState,f]},useDebugValue:kv,useDeferredValue:function(i,c){var f=go();return wv(f,i,c)},useTransition:function(){var i=_v(!1);return i=YA.bind(null,Ht,i.queue,!0,!1),go().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,c,f){var m=Ht,E=go();if(sn){if(f===void 0)throw Error(r(407));f=f()}else{if(f=c(),In===null)throw Error(r(349));(tn&124)!==0||SA(m,c,f)}E.memoizedState=f;var _={value:f,getSnapshot:c};return E.queue=_,jA(_A.bind(null,m,_,i),[i]),m.flags|=2048,Pc(9,xm(),CA.bind(null,m,_,f,c),null),f},useId:function(){var i=go(),c=In.identifierPrefix;if(sn){var f=ki,m=Ai;f=(m&~(1<<32-Xe(m)-1)).toString(32)+f,c="«"+c+"R"+f,f=bm++,0<f&&(c+="H"+f.toString(32)),c+="»"}else f=S7++,c="«"+c+"r"+f.toString(32)+"»";return i.memoizedState=c},useHostTransitionStatus:Rv,useFormState:PA,useActionState:PA,useOptimistic:function(i){var c=go();c.memoizedState=c.baseState=i;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=f,c=Iv.bind(null,Ht,!0,f),f.dispatch=c,[i,c]},useMemoCache:Tv,useCacheRefresh:function(){return go().memoizedState=w7.bind(null,Ht)}},r2={readContext:qr,use:vm,useCallback:GA,useContext:qr,useEffect:UA,useImperativeHandle:VA,useInsertionEffect:HA,useLayoutEffect:zA,useMemo:qA,useReducer:Em,useRef:BA,useState:function(){return Em(Ri)},useDebugValue:kv,useDeferredValue:function(i,c){var f=mr();return WA(f,gn.memoizedState,i,c)},useTransition:function(){var i=Em(Ri)[0],c=mr().memoizedState;return[typeof i=="boolean"?i:Kd(i),c]},useSyncExternalStore:TA,useId:XA,useHostTransitionStatus:Rv,useFormState:LA,useActionState:LA,useOptimistic:function(i,c){var f=mr();return wA(f,gn,i,c)},useMemoCache:Tv,useCacheRefresh:ZA},R7={readContext:qr,use:vm,useCallback:GA,useContext:qr,useEffect:UA,useImperativeHandle:VA,useInsertionEffect:HA,useLayoutEffect:zA,useMemo:qA,useReducer:Cv,useRef:BA,useState:function(){return Cv(Ri)},useDebugValue:kv,useDeferredValue:function(i,c){var f=mr();return gn===null?wv(f,i,c):WA(f,gn.memoizedState,i,c)},useTransition:function(){var i=Cv(Ri)[0],c=mr().memoizedState;return[typeof i=="boolean"?i:Kd(i),c]},useSyncExternalStore:TA,useId:XA,useHostTransitionStatus:Rv,useFormState:FA,useActionState:FA,useOptimistic:function(i,c){var f=mr();return gn!==null?wA(f,gn,i,c):(f.baseState=i,[i,f.queue.dispatch])},useMemoCache:Tv,useCacheRefresh:ZA},Lc=null,Zd=0;function _m(i){var c=Zd;return Zd+=1,Lc===null&&(Lc=[]),hA(Lc,i,c)}function Jd(i,c){c=c.props.ref,i.ref=c!==void 0?c:null}function Am(i,c){throw c.$$typeof===h?Error(r(525)):(i=Object.prototype.toString.call(c),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":i)))}function o2(i){var c=i._init;return c(i._payload)}function a2(i){function c(le,se){if(i){var ue=le.deletions;ue===null?(le.deletions=[se],le.flags|=16):ue.push(se)}}function f(le,se){if(!i)return null;for(;se!==null;)c(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 E(le,se){return le=_i(le,se),le.index=0,le.sibling=null,le}function _(le,se,ue){return le.index=ue,i?(ue=le.alternate,ue!==null?(ue=ue.index,ue<se?(le.flags|=67108866,se):ue):(le.flags|=67108866,se)):(le.flags|=1048576,se)}function L(le){return i&&le.alternate===null&&(le.flags|=67108866),le}function U(le,se,ue,De){return se===null||se.tag!==6?(se=Zb(ue,le.mode,De),se.return=le,se):(se=E(se,ue),se.return=le,se)}function Z(le,se,ue,De){var tt=ue.type;return tt===b?Ae(le,se,ue.props.children,De,ue.key):se!==null&&(se.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===j&&o2(tt)===se.type)?(se=E(se,ue.props),Jd(se,ue),se.return=le,se):(se=lm(ue.type,ue.key,ue.props,null,le.mode,De),Jd(se,ue),se.return=le,se)}function pe(le,se,ue,De){return se===null||se.tag!==4||se.stateNode.containerInfo!==ue.containerInfo||se.stateNode.implementation!==ue.implementation?(se=Jb(ue,le.mode,De),se.return=le,se):(se=E(se,ue.children||[]),se.return=le,se)}function Ae(le,se,ue,De,tt){return se===null||se.tag!==7?(se=dl(ue,le.mode,De,tt),se.return=le,se):(se=E(se,ue),se.return=le,se)}function Ie(le,se,ue){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=Zb(""+se,le.mode,ue),se.return=le,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case g:return ue=lm(se.type,se.key,se.props,null,le.mode,ue),Jd(ue,se),ue.return=le,ue;case y:return se=Jb(se,le.mode,ue),se.return=le,se;case j:var De=se._init;return se=De(se._payload),Ie(le,se,ue)}if(Y(se)||$(se))return se=dl(se,le.mode,ue,null),se.return=le,se;if(typeof se.then=="function")return Ie(le,_m(se),ue);if(se.$$typeof===w)return Ie(le,fm(le,se),ue);Am(le,se)}return null}function he(le,se,ue,De){var tt=se!==null?se.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return tt!==null?null:U(le,se,""+ue,De);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case g:return ue.key===tt?Z(le,se,ue,De):null;case y:return ue.key===tt?pe(le,se,ue,De):null;case j:return tt=ue._init,ue=tt(ue._payload),he(le,se,ue,De)}if(Y(ue)||$(ue))return tt!==null?null:Ae(le,se,ue,De,null);if(typeof ue.then=="function")return he(le,se,_m(ue),De);if(ue.$$typeof===w)return he(le,se,fm(le,ue),De);Am(le,ue)}return null}function me(le,se,ue,De,tt){if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return le=le.get(ue)||null,U(se,le,""+De,tt);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case g:return le=le.get(De.key===null?ue:De.key)||null,Z(se,le,De,tt);case y:return le=le.get(De.key===null?ue:De.key)||null,pe(se,le,De,tt);case j:var Vt=De._init;return De=Vt(De._payload),me(le,se,ue,De,tt)}if(Y(De)||$(De))return le=le.get(ue)||null,Ae(se,le,De,tt,null);if(typeof De.then=="function")return me(le,se,ue,_m(De),tt);if(De.$$typeof===w)return me(le,se,ue,fm(se,De),tt);Am(se,De)}return null}function Dt(le,se,ue,De){for(var tt=null,Vt=null,pt=se,Tt=se=0,Rr=null;pt!==null&&Tt<ue.length;Tt++){pt.index>Tt?(Rr=pt,pt=null):Rr=pt.sibling;var an=he(le,pt,ue[Tt],De);if(an===null){pt===null&&(pt=Rr);break}i&&pt&&an.alternate===null&&c(le,pt),se=_(an,se,Tt),Vt===null?tt=an:Vt.sibling=an,Vt=an,pt=Rr}if(Tt===ue.length)return f(le,pt),sn&&pl(le,Tt),tt;if(pt===null){for(;Tt<ue.length;Tt++)pt=Ie(le,ue[Tt],De),pt!==null&&(se=_(pt,se,Tt),Vt===null?tt=pt:Vt.sibling=pt,Vt=pt);return sn&&pl(le,Tt),tt}for(pt=m(pt);Tt<ue.length;Tt++)Rr=me(pt,le,Tt,ue[Tt],De),Rr!==null&&(i&&Rr.alternate!==null&&pt.delete(Rr.key===null?Tt:Rr.key),se=_(Rr,se,Tt),Vt===null?tt=Rr:Vt.sibling=Rr,Vt=Rr);return i&&pt.forEach(function(Ns){return c(le,Ns)}),sn&&pl(le,Tt),tt}function xt(le,se,ue,De){if(ue==null)throw Error(r(151));for(var tt=null,Vt=null,pt=se,Tt=se=0,Rr=null,an=ue.next();pt!==null&&!an.done;Tt++,an=ue.next()){pt.index>Tt?(Rr=pt,pt=null):Rr=pt.sibling;var Ns=he(le,pt,an.value,De);if(Ns===null){pt===null&&(pt=Rr);break}i&&pt&&Ns.alternate===null&&c(le,pt),se=_(Ns,se,Tt),Vt===null?tt=Ns:Vt.sibling=Ns,Vt=Ns,pt=Rr}if(an.done)return f(le,pt),sn&&pl(le,Tt),tt;if(pt===null){for(;!an.done;Tt++,an=ue.next())an=Ie(le,an.value,De),an!==null&&(se=_(an,se,Tt),Vt===null?tt=an:Vt.sibling=an,Vt=an);return sn&&pl(le,Tt),tt}for(pt=m(pt);!an.done;Tt++,an=ue.next())an=me(pt,le,Tt,an.value,De),an!==null&&(i&&an.alternate!==null&&pt.delete(an.key===null?Tt:an.key),se=_(an,se,Tt),Vt===null?tt=an:Vt.sibling=an,Vt=an);return i&&pt.forEach(function(IF){return c(le,IF)}),sn&&pl(le,Tt),tt}function bn(le,se,ue,De){if(typeof ue=="object"&&ue!==null&&ue.type===b&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case g:e:{for(var tt=ue.key;se!==null;){if(se.key===tt){if(tt=ue.type,tt===b){if(se.tag===7){f(le,se.sibling),De=E(se,ue.props.children),De.return=le,le=De;break e}}else if(se.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===j&&o2(tt)===se.type){f(le,se.sibling),De=E(se,ue.props),Jd(De,ue),De.return=le,le=De;break e}f(le,se);break}else c(le,se);se=se.sibling}ue.type===b?(De=dl(ue.props.children,le.mode,De,ue.key),De.return=le,le=De):(De=lm(ue.type,ue.key,ue.props,null,le.mode,De),Jd(De,ue),De.return=le,le=De)}return L(le);case y:e:{for(tt=ue.key;se!==null;){if(se.key===tt)if(se.tag===4&&se.stateNode.containerInfo===ue.containerInfo&&se.stateNode.implementation===ue.implementation){f(le,se.sibling),De=E(se,ue.children||[]),De.return=le,le=De;break e}else{f(le,se);break}else c(le,se);se=se.sibling}De=Jb(ue,le.mode,De),De.return=le,le=De}return L(le);case j:return tt=ue._init,ue=tt(ue._payload),bn(le,se,ue,De)}if(Y(ue))return Dt(le,se,ue,De);if($(ue)){if(tt=$(ue),typeof tt!="function")throw Error(r(150));return ue=tt.call(ue),xt(le,se,ue,De)}if(typeof ue.then=="function")return bn(le,se,_m(ue),De);if(ue.$$typeof===w)return bn(le,se,fm(le,ue),De);Am(le,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,se!==null&&se.tag===6?(f(le,se.sibling),De=E(se,ue),De.return=le,le=De):(f(le,se),De=Zb(ue,le.mode,De),De.return=le,le=De),L(le)):f(le,se)}return function(le,se,ue,De){try{Zd=0;var tt=bn(le,se,ue,De);return Lc=null,tt}catch(pt){if(pt===$d||pt===hm)throw pt;var Vt=Io(29,pt,null,le.mode);return Vt.lanes=De,Vt.return=le,Vt}finally{}}}var Mc=a2(!0),i2=a2(!1),ra=oe(null),Ya=null;function bs(i){var c=i.alternate;P(Sr,Sr.current&1),P(ra,i),Ya===null&&(c===null||Ic.current!==null||c.memoizedState!==null)&&(Ya=i)}function s2(i){if(i.tag===22){if(P(Sr,Sr.current),P(ra,i),Ya===null){var c=i.alternate;c!==null&&c.memoizedState!==null&&(Ya=i)}}else vs()}function vs(){P(Sr,Sr.current),P(ra,ra.current)}function Ii(i){K(ra),Ya===i&&(Ya=null),K(Sr)}var Sr=oe(0);function km(i){for(var c=i;c!==null;){if(c.tag===13){var f=c.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||x1(f)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function Ov(i,c,f,m){c=i.memoizedState,f=f(m,c),f=f==null?c:p({},c,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var Nv={enqueueSetState:function(i,c,f){i=i._reactInternals;var m=Lo(),E=ms(m);E.payload=c,f!=null&&(E.callback=f),c=gs(i,E,m),c!==null&&(Mo(c,i,m),Gd(c,i,m))},enqueueReplaceState:function(i,c,f){i=i._reactInternals;var m=Lo(),E=ms(m);E.tag=1,E.payload=c,f!=null&&(E.callback=f),c=gs(i,E,m),c!==null&&(Mo(c,i,m),Gd(c,i,m))},enqueueForceUpdate:function(i,c){i=i._reactInternals;var f=Lo(),m=ms(f);m.tag=2,c!=null&&(m.callback=c),c=gs(i,m,f),c!==null&&(Mo(c,i,f),Gd(c,i,f))}};function l2(i,c,f,m,E,_,L){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,_,L):c.prototype&&c.prototype.isPureReactComponent?!Ld(f,m)||!Ld(E,_):!0}function c2(i,c,f,m){i=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(f,m),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(f,m),c.state!==i&&Nv.enqueueReplaceState(c,c.state,null)}function El(i,c){var f=c;if("ref"in c){f={};for(var m in c)m!=="ref"&&(f[m]=c[m])}if(i=i.defaultProps){f===c&&(f=p({},f));for(var E in i)f[E]===void 0&&(f[E]=i[E])}return f}var wm=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=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(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function u2(i){wm(i)}function d2(i){console.error(i)}function f2(i){wm(i)}function Dm(i,c){try{var f=i.onUncaughtError;f(c.value,{componentStack:c.stack})}catch(m){setTimeout(function(){throw m})}}function p2(i,c,f){try{var m=i.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function Pv(i,c,f){return f=ms(f),f.tag=3,f.payload={element:null},f.callback=function(){Dm(i,c)},f}function h2(i){return i=ms(i),i.tag=3,i}function m2(i,c,f,m){var E=f.type.getDerivedStateFromError;if(typeof E=="function"){var _=m.value;i.payload=function(){return E(_)},i.callback=function(){p2(c,f,m)}}var L=f.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(i.callback=function(){p2(c,f,m),typeof E!="function"&&(_s===null?_s=new Set([this]):_s.add(this));var U=m.stack;this.componentDidCatch(m.value,{componentStack:U!==null?U:""})})}function I7(i,c,f,m,E){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(c=f.alternate,c!==null&&Ud(c,f,E,!0),f=ra.current,f!==null){switch(f.tag){case 13:return Ya===null?o1():f.alternate===null&&Zn===0&&(Zn=3),f.flags&=-257,f.flags|=65536,f.lanes=E,m===cv?f.flags|=16384:(c=f.updateQueue,c===null?f.updateQueue=new Set([m]):c.add(m),i1(i,m,E)),!1;case 22:return f.flags|=65536,m===cv?f.flags|=16384:(c=f.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=c):(f=c.retryQueue,f===null?c.retryQueue=new Set([m]):f.add(m)),i1(i,m,E)),!1}throw Error(r(435,f.tag))}return i1(i,m,E),o1(),!1}if(sn)return c=ra.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=E,m!==nv&&(i=Error(r(422),{cause:m}),jd(Jo(i,f)))):(m!==nv&&(c=Error(r(423),{cause:m}),jd(Jo(c,f))),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,m=Jo(m,f),E=Pv(i.stateNode,m,E),fv(i,E),Zn!==4&&(Zn=2)),!1;var _=Error(r(520),{cause:m});if(_=Jo(_,f),sf===null?sf=[_]:sf.push(_),Zn!==4&&(Zn=2),c===null)return!0;m=Jo(m,f),f=c;do{switch(f.tag){case 3:return f.flags|=65536,i=E&-E,f.lanes|=i,i=Pv(f.stateNode,m,i),fv(f,i),!1;case 1:if(c=f.type,_=f.stateNode,(f.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(_s===null||!_s.has(_))))return f.flags|=65536,E&=-E,f.lanes|=E,E=h2(E),m2(E,i,f,m),fv(f,E),!1}f=f.return}while(f!==null);return!1}var g2=Error(r(461)),wr=!1;function Fr(i,c,f,m){c.child=i===null?i2(c,null,f,m):Mc(c,i.child,f,m)}function y2(i,c,f,m,E){f=f.render;var _=c.ref;if("ref"in m){var L={};for(var U in m)U!=="ref"&&(L[U]=m[U])}else L=m;return yl(c),m=yv(i,c,f,L,_,E),U=bv(),i!==null&&!wr?(vv(i,c,E),Oi(i,c,E)):(sn&&U&&ev(c),c.flags|=1,Fr(i,c,m,E),c.child)}function b2(i,c,f,m,E){if(i===null){var _=f.type;return typeof _=="function"&&!Xb(_)&&_.defaultProps===void 0&&f.compare===null?(c.tag=15,c.type=_,v2(i,c,_,m,E)):(i=lm(f.type,null,m,c,c.mode,E),i.ref=c.ref,i.return=c,c.child=i)}if(_=i.child,!zv(i,E)){var L=_.memoizedProps;if(f=f.compare,f=f!==null?f:Ld,f(L,m)&&i.ref===c.ref)return Oi(i,c,E)}return c.flags|=1,i=_i(_,m),i.ref=c.ref,i.return=c,c.child=i}function v2(i,c,f,m,E){if(i!==null){var _=i.memoizedProps;if(Ld(_,m)&&i.ref===c.ref)if(wr=!1,c.pendingProps=m=_,zv(i,E))(i.flags&131072)!==0&&(wr=!0);else return c.lanes=i.lanes,Oi(i,c,E)}return Lv(i,c,f,m,E)}function E2(i,c,f){var m=c.pendingProps,E=m.children,_=i!==null?i.memoizedState:null;if(m.mode==="hidden"){if((c.flags&128)!==0){if(m=_!==null?_.baseLanes|f:f,i!==null){for(E=c.child=i.child,_=0;E!==null;)_=_|E.lanes|E.childLanes,E=E.sibling;c.childLanes=_&~m}else c.childLanes=0,c.child=null;return x2(i,c,m,f)}if((f&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},i!==null&&pm(c,_!==null?_.cachePool:null),_!==null?vA(c,_):hv(),s2(c);else return c.lanes=c.childLanes=536870912,x2(i,c,_!==null?_.baseLanes|f:f,f)}else _!==null?(pm(c,_.cachePool),vA(c,_),vs(),c.memoizedState=null):(i!==null&&pm(c,null),hv(),vs());return Fr(i,c,E,f),c.child}function x2(i,c,f,m){var E=lv();return E=E===null?null:{parent:Tr._currentValue,pool:E},c.memoizedState={baseLanes:f,cachePool:E},i!==null&&pm(c,null),hv(),s2(c),i!==null&&Ud(i,c,m,!0),null}function Rm(i,c){var f=c.ref;if(f===null)i!==null&&i.ref!==null&&(c.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(i===null||i.ref!==f)&&(c.flags|=4194816)}}function Lv(i,c,f,m,E){return yl(c),f=yv(i,c,f,m,void 0,E),m=bv(),i!==null&&!wr?(vv(i,c,E),Oi(i,c,E)):(sn&&m&&ev(c),c.flags|=1,Fr(i,c,f,E),c.child)}function T2(i,c,f,m,E,_){return yl(c),c.updateQueue=null,f=xA(c,m,f,E),EA(i),m=bv(),i!==null&&!wr?(vv(i,c,_),Oi(i,c,_)):(sn&&m&&ev(c),c.flags|=1,Fr(i,c,f,_),c.child)}function S2(i,c,f,m,E){if(yl(c),c.stateNode===null){var _=Ac,L=f.contextType;typeof L=="object"&&L!==null&&(_=qr(L)),_=new f(m,_),c.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=Nv,c.stateNode=_,_._reactInternals=c,_=c.stateNode,_.props=m,_.state=c.memoizedState,_.refs={},uv(c),L=f.contextType,_.context=typeof L=="object"&&L!==null?qr(L):Ac,_.state=c.memoizedState,L=f.getDerivedStateFromProps,typeof L=="function"&&(Ov(c,f,L,m),_.state=c.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&&Nv.enqueueReplaceState(_,_.state,null),Wd(c,m,_,E),qd(),_.state=c.memoizedState),typeof _.componentDidMount=="function"&&(c.flags|=4194308),m=!0}else if(i===null){_=c.stateNode;var U=c.memoizedProps,Z=El(f,U);_.props=Z;var pe=_.context,Ae=f.contextType;L=Ac,typeof Ae=="object"&&Ae!==null&&(L=qr(Ae));var Ie=f.getDerivedStateFromProps;Ae=typeof Ie=="function"||typeof _.getSnapshotBeforeUpdate=="function",U=c.pendingProps!==U,Ae||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(U||pe!==L)&&c2(c,_,m,L),hs=!1;var he=c.memoizedState;_.state=he,Wd(c,m,_,E),qd(),pe=c.memoizedState,U||he!==pe||hs?(typeof Ie=="function"&&(Ov(c,f,Ie,m),pe=c.memoizedState),(Z=hs||l2(c,f,Z,m,he,pe,L))?(Ae||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(c.flags|=4194308)):(typeof _.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=m,c.memoizedState=pe),_.props=m,_.state=pe,_.context=L,m=Z):(typeof _.componentDidMount=="function"&&(c.flags|=4194308),m=!1)}else{_=c.stateNode,dv(i,c),L=c.memoizedProps,Ae=El(f,L),_.props=Ae,Ie=c.pendingProps,he=_.context,pe=f.contextType,Z=Ac,typeof pe=="object"&&pe!==null&&(Z=qr(pe)),U=f.getDerivedStateFromProps,(pe=typeof U=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(L!==Ie||he!==Z)&&c2(c,_,m,Z),hs=!1,he=c.memoizedState,_.state=he,Wd(c,m,_,E),qd();var me=c.memoizedState;L!==Ie||he!==me||hs||i!==null&&i.dependencies!==null&&dm(i.dependencies)?(typeof U=="function"&&(Ov(c,f,U,m),me=c.memoizedState),(Ae=hs||l2(c,f,Ae,m,he,me,Z)||i!==null&&i.dependencies!==null&&dm(i.dependencies))?(pe||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(m,me,Z),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(m,me,Z)),typeof _.componentDidUpdate=="function"&&(c.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof _.componentDidUpdate!="function"||L===i.memoizedProps&&he===i.memoizedState||(c.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&he===i.memoizedState||(c.flags|=1024),c.memoizedProps=m,c.memoizedState=me),_.props=m,_.state=me,_.context=Z,m=Ae):(typeof _.componentDidUpdate!="function"||L===i.memoizedProps&&he===i.memoizedState||(c.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||L===i.memoizedProps&&he===i.memoizedState||(c.flags|=1024),m=!1)}return _=m,Rm(i,c),m=(c.flags&128)!==0,_||m?(_=c.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:_.render(),c.flags|=1,i!==null&&m?(c.child=Mc(c,i.child,null,E),c.child=Mc(c,null,f,E)):Fr(i,c,f,E),c.memoizedState=_.state,i=c.child):i=Oi(i,c,E),i}function C2(i,c,f,m){return Bd(),c.flags|=256,Fr(i,c,f,m),c.child}var Mv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fv(i){return{baseLanes:i,cachePool:dA()}}function Bv(i,c,f){return i=i!==null?i.childLanes&~f:0,c&&(i|=oa),i}function _2(i,c,f){var m=c.pendingProps,E=!1,_=(c.flags&128)!==0,L;if((L=_)||(L=i!==null&&i.memoizedState===null?!1:(Sr.current&2)!==0),L&&(E=!0,c.flags&=-129),L=(c.flags&32)!==0,c.flags&=-33,i===null){if(sn){if(E?bs(c):vs(),sn){var U=Xn,Z;if(Z=U){e:{for(Z=U,U=Wa;Z.nodeType!==8;){if(!U){U=null;break e}if(Z=Oa(Z.nextSibling),Z===null){U=null;break e}}U=Z}U!==null?(c.memoizedState={dehydrated:U,treeContext:fl!==null?{id:Ai,overflow:ki}:null,retryLane:536870912,hydrationErrors:null},Z=Io(18,null,null,0),Z.stateNode=U,Z.return=c,c.child=Z,ro=c,Xn=null,Z=!0):Z=!1}Z||ml(c)}if(U=c.memoizedState,U!==null&&(U=U.dehydrated,U!==null))return x1(U)?c.lanes=32:c.lanes=536870912,null;Ii(c)}return U=m.children,m=m.fallback,E?(vs(),E=c.mode,U=Im({mode:"hidden",children:U},E),m=dl(m,E,f,null),U.return=c,m.return=c,U.sibling=m,c.child=U,E=c.child,E.memoizedState=Fv(f),E.childLanes=Bv(i,L,f),c.memoizedState=Mv,m):(bs(c),jv(c,U))}if(Z=i.memoizedState,Z!==null&&(U=Z.dehydrated,U!==null)){if(_)c.flags&256?(bs(c),c.flags&=-257,c=Uv(i,c,f)):c.memoizedState!==null?(vs(),c.child=i.child,c.flags|=128,c=null):(vs(),E=m.fallback,U=c.mode,m=Im({mode:"visible",children:m.children},U),E=dl(E,U,f,null),E.flags|=2,m.return=c,E.return=c,m.sibling=E,c.child=m,Mc(c,i.child,null,f),m=c.child,m.memoizedState=Fv(f),m.childLanes=Bv(i,L,f),c.memoizedState=Mv,c=E);else if(bs(c),x1(U)){if(L=U.nextSibling&&U.nextSibling.dataset,L)var pe=L.dgst;L=pe,m=Error(r(419)),m.stack="",m.digest=L,jd({value:m,source:null,stack:null}),c=Uv(i,c,f)}else if(wr||Ud(i,c,f,!1),L=(f&i.childLanes)!==0,wr||L){if(L=In,L!==null&&(m=f&-f,m=(m&42)!==0?1:Mr(m),m=(m&(L.suspendedLanes|f))!==0?0:m,m!==0&&m!==Z.retryLane))throw Z.retryLane=m,_c(i,m),Mo(L,i,m),g2;U.data==="$?"||o1(),c=Uv(i,c,f)}else U.data==="$?"?(c.flags|=192,c.child=i.child,c=null):(i=Z.treeContext,Xn=Oa(U.nextSibling),ro=c,sn=!0,hl=null,Wa=!1,i!==null&&(ta[na++]=Ai,ta[na++]=ki,ta[na++]=fl,Ai=i.id,ki=i.overflow,fl=c),c=jv(c,m.children),c.flags|=4096);return c}return E?(vs(),E=m.fallback,U=c.mode,Z=i.child,pe=Z.sibling,m=_i(Z,{mode:"hidden",children:m.children}),m.subtreeFlags=Z.subtreeFlags&65011712,pe!==null?E=_i(pe,E):(E=dl(E,U,f,null),E.flags|=2),E.return=c,m.return=c,m.sibling=E,c.child=m,m=E,E=c.child,U=i.child.memoizedState,U===null?U=Fv(f):(Z=U.cachePool,Z!==null?(pe=Tr._currentValue,Z=Z.parent!==pe?{parent:pe,pool:pe}:Z):Z=dA(),U={baseLanes:U.baseLanes|f,cachePool:Z}),E.memoizedState=U,E.childLanes=Bv(i,L,f),c.memoizedState=Mv,m):(bs(c),f=i.child,i=f.sibling,f=_i(f,{mode:"visible",children:m.children}),f.return=c,f.sibling=null,i!==null&&(L=c.deletions,L===null?(c.deletions=[i],c.flags|=16):L.push(i)),c.child=f,c.memoizedState=null,f)}function jv(i,c){return c=Im({mode:"visible",children:c},i.mode),c.return=i,i.child=c}function Im(i,c){return i=Io(22,i,null,c),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Uv(i,c,f){return Mc(c,i.child,null,f),i=jv(c,c.pendingProps.children),i.flags|=2,c.memoizedState=null,i}function A2(i,c,f){i.lanes|=c;var m=i.alternate;m!==null&&(m.lanes|=c),ov(i.return,c,f)}function Hv(i,c,f,m,E){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:E}:(_.isBackwards=c,_.rendering=null,_.renderingStartTime=0,_.last=m,_.tail=f,_.tailMode=E)}function k2(i,c,f){var m=c.pendingProps,E=m.revealOrder,_=m.tail;if(Fr(i,c,m.children,f),m=Sr.current,(m&2)!==0)m=m&1|2,c.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=c.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&A2(i,f,c);else if(i.tag===19)A2(i,f,c);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===c)break e;for(;i.sibling===null;){if(i.return===null||i.return===c)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}switch(P(Sr,m),E){case"forwards":for(f=c.child,E=null;f!==null;)i=f.alternate,i!==null&&km(i)===null&&(E=f),f=f.sibling;f=E,f===null?(E=c.child,c.child=null):(E=f.sibling,f.sibling=null),Hv(c,!1,E,f,_);break;case"backwards":for(f=null,E=c.child,c.child=null;E!==null;){if(i=E.alternate,i!==null&&km(i)===null){c.child=E;break}i=E.sibling,E.sibling=f,f=E,E=i}Hv(c,!0,f,null,_);break;case"together":Hv(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Oi(i,c,f){if(i!==null&&(c.dependencies=i.dependencies),Cs|=c.lanes,(f&c.childLanes)===0)if(i!==null){if(Ud(i,c,f,!1),(f&c.childLanes)===0)return null}else return null;if(i!==null&&c.child!==i.child)throw Error(r(153));if(c.child!==null){for(i=c.child,f=_i(i,i.pendingProps),c.child=f,f.return=c;i.sibling!==null;)i=i.sibling,f=f.sibling=_i(i,i.pendingProps),f.return=c;f.sibling=null}return c.child}function zv(i,c){return(i.lanes&c)!==0?!0:(i=i.dependencies,!!(i!==null&&dm(i)))}function O7(i,c,f){switch(c.tag){case 3:ye(c,c.stateNode.containerInfo),ps(c,Tr,i.memoizedState.cache),Bd();break;case 27:case 5:Me(c);break;case 4:ye(c,c.stateNode.containerInfo);break;case 10:ps(c,c.type,c.memoizedProps.value);break;case 13:var m=c.memoizedState;if(m!==null)return m.dehydrated!==null?(bs(c),c.flags|=128,null):(f&c.child.childLanes)!==0?_2(i,c,f):(bs(c),i=Oi(i,c,f),i!==null?i.sibling:null);bs(c);break;case 19:var E=(i.flags&128)!==0;if(m=(f&c.childLanes)!==0,m||(Ud(i,c,f,!1),m=(f&c.childLanes)!==0),E){if(m)return k2(i,c,f);c.flags|=128}if(E=c.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),P(Sr,Sr.current),m)break;return null;case 22:case 23:return c.lanes=0,E2(i,c,f);case 24:ps(c,Tr,i.memoizedState.cache)}return Oi(i,c,f)}function w2(i,c,f){if(i!==null)if(i.memoizedProps!==c.pendingProps)wr=!0;else{if(!zv(i,f)&&(c.flags&128)===0)return wr=!1,O7(i,c,f);wr=(i.flags&131072)!==0}else wr=!1,sn&&(c.flags&1048576)!==0&&oA(c,um,c.index);switch(c.lanes=0,c.tag){case 16:e:{i=c.pendingProps;var m=c.elementType,E=m._init;if(m=E(m._payload),c.type=m,typeof m=="function")Xb(m)?(i=El(m,i),c.tag=1,c=S2(null,c,m,i,f)):(c.tag=0,c=Lv(null,c,m,i,f));else{if(m!=null){if(E=m.$$typeof,E===R){c.tag=11,c=y2(null,c,m,i,f);break e}else if(E===F){c.tag=14,c=b2(null,c,m,i,f);break e}}throw c=q(m)||m,Error(r(306,c,""))}}return c;case 0:return Lv(i,c,c.type,c.pendingProps,f);case 1:return m=c.type,E=El(m,c.pendingProps),S2(i,c,m,E,f);case 3:e:{if(ye(c,c.stateNode.containerInfo),i===null)throw Error(r(387));m=c.pendingProps;var _=c.memoizedState;E=_.element,dv(i,c),Wd(c,m,null,f);var L=c.memoizedState;if(m=L.cache,ps(c,Tr,m),m!==_.cache&&av(c,[Tr],f,!0),qd(),m=L.element,_.isDehydrated)if(_={element:m,isDehydrated:!1,cache:L.cache},c.updateQueue.baseState=_,c.memoizedState=_,c.flags&256){c=C2(i,c,m,f);break e}else if(m!==E){E=Jo(Error(r(424)),c),jd(E),c=C2(i,c,m,f);break e}else{switch(i=c.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Xn=Oa(i.firstChild),ro=c,sn=!0,hl=null,Wa=!0,f=i2(c,null,m,f),c.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Bd(),m===E){c=Oi(i,c,f);break e}Fr(i,c,m,f)}c=c.child}return c;case 26:return Rm(i,c),i===null?(f=Ok(c.type,null,c.pendingProps,null))?c.memoizedState=f:sn||(f=c.type,i=c.pendingProps,m=Gm(re.current).createElement(f),m[ve]=c,m[we]=i,jr(m,f,i),on(m),c.stateNode=m):c.memoizedState=Ok(c.type,i.memoizedProps,c.pendingProps,i.memoizedState),null;case 27:return Me(c),i===null&&sn&&(m=c.stateNode=Dk(c.type,c.pendingProps,re.current),ro=c,Wa=!0,E=Xn,ws(c.type)?(T1=E,Xn=Oa(m.firstChild)):Xn=E),Fr(i,c,c.pendingProps.children,f),Rm(i,c),i===null&&(c.flags|=4194304),c.child;case 5:return i===null&&sn&&((E=m=Xn)&&(m=iF(m,c.type,c.pendingProps,Wa),m!==null?(c.stateNode=m,ro=c,Xn=Oa(m.firstChild),Wa=!1,E=!0):E=!1),E||ml(c)),Me(c),E=c.type,_=c.pendingProps,L=i!==null?i.memoizedProps:null,m=_.children,b1(E,_)?m=null:L!==null&&b1(E,L)&&(c.flags|=32),c.memoizedState!==null&&(E=yv(i,c,C7,null,null,f),gf._currentValue=E),Rm(i,c),Fr(i,c,m,f),c.child;case 6:return i===null&&sn&&((i=f=Xn)&&(f=sF(f,c.pendingProps,Wa),f!==null?(c.stateNode=f,ro=c,Xn=null,i=!0):i=!1),i||ml(c)),null;case 13:return _2(i,c,f);case 4:return ye(c,c.stateNode.containerInfo),m=c.pendingProps,i===null?c.child=Mc(c,null,m,f):Fr(i,c,m,f),c.child;case 11:return y2(i,c,c.type,c.pendingProps,f);case 7:return Fr(i,c,c.pendingProps,f),c.child;case 8:return Fr(i,c,c.pendingProps.children,f),c.child;case 12:return Fr(i,c,c.pendingProps.children,f),c.child;case 10:return m=c.pendingProps,ps(c,c.type,m.value),Fr(i,c,m.children,f),c.child;case 9:return E=c.type._context,m=c.pendingProps.children,yl(c),E=qr(E),m=m(E),c.flags|=1,Fr(i,c,m,f),c.child;case 14:return b2(i,c,c.type,c.pendingProps,f);case 15:return v2(i,c,c.type,c.pendingProps,f);case 19:return k2(i,c,f);case 31:return m=c.pendingProps,f=c.mode,m={mode:m.mode,children:m.children},i===null?(f=Im(m,f),f.ref=c.ref,c.child=f,f.return=c,c=f):(f=_i(i.child,m),f.ref=c.ref,c.child=f,f.return=c,c=f),c;case 22:return E2(i,c,f);case 24:return yl(c),m=qr(Tr),i===null?(E=lv(),E===null&&(E=In,_=iv(),E.pooledCache=_,_.refCount++,_!==null&&(E.pooledCacheLanes|=f),E=_),c.memoizedState={parent:m,cache:E},uv(c),ps(c,Tr,E)):((i.lanes&f)!==0&&(dv(i,c),Wd(c,null,null,f),qd()),E=i.memoizedState,_=c.memoizedState,E.parent!==m?(E={parent:m,cache:m},c.memoizedState=E,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=E),ps(c,Tr,m)):(m=_.cache,ps(c,Tr,m),m!==E.cache&&av(c,[Tr],f,!0))),Fr(i,c,c.pendingProps.children,f),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function Ni(i){i.flags|=4}function D2(i,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Fk(c)){if(c=ra.current,c!==null&&((tn&4194048)===tn?Ya!==null:(tn&62914560)!==tn&&(tn&536870912)===0||c!==Ya))throw Vd=cv,fA;i.flags|=8192}}function Om(i,c){c!==null&&(i.flags|=4),i.flags&16384&&(c=i.tag!==22?Lr():536870912,i.lanes|=c,Uc|=c)}function ef(i,c){if(!sn)switch(i.tailMode){case"hidden":c=i.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.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?c||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function Yn(i){var c=i.alternate!==null&&i.alternate.child===i.child,f=0,m=0;if(c)for(var E=i.child;E!==null;)f|=E.lanes|E.childLanes,m|=E.subtreeFlags&65011712,m|=E.flags&65011712,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)f|=E.lanes|E.childLanes,m|=E.subtreeFlags,m|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=m,i.childLanes=f,c}function N7(i,c,f){var m=c.pendingProps;switch(tv(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yn(c),null;case 1:return Yn(c),null;case 3:return f=c.stateNode,m=null,i!==null&&(m=i.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),Di(Tr),Ge(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(i===null||i.child===null)&&(Fd(c)?Ni(c):i===null||i.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,sA())),Yn(c),null;case 26:return f=c.memoizedState,i===null?(Ni(c),f!==null?(Yn(c),D2(c,f)):(Yn(c),c.flags&=-16777217)):f?f!==i.memoizedState?(Ni(c),Yn(c),D2(c,f)):(Yn(c),c.flags&=-16777217):(i.memoizedProps!==m&&Ni(c),Yn(c),c.flags&=-16777217),null;case 27:Oe(c),f=re.current;var E=c.type;if(i!==null&&c.stateNode!=null)i.memoizedProps!==m&&Ni(c);else{if(!m){if(c.stateNode===null)throw Error(r(166));return Yn(c),null}i=ee.current,Fd(c)?aA(c):(i=Dk(E,m,f),c.stateNode=i,Ni(c))}return Yn(c),null;case 5:if(Oe(c),f=c.type,i!==null&&c.stateNode!=null)i.memoizedProps!==m&&Ni(c);else{if(!m){if(c.stateNode===null)throw Error(r(166));return Yn(c),null}if(i=ee.current,Fd(c))aA(c);else{switch(E=Gm(re.current),i){case 1:i=E.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:i=E.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":i=E.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":i=E.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":i=E.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof m.is=="string"?E.createElement("select",{is:m.is}):E.createElement("select"),m.multiple?i.multiple=!0:m.size&&(i.size=m.size);break;default:i=typeof m.is=="string"?E.createElement(f,{is:m.is}):E.createElement(f)}}i[ve]=c,i[we]=m;e:for(E=c.child;E!==null;){if(E.tag===5||E.tag===6)i.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===c)break e;for(;E.sibling===null;){if(E.return===null||E.return===c)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}c.stateNode=i;e:switch(jr(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&&Ni(c)}}return Yn(c),c.flags&=-16777217,null;case 6:if(i&&c.stateNode!=null)i.memoizedProps!==m&&Ni(c);else{if(typeof m!="string"&&c.stateNode===null)throw Error(r(166));if(i=re.current,Fd(c)){if(i=c.stateNode,f=c.memoizedProps,m=null,E=ro,E!==null)switch(E.tag){case 27:case 5:m=E.memoizedProps}i[ve]=c,i=!!(i.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||Tk(i.nodeValue,f)),i||ml(c)}else i=Gm(i).createTextNode(m),i[ve]=c,c.stateNode=i}return Yn(c),null;case 13:if(m=c.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=Fd(c),m!==null&&m.dehydrated!==null){if(i===null){if(!E)throw Error(r(318));if(E=c.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[ve]=c}else Bd(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Yn(c),E=!1}else E=sA(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E)return c.flags&256?(Ii(c),c):(Ii(c),null)}if(Ii(c),(c.flags&128)!==0)return c.lanes=f,c;if(f=m!==null,i=i!==null&&i.memoizedState!==null,f){m=c.child,E=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(E=m.alternate.memoizedState.cachePool.pool);var _=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(_=m.memoizedState.cachePool.pool),_!==E&&(m.flags|=2048)}return f!==i&&f&&(c.child.flags|=8192),Om(c,c.updateQueue),Yn(c),null;case 4:return Ge(),i===null&&p1(c.stateNode.containerInfo),Yn(c),null;case 10:return Di(c.type),Yn(c),null;case 19:if(K(Sr),E=c.memoizedState,E===null)return Yn(c),null;if(m=(c.flags&128)!==0,_=E.rendering,_===null)if(m)ef(E,!1);else{if(Zn!==0||i!==null&&(i.flags&128)!==0)for(i=c.child;i!==null;){if(_=km(i),_!==null){for(c.flags|=128,ef(E,!1),i=_.updateQueue,c.updateQueue=i,Om(c,i),c.subtreeFlags=0,i=f,f=c.child;f!==null;)rA(f,i),f=f.sibling;return P(Sr,Sr.current&1|2),c.child}i=i.sibling}E.tail!==null&&je()>Lm&&(c.flags|=128,m=!0,ef(E,!1),c.lanes=4194304)}else{if(!m)if(i=km(_),i!==null){if(c.flags|=128,m=!0,i=i.updateQueue,c.updateQueue=i,Om(c,i),ef(E,!0),E.tail===null&&E.tailMode==="hidden"&&!_.alternate&&!sn)return Yn(c),null}else 2*je()-E.renderingStartTime>Lm&&f!==536870912&&(c.flags|=128,m=!0,ef(E,!1),c.lanes=4194304);E.isBackwards?(_.sibling=c.child,c.child=_):(i=E.last,i!==null?i.sibling=_:c.child=_,E.last=_)}return E.tail!==null?(c=E.tail,E.rendering=c,E.tail=c.sibling,E.renderingStartTime=je(),c.sibling=null,i=Sr.current,P(Sr,m?i&1|2:i&1),c):(Yn(c),null);case 22:case 23:return Ii(c),mv(),m=c.memoizedState!==null,i!==null?i.memoizedState!==null!==m&&(c.flags|=8192):m&&(c.flags|=8192),m?(f&536870912)!==0&&(c.flags&128)===0&&(Yn(c),c.subtreeFlags&6&&(c.flags|=8192)):Yn(c),f=c.updateQueue,f!==null&&Om(c,f.retryQueue),f=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==f&&(c.flags|=2048),i!==null&&K(bl),null;case 24:return f=null,i!==null&&(f=i.memoizedState.cache),c.memoizedState.cache!==f&&(c.flags|=2048),Di(Tr),Yn(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function P7(i,c){switch(tv(c),c.tag){case 1:return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 3:return Di(Tr),Ge(),i=c.flags,(i&65536)!==0&&(i&128)===0?(c.flags=i&-65537|128,c):null;case 26:case 27:case 5:return Oe(c),null;case 13:if(Ii(c),i=c.memoizedState,i!==null&&i.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Bd()}return i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 19:return K(Sr),null;case 4:return Ge(),null;case 10:return Di(c.type),null;case 22:case 23:return Ii(c),mv(),i!==null&&K(bl),i=c.flags,i&65536?(c.flags=i&-65537|128,c):null;case 24:return Di(Tr),null;case 25:return null;default:return null}}function R2(i,c){switch(tv(c),c.tag){case 3:Di(Tr),Ge();break;case 26:case 27:case 5:Oe(c);break;case 4:Ge();break;case 13:Ii(c);break;case 19:K(Sr);break;case 10:Di(c.type);break;case 22:case 23:Ii(c),mv(),i!==null&&K(bl);break;case 24:Di(Tr)}}function tf(i,c){try{var f=c.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var E=m.next;f=E;do{if((f.tag&i)===i){m=void 0;var _=f.create,L=f.inst;m=_(),L.destroy=m}f=f.next}while(f!==E)}}catch(U){Sn(c,c.return,U)}}function Es(i,c,f){try{var m=c.updateQueue,E=m!==null?m.lastEffect:null;if(E!==null){var _=E.next;m=_;do{if((m.tag&i)===i){var L=m.inst,U=L.destroy;if(U!==void 0){L.destroy=void 0,E=c;var Z=f,pe=U;try{pe()}catch(Ae){Sn(E,Z,Ae)}}}m=m.next}while(m!==_)}}catch(Ae){Sn(c,c.return,Ae)}}function I2(i){var c=i.updateQueue;if(c!==null){var f=i.stateNode;try{bA(c,f)}catch(m){Sn(i,i.return,m)}}}function O2(i,c,f){f.props=El(i.type,i.memoizedProps),f.state=i.memoizedState;try{f.componentWillUnmount()}catch(m){Sn(i,c,m)}}function nf(i,c){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(E){Sn(i,c,E)}}function Ka(i,c){var f=i.ref,m=i.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(E){Sn(i,c,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(E){Sn(i,c,E)}else f.current=null}function N2(i){var c=i.type,f=i.memoizedProps,m=i.stateNode;try{e:switch(c){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(E){Sn(i,i.return,E)}}function $v(i,c,f){try{var m=i.stateNode;tF(m,i.type,f,c),m[we]=c}catch(E){Sn(i,i.return,E)}}function P2(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&ws(i.type)||i.tag===4}function Vv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||P2(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&&ws(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 Gv(i,c,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,c?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(i,c):(c=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,c.appendChild(i),f=f._reactRootContainer,f!=null||c.onclick!==null||(c.onclick=Vm));else if(m!==4&&(m===27&&ws(i.type)&&(f=i.stateNode,c=null),i=i.child,i!==null))for(Gv(i,c,f),i=i.sibling;i!==null;)Gv(i,c,f),i=i.sibling}function Nm(i,c,f){var m=i.tag;if(m===5||m===6)i=i.stateNode,c?f.insertBefore(i,c):f.appendChild(i);else if(m!==4&&(m===27&&ws(i.type)&&(f=i.stateNode),i=i.child,i!==null))for(Nm(i,c,f),i=i.sibling;i!==null;)Nm(i,c,f),i=i.sibling}function L2(i){var c=i.stateNode,f=i.memoizedProps;try{for(var m=i.type,E=c.attributes;E.length;)c.removeAttributeNode(E[0]);jr(c,m,f),c[ve]=i,c[we]=f}catch(_){Sn(i,i.return,_)}}var Pi=!1,sr=!1,qv=!1,M2=typeof WeakSet=="function"?WeakSet:Set,Dr=null;function L7(i,c){if(i=i.containerInfo,g1=Xm,i=W_(i),Vb(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 E=m.anchorOffset,_=m.focusNode;m=m.focusOffset;try{f.nodeType,_.nodeType}catch{f=null;break e}var L=0,U=-1,Z=-1,pe=0,Ae=0,Ie=i,he=null;t:for(;;){for(var me;Ie!==f||E!==0&&Ie.nodeType!==3||(U=L+E),Ie!==_||m!==0&&Ie.nodeType!==3||(Z=L+m),Ie.nodeType===3&&(L+=Ie.nodeValue.length),(me=Ie.firstChild)!==null;)he=Ie,Ie=me;for(;;){if(Ie===i)break t;if(he===f&&++pe===E&&(U=L),he===_&&++Ae===m&&(Z=L),(me=Ie.nextSibling)!==null)break;Ie=he,he=Ie.parentNode}Ie=me}f=U===-1||Z===-1?null:{start:U,end:Z}}else f=null}f=f||{start:0,end:0}}else f=null;for(y1={focusedElem:i,selectionRange:f},Xm=!1,Dr=c;Dr!==null;)if(c=Dr,i=c.child,(c.subtreeFlags&1024)!==0&&i!==null)i.return=c,Dr=i;else for(;Dr!==null;){switch(c=Dr,_=c.alternate,i=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,f=c,E=_.memoizedProps,_=_.memoizedState,m=f.stateNode;try{var Dt=El(f.type,E,f.elementType===f.type);i=m.getSnapshotBeforeUpdate(Dt,_),m.__reactInternalSnapshotBeforeUpdate=i}catch(xt){Sn(f,f.return,xt)}}break;case 3:if((i&1024)!==0){if(i=c.stateNode.containerInfo,f=i.nodeType,f===9)E1(i);else if(f===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":E1(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=c.sibling,i!==null){i.return=c.return,Dr=i;break}Dr=c.return}}function F2(i,c,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:xs(i,f),m&4&&tf(5,f);break;case 1:if(xs(i,f),m&4)if(i=f.stateNode,c===null)try{i.componentDidMount()}catch(L){Sn(f,f.return,L)}else{var E=El(f.type,c.memoizedProps);c=c.memoizedState;try{i.componentDidUpdate(E,c,i.__reactInternalSnapshotBeforeUpdate)}catch(L){Sn(f,f.return,L)}}m&64&&I2(f),m&512&&nf(f,f.return);break;case 3:if(xs(i,f),m&64&&(i=f.updateQueue,i!==null)){if(c=null,f.child!==null)switch(f.child.tag){case 27:case 5:c=f.child.stateNode;break;case 1:c=f.child.stateNode}try{bA(i,c)}catch(L){Sn(f,f.return,L)}}break;case 27:c===null&&m&4&&L2(f);case 26:case 5:xs(i,f),c===null&&m&4&&N2(f),m&512&&nf(f,f.return);break;case 12:xs(i,f);break;case 13:xs(i,f),m&4&&U2(i,f),m&64&&(i=f.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(f=V7.bind(null,f),lF(i,f))));break;case 22:if(m=f.memoizedState!==null||Pi,!m){c=c!==null&&c.memoizedState!==null||sr,E=Pi;var _=sr;Pi=m,(sr=c)&&!_?Ts(i,f,(f.subtreeFlags&8772)!==0):xs(i,f),Pi=E,sr=_}break;case 30:break;default:xs(i,f)}}function B2(i){var c=i.alternate;c!==null&&(i.alternate=null,B2(c)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(c=i.stateNode,c!==null&&wt(c)),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 zn=null,yo=!1;function Li(i,c,f){for(f=f.child;f!==null;)j2(i,c,f),f=f.sibling}function j2(i,c,f){if(ge&&typeof ge.onCommitFiberUnmount=="function")try{ge.onCommitFiberUnmount(de,f)}catch{}switch(f.tag){case 26:sr||Ka(f,c),Li(i,c,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:sr||Ka(f,c);var m=zn,E=yo;ws(f.type)&&(zn=f.stateNode,yo=!1),Li(i,c,f),ff(f.stateNode),zn=m,yo=E;break;case 5:sr||Ka(f,c);case 6:if(m=zn,E=yo,zn=null,Li(i,c,f),zn=m,yo=E,zn!==null)if(yo)try{(zn.nodeType===9?zn.body:zn.nodeName==="HTML"?zn.ownerDocument.body:zn).removeChild(f.stateNode)}catch(_){Sn(f,c,_)}else try{zn.removeChild(f.stateNode)}catch(_){Sn(f,c,_)}break;case 18:zn!==null&&(yo?(i=zn,kk(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,f.stateNode),Ef(i)):kk(zn,f.stateNode));break;case 4:m=zn,E=yo,zn=f.stateNode.containerInfo,yo=!0,Li(i,c,f),zn=m,yo=E;break;case 0:case 11:case 14:case 15:sr||Es(2,f,c),sr||Es(4,f,c),Li(i,c,f);break;case 1:sr||(Ka(f,c),m=f.stateNode,typeof m.componentWillUnmount=="function"&&O2(f,c,m)),Li(i,c,f);break;case 21:Li(i,c,f);break;case 22:sr=(m=sr)||f.memoizedState!==null,Li(i,c,f),sr=m;break;default:Li(i,c,f)}}function U2(i,c){if(c.memoizedState===null&&(i=c.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Ef(i)}catch(f){Sn(c,c.return,f)}}function M7(i){switch(i.tag){case 13:case 19:var c=i.stateNode;return c===null&&(c=i.stateNode=new M2),c;case 22:return i=i.stateNode,c=i._retryCache,c===null&&(c=i._retryCache=new M2),c;default:throw Error(r(435,i.tag))}}function Wv(i,c){var f=M7(i);c.forEach(function(m){var E=G7.bind(null,i,m);f.has(m)||(f.add(m),m.then(E,E))})}function Oo(i,c){var f=c.deletions;if(f!==null)for(var m=0;m<f.length;m++){var E=f[m],_=i,L=c,U=L;e:for(;U!==null;){switch(U.tag){case 27:if(ws(U.type)){zn=U.stateNode,yo=!1;break e}break;case 5:zn=U.stateNode,yo=!1;break e;case 3:case 4:zn=U.stateNode.containerInfo,yo=!0;break e}U=U.return}if(zn===null)throw Error(r(160));j2(_,L,E),zn=null,yo=!1,_=E.alternate,_!==null&&(_.return=null),E.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)H2(c,i),c=c.sibling}var Ia=null;function H2(i,c){var f=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Oo(c,i),No(i),m&4&&(Es(3,i,i.return),tf(3,i),Es(5,i,i.return));break;case 1:Oo(c,i),No(i),m&512&&(sr||f===null||Ka(f,f.return)),m&64&&Pi&&(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 E=Ia;if(Oo(c,i),No(i),m&512&&(sr||f===null||Ka(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,E=E.ownerDocument||E;t:switch(m){case"title":_=E.getElementsByTagName("title")[0],(!_||_[bt]||_[ve]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=E.createElement(m),E.head.insertBefore(_,E.querySelector("head > title"))),jr(_,m,f),_[ve]=i,on(_),m=_;break e;case"link":var L=Lk("link","href",E).get(m+(f.href||""));if(L){for(var U=0;U<L.length;U++)if(_=L[U],_.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(U,1);break t}}_=E.createElement(m),jr(_,m,f),E.head.appendChild(_);break;case"meta":if(L=Lk("meta","content",E).get(m+(f.content||""))){for(U=0;U<L.length;U++)if(_=L[U],_.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(U,1);break t}}_=E.createElement(m),jr(_,m,f),E.head.appendChild(_);break;default:throw Error(r(468,m))}_[ve]=i,on(_),m=_}i.stateNode=m}else Mk(E,i.type,i.stateNode);else i.stateNode=Pk(E,m,i.memoizedProps);else _!==m?(_===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):_.count--,m===null?Mk(E,i.type,i.stateNode):Pk(E,m,i.memoizedProps)):m===null&&i.stateNode!==null&&$v(i,i.memoizedProps,f.memoizedProps)}break;case 27:Oo(c,i),No(i),m&512&&(sr||f===null||Ka(f,f.return)),f!==null&&m&4&&$v(i,i.memoizedProps,f.memoizedProps);break;case 5:if(Oo(c,i),No(i),m&512&&(sr||f===null||Ka(f,f.return)),i.flags&32){E=i.stateNode;try{bc(E,"")}catch(me){Sn(i,i.return,me)}}m&4&&i.stateNode!=null&&(E=i.memoizedProps,$v(i,E,f!==null?f.memoizedProps:E)),m&1024&&(qv=!0);break;case 6:if(Oo(c,i),No(i),m&4){if(i.stateNode===null)throw Error(r(162));m=i.memoizedProps,f=i.stateNode;try{f.nodeValue=m}catch(me){Sn(i,i.return,me)}}break;case 3:if(Ym=null,E=Ia,Ia=qm(c.containerInfo),Oo(c,i),Ia=E,No(i),m&4&&f!==null&&f.memoizedState.isDehydrated)try{Ef(c.containerInfo)}catch(me){Sn(i,i.return,me)}qv&&(qv=!1,z2(i));break;case 4:m=Ia,Ia=qm(i.stateNode.containerInfo),Oo(c,i),No(i),Ia=m;break;case 12:Oo(c,i),No(i);break;case 13:Oo(c,i),No(i),i.child.flags&8192&&i.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(Jv=je()),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Wv(i,m)));break;case 22:E=i.memoizedState!==null;var Z=f!==null&&f.memoizedState!==null,pe=Pi,Ae=sr;if(Pi=pe||E,sr=Ae||Z,Oo(c,i),sr=Ae,Pi=pe,No(i),m&8192)e:for(c=i.stateNode,c._visibility=E?c._visibility&-2:c._visibility|1,E&&(f===null||Z||Pi||sr||xl(i)),f=null,c=i;;){if(c.tag===5||c.tag===26){if(f===null){Z=f=c;try{if(_=Z.stateNode,E)L=_.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{U=Z.stateNode;var Ie=Z.memoizedProps.style,he=Ie!=null&&Ie.hasOwnProperty("display")?Ie.display:null;U.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(me){Sn(Z,Z.return,me)}}}else if(c.tag===6){if(f===null){Z=c;try{Z.stateNode.nodeValue=E?"":Z.memoizedProps}catch(me){Sn(Z,Z.return,me)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===i)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break e;for(;c.sibling===null;){if(c.return===null||c.return===i)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}m&4&&(m=i.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,Wv(i,f))));break;case 19:Oo(c,i),No(i),m&4&&(m=i.updateQueue,m!==null&&(i.updateQueue=null,Wv(i,m)));break;case 30:break;case 21:break;default:Oo(c,i),No(i)}}function No(i){var c=i.flags;if(c&2){try{for(var f,m=i.return;m!==null;){if(P2(m)){f=m;break}m=m.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var E=f.stateNode,_=Vv(i);Nm(i,_,E);break;case 5:var L=f.stateNode;f.flags&32&&(bc(L,""),f.flags&=-33);var U=Vv(i);Nm(i,U,L);break;case 3:case 4:var Z=f.stateNode.containerInfo,pe=Vv(i);Gv(i,pe,Z);break;default:throw Error(r(161))}}catch(Ae){Sn(i,i.return,Ae)}i.flags&=-3}c&4096&&(i.flags&=-4097)}function z2(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var c=i;z2(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),i=i.sibling}}function xs(i,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)F2(i,c.alternate,c),c=c.sibling}function xl(i){for(i=i.child;i!==null;){var c=i;switch(c.tag){case 0:case 11:case 14:case 15:Es(4,c,c.return),xl(c);break;case 1:Ka(c,c.return);var f=c.stateNode;typeof f.componentWillUnmount=="function"&&O2(c,c.return,f),xl(c);break;case 27:ff(c.stateNode);case 26:case 5:Ka(c,c.return),xl(c);break;case 22:c.memoizedState===null&&xl(c);break;case 30:xl(c);break;default:xl(c)}i=i.sibling}}function Ts(i,c,f){for(f=f&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var m=c.alternate,E=i,_=c,L=_.flags;switch(_.tag){case 0:case 11:case 15:Ts(E,_,f),tf(4,_);break;case 1:if(Ts(E,_,f),m=_,E=m.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(pe){Sn(m,m.return,pe)}if(m=_,E=m.updateQueue,E!==null){var U=m.stateNode;try{var Z=E.shared.hiddenCallbacks;if(Z!==null)for(E.shared.hiddenCallbacks=null,E=0;E<Z.length;E++)yA(Z[E],U)}catch(pe){Sn(m,m.return,pe)}}f&&L&64&&I2(_),nf(_,_.return);break;case 27:L2(_);case 26:case 5:Ts(E,_,f),f&&m===null&&L&4&&N2(_),nf(_,_.return);break;case 12:Ts(E,_,f);break;case 13:Ts(E,_,f),f&&L&4&&U2(E,_);break;case 22:_.memoizedState===null&&Ts(E,_,f),nf(_,_.return);break;case 30:break;default:Ts(E,_,f)}c=c.sibling}}function Yv(i,c){var f=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),i=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(i=c.memoizedState.cachePool.pool),i!==f&&(i!=null&&i.refCount++,f!=null&&Hd(f))}function Kv(i,c){i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&Hd(i))}function Qa(i,c,f,m){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)$2(i,c,f,m),c=c.sibling}function $2(i,c,f,m){var E=c.flags;switch(c.tag){case 0:case 11:case 15:Qa(i,c,f,m),E&2048&&tf(9,c);break;case 1:Qa(i,c,f,m);break;case 3:Qa(i,c,f,m),E&2048&&(i=null,c.alternate!==null&&(i=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==i&&(c.refCount++,i!=null&&Hd(i)));break;case 12:if(E&2048){Qa(i,c,f,m),i=c.stateNode;try{var _=c.memoizedProps,L=_.id,U=_.onPostCommit;typeof U=="function"&&U(L,c.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(Z){Sn(c,c.return,Z)}}else Qa(i,c,f,m);break;case 13:Qa(i,c,f,m);break;case 23:break;case 22:_=c.stateNode,L=c.alternate,c.memoizedState!==null?_._visibility&2?Qa(i,c,f,m):rf(i,c):_._visibility&2?Qa(i,c,f,m):(_._visibility|=2,Fc(i,c,f,m,(c.subtreeFlags&10256)!==0)),E&2048&&Yv(L,c);break;case 24:Qa(i,c,f,m),E&2048&&Kv(c.alternate,c);break;default:Qa(i,c,f,m)}}function Fc(i,c,f,m,E){for(E=E&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var _=i,L=c,U=f,Z=m,pe=L.flags;switch(L.tag){case 0:case 11:case 15:Fc(_,L,U,Z,E),tf(8,L);break;case 23:break;case 22:var Ae=L.stateNode;L.memoizedState!==null?Ae._visibility&2?Fc(_,L,U,Z,E):rf(_,L):(Ae._visibility|=2,Fc(_,L,U,Z,E)),E&&pe&2048&&Yv(L.alternate,L);break;case 24:Fc(_,L,U,Z,E),E&&pe&2048&&Kv(L.alternate,L);break;default:Fc(_,L,U,Z,E)}c=c.sibling}}function rf(i,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var f=i,m=c,E=m.flags;switch(m.tag){case 22:rf(f,m),E&2048&&Yv(m.alternate,m);break;case 24:rf(f,m),E&2048&&Kv(m.alternate,m);break;default:rf(f,m)}c=c.sibling}}var of=8192;function Bc(i){if(i.subtreeFlags&of)for(i=i.child;i!==null;)V2(i),i=i.sibling}function V2(i){switch(i.tag){case 26:Bc(i),i.flags&of&&i.memoizedState!==null&&xF(Ia,i.memoizedState,i.memoizedProps);break;case 5:Bc(i);break;case 3:case 4:var c=Ia;Ia=qm(i.stateNode.containerInfo),Bc(i),Ia=c;break;case 22:i.memoizedState===null&&(c=i.alternate,c!==null&&c.memoizedState!==null?(c=of,of=16777216,Bc(i),of=c):Bc(i));break;default:Bc(i)}}function G2(i){var c=i.alternate;if(c!==null&&(i=c.child,i!==null)){c.child=null;do c=i.sibling,i.sibling=null,i=c;while(i!==null)}}function af(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var f=0;f<c.length;f++){var m=c[f];Dr=m,W2(m,i)}G2(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)q2(i),i=i.sibling}function q2(i){switch(i.tag){case 0:case 11:case 15:af(i),i.flags&2048&&Es(9,i,i.return);break;case 3:af(i);break;case 12:af(i);break;case 22:var c=i.stateNode;i.memoizedState!==null&&c._visibility&2&&(i.return===null||i.return.tag!==13)?(c._visibility&=-3,Pm(i)):af(i);break;default:af(i)}}function Pm(i){var c=i.deletions;if((i.flags&16)!==0){if(c!==null)for(var f=0;f<c.length;f++){var m=c[f];Dr=m,W2(m,i)}G2(i)}for(i=i.child;i!==null;){switch(c=i,c.tag){case 0:case 11:case 15:Es(8,c,c.return),Pm(c);break;case 22:f=c.stateNode,f._visibility&2&&(f._visibility&=-3,Pm(c));break;default:Pm(c)}i=i.sibling}}function W2(i,c){for(;Dr!==null;){var f=Dr;switch(f.tag){case 0:case 11:case 15:Es(8,f,c);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:Hd(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,Dr=m;else e:for(f=i;Dr!==null;){m=Dr;var E=m.sibling,_=m.return;if(B2(m),m===f){Dr=null;break e}if(E!==null){E.return=_,Dr=E;break e}Dr=_}}}var F7={getCacheForType:function(i){var c=qr(Tr),f=c.data.get(i);return f===void 0&&(f=i(),c.data.set(i,f)),f}},B7=typeof WeakMap=="function"?WeakMap:Map,pn=0,In=null,qt=null,tn=0,hn=0,Po=null,Ss=!1,jc=!1,Qv=!1,Mi=0,Zn=0,Cs=0,Tl=0,Xv=0,oa=0,Uc=0,sf=null,bo=null,Zv=!1,Jv=0,Lm=1/0,Mm=null,_s=null,Br=0,As=null,Hc=null,zc=0,e1=0,t1=null,Y2=null,lf=0,n1=null;function Lo(){if((pn&2)!==0&&tn!==0)return tn&-tn;if(B.T!==null){var i=Dc;return i!==0?i:c1()}return ne()}function K2(){oa===0&&(oa=(tn&536870912)===0||sn?mn():536870912);var i=ra.current;return i!==null&&(i.flags|=32),oa}function Mo(i,c,f){(i===In&&(hn===2||hn===9)||i.cancelPendingCommit!==null)&&($c(i,0),ks(i,tn,oa,!1)),Qn(i,f),((pn&2)===0||i!==In)&&(i===In&&((pn&2)===0&&(Tl|=f),Zn===4&&ks(i,tn,oa,!1)),Xa(i))}function Q2(i,c,f){if((pn&6)!==0)throw Error(r(327));var m=!f&&(c&124)===0&&(c&i.expiredLanes)===0||ht(i,c),E=m?H7(i,c):a1(i,c,!0),_=m;do{if(E===0){jc&&!m&&ks(i,c,0,!1);break}else{if(f=i.current.alternate,_&&!j7(f)){E=a1(i,c,!1),_=!1;continue}if(E===2){if(_=c,i.errorRecoveryDisabledLanes&_)var L=0;else L=i.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){c=L;e:{var U=i;E=sf;var Z=U.current.memoizedState.isDehydrated;if(Z&&($c(U,L).flags|=256),L=a1(U,L,!1),L!==2){if(Qv&&!Z){U.errorRecoveryDisabledLanes|=_,Tl|=_,E=4;break e}_=bo,bo=E,_!==null&&(bo===null?bo=_:bo.push.apply(bo,_))}E=L}if(_=!1,E!==2)continue}}if(E===1){$c(i,0),ks(i,c,0,!0);break}e:{switch(m=i,_=E,_){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:ks(m,c,oa,!Ss);break e;case 2:bo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(E=Jv+300-je(),10<E)){if(ks(m,c,oa,!Ss),Se(m,0,!0)!==0)break e;m.timeoutHandle=_k(X2.bind(null,m,f,bo,Mm,Zv,c,oa,Tl,Uc,Ss,_,2,-0,0),E);break e}X2(m,f,bo,Mm,Zv,c,oa,Tl,Uc,Ss,_,0,-0,0)}}break}while(!0);Xa(i)}function X2(i,c,f,m,E,_,L,U,Z,pe,Ae,Ie,he,me){if(i.timeoutHandle=-1,Ie=c.subtreeFlags,(Ie&8192||(Ie&16785408)===16785408)&&(mf={stylesheets:null,count:0,unsuspend:EF},V2(c),Ie=TF(),Ie!==null)){i.cancelPendingCommit=Ie(ok.bind(null,i,c,_,f,m,E,L,U,Z,Ae,1,he,me)),ks(i,_,L,!pe);return}ok(i,c,_,f,m,E,L,U,Z)}function j7(i){for(var c=i;;){var f=c.tag;if((f===0||f===11||f===15)&&c.flags&16384&&(f=c.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var E=f[m],_=E.getSnapshot;E=E.value;try{if(!Ro(_(),E))return!1}catch{return!1}}if(f=c.child,c.subtreeFlags&16384&&f!==null)f.return=c,c=f;else{if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function ks(i,c,f,m){c&=~Xv,c&=~Tl,i.suspendedLanes|=c,i.pingedLanes&=~c,m&&(i.warmLanes|=c),m=i.expirationTimes;for(var E=c;0<E;){var _=31-Xe(E),L=1<<_;m[_]=-1,E&=~L}f!==0&&fo(i,f,c)}function Fm(){return(pn&6)===0?(cf(0),!1):!0}function r1(){if(qt!==null){if(hn===0)var i=qt.return;else i=qt,wi=gl=null,Ev(i),Lc=null,Zd=0,i=qt;for(;i!==null;)R2(i.alternate,i),i=i.return;qt=null}}function $c(i,c){var f=i.timeoutHandle;f!==-1&&(i.timeoutHandle=-1,rF(f)),f=i.cancelPendingCommit,f!==null&&(i.cancelPendingCommit=null,f()),r1(),In=i,qt=f=_i(i.current,null),tn=c,hn=0,Po=null,Ss=!1,jc=ht(i,c),Qv=!1,Uc=oa=Xv=Tl=Cs=Zn=0,bo=sf=null,Zv=!1,(c&8)!==0&&(c|=c&32);var m=i.entangledLanes;if(m!==0)for(i=i.entanglements,m&=c;0<m;){var E=31-Xe(m),_=1<<E;c|=i[E],m&=~_}return Mi=c,am(),f}function Z2(i,c){Ht=null,B.H=Cm,c===$d||c===hm?(c=mA(),hn=3):c===fA?(c=mA(),hn=4):hn=c===g2?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Po=c,qt===null&&(Zn=1,Dm(i,Jo(c,i.current)))}function J2(){var i=B.H;return B.H=Cm,i===null?Cm:i}function ek(){var i=B.A;return B.A=F7,i}function o1(){Zn=4,Ss||(tn&4194048)!==tn&&ra.current!==null||(jc=!0),(Cs&134217727)===0&&(Tl&134217727)===0||In===null||ks(In,tn,oa,!1)}function a1(i,c,f){var m=pn;pn|=2;var E=J2(),_=ek();(In!==i||tn!==c)&&(Mm=null,$c(i,c)),c=!1;var L=Zn;e:do try{if(hn!==0&&qt!==null){var U=qt,Z=Po;switch(hn){case 8:r1(),L=6;break e;case 3:case 2:case 9:case 6:ra.current===null&&(c=!0);var pe=hn;if(hn=0,Po=null,Vc(i,U,Z,pe),f&&jc){L=0;break e}break;default:pe=hn,hn=0,Po=null,Vc(i,U,Z,pe)}}U7(),L=Zn;break}catch(Ae){Z2(i,Ae)}while(!0);return c&&i.shellSuspendCounter++,wi=gl=null,pn=m,B.H=E,B.A=_,qt===null&&(In=null,tn=0,am()),L}function U7(){for(;qt!==null;)tk(qt)}function H7(i,c){var f=pn;pn|=2;var m=J2(),E=ek();In!==i||tn!==c?(Mm=null,Lm=je()+500,$c(i,c)):jc=ht(i,c);e:do try{if(hn!==0&&qt!==null){c=qt;var _=Po;t:switch(hn){case 1:hn=0,Po=null,Vc(i,c,_,1);break;case 2:case 9:if(pA(_)){hn=0,Po=null,nk(c);break}c=function(){hn!==2&&hn!==9||In!==i||(hn=7),Xa(i)},_.then(c,c);break e;case 3:hn=7;break e;case 4:hn=5;break e;case 7:pA(_)?(hn=0,Po=null,nk(c)):(hn=0,Po=null,Vc(i,c,_,7));break;case 5:var L=null;switch(qt.tag){case 26:L=qt.memoizedState;case 5:case 27:var U=qt;if(!L||Fk(L)){hn=0,Po=null;var Z=U.sibling;if(Z!==null)qt=Z;else{var pe=U.return;pe!==null?(qt=pe,Bm(pe)):qt=null}break t}}hn=0,Po=null,Vc(i,c,_,5);break;case 6:hn=0,Po=null,Vc(i,c,_,6);break;case 8:r1(),Zn=6;break e;default:throw Error(r(462))}}z7();break}catch(Ae){Z2(i,Ae)}while(!0);return wi=gl=null,B.H=m,B.A=E,pn=f,qt!==null?0:(In=null,tn=0,am(),Zn)}function z7(){for(;qt!==null&&!gt();)tk(qt)}function tk(i){var c=w2(i.alternate,i,Mi);i.memoizedProps=i.pendingProps,c===null?Bm(i):qt=c}function nk(i){var c=i,f=c.alternate;switch(c.tag){case 15:case 0:c=T2(f,c,c.pendingProps,c.type,void 0,tn);break;case 11:c=T2(f,c,c.pendingProps,c.type.render,c.ref,tn);break;case 5:Ev(c);default:R2(f,c),c=qt=rA(c,Mi),c=w2(f,c,Mi)}i.memoizedProps=i.pendingProps,c===null?Bm(i):qt=c}function Vc(i,c,f,m){wi=gl=null,Ev(c),Lc=null,Zd=0;var E=c.return;try{if(I7(i,E,c,f,tn)){Zn=1,Dm(i,Jo(f,i.current)),qt=null;return}}catch(_){if(E!==null)throw qt=E,_;Zn=1,Dm(i,Jo(f,i.current)),qt=null;return}c.flags&32768?(sn||m===1?i=!0:jc||(tn&536870912)!==0?i=!1:(Ss=i=!0,(m===2||m===9||m===3||m===6)&&(m=ra.current,m!==null&&m.tag===13&&(m.flags|=16384))),rk(c,i)):Bm(c)}function Bm(i){var c=i;do{if((c.flags&32768)!==0){rk(c,Ss);return}i=c.return;var f=N7(c.alternate,c,Mi);if(f!==null){qt=f;return}if(c=c.sibling,c!==null){qt=c;return}qt=c=i}while(c!==null);Zn===0&&(Zn=5)}function rk(i,c){do{var f=P7(i.alternate,i);if(f!==null){f.flags&=32767,qt=f;return}if(f=i.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!c&&(i=i.sibling,i!==null)){qt=i;return}qt=i=f}while(i!==null);Zn=6,qt=null}function ok(i,c,f,m,E,_,L,U,Z){i.cancelPendingCommit=null;do jm();while(Br!==0);if((pn&6)!==0)throw Error(r(327));if(c!==null){if(c===i.current)throw Error(r(177));if(_=c.lanes|c.childLanes,_|=Kb,pr(i,f,_,L,U,Z),i===In&&(qt=In=null,tn=0),Hc=c,As=i,zc=f,e1=_,t1=E,Y2=m,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,q7(Ue,function(){return ck(),null})):(i.callbackNode=null,i.callbackPriority=0),m=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||m){m=B.T,B.T=null,E=X.p,X.p=2,L=pn,pn|=4;try{L7(i,c,f)}finally{pn=L,X.p=E,B.T=m}}Br=1,ak(),ik(),sk()}}function ak(){if(Br===1){Br=0;var i=As,c=Hc,f=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||f){f=B.T,B.T=null;var m=X.p;X.p=2;var E=pn;pn|=4;try{H2(c,i);var _=y1,L=W_(i.containerInfo),U=_.focusedElem,Z=_.selectionRange;if(L!==U&&U&&U.ownerDocument&&q_(U.ownerDocument.documentElement,U)){if(Z!==null&&Vb(U)){var pe=Z.start,Ae=Z.end;if(Ae===void 0&&(Ae=pe),"selectionStart"in U)U.selectionStart=pe,U.selectionEnd=Math.min(Ae,U.value.length);else{var Ie=U.ownerDocument||document,he=Ie&&Ie.defaultView||window;if(he.getSelection){var me=he.getSelection(),Dt=U.textContent.length,xt=Math.min(Z.start,Dt),bn=Z.end===void 0?xt:Math.min(Z.end,Dt);!me.extend&&xt>bn&&(L=bn,bn=xt,xt=L);var le=G_(U,xt),se=G_(U,bn);if(le&&se&&(me.rangeCount!==1||me.anchorNode!==le.node||me.anchorOffset!==le.offset||me.focusNode!==se.node||me.focusOffset!==se.offset)){var ue=Ie.createRange();ue.setStart(le.node,le.offset),me.removeAllRanges(),xt>bn?(me.addRange(ue),me.extend(se.node,se.offset)):(ue.setEnd(se.node,se.offset),me.addRange(ue))}}}}for(Ie=[],me=U;me=me.parentNode;)me.nodeType===1&&Ie.push({element:me,left:me.scrollLeft,top:me.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<Ie.length;U++){var De=Ie[U];De.element.scrollLeft=De.left,De.element.scrollTop=De.top}}Xm=!!g1,y1=g1=null}finally{pn=E,X.p=m,B.T=f}}i.current=c,Br=2}}function ik(){if(Br===2){Br=0;var i=As,c=Hc,f=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||f){f=B.T,B.T=null;var m=X.p;X.p=2;var E=pn;pn|=4;try{F2(i,c.alternate,c)}finally{pn=E,X.p=m,B.T=f}}Br=3}}function sk(){if(Br===4||Br===3){Br=0,At();var i=As,c=Hc,f=zc,m=Y2;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Br=5:(Br=0,Hc=As=null,lk(i,i.pendingLanes));var E=i.pendingLanes;if(E===0&&(_s=null),yt(f),c=c.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(de,c,void 0,(c.current.flags&128)===128)}catch{}if(m!==null){c=B.T,E=X.p,X.p=2,B.T=null;try{for(var _=i.onRecoverableError,L=0;L<m.length;L++){var U=m[L];_(U.value,{componentStack:U.stack})}}finally{B.T=c,X.p=E}}(zc&3)!==0&&jm(),Xa(i),E=i.pendingLanes,(f&4194090)!==0&&(E&42)!==0?i===n1?lf++:(lf=0,n1=i):lf=0,cf(0)}}function lk(i,c){(i.pooledCacheLanes&=c)===0&&(c=i.pooledCache,c!=null&&(i.pooledCache=null,Hd(c)))}function jm(i){return ak(),ik(),sk(),ck()}function ck(){if(Br!==5)return!1;var i=As,c=e1;e1=0;var f=yt(zc),m=B.T,E=X.p;try{X.p=32>f?32:f,B.T=null,f=t1,t1=null;var _=As,L=zc;if(Br=0,Hc=As=null,zc=0,(pn&6)!==0)throw Error(r(331));var U=pn;if(pn|=4,q2(_.current),$2(_,_.current,L,f),pn=U,cf(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(de,_)}catch{}return!0}finally{X.p=E,B.T=m,lk(i,c)}}function uk(i,c,f){c=Jo(f,c),c=Pv(i.stateNode,c,2),i=gs(i,c,2),i!==null&&(Qn(i,2),Xa(i))}function Sn(i,c,f){if(i.tag===3)uk(i,i,f);else for(;c!==null;){if(c.tag===3){uk(c,i,f);break}else if(c.tag===1){var m=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(_s===null||!_s.has(m))){i=Jo(f,i),f=h2(2),m=gs(c,f,2),m!==null&&(m2(f,m,c,i),Qn(m,2),Xa(m));break}}c=c.return}}function i1(i,c,f){var m=i.pingCache;if(m===null){m=i.pingCache=new B7;var E=new Set;m.set(c,E)}else E=m.get(c),E===void 0&&(E=new Set,m.set(c,E));E.has(f)||(Qv=!0,E.add(f),i=$7.bind(null,i,c,f),c.then(i,i))}function $7(i,c,f){var m=i.pingCache;m!==null&&m.delete(c),i.pingedLanes|=i.suspendedLanes&f,i.warmLanes&=~f,In===i&&(tn&f)===f&&(Zn===4||Zn===3&&(tn&62914560)===tn&&300>je()-Jv?(pn&2)===0&&$c(i,0):Xv|=f,Uc===tn&&(Uc=0)),Xa(i)}function dk(i,c){c===0&&(c=Lr()),i=_c(i,c),i!==null&&(Qn(i,c),Xa(i))}function V7(i){var c=i.memoizedState,f=0;c!==null&&(f=c.retryLane),dk(i,f)}function G7(i,c){var f=0;switch(i.tag){case 13:var m=i.stateNode,E=i.memoizedState;E!==null&&(f=E.retryLane);break;case 19:m=i.stateNode;break;case 22:m=i.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(c),dk(i,f)}function q7(i,c){return nt(i,c)}var Um=null,Gc=null,s1=!1,Hm=!1,l1=!1,Sl=0;function Xa(i){i!==Gc&&i.next===null&&(Gc===null?Um=Gc=i:Gc=Gc.next=i),Hm=!0,s1||(s1=!0,Y7())}function cf(i,c){if(!l1&&Hm){l1=!0;do for(var f=!1,m=Um;m!==null;){if(i!==0){var E=m.pendingLanes;if(E===0)var _=0;else{var L=m.suspendedLanes,U=m.pingedLanes;_=(1<<31-Xe(42|i)+1)-1,_&=E&~(L&~U),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(f=!0,mk(m,_))}else _=tn,_=Se(m,m===In?_:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(_&3)===0||ht(m,_)||(f=!0,mk(m,_));m=m.next}while(f);l1=!1}}function W7(){fk()}function fk(){Hm=s1=!1;var i=0;Sl!==0&&(nF()&&(i=Sl),Sl=0);for(var c=je(),f=null,m=Um;m!==null;){var E=m.next,_=pk(m,c);_===0?(m.next=null,f===null?Um=E:f.next=E,E===null&&(Gc=f)):(f=m,(i!==0||(_&3)!==0)&&(Hm=!0)),m=E}cf(i)}function pk(i,c){for(var f=i.suspendedLanes,m=i.pingedLanes,E=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var L=31-Xe(_),U=1<<L,Z=E[L];Z===-1?((U&f)===0||(U&m)!==0)&&(E[L]=rt(U,c)):Z<=c&&(i.expiredLanes|=U),_&=~U}if(c=In,f=tn,f=Se(i,i===c?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m=i.callbackNode,f===0||i===c&&(hn===2||hn===9)||i.cancelPendingCommit!==null)return m!==null&&m!==null&&Re(m),i.callbackNode=null,i.callbackPriority=0;if((f&3)===0||ht(i,f)){if(c=f&-f,c===i.callbackPriority)return c;switch(m!==null&&Re(m),yt(f)){case 2:case 8:f=ft;break;case 32:f=Ue;break;case 268435456:f=Jt;break;default:f=Ue}return m=hk.bind(null,i),f=nt(f,m),i.callbackPriority=c,i.callbackNode=f,c}return m!==null&&m!==null&&Re(m),i.callbackPriority=2,i.callbackNode=null,2}function hk(i,c){if(Br!==0&&Br!==5)return i.callbackNode=null,i.callbackPriority=0,null;var f=i.callbackNode;if(jm()&&i.callbackNode!==f)return null;var m=tn;return m=Se(i,i===In?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),m===0?null:(Q2(i,m,c),pk(i,je()),i.callbackNode!=null&&i.callbackNode===f?hk.bind(null,i):null)}function mk(i,c){if(jm())return null;Q2(i,c,!0)}function Y7(){oF(function(){(pn&6)!==0?nt(lt,W7):fk()})}function c1(){return Sl===0&&(Sl=mn()),Sl}function gk(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Zh(""+i)}function yk(i,c){var f=c.ownerDocument.createElement("input");return f.name=c.name,f.value=c.value,i.id&&f.setAttribute("form",i.id),c.parentNode.insertBefore(f,c),i=new FormData(i),f.parentNode.removeChild(f),i}function K7(i,c,f,m,E){if(c==="submit"&&f&&f.stateNode===E){var _=gk((E[we]||null).action),L=m.submitter;L&&(c=(c=L[we]||null)?gk(c.formAction):L.getAttribute("formAction"),c!==null&&(_=c,L=null));var U=new nm("action","action",null,m,E);i.push({event:U,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Sl!==0){var Z=L?yk(E,L):new FormData(E);Dv(f,{pending:!0,data:Z,method:E.method,action:_},null,Z)}}else typeof _=="function"&&(U.preventDefault(),Z=L?yk(E,L):new FormData(E),Dv(f,{pending:!0,data:Z,method:E.method,action:_},_,Z))},currentTarget:E}]})}}for(var u1=0;u1<Yb.length;u1++){var d1=Yb[u1],Q7=d1.toLowerCase(),X7=d1[0].toUpperCase()+d1.slice(1);Ra(Q7,"on"+X7)}Ra(Q_,"onAnimationEnd"),Ra(X_,"onAnimationIteration"),Ra(Z_,"onAnimationStart"),Ra("dblclick","onDoubleClick"),Ra("focusin","onFocus"),Ra("focusout","onBlur"),Ra(h7,"onTransitionRun"),Ra(m7,"onTransitionStart"),Ra(g7,"onTransitionCancel"),Ra(J_,"onTransitionEnd"),Qo("onMouseEnter",["mouseout","mouseover"]),Qo("onMouseLeave",["mouseout","mouseover"]),Qo("onPointerEnter",["pointerout","pointerover"]),Qo("onPointerLeave",["pointerout","pointerover"]),no("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),no("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),no("onBeforeInput",["compositionend","keypress","textInput","paste"]),no("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),no("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),no("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uf="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(" "),Z7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uf));function bk(i,c){c=(c&4)!==0;for(var f=0;f<i.length;f++){var m=i[f],E=m.event;m=m.listeners;e:{var _=void 0;if(c)for(var L=m.length-1;0<=L;L--){var U=m[L],Z=U.instance,pe=U.currentTarget;if(U=U.listener,Z!==_&&E.isPropagationStopped())break e;_=U,E.currentTarget=pe;try{_(E)}catch(Ae){wm(Ae)}E.currentTarget=null,_=Z}else for(L=0;L<m.length;L++){if(U=m[L],Z=U.instance,pe=U.currentTarget,U=U.listener,Z!==_&&E.isPropagationStopped())break e;_=U,E.currentTarget=pe;try{_(E)}catch(Ae){wm(Ae)}E.currentTarget=null,_=Z}}}}function Wt(i,c){var f=c[ot];f===void 0&&(f=c[ot]=new Set);var m=i+"__bubble";f.has(m)||(vk(c,i,2,!1),f.add(m))}function f1(i,c,f){var m=0;c&&(m|=4),vk(f,i,m,c)}var zm="_reactListening"+Math.random().toString(36).slice(2);function p1(i){if(!i[zm]){i[zm]=!0,Xt.forEach(function(f){f!=="selectionchange"&&(Z7.has(f)||f1(f,!1,i),f1(f,!0,i))});var c=i.nodeType===9?i:i.ownerDocument;c===null||c[zm]||(c[zm]=!0,f1("selectionchange",!1,c))}}function vk(i,c,f,m){switch($k(c)){case 2:var E=_F;break;case 8:E=AF;break;default:E=k1}f=E.bind(null,c,f,i),E=void 0,!Lb||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(E=!0),m?E!==void 0?i.addEventListener(c,f,{capture:!0,passive:E}):i.addEventListener(c,f,!0):E!==void 0?i.addEventListener(c,f,{passive:E}):i.addEventListener(c,f,!1)}function h1(i,c,f,m,E){var _=m;if((c&1)===0&&(c&2)===0&&m!==null)e:for(;;){if(m===null)return;var L=m.tag;if(L===3||L===4){var U=m.stateNode.containerInfo;if(U===E)break;if(L===4)for(L=m.return;L!==null;){var Z=L.tag;if((Z===3||Z===4)&&L.stateNode.containerInfo===E)return;L=L.return}for(;U!==null;){if(L=Ot(U),L===null)return;if(Z=L.tag,Z===5||Z===6||Z===26||Z===27){m=_=L;continue e}U=U.parentNode}}m=m.return}A_(function(){var pe=_,Ae=Nb(f),Ie=[];e:{var he=eA.get(i);if(he!==void 0){var me=nm,Dt=i;switch(i){case"keypress":if(em(f)===0)break e;case"keydown":case"keyup":me=q8;break;case"focusin":Dt="focus",me=jb;break;case"focusout":Dt="blur",me=jb;break;case"beforeblur":case"afterblur":me=jb;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":me=D_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=P8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=K8;break;case Q_:case X_:case Z_:me=F8;break;case J_:me=X8;break;case"scroll":case"scrollend":me=O8;break;case"wheel":me=J8;break;case"copy":case"cut":case"paste":me=j8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=I_;break;case"toggle":case"beforetoggle":me=t7}var xt=(c&4)!==0,bn=!xt&&(i==="scroll"||i==="scrollend"),le=xt?he!==null?he+"Capture":null:he;xt=[];for(var se=pe,ue;se!==null;){var De=se;if(ue=De.stateNode,De=De.tag,De!==5&&De!==26&&De!==27||ue===null||le===null||(De=wd(se,le),De!=null&&xt.push(df(se,De,ue))),bn)break;se=se.return}0<xt.length&&(he=new me(he,Dt,null,f,Ae),Ie.push({event:he,listeners:xt}))}}if((c&7)===0){e:{if(he=i==="mouseover"||i==="pointerover",me=i==="mouseout"||i==="pointerout",he&&f!==Ob&&(Dt=f.relatedTarget||f.fromElement)&&(Ot(Dt)||Dt[Ye]))break e;if((me||he)&&(he=Ae.window===Ae?Ae:(he=Ae.ownerDocument)?he.defaultView||he.parentWindow:window,me?(Dt=f.relatedTarget||f.toElement,me=pe,Dt=Dt?Ot(Dt):null,Dt!==null&&(bn=a(Dt),xt=Dt.tag,Dt!==bn||xt!==5&&xt!==27&&xt!==6)&&(Dt=null)):(me=null,Dt=pe),me!==Dt)){if(xt=D_,De="onMouseLeave",le="onMouseEnter",se="mouse",(i==="pointerout"||i==="pointerover")&&(xt=I_,De="onPointerLeave",le="onPointerEnter",se="pointer"),bn=me==null?he:jn(me),ue=Dt==null?he:jn(Dt),he=new xt(De,se+"leave",me,f,Ae),he.target=bn,he.relatedTarget=ue,De=null,Ot(Ae)===pe&&(xt=new xt(le,se+"enter",Dt,f,Ae),xt.target=ue,xt.relatedTarget=bn,De=xt),bn=De,me&&Dt)t:{for(xt=me,le=Dt,se=0,ue=xt;ue;ue=qc(ue))se++;for(ue=0,De=le;De;De=qc(De))ue++;for(;0<se-ue;)xt=qc(xt),se--;for(;0<ue-se;)le=qc(le),ue--;for(;se--;){if(xt===le||le!==null&&xt===le.alternate)break t;xt=qc(xt),le=qc(le)}xt=null}else xt=null;me!==null&&Ek(Ie,he,me,xt,!1),Dt!==null&&bn!==null&&Ek(Ie,bn,Dt,xt,!0)}}e:{if(he=pe?jn(pe):window,me=he.nodeName&&he.nodeName.toLowerCase(),me==="select"||me==="input"&&he.type==="file")var tt=j_;else if(F_(he))if(U_)tt=d7;else{tt=c7;var Vt=l7}else me=he.nodeName,!me||me.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?pe&&Ib(pe.elementType)&&(tt=j_):tt=u7;if(tt&&(tt=tt(i,pe))){B_(Ie,tt,f,Ae);break e}Vt&&Vt(i,he,pe),i==="focusout"&&pe&&he.type==="number"&&pe.memoizedProps.value!=null&&Rb(he,"number",he.value)}switch(Vt=pe?jn(pe):window,i){case"focusin":(F_(Vt)||Vt.contentEditable==="true")&&(Tc=Vt,Gb=pe,Md=null);break;case"focusout":Md=Gb=Tc=null;break;case"mousedown":qb=!0;break;case"contextmenu":case"mouseup":case"dragend":qb=!1,Y_(Ie,f,Ae);break;case"selectionchange":if(p7)break;case"keydown":case"keyup":Y_(Ie,f,Ae)}var pt;if(Hb)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 xc?L_(i,f)&&(Tt="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(Tt="onCompositionStart");Tt&&(O_&&f.locale!=="ko"&&(xc||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&xc&&(pt=k_()):(fs=Ae,Mb="value"in fs?fs.value:fs.textContent,xc=!0)),Vt=$m(pe,Tt),0<Vt.length&&(Tt=new R_(Tt,i,null,f,Ae),Ie.push({event:Tt,listeners:Vt}),pt?Tt.data=pt:(pt=M_(f),pt!==null&&(Tt.data=pt)))),(pt=r7?o7(i,f):a7(i,f))&&(Tt=$m(pe,"onBeforeInput"),0<Tt.length&&(Vt=new R_("onBeforeInput","beforeinput",null,f,Ae),Ie.push({event:Vt,listeners:Tt}),Vt.data=pt)),K7(Ie,i,pe,f,Ae)}bk(Ie,c)})}function df(i,c,f){return{instance:i,listener:c,currentTarget:f}}function $m(i,c){for(var f=c+"Capture",m=[];i!==null;){var E=i,_=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||_===null||(E=wd(i,f),E!=null&&m.unshift(df(i,E,_)),E=wd(i,c),E!=null&&m.push(df(i,E,_))),i.tag===3)return m;i=i.return}return[]}function qc(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Ek(i,c,f,m,E){for(var _=c._reactName,L=[];f!==null&&f!==m;){var U=f,Z=U.alternate,pe=U.stateNode;if(U=U.tag,Z!==null&&Z===m)break;U!==5&&U!==26&&U!==27||pe===null||(Z=pe,E?(pe=wd(f,_),pe!=null&&L.unshift(df(f,pe,Z))):E||(pe=wd(f,_),pe!=null&&L.push(df(f,pe,Z)))),f=f.return}L.length!==0&&i.push({event:c,listeners:L})}var J7=/\r\n?/g,eF=/\u0000|\uFFFD/g;function xk(i){return(typeof i=="string"?i:""+i).replace(J7,`
50
- `).replace(eF,"")}function Tk(i,c){return c=xk(c),xk(i)===c}function Vm(){}function yn(i,c,f,m,E,_){switch(f){case"children":typeof m=="string"?c==="body"||c==="textarea"&&m===""||bc(i,m):(typeof m=="number"||typeof m=="bigint")&&c!=="body"&&bc(i,""+m);break;case"className":Si(i,"class",m);break;case"tabIndex":Si(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(i,f,m);break;case"style":C_(i,m,_);break;case"data":if(c!=="object"){Si(i,"data",m);break}case"src":case"href":if(m===""&&(c!=="a"||f!=="href")){i.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Zh(""+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"?(c!=="input"&&yn(i,c,"name",E.name,E,null),yn(i,c,"formEncType",E.formEncType,E,null),yn(i,c,"formMethod",E.formMethod,E,null),yn(i,c,"formTarget",E.formTarget,E,null)):(yn(i,c,"encType",E.encType,E,null),yn(i,c,"method",E.method,E,null),yn(i,c,"target",E.target,E,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(f);break}m=Zh(""+m),i.setAttribute(f,m);break;case"onClick":m!=null&&(i.onclick=Vm);break;case"onScroll":m!=null&&Wt("scroll",i);break;case"onScrollEnd":m!=null&&Wt("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(E.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=Zh(""+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":Wt("beforetoggle",i),Wt("toggle",i),Xo(i,"popover",m);break;case"xlinkActuate":$t(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":$t(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":$t(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":$t(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":$t(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":$t(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":$t(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":$t(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":$t(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Xo(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=R8.get(f)||f,Xo(i,f,m))}}function m1(i,c,f,m,E,_){switch(f){case"style":C_(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(E.children!=null)throw Error(r(60));i.innerHTML=f}}break;case"children":typeof m=="string"?bc(i,m):(typeof m=="number"||typeof m=="bigint")&&bc(i,""+m);break;case"onScroll":m!=null&&Wt("scroll",i);break;case"onScrollEnd":m!=null&&Wt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=Vm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ls.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(E=f.endsWith("Capture"),c=f.slice(2,E?f.length-7:void 0),_=i[we]||null,_=_!=null?_[f]:null,typeof _=="function"&&i.removeEventListener(c,_,E),typeof m=="function")){typeof _!="function"&&_!==null&&(f in i?i[f]=null:i.hasAttribute(f)&&i.removeAttribute(f)),i.addEventListener(c,m,E);break e}f in i?i[f]=m:m===!0?i.setAttribute(f,""):Xo(i,f,m)}}}function jr(i,c,f){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Wt("error",i),Wt("load",i);var m=!1,E=!1,_;for(_ in f)if(f.hasOwnProperty(_)){var L=f[_];if(L!=null)switch(_){case"src":m=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:yn(i,c,_,L,f,null)}}E&&yn(i,c,"srcSet",f.srcSet,f,null),m&&yn(i,c,"src",f.src,f,null);return;case"input":Wt("invalid",i);var U=_=L=E=null,Z=null,pe=null;for(m in f)if(f.hasOwnProperty(m)){var Ae=f[m];if(Ae!=null)switch(m){case"name":E=Ae;break;case"type":L=Ae;break;case"checked":Z=Ae;break;case"defaultChecked":pe=Ae;break;case"value":_=Ae;break;case"defaultValue":U=Ae;break;case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(r(137,c));break;default:yn(i,c,m,Ae,f,null)}}E_(i,_,U,Z,pe,L,E,!1),Qh(i);return;case"select":Wt("invalid",i),m=L=_=null;for(E in f)if(f.hasOwnProperty(E)&&(U=f[E],U!=null))switch(E){case"value":_=U;break;case"defaultValue":L=U;break;case"multiple":m=U;default:yn(i,c,E,U,f,null)}c=_,f=L,i.multiple=!!m,c!=null?yc(i,!!m,c,!1):f!=null&&yc(i,!!m,f,!0);return;case"textarea":Wt("invalid",i),_=E=m=null;for(L in f)if(f.hasOwnProperty(L)&&(U=f[L],U!=null))switch(L){case"value":m=U;break;case"defaultValue":E=U;break;case"children":_=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(91));break;default:yn(i,c,L,U,f,null)}T_(i,m,E,_),Qh(i);return;case"option":for(Z in f)if(f.hasOwnProperty(Z)&&(m=f[Z],m!=null))switch(Z){case"selected":i.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:yn(i,c,Z,m,f,null)}return;case"dialog":Wt("beforetoggle",i),Wt("toggle",i),Wt("cancel",i),Wt("close",i);break;case"iframe":case"object":Wt("load",i);break;case"video":case"audio":for(m=0;m<uf.length;m++)Wt(uf[m],i);break;case"image":Wt("error",i),Wt("load",i);break;case"details":Wt("toggle",i);break;case"embed":case"source":case"link":Wt("error",i),Wt("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(pe in f)if(f.hasOwnProperty(pe)&&(m=f[pe],m!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:yn(i,c,pe,m,f,null)}return;default:if(Ib(c)){for(Ae in f)f.hasOwnProperty(Ae)&&(m=f[Ae],m!==void 0&&m1(i,c,Ae,m,f,void 0));return}}for(U in f)f.hasOwnProperty(U)&&(m=f[U],m!=null&&yn(i,c,U,m,f,null))}function tF(i,c,f,m){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,_=null,L=null,U=null,Z=null,pe=null,Ae=null;for(me in f){var Ie=f[me];if(f.hasOwnProperty(me)&&Ie!=null)switch(me){case"checked":break;case"value":break;case"defaultValue":Z=Ie;default:m.hasOwnProperty(me)||yn(i,c,me,null,m,Ie)}}for(var he in m){var me=m[he];if(Ie=f[he],m.hasOwnProperty(he)&&(me!=null||Ie!=null))switch(he){case"type":_=me;break;case"name":E=me;break;case"checked":pe=me;break;case"defaultChecked":Ae=me;break;case"value":L=me;break;case"defaultValue":U=me;break;case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,c));break;default:me!==Ie&&yn(i,c,he,me,m,Ie)}}Db(i,L,U,Z,pe,Ae,_,E);return;case"select":me=L=U=he=null;for(_ in f)if(Z=f[_],f.hasOwnProperty(_)&&Z!=null)switch(_){case"value":break;case"multiple":me=Z;default:m.hasOwnProperty(_)||yn(i,c,_,null,m,Z)}for(E in m)if(_=m[E],Z=f[E],m.hasOwnProperty(E)&&(_!=null||Z!=null))switch(E){case"value":he=_;break;case"defaultValue":U=_;break;case"multiple":L=_;default:_!==Z&&yn(i,c,E,_,m,Z)}c=U,f=L,m=me,he!=null?yc(i,!!f,he,!1):!!m!=!!f&&(c!=null?yc(i,!!f,c,!0):yc(i,!!f,f?[]:"",!1));return;case"textarea":me=he=null;for(U in f)if(E=f[U],f.hasOwnProperty(U)&&E!=null&&!m.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:yn(i,c,U,null,m,E)}for(L in m)if(E=m[L],_=f[L],m.hasOwnProperty(L)&&(E!=null||_!=null))switch(L){case"value":he=E;break;case"defaultValue":me=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==_&&yn(i,c,L,E,m,_)}x_(i,he,me);return;case"option":for(var Dt in f)if(he=f[Dt],f.hasOwnProperty(Dt)&&he!=null&&!m.hasOwnProperty(Dt))switch(Dt){case"selected":i.selected=!1;break;default:yn(i,c,Dt,null,m,he)}for(Z in m)if(he=m[Z],me=f[Z],m.hasOwnProperty(Z)&&he!==me&&(he!=null||me!=null))switch(Z){case"selected":i.selected=he&&typeof he!="function"&&typeof he!="symbol";break;default:yn(i,c,Z,he,m,me)}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)he=f[xt],f.hasOwnProperty(xt)&&he!=null&&!m.hasOwnProperty(xt)&&yn(i,c,xt,null,m,he);for(pe in m)if(he=m[pe],me=f[pe],m.hasOwnProperty(pe)&&he!==me&&(he!=null||me!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,c));break;default:yn(i,c,pe,he,m,me)}return;default:if(Ib(c)){for(var bn in f)he=f[bn],f.hasOwnProperty(bn)&&he!==void 0&&!m.hasOwnProperty(bn)&&m1(i,c,bn,void 0,m,he);for(Ae in m)he=m[Ae],me=f[Ae],!m.hasOwnProperty(Ae)||he===me||he===void 0&&me===void 0||m1(i,c,Ae,he,m,me);return}}for(var le in f)he=f[le],f.hasOwnProperty(le)&&he!=null&&!m.hasOwnProperty(le)&&yn(i,c,le,null,m,he);for(Ie in m)he=m[Ie],me=f[Ie],!m.hasOwnProperty(Ie)||he===me||he==null&&me==null||yn(i,c,Ie,he,m,me)}var g1=null,y1=null;function Gm(i){return i.nodeType===9?i:i.ownerDocument}function Sk(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 Ck(i,c){if(i===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&c==="foreignObject"?0:i}function b1(i,c){return i==="textarea"||i==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var v1=null;function nF(){var i=window.event;return i&&i.type==="popstate"?i===v1?!1:(v1=i,!0):(v1=null,!1)}var _k=typeof setTimeout=="function"?setTimeout:void 0,rF=typeof clearTimeout=="function"?clearTimeout:void 0,Ak=typeof Promise=="function"?Promise:void 0,oF=typeof queueMicrotask=="function"?queueMicrotask:typeof Ak<"u"?function(i){return Ak.resolve(null).then(i).catch(aF)}:_k;function aF(i){setTimeout(function(){throw i})}function ws(i){return i==="head"}function kk(i,c){var f=c,m=0,E=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&&ff(L.documentElement),f&2&&ff(L.body),f&4)for(f=L.head,ff(f),L=f.firstChild;L;){var U=L.nextSibling,Z=L.nodeName;L[bt]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&L.rel.toLowerCase()==="stylesheet"||f.removeChild(L),L=U}}if(E===0){i.removeChild(_),Ef(c);return}E--}else f==="$"||f==="$?"||f==="$!"?E++:m=f.charCodeAt(0)-48;else m=0;f=_}while(f);Ef(c)}function E1(i){var c=i.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var f=c;switch(c=c.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":E1(f),wt(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}i.removeChild(f)}}function iF(i,c,f,m){for(;i.nodeType===1;){var E=f;if(i.nodeName.toLowerCase()!==c.toLowerCase()){if(!m&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(m){if(!i[bt])switch(c){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==E.rel||i.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||i.getAttribute("title")!==(E.title==null?null:E.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(E.src==null?null:E.src)||i.getAttribute("type")!==(E.type==null?null:E.type)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(c==="input"&&i.type==="hidden"){var _=E.name==null?null:""+E.name;if(E.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=Oa(i.nextSibling),i===null)break}return null}function sF(i,c,f){if(c==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!f||(i=Oa(i.nextSibling),i===null))return null;return i}function x1(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function lF(i,c){var f=i.ownerDocument;if(i.data!=="$?"||f.readyState==="complete")c();else{var m=function(){c(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),i._reactRetry=m}}function Oa(i){for(;i!=null;i=i.nextSibling){var c=i.nodeType;if(c===1||c===3)break;if(c===8){if(c=i.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return i}var T1=null;function wk(i){i=i.previousSibling;for(var c=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(c===0)return i;c--}else f==="/$"&&c++}i=i.previousSibling}return null}function Dk(i,c,f){switch(c=Gm(f),i){case"html":if(i=c.documentElement,!i)throw Error(r(452));return i;case"head":if(i=c.head,!i)throw Error(r(453));return i;case"body":if(i=c.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function ff(i){for(var c=i.attributes;c.length;)i.removeAttributeNode(c[0]);wt(i)}var aa=new Map,Rk=new Set;function qm(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Fi=X.d;X.d={f:cF,r:uF,D:dF,C:fF,L:pF,m:hF,X:gF,S:mF,M:yF};function cF(){var i=Fi.f(),c=Fm();return i||c}function uF(i){var c=rn(i);c!==null&&c.tag===5&&c.type==="form"?QA(c):Fi.r(i)}var Wc=typeof document>"u"?null:document;function Ik(i,c,f){var m=Wc;if(m&&typeof c=="string"&&c){var E=Zo(c);E='link[rel="'+i+'"][href="'+E+'"]',typeof f=="string"&&(E+='[crossorigin="'+f+'"]'),Rk.has(E)||(Rk.add(E),i={rel:i,crossOrigin:f,href:c},m.querySelector(E)===null&&(c=m.createElement("link"),jr(c,"link",i),on(c),m.head.appendChild(c)))}}function dF(i){Fi.D(i),Ik("dns-prefetch",i,null)}function fF(i,c){Fi.C(i,c),Ik("preconnect",i,c)}function pF(i,c,f){Fi.L(i,c,f);var m=Wc;if(m&&i&&c){var E='link[rel="preload"][as="'+Zo(c)+'"]';c==="image"&&f&&f.imageSrcSet?(E+='[imagesrcset="'+Zo(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(E+='[imagesizes="'+Zo(f.imageSizes)+'"]')):E+='[href="'+Zo(i)+'"]';var _=E;switch(c){case"style":_=Yc(i);break;case"script":_=Kc(i)}aa.has(_)||(i=p({rel:"preload",href:c==="image"&&f&&f.imageSrcSet?void 0:i,as:c},f),aa.set(_,i),m.querySelector(E)!==null||c==="style"&&m.querySelector(pf(_))||c==="script"&&m.querySelector(hf(_))||(c=m.createElement("link"),jr(c,"link",i),on(c),m.head.appendChild(c)))}}function hF(i,c){Fi.m(i,c);var f=Wc;if(f&&i){var m=c&&typeof c.as=="string"?c.as:"script",E='link[rel="modulepreload"][as="'+Zo(m)+'"][href="'+Zo(i)+'"]',_=E;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Kc(i)}if(!aa.has(_)&&(i=p({rel:"modulepreload",href:i},c),aa.set(_,i),f.querySelector(E)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(hf(_)))return}m=f.createElement("link"),jr(m,"link",i),on(m),f.head.appendChild(m)}}}function mF(i,c,f){Fi.S(i,c,f);var m=Wc;if(m&&i){var E=Wn(m).hoistableStyles,_=Yc(i);c=c||"default";var L=E.get(_);if(!L){var U={loading:0,preload:null};if(L=m.querySelector(pf(_)))U.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":c},f),(f=aa.get(_))&&S1(i,f);var Z=L=m.createElement("link");on(Z),jr(Z,"link",i),Z._p=new Promise(function(pe,Ae){Z.onload=pe,Z.onerror=Ae}),Z.addEventListener("load",function(){U.loading|=1}),Z.addEventListener("error",function(){U.loading|=2}),U.loading|=4,Wm(L,c,m)}L={type:"stylesheet",instance:L,count:1,state:U},E.set(_,L)}}}function gF(i,c){Fi.X(i,c);var f=Wc;if(f&&i){var m=Wn(f).hoistableScripts,E=Kc(i),_=m.get(E);_||(_=f.querySelector(hf(E)),_||(i=p({src:i,async:!0},c),(c=aa.get(E))&&C1(i,c),_=f.createElement("script"),on(_),jr(_,"link",i),f.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(E,_))}}function yF(i,c){Fi.M(i,c);var f=Wc;if(f&&i){var m=Wn(f).hoistableScripts,E=Kc(i),_=m.get(E);_||(_=f.querySelector(hf(E)),_||(i=p({src:i,async:!0,type:"module"},c),(c=aa.get(E))&&C1(i,c),_=f.createElement("script"),on(_),jr(_,"link",i),f.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(E,_))}}function Ok(i,c,f,m){var E=(E=re.current)?qm(E):null;if(!E)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(c=Yc(f.href),f=Wn(E).hoistableStyles,m=f.get(c),m||(m={type:"style",instance:null,count:0,state:null},f.set(c,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=Yc(f.href);var _=Wn(E).hoistableStyles,L=_.get(i);if(L||(E=E.ownerDocument||E,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,L),(_=E.querySelector(pf(i)))&&!_._p&&(L.instance=_,L.state.loading=5),aa.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},aa.set(i,f),_||bF(E,i,f,L.state))),c&&m===null)throw Error(r(528,""));return L}if(c&&m!==null)throw Error(r(529,""));return null;case"script":return c=f.async,f=f.src,typeof f=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Kc(f),f=Wn(E).hoistableScripts,m=f.get(c),m||(m={type:"script",instance:null,count:0,state:null},f.set(c,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Yc(i){return'href="'+Zo(i)+'"'}function pf(i){return'link[rel="stylesheet"]['+i+"]"}function Nk(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function bF(i,c,f,m){i.querySelector('link[rel="preload"][as="style"]['+c+"]")?m.loading=1:(c=i.createElement("link"),m.preload=c,c.addEventListener("load",function(){return m.loading|=1}),c.addEventListener("error",function(){return m.loading|=2}),jr(c,"link",f),on(c),i.head.appendChild(c))}function Kc(i){return'[src="'+Zo(i)+'"]'}function hf(i){return"script[async]"+i}function Pk(i,c,f){if(c.count++,c.instance===null)switch(c.type){case"style":var m=i.querySelector('style[data-href~="'+Zo(f.href)+'"]');if(m)return c.instance=m,on(m),m;var E=p({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(i.ownerDocument||i).createElement("style"),on(m),jr(m,"style",E),Wm(m,f.precedence,i),c.instance=m;case"stylesheet":E=Yc(f.href);var _=i.querySelector(pf(E));if(_)return c.state.loading|=4,c.instance=_,on(_),_;m=Nk(f),(E=aa.get(E))&&S1(m,E),_=(i.ownerDocument||i).createElement("link"),on(_);var L=_;return L._p=new Promise(function(U,Z){L.onload=U,L.onerror=Z}),jr(_,"link",m),c.state.loading|=4,Wm(_,f.precedence,i),c.instance=_;case"script":return _=Kc(f.src),(E=i.querySelector(hf(_)))?(c.instance=E,on(E),E):(m=f,(E=aa.get(_))&&(m=p({},f),C1(m,E)),i=i.ownerDocument||i,E=i.createElement("script"),on(E),jr(E,"link",m),i.head.appendChild(E),c.instance=E);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(m=c.instance,c.state.loading|=4,Wm(m,f.precedence,i));return c.instance}function Wm(i,c,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=m.length?m[m.length-1]:null,_=E,L=0;L<m.length;L++){var U=m[L];if(U.dataset.precedence===c)_=U;else if(_!==E)break}_?_.parentNode.insertBefore(i,_.nextSibling):(c=f.nodeType===9?f.head:f,c.insertBefore(i,c.firstChild))}function S1(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.title==null&&(i.title=c.title)}function C1(i,c){i.crossOrigin==null&&(i.crossOrigin=c.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=c.referrerPolicy),i.integrity==null&&(i.integrity=c.integrity)}var Ym=null;function Lk(i,c,f){if(Ym===null){var m=new Map,E=Ym=new Map;E.set(f,m)}else E=Ym,m=E.get(f),m||(m=new Map,E.set(f,m));if(m.has(i))return m;for(m.set(i,null),f=f.getElementsByTagName(i),E=0;E<f.length;E++){var _=f[E];if(!(_[bt]||_[ve]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var L=_.getAttribute(c)||"";L=i+L;var U=m.get(L);U?U.push(_):m.set(L,[_])}}return m}function Mk(i,c,f){i=i.ownerDocument||i,i.head.insertBefore(f,c==="title"?i.querySelector("head > title"):null)}function vF(i,c,f){if(f===1||c.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return i=c.disabled,typeof c.precedence=="string"&&i==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function Fk(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var mf=null;function EF(){}function xF(i,c,f){if(mf===null)throw Error(r(475));var m=mf;if(c.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var E=Yc(f.href),_=i.querySelector(pf(E));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(m.count++,m=Km.bind(m),i.then(m,m)),c.state.loading|=4,c.instance=_,on(_);return}_=i.ownerDocument||i,f=Nk(f),(E=aa.get(E))&&S1(f,E),_=_.createElement("link"),on(_);var L=_;L._p=new Promise(function(U,Z){L.onload=U,L.onerror=Z}),jr(_,"link",f),c.instance=_}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(c,i),(i=c.state.preload)&&(c.state.loading&3)===0&&(m.count++,c=Km.bind(m),i.addEventListener("load",c),i.addEventListener("error",c))}}function TF(){if(mf===null)throw Error(r(475));var i=mf;return i.stylesheets&&i.count===0&&_1(i,i.stylesheets),0<i.count?function(c){var f=setTimeout(function(){if(i.stylesheets&&_1(i,i.stylesheets),i.unsuspend){var m=i.unsuspend;i.unsuspend=null,m()}},6e4);return i.unsuspend=c,function(){i.unsuspend=null,clearTimeout(f)}}:null}function Km(){if(this.count--,this.count===0){if(this.stylesheets)_1(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Qm=null;function _1(i,c){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Qm=new Map,c.forEach(SF,i),Qm=null,Km.call(i))}function SF(i,c){if(!(c.state.loading&4)){var f=Qm.get(i);if(f)var m=f.get(null);else{f=new Map,Qm.set(i,f);for(var E=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<E.length;_++){var L=E[_];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(f.set(L.dataset.precedence,L),m=L)}m&&f.set(null,m)}E=c.instance,L=E.getAttribute("data-precedence"),_=f.get(L)||m,_===m&&f.set(null,E),f.set(L,E),this.count++,m=Km.bind(this),E.addEventListener("load",m),E.addEventListener("error",m),_?_.parentNode.insertBefore(E,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(E,i.firstChild)),c.state.loading|=4}}var gf={$$typeof:w,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function CF(i,c,f,m,E,_,L,U){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=xr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xr(0),this.hiddenUpdates=xr(null),this.identifierPrefix=m,this.onUncaughtError=E,this.onCaughtError=_,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function Bk(i,c,f,m,E,_,L,U,Z,pe,Ae,Ie){return i=new CF(i,c,f,L,U,Z,pe,Ie),c=1,_===!0&&(c|=24),_=Io(3,null,null,c),i.current=_,_.stateNode=i,c=iv(),c.refCount++,i.pooledCache=c,c.refCount++,_.memoizedState={element:m,isDehydrated:f,cache:c},uv(_),i}function jk(i){return i?(i=Ac,i):Ac}function Uk(i,c,f,m,E,_){E=jk(E),m.context===null?m.context=E:m.pendingContext=E,m=ms(c),m.payload={element:f},_=_===void 0?null:_,_!==null&&(m.callback=_),f=gs(i,m,c),f!==null&&(Mo(f,i,c),Gd(f,i,c))}function Hk(i,c){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<c?f:c}}function A1(i,c){Hk(i,c),(i=i.alternate)&&Hk(i,c)}function zk(i){if(i.tag===13){var c=_c(i,67108864);c!==null&&Mo(c,i,67108864),A1(i,67108864)}}var Xm=!0;function _F(i,c,f,m){var E=B.T;B.T=null;var _=X.p;try{X.p=2,k1(i,c,f,m)}finally{X.p=_,B.T=E}}function AF(i,c,f,m){var E=B.T;B.T=null;var _=X.p;try{X.p=8,k1(i,c,f,m)}finally{X.p=_,B.T=E}}function k1(i,c,f,m){if(Xm){var E=w1(m);if(E===null)h1(i,c,m,Zm,f),Vk(i,m);else if(wF(E,i,c,f,m))m.stopPropagation();else if(Vk(i,m),c&4&&-1<kF.indexOf(i)){for(;E!==null;){var _=rn(E);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var L=Ee(_.pendingLanes);if(L!==0){var U=_;for(U.pendingLanes|=2,U.entangledLanes|=2;L;){var Z=1<<31-Xe(L);U.entanglements[1]|=Z,L&=~Z}Xa(_),(pn&6)===0&&(Lm=je()+500,cf(0))}}break;case 13:U=_c(_,2),U!==null&&Mo(U,_,2),Fm(),A1(_,2)}if(_=w1(m),_===null&&h1(i,c,m,Zm,f),_===E)break;E=_}E!==null&&m.stopPropagation()}else h1(i,c,m,null,f)}}function w1(i){return i=Nb(i),D1(i)}var Zm=null;function D1(i){if(Zm=null,i=Ot(i),i!==null){var c=a(i);if(c===null)i=null;else{var f=c.tag;if(f===13){if(i=s(c),i!==null)return i;i=null}else if(f===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;i=null}else c!==i&&(i=null)}}return Zm=i,null}function $k(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 lt:return 2;case ft:return 8;case Ue:case Le:return 32;case Jt:return 268435456;default:return 32}default:return 32}}var R1=!1,Ds=null,Rs=null,Is=null,yf=new Map,bf=new Map,Os=[],kF="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 Vk(i,c){switch(i){case"focusin":case"focusout":Ds=null;break;case"dragenter":case"dragleave":Rs=null;break;case"mouseover":case"mouseout":Is=null;break;case"pointerover":case"pointerout":yf.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":bf.delete(c.pointerId)}}function vf(i,c,f,m,E,_){return i===null||i.nativeEvent!==_?(i={blockedOn:c,domEventName:f,eventSystemFlags:m,nativeEvent:_,targetContainers:[E]},c!==null&&(c=rn(c),c!==null&&zk(c)),i):(i.eventSystemFlags|=m,c=i.targetContainers,E!==null&&c.indexOf(E)===-1&&c.push(E),i)}function wF(i,c,f,m,E){switch(c){case"focusin":return Ds=vf(Ds,i,c,f,m,E),!0;case"dragenter":return Rs=vf(Rs,i,c,f,m,E),!0;case"mouseover":return Is=vf(Is,i,c,f,m,E),!0;case"pointerover":var _=E.pointerId;return yf.set(_,vf(yf.get(_)||null,i,c,f,m,E)),!0;case"gotpointercapture":return _=E.pointerId,bf.set(_,vf(bf.get(_)||null,i,c,f,m,E)),!0}return!1}function Gk(i){var c=Ot(i.target);if(c!==null){var f=a(c);if(f!==null){if(c=f.tag,c===13){if(c=s(f),c!==null){i.blockedOn=c,J(i.priority,function(){if(f.tag===13){var m=Lo();m=Mr(m);var E=_c(f,m);E!==null&&Mo(E,f,m),A1(f,m)}});return}}else if(c===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Jm(i){if(i.blockedOn!==null)return!1;for(var c=i.targetContainers;0<c.length;){var f=w1(i.nativeEvent);if(f===null){f=i.nativeEvent;var m=new f.constructor(f.type,f);Ob=m,f.target.dispatchEvent(m),Ob=null}else return c=rn(f),c!==null&&zk(c),i.blockedOn=f,!1;c.shift()}return!0}function qk(i,c,f){Jm(i)&&f.delete(c)}function DF(){R1=!1,Ds!==null&&Jm(Ds)&&(Ds=null),Rs!==null&&Jm(Rs)&&(Rs=null),Is!==null&&Jm(Is)&&(Is=null),yf.forEach(qk),bf.forEach(qk)}function eg(i,c){i.blockedOn===c&&(i.blockedOn=null,R1||(R1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,DF)))}var tg=null;function Wk(i){tg!==i&&(tg=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){tg===i&&(tg=null);for(var c=0;c<i.length;c+=3){var f=i[c],m=i[c+1],E=i[c+2];if(typeof m!="function"){if(D1(m||f)===null)continue;break}var _=rn(f);_!==null&&(i.splice(c,3),c-=3,Dv(_,{pending:!0,data:E,method:f.method,action:m},m,E))}}))}function Ef(i){function c(Z){return eg(Z,i)}Ds!==null&&eg(Ds,i),Rs!==null&&eg(Rs,i),Is!==null&&eg(Is,i),yf.forEach(c),bf.forEach(c);for(var f=0;f<Os.length;f++){var m=Os[f];m.blockedOn===i&&(m.blockedOn=null)}for(;0<Os.length&&(f=Os[0],f.blockedOn===null);)Gk(f),f.blockedOn===null&&Os.shift();if(f=(i.ownerDocument||i).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var E=f[m],_=f[m+1],L=E[we]||null;if(typeof _=="function")L||Wk(f);else if(L){var U=null;if(_&&_.hasAttribute("formAction")){if(E=_,L=_[we]||null)U=L.formAction;else if(D1(E)!==null)continue}else U=L.action;typeof U=="function"?f[m+1]=U:(f.splice(m,3),m-=3),Wk(f)}}}function I1(i){this._internalRoot=i}ng.prototype.render=I1.prototype.render=function(i){var c=this._internalRoot;if(c===null)throw Error(r(409));var f=c.current,m=Lo();Uk(f,m,i,c,null,null)},ng.prototype.unmount=I1.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var c=i.containerInfo;Uk(i.current,2,null,i,null,null),Fm(),c[Ye]=null}};function ng(i){this._internalRoot=i}ng.prototype.unstable_scheduleHydration=function(i){if(i){var c=ne();i={blockedOn:null,target:i,priority:c};for(var f=0;f<Os.length&&c!==0&&c<Os[f].priority;f++);Os.splice(f,0,i),f===0&&Gk(i)}};var Yk=t.version;if(Yk!=="19.1.0")throw Error(r(527,Yk,"19.1.0"));X.findDOMNode=function(i){var c=i._reactInternals;if(c===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=u(c),i=i!==null?d(i):null,i=i===null?null:i.stateNode,i};var RF={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rg.isDisabled&&rg.supportsFiber)try{de=rg.inject(RF),ge=rg}catch{}}return Tf.createRoot=function(i,c){if(!o(i))throw Error(r(299));var f=!1,m="",E=u2,_=d2,L=f2,U=null;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(m=c.identifierPrefix),c.onUncaughtError!==void 0&&(E=c.onUncaughtError),c.onCaughtError!==void 0&&(_=c.onCaughtError),c.onRecoverableError!==void 0&&(L=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(U=c.unstable_transitionCallbacks)),c=Bk(i,1,!1,null,null,f,m,E,_,L,U,null),i[Ye]=c.current,p1(i),new I1(c)},Tf.hydrateRoot=function(i,c,f){if(!o(i))throw Error(r(299));var m=!1,E="",_=u2,L=d2,U=f2,Z=null,pe=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(E=f.identifierPrefix),f.onUncaughtError!==void 0&&(_=f.onUncaughtError),f.onCaughtError!==void 0&&(L=f.onCaughtError),f.onRecoverableError!==void 0&&(U=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(Z=f.unstable_transitionCallbacks),f.formState!==void 0&&(pe=f.formState)),c=Bk(i,1,!0,c,f??null,m,E,_,L,U,Z,pe),c.context=jk(null),f=c.current,m=Lo(),m=Mr(m),E=ms(m),E.callback=null,gs(f,E,m),f=m,c.current.lanes=f,Qn(c,f),Xa(c),i[Ye]=c.current,p1(i),new ng(c)},Tf.version="19.1.0",Tf}var ow;function UF(){if(ow)return P1.exports;ow=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(),P1.exports=jF(),P1.exports}var HF=UF(),Sf={},aw;function zF(){if(aw)return Sf;aw=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.parse=s,Sf.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 w=g.indexOf(";",T),R=w===-1?x:w;if(D>R){T=g.lastIndexOf(";",D-1)+1;continue}const I=l(g,T,D),O=u(g,D,I),F=g.slice(I,O);if(b[F]===void 0){let j=l(g,D+1,R),H=u(g,R,j);const C=S(g.slice(j,H));b[F]=C}T=R+1}while(T<x);return b}function l(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 Sf}zF();/**
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 FN=e=>{throw TypeError(e)},$F=(e,t,n)=>t.has(e)||FN("Cannot "+n),B1=(e,t,n)=>($F(e,t,"read from private field"),n?n.call(e):t.get(e)),VF=(e,t,n)=>t.has(e)?FN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),iw="popstate";function GF(e={}){function t(r,o){let{pathname:a,search:s,hash:l}=r.location;return Lp("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Qs(o)}return WF(t,n,null,e)}function Kt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qF(){return Math.random().toString(36).substring(2,10)}function sw(e,t){return{usr:e.state,key:e.key,idx:t}}function Lp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?el(t):t,state:n,key:t&&t.key||r||qF()}}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 el(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 WF(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,l="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(){l="POP";let S=p(),T=S==null?null:S-d;d=S,u&&u({action:l,location:x.location,delta:T})}function g(S,T){l="PUSH";let D=Lp(x.location,S,T);d=p()+1;let w=sw(D,d),R=x.createHref(D);try{s.pushState(w,"",R)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(R)}a&&u&&u({action:l,location:x.location,delta:1})}function y(S,T){l="REPLACE";let D=Lp(x.location,S,T);d=p();let w=sw(D,d),R=x.createHref(D);s.replaceState(w,"",R),a&&u&&u({action:l,location:x.location,delta:0})}function b(S){return BN(S)}let x={get action(){return l},get location(){return e(o,s)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(iw,h),u=S,()=>{o.removeEventListener(iw,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 BN(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Kt(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 Jf,lw=class{constructor(e){if(VF(this,Jf,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(B1(this,Jf).has(e))return B1(this,Jf).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){B1(this,Jf).set(e,t)}};Jf=new WeakMap;var YF=new Set(["lazy","caseSensitive","path","id","index","children"]);function KF(e){return YF.has(e)}var QF=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function XF(e){return QF.has(e)}function ZF(e){return e.index===!0}function cy(e,t,n=[],r={}){return e.map((o,a)=>{let s=[...n,String(a)],l=typeof o.id=="string"?o.id:s.join("-");if(Kt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Kt(!r[l],`Found a route id collision on id "${l}". Route id's must be globally unique within Data Router usages`),ZF(o)){let u={...o,...t(o),id:l};return r[l]=u,u}else{let u={...o,...t(o),id:l,children:void 0};return r[l]=u,o.children&&(u.children=cy(o.children,t,s,r)),u}})}function zs(e,t,n="/"){return Pg(e,t,n,!1)}function Pg(e,t,n,r){let o=typeof t=="string"?el(t):t,a=Ta(o.pathname||"/",n);if(a==null)return null;let s=jN(e);eB(s);let l=null;for(let u=0;l==null&&u<s.length;++u){let d=dB(a);l=cB(s[u],d,r)}return l}function JF(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 jN(e,t=[],n=[],r=""){let o=(a,s,l)=>{let u={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};u.relativePath.startsWith("/")&&(Kt(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=di([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&(Kt(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),jN(a.children,t,p,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:sB(d,a.index),routesMeta:p})};return e.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))o(a,s);else for(let l of UN(a.path))o(a,s,l)}),t}function UN(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=UN(r.join("/")),l=[];return l.push(...s.map(u=>u===""?a:[a,u].join("/"))),o&&l.push(...s),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function eB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var tB=/^:[\w-]+$/,nB=3,rB=2,oB=1,aB=10,iB=-2,cw=e=>e==="*";function sB(e,t){let n=e.split("/"),r=n.length;return n.some(cw)&&(r+=iB),t&&(r+=rB),n.filter(o=>!cw(o)).reduce((o,a)=>o+(tB.test(a)?nB:a===""?oB:aB),r)}function lB(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 cB(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",s=[];for(let l=0;l<r.length;++l){let u=r[l],d=l===r.length-1,p=a==="/"?t:t.slice(a.length)||"/",h=uy({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},p),g=u.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=uy({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!h)return null;Object.assign(o,h.params),s.push({params:o,pathname:di([a,h.pathname]),pathnameBase:hB(di([a,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(a=di([a,h.pathnameBase]))}return s}function uy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=uB(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:h},g)=>{if(p==="*"){let b=l[g]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const y=l[g];return h&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:s,pattern:e}}function uB(e,t=!1,n=!0){vr(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,l,u)=>(r.push({paramName:l,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 dB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vr(!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 Ta(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 fB(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?el(e):e;return{pathname:n?n.startsWith("/")?n:pB(n,t):t,search:mB(r),hash:gB(o)}}function pB(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 j1(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 HN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function BT(e){let t=HN(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function jT(e,t,n,r=!1){let o;typeof e=="string"?o=el(e):(o={...e},Kt(!o.pathname||!o.pathname.includes("?"),j1("?","pathname","search",o)),Kt(!o.pathname||!o.pathname.includes("#"),j1("#","pathname","hash",o)),Kt(!o.search||!o.search.includes("#"),j1("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,l;if(s==null)l=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("/")}l=h>=0?t[h]:"/"}let u=fB(o,l),d=s&&s!=="/"&&s.endsWith("/"),p=(a||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}var di=e=>e.join("/").replace(/\/\/+/g,"/"),hB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,dy=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 Mp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var zN=["POST","PUT","PATCH","DELETE"],yB=new Set(zN),bB=["GET",...zN],vB=new Set(bB),EB=new Set([301,302,303,307,308]),xB=new Set([307,308]),U1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},TB={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Cf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},UT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SB=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),$N="remix-router-transitions",VN=Symbol("ResetLoaderData");function CB(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";Kt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||SB,a={},s=cy(e.routes,o,void 0,a),l,u=e.basename||"/",d=e.dataStrategy||DB,p={unstable_middleware:!1,...e.future},h=null,g=new Set,y=null,b=null,x=null,S=e.hydrationData!=null,T=zs(s,e.history.location,u),D=!1,w=null,R;if(T==null&&!e.patchRoutesOnNavigation){let ne=ca(404,{pathname:e.history.location.pathname}),{matches:J,route:ie}=xw(s);R=!0,T=J,w={[ie.id]:ne}}else if(T&&!e.hydrationData&&fo(T,s,e.history.location.pathname).active&&(T=null),T)if(T.some(ne=>ne.route.lazy))R=!1;else if(!T.some(ne=>ne.route.loader))R=!0;else{let ne=e.hydrationData?e.hydrationData.loaderData:null,J=e.hydrationData?e.hydrationData.errors:null;if(J){let ie=T.findIndex(ve=>J[ve.route.id]!==void 0);R=T.slice(0,ie+1).every(ve=>!ix(ve.route,ne,J))}else R=T.every(ie=>!ix(ie.route,ne,J))}else{R=!1,T=[];let ne=fo(null,s,e.history.location.pathname);ne.active&&ne.matches&&(D=!0,T=ne.matches)}let I,O={historyAction:e.history.action,location:e.history.location,matches:T,initialized:R,navigation:U1,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||w,fetchers:new Map,blockers:new Map},F="POP",j=!1,H,C=!1,M=new Map,$=null,z=!1,q=!1,Y=new Set,B=new Map,X=0,ae=-1,te=new Map,N=new Set,oe=new Map,K=new Map,P=new Set,ee=new Map,ce,re=null;function be(){if(h=e.history.listen(({action:ne,location:J,delta:ie})=>{if(ce){ce(),ce=void 0;return}vr(ee.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 ve=rt({currentLocation:O.location,nextLocation:J,historyAction:ne});if(ve&&ie!=null){let we=new Promise(Ye=>{ce=Ye});e.history.go(ie*-1),ht(ve,{state:"blocked",location:J,proceed(){ht(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),we.then(()=>e.history.go(ie))},reset(){let Ye=new Map(O.blockers);Ye.set(ve,Cf),Me({blockers:Ye})}});return}return Re(ne,J)}),n){UB(t,M);let ne=()=>HB(t,M);t.addEventListener("pagehide",ne),$=()=>t.removeEventListener("pagehide",ne)}return O.initialized||Re("POP",O.location,{initialHydration:!0}),I}function ye(){h&&h(),$&&$(),g.clear(),H&&H.abort(),O.fetchers.forEach((ne,J)=>Xe(J)),O.blockers.forEach((ne,J)=>Se(J))}function Ge(ne){return g.add(ne),()=>g.delete(ne)}function Me(ne,J={}){O={...O,...ne};let ie=[],ve=[];O.fetchers.forEach((we,Ye)=>{we.state==="idle"&&(P.has(Ye)?ie.push(Ye):ve.push(Ye))}),P.forEach(we=>{!O.fetchers.has(we)&&!B.has(we)&&ie.push(we)}),[...g].forEach(we=>we(O,{deletedFetchers:ie,viewTransitionOpts:J.viewTransitionOpts,flushSync:J.flushSync===!0})),ie.forEach(we=>Xe(we)),ve.forEach(we=>O.fetchers.delete(we))}function Oe(ne,J,{flushSync:ie}={}){let ve=O.actionData!=null&&O.navigation.formMethod!=null&&Uo(O.navigation.formMethod)&&O.navigation.state==="loading"&&ne.state?._isRedirect!==!0,we;J.actionData?Object.keys(J.actionData).length>0?we=J.actionData:we=null:ve?we=O.actionData:we=null;let Ye=J.loaderData?vw(O.loaderData,J.loaderData,J.matches||[],J.errors):O.loaderData,ot=O.blockers;ot.size>0&&(ot=new Map(ot),ot.forEach((et,bt)=>ot.set(bt,Cf)));let Ze=j===!0||O.navigation.formMethod!=null&&Uo(O.navigation.formMethod)&&ne.state?._isRedirect!==!0;l&&(s=l,l=void 0),z||F==="POP"||(F==="PUSH"?e.history.push(ne,ne.state):F==="REPLACE"&&e.history.replace(ne,ne.state));let ct;if(F==="POP"){let et=M.get(O.location.pathname);et&&et.has(ne.pathname)?ct={currentLocation:O.location,nextLocation:ne}:M.has(ne.pathname)&&(ct={currentLocation:ne,nextLocation:O.location})}else if(C){let et=M.get(O.location.pathname);et?et.add(ne.pathname):(et=new Set([ne.pathname]),M.set(O.location.pathname,et)),ct={currentLocation:O.location,nextLocation:ne}}Me({...J,actionData:we,loaderData:Ye,historyAction:F,location:ne,initialized:!0,navigation:U1,revalidation:"idle",restoreScrollPosition:pr(ne,J.matches||O.matches),preventScrollReset:Ze,blockers:ot},{viewTransitionOpts:ct,flushSync:ie===!0}),F="POP",j=!1,C=!1,z=!1,q=!1,re?.resolve(),re=null}async function Qe(ne,J){if(typeof ne=="number"){e.history.go(ne);return}let ie=ax(O.location,O.matches,u,ne,J?.fromRouteId,J?.relative),{path:ve,submission:we,error:Ye}=uw(!1,ie,J),ot=O.location,Ze=Lp(O.location,ve,J&&J.state);Ze={...Ze,...e.history.encodeLocation(Ze)};let ct=J&&J.replace!=null?J.replace:void 0,et="PUSH";ct===!0?et="REPLACE":ct===!1||we!=null&&Uo(we.formMethod)&&we.formAction===O.location.pathname+O.location.search&&(et="REPLACE");let bt=J&&"preventScrollReset"in J?J.preventScrollReset===!0:void 0,wt=(J&&J.flushSync)===!0,Ot=rt({currentLocation:ot,nextLocation:Ze,historyAction:et});if(Ot){ht(Ot,{state:"blocked",location:Ze,proceed(){ht(Ot,{state:"proceeding",proceed:void 0,reset:void 0,location:Ze}),Qe(ne,J)},reset(){let rn=new Map(O.blockers);rn.set(Ot,Cf),Me({blockers:rn})}});return}await Re(et,Ze,{submission:we,pendingError:Ye,preventScrollReset:bt,replace:J&&J.replace,enableViewTransition:J&&J.viewTransition,flushSync:wt})}function nt(){re||(re=zB()),kt(),Me({revalidation:"loading"});let ne=re.promise;return O.navigation.state==="submitting"?ne:O.navigation.state==="idle"?(Re(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),ne):(Re(F||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:C===!0}),ne)}async function Re(ne,J,ie){H&&H.abort(),H=null,F=ne,z=(ie&&ie.startUninterruptedRevalidation)===!0,Qn(O.location,O.matches),j=(ie&&ie.preventScrollReset)===!0,C=(ie&&ie.enableViewTransition)===!0;let ve=l||s,we=ie&&ie.overrideNavigation,Ye=ie?.initialHydration&&O.matches&&O.matches.length>0&&!D?O.matches:zs(ve,J,u),ot=(ie&&ie.flushSync)===!0;if(Ye&&O.initialized&&!q&&LB(O.location,J)&&!(ie&&ie.submission&&Uo(ie.submission.formMethod))){Oe(J,{matches:Ye},{flushSync:ot});return}let Ze=fo(Ye,ve,J.pathname);if(Ze.active&&Ze.matches&&(Ye=Ze.matches),!Ye){let{error:Wn,notFoundMatches:on,route:Xt}=mn(J.pathname);Oe(J,{matches:on,loaderData:{},errors:{[Xt.id]:Wn}},{flushSync:ot});return}H=new AbortController;let ct=pu(e.history,J,H.signal,ie&&ie.submission),et=new lw(e.unstable_getContext?await e.unstable_getContext():void 0),bt;if(ie&&ie.pendingError)bt=[Ol(Ye).route.id,{type:"error",error:ie.pendingError}];else if(ie&&ie.submission&&Uo(ie.submission.formMethod)){let Wn=await gt(ct,J,ie.submission,Ye,et,Ze.active,ie&&ie.initialHydration===!0,{replace:ie.replace,flushSync:ot});if(Wn.shortCircuited)return;if(Wn.pendingActionResult){let[on,Xt]=Wn.pendingActionResult;if(jo(Xt)&&Mp(Xt.error)&&Xt.error.status===404){H=null,Oe(J,{matches:Wn.matches,loaderData:{},errors:{[on]:Xt.error}});return}}Ye=Wn.matches||Ye,bt=Wn.pendingActionResult,we=H1(J,ie.submission),ot=!1,Ze.active=!1,ct=pu(e.history,ct.url,ct.signal)}let{shortCircuited:wt,matches:Ot,loaderData:rn,errors:jn}=await At(ct,J,Ye,et,Ze.active,we,ie&&ie.submission,ie&&ie.fetcherSubmission,ie&&ie.replace,ie&&ie.initialHydration===!0,ot,bt);wt||(H=null,Oe(J,{matches:Ot||Ye,...Ew(bt),loaderData:rn,errors:jn}))}async function gt(ne,J,ie,ve,we,Ye,ot,Ze={}){kt();let ct=BB(J,ie);if(Me({navigation:ct},{flushSync:Ze.flushSync===!0}),Ye){let wt=await Tn(ve,J.pathname,ne.signal);if(wt.type==="aborted")return{shortCircuited:!0};if(wt.type==="error"){let Ot=Ol(wt.partialMatches).route.id;return{matches:wt.partialMatches,pendingActionResult:[Ot,{type:"error",error:wt.error}]}}else if(wt.matches)ve=wt.matches;else{let{notFoundMatches:Ot,error:rn,route:jn}=mn(J.pathname);return{matches:Ot,pendingActionResult:[jn.id,{type:"error",error:rn}]}}}let et,bt=ep(ve,J);if(!bt.route.action&&!bt.route.lazy)et={type:"error",error:ca(405,{method:ne.method,pathname:J.pathname,routeId:bt.route.id})};else{let wt=Cu(o,a,ne,ve,bt,ot?[]:r,we),Ot=await Jt(ne,wt,we,null);if(et=Ot[bt.route.id],!et){for(let rn of ve)if(Ot[rn.route.id]){et=Ot[rn.route.id];break}}if(ne.signal.aborted)return{shortCircuited:!0}}if(Ll(et)){let wt;return Ze&&Ze.replace!=null?wt=Ze.replace:wt=gw(et.response.headers.get("Location"),new URL(ne.url),u)===O.location.pathname+O.location.search,await Le(ne,et,!0,{submission:ie,replace:wt}),{shortCircuited:!0}}if(jo(et)){let wt=Ol(ve,bt.route.id);return(Ze&&Ze.replace)!==!0&&(F="PUSH"),{matches:ve,pendingActionResult:[wt.route.id,et,bt.route.id]}}return{matches:ve,pendingActionResult:[bt.route.id,et]}}async function At(ne,J,ie,ve,we,Ye,ot,Ze,ct,et,bt,wt){let Ot=Ye||H1(J,ot),rn=ot||Ze||Sw(Ot),jn=!z&&!et;if(we){if(jn){let Gr=je(wt);Me({navigation:Ot,...Gr!==void 0?{actionData:Gr}:{}},{flushSync:bt})}let $t=await Tn(ie,J.pathname,ne.signal);if($t.type==="aborted")return{shortCircuited:!0};if($t.type==="error"){let Gr=Ol($t.partialMatches).route.id;return{matches:$t.partialMatches,loaderData:{},errors:{[Gr]:$t.error}}}else if($t.matches)ie=$t.matches;else{let{error:Gr,notFoundMatches:wa,route:Da}=mn(J.pathname);return{matches:wa,loaderData:{},errors:{[Da.id]:Gr}}}}let Wn=l||s,{dsMatches:on,revalidatingFetchers:Xt}=dw(ne,ve,o,a,e.history,O,ie,rn,J,et?[]:r,et===!0,q,Y,P,oe,N,Wn,u,e.patchRoutesOnNavigation!=null,wt);if(ae=++X,!e.dataStrategy&&!on.some($t=>$t.shouldLoad)&&Xt.length===0){let $t=zt();return Oe(J,{matches:ie,loaderData:{},errors:wt&&jo(wt[1])?{[wt[0]]:wt[1].error}:null,...Ew(wt),...$t?{fetchers:new Map(O.fetchers)}:{}},{flushSync:bt}),{shortCircuited:!0}}if(jn){let $t={};if(!we){$t.navigation=Ot;let Gr=je(wt);Gr!==void 0&&($t.actionData=Gr)}Xt.length>0&&($t.fetchers=mt(Xt)),Me($t,{flushSync:bt})}Xt.forEach($t=>{Je($t.key),$t.controller&&B.set($t.key,$t.controller)});let ls=()=>Xt.forEach($t=>Je($t.key));H&&H.signal.addEventListener("abort",ls);let{loaderResults:no,fetcherResults:Qo}=await Ut(on,Xt,ne,ve);if(ne.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",ls),Xt.forEach($t=>B.delete($t.key));let po=og(no);if(po)return await Le(ne,po.result,!0,{replace:ct}),{shortCircuited:!0};if(po=og(Qo),po)return N.add(po.key),await Le(ne,po.result,!0,{replace:ct}),{shortCircuited:!0};let{loaderData:cs,errors:us}=bw(O,ie,no,wt,Xt,Qo);et&&O.errors&&(us={...O.errors,...us});let Ad=zt(),Xo=Ke(ae),Si=Ad||Xo||Xt.length>0;return{matches:ie,loaderData:cs,errors:us,...Si?{fetchers:new Map(O.fetchers)}:{}}}function je(ne){if(ne&&!jo(ne[1]))return{[ne[0]]:ne[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function mt(ne){return ne.forEach(J=>{let ie=O.fetchers.get(J.key),ve=_f(void 0,ie?ie.data:void 0);O.fetchers.set(J.key,ve)}),new Map(O.fetchers)}async function lt(ne,J,ie,ve){Je(ne);let we=(ve&&ve.flushSync)===!0,Ye=l||s,ot=ax(O.location,O.matches,u,ie,J,ve?.relative),Ze=zs(Ye,ot,u),ct=fo(Ze,Ye,ot);if(ct.active&&ct.matches&&(Ze=ct.matches),!Ze){ge(ne,J,ca(404,{pathname:ot}),{flushSync:we});return}let{path:et,submission:bt,error:wt}=uw(!0,ot,ve);if(wt){ge(ne,J,wt,{flushSync:we});return}let Ot=ep(Ze,et),rn=new lw(e.unstable_getContext?await e.unstable_getContext():void 0),jn=(ve&&ve.preventScrollReset)===!0;if(bt&&Uo(bt.formMethod)){await ft(ne,J,et,Ot,Ze,rn,ct.active,we,jn,bt);return}oe.set(ne,{routeId:J,path:et}),await Ue(ne,J,et,Ot,Ze,rn,ct.active,we,jn,bt)}async function ft(ne,J,ie,ve,we,Ye,ot,Ze,ct,et){kt(),oe.delete(ne);function bt(Hn){if(!Hn.route.action&&!Hn.route.lazy){let ds=ca(405,{method:et.formMethod,pathname:ie,routeId:J});return ge(ne,J,ds,{flushSync:Ze}),!0}return!1}if(!ot&&bt(ve))return;let wt=O.fetchers.get(ne);de(ne,jB(et,wt),{flushSync:Ze});let Ot=new AbortController,rn=pu(e.history,ie,Ot.signal,et);if(ot){let Hn=await Tn(we,ie,rn.signal,ne);if(Hn.type==="aborted")return;if(Hn.type==="error"){ge(ne,J,Hn.error,{flushSync:Ze});return}else if(Hn.matches){if(we=Hn.matches,ve=ep(we,ie),bt(ve))return}else{ge(ne,J,ca(404,{pathname:ie}),{flushSync:Ze});return}}B.set(ne,Ot);let jn=X,Wn=Cu(o,a,rn,we,ve,r,Ye),Xt=(await Jt(rn,Wn,Ye,ne))[ve.route.id];if(rn.signal.aborted){B.get(ne)===Ot&&B.delete(ne);return}if(P.has(ne)){if(Ll(Xt)||jo(Xt)){de(ne,js(void 0));return}}else{if(Ll(Xt))if(B.delete(ne),ae>jn){de(ne,js(void 0));return}else return N.add(ne),de(ne,_f(et)),Le(rn,Xt,!1,{fetcherSubmission:et,preventScrollReset:ct});if(jo(Xt)){ge(ne,J,Xt.error);return}}let ls=O.navigation.location||O.location,no=pu(e.history,ls,Ot.signal),Qo=l||s,po=O.navigation.state!=="idle"?zs(Qo,O.navigation.location,u):O.matches;Kt(po,"Didn't find any matches after fetcher action");let cs=++X;te.set(ne,cs);let us=_f(et,Xt.data);O.fetchers.set(ne,us);let{dsMatches:Ad,revalidatingFetchers:Xo}=dw(no,Ye,o,a,e.history,O,po,et,ls,r,!1,q,Y,P,oe,N,Qo,u,e.patchRoutesOnNavigation!=null,[ve.route.id,Xt]);Xo.filter(Hn=>Hn.key!==ne).forEach(Hn=>{let ds=Hn.key,kd=O.fetchers.get(ds),ho=_f(void 0,kd?kd.data:void 0);O.fetchers.set(ds,ho),Je(ds),Hn.controller&&B.set(ds,Hn.controller)}),Me({fetchers:new Map(O.fetchers)});let Si=()=>Xo.forEach(Hn=>Je(Hn.key));Ot.signal.addEventListener("abort",Si);let{loaderResults:$t,fetcherResults:Gr}=await Ut(Ad,Xo,no,Ye);if(Ot.signal.aborted)return;if(Ot.signal.removeEventListener("abort",Si),te.delete(ne),B.delete(ne),Xo.forEach(Hn=>B.delete(Hn.key)),O.fetchers.has(ne)){let Hn=js(Xt.data);O.fetchers.set(ne,Hn)}let wa=og($t);if(wa)return Le(no,wa.result,!1,{preventScrollReset:ct});if(wa=og(Gr),wa)return N.add(wa.key),Le(no,wa.result,!1,{preventScrollReset:ct});let{loaderData:Da,errors:sl}=bw(O,po,$t,void 0,Xo,Gr);Ke(cs),O.navigation.state==="loading"&&cs>ae?(Kt(F,"Expected pending action"),H&&H.abort(),Oe(O.navigation.location,{matches:po,loaderData:Da,errors:sl,fetchers:new Map(O.fetchers)})):(Me({errors:sl,loaderData:vw(O.loaderData,Da,po,sl),fetchers:new Map(O.fetchers)}),q=!1)}async function Ue(ne,J,ie,ve,we,Ye,ot,Ze,ct,et){let bt=O.fetchers.get(ne);de(ne,_f(et,bt?bt.data:void 0),{flushSync:Ze});let wt=new AbortController,Ot=pu(e.history,ie,wt.signal);if(ot){let Xt=await Tn(we,ie,Ot.signal,ne);if(Xt.type==="aborted")return;if(Xt.type==="error"){ge(ne,J,Xt.error,{flushSync:Ze});return}else if(Xt.matches)we=Xt.matches,ve=ep(we,ie);else{ge(ne,J,ca(404,{pathname:ie}),{flushSync:Ze});return}}B.set(ne,wt);let rn=X,jn=Cu(o,a,Ot,we,ve,r,Ye),on=(await Jt(Ot,jn,Ye,ne))[ve.route.id];if(B.get(ne)===wt&&B.delete(ne),!Ot.signal.aborted){if(P.has(ne)){de(ne,js(void 0));return}if(Ll(on))if(ae>rn){de(ne,js(void 0));return}else{N.add(ne),await Le(Ot,on,!1,{preventScrollReset:ct});return}if(jo(on)){ge(ne,J,on.error);return}de(ne,js(on.data))}}async function Le(ne,J,ie,{submission:ve,fetcherSubmission:we,preventScrollReset:Ye,replace:ot}={}){J.response.headers.has("X-Remix-Revalidate")&&(q=!0);let Ze=J.response.headers.get("Location");Kt(Ze,"Expected a Location header on the redirect Response"),Ze=gw(Ze,new URL(ne.url),u);let ct=Lp(O.location,Ze,{_isRedirect:!0});if(n){let jn=!1;if(J.response.headers.has("X-Remix-Reload-Document"))jn=!0;else if(UT.test(Ze)){const Wn=BN(Ze,!0);jn=Wn.origin!==t.location.origin||Ta(Wn.pathname,u)==null}if(jn){ot?t.location.replace(Ze):t.location.assign(Ze);return}}H=null;let et=ot===!0||J.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:bt,formAction:wt,formEncType:Ot}=O.navigation;!ve&&!we&&bt&&wt&&Ot&&(ve=Sw(O.navigation));let rn=ve||we;if(xB.has(J.response.status)&&rn&&Uo(rn.formMethod))await Re(et,ct,{submission:{...rn,formAction:Ze},preventScrollReset:Ye||j,enableViewTransition:ie?C:void 0});else{let jn=H1(ct,ve);await Re(et,ct,{overrideNavigation:jn,fetcherSubmission:we,preventScrollReset:Ye||j,enableViewTransition:ie?C:void 0})}}async function Jt(ne,J,ie,ve){let we,Ye={};try{we=await RB(d,ne,J,ve,ie,!1)}catch(ot){return J.filter(Ze=>Ze.shouldLoad).forEach(Ze=>{Ye[Ze.route.id]={type:"error",error:ot}}),Ye}if(ne.signal.aborted)return Ye;for(let[ot,Ze]of Object.entries(we))if(MB(Ze)){let ct=Ze.result;Ye[ot]={type:"redirect",response:NB(ct,ne,ot,J,u)}}else Ye[ot]=await OB(Ze);return Ye}async function Ut(ne,J,ie,ve){let we=Jt(ie,ne,ve,null),Ye=Promise.all(J.map(async ct=>{if(ct.matches&&ct.match&&ct.request&&ct.controller){let bt=(await Jt(ct.request,ct.matches,ve,ct.key))[ct.match.route.id];return{[ct.key]:bt}}else return Promise.resolve({[ct.key]:{type:"error",error:ca(404,{pathname:ct.path})}})})),ot=await we,Ze=(await Ye).reduce((ct,et)=>Object.assign(ct,et),{});return{loaderResults:ot,fetcherResults:Ze}}function kt(){q=!0,oe.forEach((ne,J)=>{B.has(J)&&Y.add(J),Je(J)})}function de(ne,J,ie={}){O.fetchers.set(ne,J),Me({fetchers:new Map(O.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ge(ne,J,ie,ve={}){let we=Ol(O.matches,J);Xe(ne),Me({errors:{[we.route.id]:ie},fetchers:new Map(O.fetchers)},{flushSync:(ve&&ve.flushSync)===!0})}function ze(ne){return K.set(ne,(K.get(ne)||0)+1),P.has(ne)&&P.delete(ne),O.fetchers.get(ne)||TB}function Xe(ne){let J=O.fetchers.get(ne);B.has(ne)&&!(J&&J.state==="loading"&&te.has(ne))&&Je(ne),oe.delete(ne),te.delete(ne),N.delete(ne),P.delete(ne),Y.delete(ne),O.fetchers.delete(ne)}function Et(ne){let J=(K.get(ne)||0)-1;J<=0?(K.delete(ne),P.add(ne)):K.set(ne,J),Me({fetchers:new Map(O.fetchers)})}function Je(ne){let J=B.get(ne);J&&(J.abort(),B.delete(ne))}function en(ne){for(let J of ne){let ie=ze(J),ve=js(ie.data);O.fetchers.set(J,ve)}}function zt(){let ne=[],J=!1;for(let ie of N){let ve=O.fetchers.get(ie);Kt(ve,`Expected fetcher: ${ie}`),ve.state==="loading"&&(N.delete(ie),ne.push(ie),J=!0)}return en(ne),J}function Ke(ne){let J=[];for(let[ie,ve]of te)if(ve<ne){let we=O.fetchers.get(ie);Kt(we,`Expected fetcher: ${ie}`),we.state==="loading"&&(Je(ie),te.delete(ie),J.push(ie))}return en(J),J.length>0}function Ee(ne,J){let ie=O.blockers.get(ne)||Cf;return ee.get(ne)!==J&&ee.set(ne,J),ie}function Se(ne){O.blockers.delete(ne),ee.delete(ne)}function ht(ne,J){let ie=O.blockers.get(ne)||Cf;Kt(ie.state==="unblocked"&&J.state==="blocked"||ie.state==="blocked"&&J.state==="blocked"||ie.state==="blocked"&&J.state==="proceeding"||ie.state==="blocked"&&J.state==="unblocked"||ie.state==="proceeding"&&J.state==="unblocked",`Invalid blocker state transition: ${ie.state} -> ${J.state}`);let ve=new Map(O.blockers);ve.set(ne,J),Me({blockers:ve})}function rt({currentLocation:ne,nextLocation:J,historyAction:ie}){if(ee.size===0)return;ee.size>1&&vr(!1,"A router only supports one blocker at a time");let ve=Array.from(ee.entries()),[we,Ye]=ve[ve.length-1],ot=O.blockers.get(we);if(!(ot&&ot.state==="proceeding")&&Ye({currentLocation:ne,nextLocation:J,historyAction:ie}))return we}function mn(ne){let J=ca(404,{pathname:ne}),ie=l||s,{matches:ve,route:we}=xw(ie);return{notFoundMatches:ve,route:we,error:J}}function Lr(ne,J,ie){if(y=ne,x=J,b=ie||null,!S&&O.navigation===U1){S=!0;let ve=pr(O.location,O.matches);ve!=null&&Me({restoreScrollPosition:ve})}return()=>{y=null,x=null,b=null}}function xr(ne,J){return b&&b(ne,J.map(ve=>JF(ve,O.loaderData)))||ne.key}function Qn(ne,J){if(y&&x){let ie=xr(ne,J);y[ie]=x()}}function pr(ne,J){if(y){let ie=xr(ne,J),ve=y[ie];if(typeof ve=="number")return ve}return null}function fo(ne,J,ie){if(e.patchRoutesOnNavigation)if(ne){if(Object.keys(ne[0].params).length>0)return{active:!0,matches:Pg(J,ie,u,!0)}}else return{active:!0,matches:Pg(J,ie,u,!0)||[]};return{active:!1,matches:null}}async function Tn(ne,J,ie,ve){if(!e.patchRoutesOnNavigation)return{type:"success",matches:ne};let we=ne;for(;;){let Ye=l==null,ot=l||s,Ze=a;try{await e.patchRoutesOnNavigation({signal:ie,path:J,matches:we,fetcherKey:ve,patch:(bt,wt)=>{ie.aborted||fw(bt,wt,ot,Ze,o)}})}catch(bt){return{type:"error",error:bt,partialMatches:we}}finally{Ye&&!ie.aborted&&(s=[...s])}if(ie.aborted)return{type:"aborted"};let ct=zs(ot,J,u);if(ct)return{type:"success",matches:ct};let et=Pg(ot,J,u,!0);if(!et||we.length===et.length&&we.every((bt,wt)=>bt.route.id===et[wt].route.id))return{type:"success",matches:null};we=et}}function Mr(ne){a={},l=cy(ne,o,void 0,a)}function yt(ne,J){let ie=l==null;fw(ne,J,l||s,a,o),ie&&(s=[...s],Me({}))}return I={get basename(){return u},get future(){return p},get state(){return O},get routes(){return s},get window(){return t},initialize:be,subscribe:Ge,enableScrollRestoration:Lr,navigate:Qe,fetch:lt,revalidate:nt,createHref:ne=>e.history.createHref(ne),encodeLocation:ne=>e.history.encodeLocation(ne),getFetcher:ze,deleteFetcher:Et,dispose:ye,getBlocker:Ee,deleteBlocker:Se,patchRoutes:yt,_internalFetchControllers:B,_internalSetRoutes:Mr},I}function _B(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ax(e,t,n,r,o,a){let s,l;if(o){s=[];for(let d of t)if(s.push(d),d.route.id===o){l=d;break}}else s=t,l=t[t.length-1];let u=jT(r||".",BT(s),Ta(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&l){let d=HT(u.search);if(l.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!l.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:di([n,u.pathname])),Qs(u)}function uw(e,t,n){if(!n||!_B(n))return{path:t};if(n.formMethod&&!FB(n.formMethod))return{path:t,error:ca(405,{method:n.formMethod})};let r=()=>({path:t,error:ca(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=QN(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Uo(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(!Uo(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()}}}Kt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=lx(n.formData),u=n.formData;else if(n.body instanceof FormData)l=lx(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=yw(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=yw(l)}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(Uo(d.formMethod))return{path:t,submission:d};let p=el(t);return e&&p.search&&HT(p.search)&&l.append("index",""),p.search=`?${l}`,{path:Qs(p),submission:d}}function dw(e,t,n,r,o,a,s,l,u,d,p,h,g,y,b,x,S,T,D,w){let R=w?jo(w[1])?w[1].error:w[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(q=>q.route.id===z)}else if(w&&jo(w[1])){let z=w[0];F=s.findIndex(q=>q.route.id===z)-1}let j=w?w[1].statusCode:void 0,H=j&&j>=400,C={currentUrl:I,currentParams:a.matches[0]?.params||{},nextUrl:O,nextParams:s[0].params,...l,actionResult:R,actionStatus:j},M=s.map((z,q)=>{let{route:Y}=z,B=null;if(F!=null&&q>F?B=!1:Y.lazy?B=!0:Y.loader==null?B=!1:p?B=ix(Y,a.loaderData,a.errors):AB(a.loaderData,a.matches[q],z)&&(B=!0),B!==null)return sx(n,r,e,z,d,t,B);let X=H?!1:h||I.pathname+I.search===O.pathname+O.search||I.search!==O.search||kB(a.matches[q],z),ae={...C,defaultShouldRevalidate:X},te=fy(z,ae);return sx(n,r,e,z,d,t,te,ae)}),$=[];return b.forEach((z,q)=>{if(p||!s.some(K=>K.route.id===z.routeId)||y.has(q))return;let Y=a.fetchers.get(q),B=Y&&Y.state!=="idle"&&Y.data===void 0,X=zs(S,z.path,T);if(!X){if(D&&B)return;$.push({key:q,routeId:z.routeId,path:z.path,matches:null,match:null,request:null,controller:null});return}if(x.has(q))return;let ae=ep(X,z.path),te=new AbortController,N=pu(o,z.path,te.signal),oe=null;if(g.has(q))g.delete(q),oe=Cu(n,r,N,X,ae,d,t);else if(B)h&&(oe=Cu(n,r,N,X,ae,d,t));else{let K={...C,defaultShouldRevalidate:H?!1:h};fy(ae,K)&&(oe=Cu(n,r,N,X,ae,d,t,K))}oe&&$.push({key:q,routeId:z.routeId,path:z.path,matches:oe,match:ae,request:N,controller:te})}),{dsMatches:M,revalidatingFetchers:$}}function ix(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 AB(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function kB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fy(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function fw(e,t,n,r,o){let a;if(e){let u=r[e];Kt(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=>GN(u,d))),l=cy(s,o,[e||"_","patch",String(a?.length||"0")],r);a.push(...l)}function GN(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=>GN(n,o))):!1}var pw=new WeakMap,qN=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(Kt(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let s=pw.get(o);s||(s={},pw.set(o,s));let l=s[e];if(l)return l;let u=(async()=>{let d=KF(e),h=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)vr(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),s[e]=Promise.resolve();else if(h)vr(!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},hw=new WeakMap;function wB(e,t,n,r,o){let a=n[e.id];if(Kt(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=hw.get(a);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let h=(async()=>{Kt(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=XF(b),D=a[b]!==void 0&&b!=="hasErrorBoundary";S?vr(!S,"Route property "+b+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?vr(!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 hw.set(a,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let s=Object.keys(e.lazy),l=[],u;for(let p of s){if(o&&o.includes(p))continue;let h=qN({key:p,route:e,manifest:n,mapRouteProperties:r});h&&(l.push(h),p===t&&(u=h))}let d=l.length>0?Promise.all(l).then(()=>{}):void 0;return d?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function mw(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 DB(e){return e.matches.some(t=>t.route.unstable_middleware)?WN(e,!1,()=>mw(e),(t,n)=>({[n]:{type:"error",result:t}})):mw(e)}async function WN(e,t,n,r){let{matches:o,request:a,params:s,context:l}=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 YN({request:a,params:s,context:l},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 YN(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 l=t[a];if(!l)return r.handlerResult=await o(),r.handlerResult;let[u,d]=l,p=!1,h,g=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await YN(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 KN(e,t,n,r,o){let a=qN({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),s=wB(r.route,Uo(n.method)?"action":"loader",t,e,o);return{middleware:a,route:s.lazyRoutePromise,handler:s.lazyHandlerPromise}}function sx(e,t,n,r,o,a,s,l=null){let u=!1,d=KN(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:s,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler(p){return u=!0,l?typeof p=="boolean"?fy(r,{...l,defaultShouldRevalidate:p}):fy(r,l):s},resolve(p){return u||s||p&&n.method==="GET"&&(r.route.lazy||r.route.loader)?IB({request:n,match:r,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:p,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Cu(e,t,n,r,o,a,s,l=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:()=>!1,_lazyPromises:KN(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:sx(e,t,n,u,a,s,!0,l))}async function RB(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 WN(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 IB({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let s,l,u=Uo(e.method),d=u?"action":"loader",p=h=>{let g,y=new Promise((S,T)=>g=T);l=()=>g(),e.signal.addEventListener("abort",l);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 ca(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 ca(404,{pathname:y})}}catch(h){return{type:"error",result:h}}finally{l&&e.signal.removeEventListener("abort",l)}return s}async function OB(e){let{result:t,type:n}=e;if(XN(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 dy(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?Tw(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 dy(t.init?.status||500,void 0,t.data),statusCode:Mp(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Mp(t)?t.status:void 0}:Tw(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 NB(e,t,n,r,o){let a=e.headers.get("Location");if(Kt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!UT.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=ax(new URL(t.url),s,o,a),e.headers.set("Location",a)}return e}function gw(e,t,n){if(UT.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Ta(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function pu(e,t,n,r){let o=e.createURL(QN(t)).toString(),a={signal:n};if(r&&Uo(r.formMethod)){let{formMethod:s,formEncType:l}=r;a.method=s.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(r.json)):l==="text/plain"?a.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?a.body=lx(r.formData):a.body=r.formData}return new Request(o,a)}function lx(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function yw(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function PB(e,t,n,r=!1,o=!1){let a={},s=null,l,u=!1,d={},p=n&&jo(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(Kt(!Ll(y),"Cannot handle redirect results in processLoaderData"),jo(y)){let b=y.error;if(p!==void 0&&(b=p,p=void 0),s=s||{},o)s[g]=b;else{let x=Ol(e,g);s[x.route.id]==null&&(s[x.route.id]=b)}r||(a[g]=VN),u||(u=!0,l=Mp(y.error)?y.error.status:500),y.headers&&(d[g]=y.headers)}else a[g]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(l=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:l||200,loaderHeaders:d}}function bw(e,t,n,r,o,a){let{loaderData:s,errors:l}=PB(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(Kt(g,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(jo(g)){let y=Ol(e.matches,p?.route.id);l&&l[y.route.id]||(l={...l,[y.route.id]:g.error}),e.fetchers.delete(d)}else if(Ll(g))Kt(!1,"Unhandled fetcher revalidation redirect");else{let y=js(g.data);e.fetchers.set(d,y)}}),{loaderData:s,errors:l}}function vw(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==VN).reduce((a,[s,l])=>(a[s]=l,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 Ew(e){return e?jo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ol(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 xw(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 ca(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",r&&t&&n?l=`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"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l=`Route "${n}" does not match URL "${t}"`):e===404?(s="Not Found",l=`No route matches URL "${t}"`):e===405&&(s="Method Not Allowed",r&&t&&n?l=`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&&(l=`Invalid request method "${r.toUpperCase()}"`)),new dy(e||500,s,new Error(l),!0)}function og(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Ll(o))return{key:r,result:o}}}function QN(e){let t=typeof e=="string"?el(e):e;return Qs({...t,hash:""})}function LB(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function MB(e){return XN(e.result)&&EB.has(e.result.status)}function jo(e){return e.type==="error"}function Ll(e){return(e&&e.type)==="redirect"}function Tw(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function XN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function FB(e){return vB.has(e.toUpperCase())}function Uo(e){return yB.has(e.toUpperCase())}function HT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ep(e,t){let n=typeof t=="string"?el(t).search:t.search;if(e[e.length-1].route.index&&HT(n||""))return e[e.length-1];let r=HN(e);return r[r.length-1]}function Sw(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 H1(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 BB(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 _f(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 jB(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 js(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 UB(e,t){try{let n=e.sessionStorage.getItem($N);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 HB(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem($N,JSON.stringify(n))}catch(r){vr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function zB(){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 cc=k.createContext(null);cc.displayName="DataRouter";var yh=k.createContext(null);yh.displayName="DataRouterState";var zT=k.createContext({isTransitioning:!1});zT.displayName="ViewTransition";var ZN=k.createContext(new Map);ZN.displayName="Fetchers";var $B=k.createContext(null);$B.displayName="Await";var bi=k.createContext(null);bi.displayName="Navigation";var l0=k.createContext(null);l0.displayName="Location";var $a=k.createContext({outlet:null,matches:[],isDataRoute:!1});$a.displayName="Route";var $T=k.createContext(null);$T.displayName="RouteError";function VB(e,{relative:t}={}){Kt(bh(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(bi),{hash:o,pathname:a,search:s}=vh(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:di([n,a])),r.createHref({pathname:l,search:s,hash:o})}function bh(){return k.useContext(l0)!=null}function uc(){return Kt(bh(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(l0).location}var JN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function e3(e){k.useContext(bi).static||k.useLayoutEffect(e)}function VT(){let{isDataRoute:e}=k.useContext($a);return e?o9():GB()}function GB(){Kt(bh(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(cc),{basename:t,navigator:n}=k.useContext(bi),{matches:r}=k.useContext($a),{pathname:o}=uc(),a=JSON.stringify(BT(r)),s=k.useRef(!1);return e3(()=>{s.current=!0}),k.useCallback((u,d={})=>{if(vr(s.current,JN),!s.current)return;if(typeof u=="number"){n.go(u);return}let p=jT(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:di([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,a,o,e])}var qB=k.createContext(null);function WB(e){let t=k.useContext($a).outlet;return t&&k.createElement(qB.Provider,{value:e},t)}function dc(){let{matches:e}=k.useContext($a),t=e[e.length-1];return t?t.params:{}}function vh(e,{relative:t}={}){let{matches:n}=k.useContext($a),{pathname:r}=uc(),o=JSON.stringify(BT(n));return k.useMemo(()=>jT(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function YB(e,t,n,r){Kt(bh(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=k.useContext(bi),{matches:a}=k.useContext($a),s=a[a.length-1],l=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",p=s&&s.route;{let T=p&&p.path||"";n3(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=uc(),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=zs(e,{pathname:b});return vr(p||x!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),vr(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.`),JB(x&&x.map(T=>Object.assign({},T,{params:Object.assign({},l,T.params),pathname:di([d,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?d:di([d,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),a,n,r)}function KB(){let e=t3(),t=Mp(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=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:a},"ErrorBoundary")," or"," ",k.createElement("code",{style:a},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,s)}var QB=k.createElement(KB,null),XB=class extends k.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?k.createElement($a.Provider,{value:this.props.routeContext},k.createElement($T.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ZB({routeContext:e,match:t,children:n}){let r=k.useContext(cc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement($a.Provider,{value:e},n)}function JB(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);Kt(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,l=-1;if(n)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=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,l>=0?o=o.slice(0,l+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||QB,s&&(l<0&&p===0?(n3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):l===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=k.createElement(d.route.Component,null):d.route.element?T=d.route.element:T=u,k.createElement(ZB,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:T})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?k.createElement(XB,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}function GT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function e9(e){let t=k.useContext(cc);return Kt(t,GT(e)),t}function t9(e){let t=k.useContext(yh);return Kt(t,GT(e)),t}function n9(e){let t=k.useContext($a);return Kt(t,GT(e)),t}function qT(e){let t=n9(e),n=t.matches[t.matches.length-1];return Kt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function r9(){return qT("useRouteId")}function t3(){let e=k.useContext($T),t=t9("useRouteError"),n=qT("useRouteError");return e!==void 0?e:t.errors?.[n]}function o9(){let{router:e}=e9("useNavigate"),t=qT("useNavigate"),n=k.useRef(!1);return e3(()=>{n.current=!0}),k.useCallback(async(o,a={})=>{vr(n.current,JN),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var Cw={};function n3(e,t,n){!t&&!Cw[e]&&(Cw[e]=!0,vr(!1,n))}var _w={};function Aw(e,t){!e&&!_w[t]&&(_w[t]=!0,console.warn(t))}function a9(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&vr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:k.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&vr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:k.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&vr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var i9=["HydrateFallback","hydrateFallbackElement"],s9=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 l9({router:e,flushSync:t}){let[n,r]=k.useState(e.state),[o,a]=k.useState(),[s,l]=k.useState({isTransitioning:!1}),[u,d]=k.useState(),[p,h]=k.useState(),[g,y]=k.useState(),b=k.useRef(new Map),x=k.useCallback((w,{deletedFetchers:R,flushSync:I,viewTransitionOpts:O})=>{w.fetchers.forEach((j,H)=>{j.data!==void 0&&b.current.set(H,j.data)}),R.forEach(j=>b.current.delete(j)),Aw(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(Aw(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(w)):k.startTransition(()=>r(w));return}if(t&&I){t(()=>{p&&(u&&u.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let j=e.window.document.startViewTransition(()=>{t(()=>r(w))});j.finished.finally(()=>{t(()=>{d(void 0),h(void 0),a(void 0),l({isTransitioning:!1})})}),t(()=>h(j));return}p?(u&&u.resolve(),p.skipTransition(),y({state:w,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(w),l({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[e.window,t,p,u]);k.useLayoutEffect(()=>e.subscribe(x),[e,x]),k.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new s9)},[s]),k.useEffect(()=>{if(u&&o&&e.window){let w=o,R=u.promise,I=e.window.document.startViewTransition(async()=>{k.startTransition(()=>r(w)),await R});I.finished.finally(()=>{d(void 0),h(void 0),a(void 0),l({isTransitioning:!1})}),h(I)}},[o,u,e.window]),k.useEffect(()=>{u&&o&&n.location.key===o.location.key&&u.resolve()},[u,p,n.location,o]),k.useEffect(()=>{!s.isTransitioning&&g&&(a(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[s.isTransitioning,g]);let S=k.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,R,I)=>e.navigate(w,{state:R,preventScrollReset:I?.preventScrollReset}),replace:(w,R,I)=>e.navigate(w,{replace:!0,state:R,preventScrollReset:I?.preventScrollReset})}),[e]),T=e.basename||"/",D=k.useMemo(()=>({router:e,navigator:S,static:!1,basename:T}),[e,S,T]);return k.createElement(k.Fragment,null,k.createElement(cc.Provider,{value:D},k.createElement(yh.Provider,{value:n},k.createElement(ZN.Provider,{value:b.current},k.createElement(zT.Provider,{value:s},k.createElement(f9,{basename:T,location:n.location,navigationType:n.historyAction,navigator:S},k.createElement(c9,{routes:e.routes,future:e.future,state:n})))))),null)}var c9=k.memo(u9);function u9({routes:e,future:t,state:n}){return YB(e,void 0,n,t)}function d9(e){return WB(e.context)}function f9({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){Kt(!bh(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=k.useMemo(()=>({basename:s,navigator:o,static:a,future:{}}),[s,o,a]);typeof n=="string"&&(n=el(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:g="default"}=n,y=k.useMemo(()=>{let b=Ta(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 vr(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:k.createElement(bi.Provider,{value:l},k.createElement(l0.Provider,{children:t,value:y}))}var Lg="get",Mg="application/x-www-form-urlencoded";function c0(e){return e!=null&&typeof e.tagName=="string"}function p9(e){return c0(e)&&e.tagName.toLowerCase()==="button"}function h9(e){return c0(e)&&e.tagName.toLowerCase()==="form"}function m9(e){return c0(e)&&e.tagName.toLowerCase()==="input"}function g9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function y9(e,t){return e.button===0&&(!t||t==="_self")&&!g9(e)}var ag=null;function b9(){if(ag===null)try{new FormData(document.createElement("form"),0),ag=!1}catch{ag=!0}return ag}var v9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function z1(e){return e!=null&&!v9.has(e)?(vr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mg}"`),null):e}function E9(e,t){let n,r,o,a,s;if(h9(e)){let l=e.getAttribute("action");r=l?Ta(l,t):null,n=e.getAttribute("method")||Lg,o=z1(e.getAttribute("enctype"))||Mg,a=new FormData(e)}else if(p9(e)||m9(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?Ta(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Lg,o=z1(e.getAttribute("formenctype"))||z1(l.getAttribute("enctype"))||Mg,a=new FormData(l,e),!b9()){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(c0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Lg,r=null,o=Mg,s=e}return a&&o==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:s}}function WT(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function x9(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 T9(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 S9(e,t,n){let r=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await x9(a,n);return s.links?s.links():[]}return[]}));return k9(r.flat(1).filter(T9).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function kw(e,t,n,r,o,a){let s=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,l=(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)||l(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)||l(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 C9(e,t,{includeHydrateFallback:n}={}){return _9(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 _9(e){return[...new Set(e)]}function A9(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function k9(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let a=JSON.stringify(A9(o));return n.has(a)||(n.add(a),r.push({key:a,link:o})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var w9=new Set([100,101,204,205]);function D9(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&&Ta(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function r3(){let e=k.useContext(cc);return WT(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function R9(){let e=k.useContext(yh);return WT(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var YT=k.createContext(void 0);YT.displayName="FrameworkContext";function o3(){let e=k.useContext(YT);return WT(e,"You must render this element inside a <HydratedRouter> element"),e}function I9(e,t){let n=k.useContext(YT),[r,o]=k.useState(!1),[a,s]=k.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:d,onMouseLeave:p,onTouchStart:h}=t,g=k.useRef(null);k.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]),k.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:Af(l,y),onBlur:Af(u,b),onMouseEnter:Af(d,y),onMouseLeave:Af(p,b),onTouchStart:Af(h,y)}]:[!1,g,{}]}function Af(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function O9({page:e,...t}){let{router:n}=r3(),r=k.useMemo(()=>zs(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?k.createElement(P9,{page:e,matches:r,...t}):null}function N9(e){let{manifest:t,routeModules:n}=o3(),[r,o]=k.useState([]);return k.useEffect(()=>{let a=!1;return S9(e,t,n).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,n]),r}function P9({page:e,matches:t,...n}){let r=uc(),{manifest:o,routeModules:a}=o3(),{basename:s}=r3(),{loaderData:l,matches:u}=R9(),d=k.useMemo(()=>kw(e,t,u,o,r,"data"),[e,t,u,o,r]),p=k.useMemo(()=>kw(e,t,u,o,r,"assets"),[e,t,u,o,r]),h=k.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(w=>w.route.id===T.route.id)&&T.route.id in l&&a[T.route.id]?.shouldRevalidate||D.hasClientLoader?x=!0:b.add(T.route.id))}),b.size===0)return[];let S=D9(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,l,r,o,d,t,e,a]),g=k.useMemo(()=>C9(p,o),[p,o]),y=N9(p);return k.createElement(k.Fragment,null,h.map(b=>k.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),g.map(b=>k.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),y.map(({key:b,link:x})=>k.createElement("link",{key:b,...x})))}function L9(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var a3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{a3&&(window.__reactRouterVersion="7.6.2")}catch{}function M9(e,t){return CB({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:GF({window:t?.window}),hydrationData:F9(),routes:e,mapRouteProperties:a9,hydrationRouteProperties:i9,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function F9(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:B9(e.errors)}),e}function B9(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 dy(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 i3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,s3=k.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:a,replace:s,state:l,target:u,to:d,preventScrollReset:p,viewTransition:h,...g},y){let{basename:b}=k.useContext(bi),x=typeof d=="string"&&i3.test(d),S,T=!1;if(typeof d=="string"&&x&&(S=d,a3))try{let H=new URL(window.location.href),C=d.startsWith("//")?new URL(H.protocol+d):new URL(d),M=Ta(C.pathname,b);C.origin===H.origin&&M!=null?d=M+C.search+C.hash:T=!0}catch{vr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=VB(d,{relative:o}),[w,R,I]=I9(r,g),O=z9(d,{replace:s,state:l,target:u,preventScrollReset:p,relative:o,viewTransition:h});function F(H){t&&t(H),H.defaultPrevented||O(H)}let j=k.createElement("a",{...g,...I,href:S||D,onClick:T||a?t:F,ref:L9(y,R),target:u,"data-discover":!x&&n==="render"?"true":void 0});return w&&!x?k.createElement(k.Fragment,null,j,k.createElement(O9,{page:D})):j});s3.displayName="Link";var j9=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:a,to:s,viewTransition:l,children:u,...d},p){let h=vh(s,{relative:d.relative}),g=uc(),y=k.useContext(yh),{navigator:b,basename:x}=k.useContext(bi),S=y!=null&&W9(h)&&l===!0,T=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,D=g.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(D=D.toLowerCase(),w=w?w.toLowerCase():null,T=T.toLowerCase()),w&&x&&(w=Ta(w,x)||w);const R=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let I=D===T||!o&&D.startsWith(T)&&D.charAt(R)==="/",O=w!=null&&(w===T||!o&&w.startsWith(T)&&w.charAt(T.length)==="/"),F={isActive:I,isPending:O,isTransitioning:S},j=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 k.createElement(s3,{...d,"aria-current":j,className:H,ref:p,style:C,to:s,viewTransition:l},typeof u=="function"?u(F):u)});j9.displayName="NavLink";var U9=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=Lg,action:l,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:h,...g},y)=>{let b=G9(),x=q9(l,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",T=typeof l=="string"&&i3.test(l),D=w=>{if(u&&u(w),w.defaultPrevented)return;w.preventDefault();let R=w.nativeEvent.submitter,I=R?.getAttribute("formmethod")||s;b(R||w.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:o,state:a,relative:d,preventScrollReset:p,viewTransition:h})};return k.createElement("form",{ref:y,method:S,action:x,onSubmit:r?u:D,...g,"data-discover":!T&&e==="render"?"true":void 0})});U9.displayName="Form";function H9(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l3(e){let t=k.useContext(cc);return Kt(t,H9(e)),t}function z9(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s}={}){let l=VT(),u=uc(),d=vh(e,{relative:a});return k.useCallback(p=>{if(y9(p,t)){p.preventDefault();let h=n!==void 0?n:Qs(u)===Qs(d);l(e,{replace:h,state:r,preventScrollReset:o,relative:a,viewTransition:s})}},[u,l,d,n,r,t,e,o,a,s])}var $9=0,V9=()=>`__${String(++$9)}__`;function G9(){let{router:e}=l3("useSubmit"),{basename:t}=k.useContext(bi),n=r9();return k.useCallback(async(r,o={})=>{let{action:a,method:s,encType:l,formData:u,body:d}=E9(r,t);if(o.navigate===!1){let p=o.fetcherKey||V9();await e.fetch(p,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function q9(e,{relative:t}={}){let{basename:n}=k.useContext(bi),r=k.useContext($a);Kt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...vh(e||".",{relative:t})},s=uc();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(p=>p==="")){l.delete("index"),u.filter(h=>h).forEach(h=>l.append("index",h));let p=l.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:di([n,a.pathname])),Qs(a)}function W9(e,t={}){let n=k.useContext(zT);Kt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=l3("useViewTransitionState"),o=vh(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Ta(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ta(n.nextLocation.pathname,r)||n.nextLocation.pathname;return uy(o.pathname,s)!=null||uy(o.pathname,a)!=null}[...w9];var u0=MN();const $s=LN(u0);/**
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 Y9(e){return k.createElement(l9,{flushSync:u0.flushSync,...e})}const K9="modulepreload",Q9=function(e){return"/"+e},ww={},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 l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");o=s(n.map(d=>{if(d=Q9(d),d in ww)return;ww[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":K9,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 l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})};function ns(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 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 X9(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 Z9(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 J9=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(Z9(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=X9(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}(),Yr="-ms-",py="-moz-",ln="-webkit-",c3="comm",KT="rule",QT="decl",ej="@import",u3="@keyframes",tj="@layer",nj=Math.abs,d0=String.fromCharCode,rj=Object.assign;function oj(e,t){return Ur(e,0)^45?(((t<<2^Ur(e,0))<<2^Ur(e,1))<<2^Ur(e,2))<<2^Ur(e,3):0}function d3(e){return e.trim()}function aj(e,t){return(e=t.exec(e))?e[0]:e}function cn(e,t,n){return e.replace(t,n)}function ux(e,t){return e.indexOf(t)}function Ur(e,t){return e.charCodeAt(t)|0}function Fp(e,t,n){return e.slice(t,n)}function ii(e){return e.length}function XT(e){return e.length}function ig(e,t){return t.push(e),e}function ij(e,t){return e.map(t).join("")}var f0=1,Fu=1,f3=0,Ao=0,br=0,td="";function p0(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:f0,column:Fu,length:s,return:""}}function kf(e,t){return rj(p0("",null,null,"",null,null,0),e,{length:-e.length},t)}function sj(){return br}function lj(){return br=Ao>0?Ur(td,--Ao):0,Fu--,br===10&&(Fu=1,f0--),br}function Vo(){return br=Ao<f3?Ur(td,Ao++):0,Fu++,br===10&&(Fu=1,f0++),br}function fi(){return Ur(td,Ao)}function Fg(){return Ao}function Eh(e,t){return Fp(td,e,t)}function Bp(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 p3(e){return f0=Fu=1,f3=ii(td=e),Ao=0,[]}function h3(e){return td="",e}function Bg(e){return d3(Eh(Ao-1,dx(e===91?e+2:e===40?e+1:e)))}function cj(e){for(;(br=fi())&&br<33;)Vo();return Bp(e)>2||Bp(br)>3?"":" "}function uj(e,t){for(;--t&&Vo()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return Eh(e,Fg()+(t<6&&fi()==32&&Vo()==32))}function dx(e){for(;Vo();)switch(br){case e:return Ao;case 34:case 39:e!==34&&e!==39&&dx(br);break;case 40:e===41&&dx(e);break;case 92:Vo();break}return Ao}function dj(e,t){for(;Vo()&&e+br!==57;)if(e+br===84&&fi()===47)break;return"/*"+Eh(t,Ao-1)+"*"+d0(e===47?e:Vo())}function fj(e){for(;!Bp(fi());)Vo();return Eh(e,Ao)}function pj(e){return h3(jg("",null,null,null,[""],e=p3(e),0,[0],e))}function jg(e,t,n,r,o,a,s,l,u){for(var d=0,p=0,h=s,g=0,y=0,b=0,x=1,S=1,T=1,D=0,w="",R=o,I=a,O=r,F=w;S;)switch(b=D,D=Vo()){case 40:if(b!=108&&Ur(F,h-1)==58){ux(F+=cn(Bg(D),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:F+=Bg(D);break;case 9:case 10:case 13:case 32:F+=cj(b);break;case 92:F+=uj(Fg()-1,7);continue;case 47:switch(fi()){case 42:case 47:ig(hj(dj(Vo(),Fg()),t,n),u);break;default:F+="/"}break;case 123*x:l[d++]=ii(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&&ii(F)-h&&ig(y>32?Rw(F+";",r,n,h-1):Rw(cn(F," ","")+";",r,n,h-2),u);break;case 59:F+=";";default:if(ig(O=Dw(F,t,n,d,p,o,l,w,R=[],I=[],h),a),D===123)if(p===0)jg(F,t,O,O,R,a,h,l,I);else switch(g===99&&Ur(F,3)===110?100:g){case 100:case 108:case 109:case 115:jg(e,O,O,r&&ig(Dw(e,O,O,0,0,o,l,w,o,R=[],h),I),o,I,h,l,r?R:I);break;default:jg(F,O,O,O,[""],I,0,l,I)}}d=p=y=0,x=T=1,w=F="",h=s;break;case 58:h=1+ii(F),y=b;default:if(x<1){if(D==123)--x;else if(D==125&&x++==0&&lj()==125)continue}switch(F+=d0(D),D*x){case 38:T=p>0?1:(F+="\f",-1);break;case 44:l[d++]=(ii(F)-1)*T,T=1;break;case 64:fi()===45&&(F+=Bg(Vo())),g=fi(),p=h=ii(w=F+=fj(Fg())),D++;break;case 45:b===45&&ii(F)==2&&(x=0)}}return a}function Dw(e,t,n,r,o,a,s,l,u,d,p){for(var h=o-1,g=o===0?a:[""],y=XT(g),b=0,x=0,S=0;b<r;++b)for(var T=0,D=Fp(e,h+1,h=nj(x=s[b])),w=e;T<y;++T)(w=d3(x>0?g[T]+" "+D:cn(D,/&\f/g,g[T])))&&(u[S++]=w);return p0(e,t,n,o===0?KT:l,u,d,p)}function hj(e,t,n){return p0(e,t,n,c3,d0(sj()),Fp(e,2,-2),0)}function Rw(e,t,n,r){return p0(e,t,n,QT,Fp(e,0,r),Fp(e,r+1,-1),r)}function _u(e,t){for(var n="",r=XT(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function mj(e,t,n,r){switch(e.type){case tj:if(e.children.length)break;case ej:case QT:return e.return=e.return||e.value;case c3:return"";case u3:return e.return=e.value+"{"+_u(e.children,r)+"}";case KT:e.value=e.props.join(",")}return ii(n=_u(e.children,r))?e.return=e.value+"{"+n+"}":""}function gj(e){var t=XT(e);return function(n,r,o,a){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,a)||"";return s}}function yj(e){return function(t){t.root||(t=t.return)&&e(t)}}function m3(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bj=function(t,n,r){for(var o=0,a=0;o=a,a=fi(),o===38&&a===12&&(n[r]=1),!Bp(a);)Vo();return Eh(t,Ao)},vj=function(t,n){var r=-1,o=44;do switch(Bp(o)){case 0:o===38&&fi()===12&&(n[r]=1),t[r]+=bj(Ao-1,n,r);break;case 2:t[r]+=Bg(o);break;case 4:if(o===44){t[++r]=fi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=d0(o)}while(o=Vo());return t},Ej=function(t,n){return h3(vj(p3(t),n))},Iw=new WeakMap,xj=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&&!Iw.get(r))&&!o){Iw.set(t,!0);for(var a=[],s=Ej(n,a),l=r.props,u=0,d=0;u<s.length;u++)for(var p=0;p<l.length;p++,d++)t.props[d]=a[u]?s[u].replace(/&\f/g,l[p]):l[p]+" "+s[u]}}},Tj=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function g3(e,t){switch(oj(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+py+e+Yr+e+e;case 6828:case 4268:return ln+e+Yr+e+e;case 6165:return ln+e+Yr+"flex-"+e+e;case 5187:return ln+e+cn(e,/(\w+).+(:[^]+)/,ln+"box-$1$2"+Yr+"flex-$1$2")+e;case 5443:return ln+e+Yr+"flex-item-"+cn(e,/flex-|-self/,"")+e;case 4675:return ln+e+Yr+"flex-line-pack"+cn(e,/align-content|flex-|-self/,"")+e;case 5548:return ln+e+Yr+cn(e,"shrink","negative")+e;case 5292:return ln+e+Yr+cn(e,"basis","preferred-size")+e;case 6060:return ln+"box-"+cn(e,"-grow","")+ln+e+Yr+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"+Yr+"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(ii(e)-1-t>6)switch(Ur(e,t+1)){case 109:if(Ur(e,t+4)!==45)break;case 102:return cn(e,/(.+:)(.+)-([^]+)/,"$1"+ln+"$2-$3$1"+py+(Ur(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ux(e,"stretch")?g3(cn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ur(e,t+1)!==115)break;case 6444:switch(Ur(e,ii(e)-3-(~ux(e,"!important")&&10))){case 107:return cn(e,":",":"+ln)+e;case 101:return cn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ln+(Ur(e,14)===45?"inline-":"")+"box$3$1"+ln+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Ur(e,t+11)){case 114:return ln+e+Yr+cn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ln+e+Yr+cn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ln+e+Yr+cn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ln+e+Yr+e+e}return e}var Sj=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case QT:t.return=g3(t.value,t.length);break;case u3:return _u([kf(t,{value:cn(t.value,"@","@"+ln)})],o);case KT:if(t.length)return ij(t.props,function(a){switch(aj(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _u([kf(t,{props:[cn(a,/:(read-\w+)/,":"+py+"$1")]})],o);case"::placeholder":return _u([kf(t,{props:[cn(a,/:(plac\w+)/,":"+ln+"input-$1")]}),kf(t,{props:[cn(a,/:(plac\w+)/,":"+py+"$1")]}),kf(t,{props:[cn(a,/:(plac\w+)/,Yr+"input-$1")]})],o)}return""})}},Cj=[Sj],_j=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||Cj,a={},s,l=[];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;l.push(x)});var u,d=[xj,Tj];{var p,h=[mj,yj(function(x){p.insert(x)})],g=gj(d.concat(o,h)),y=function(S){return _u(pj(S),g)};u=function(S,T,D,w){p=D,y(S?S+"{"+T.styles+"}":T.styles),w&&(b.inserted[T.name]=!0)}}var b={key:n,sheet:new J9({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(l),b},$1={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 Ow;function Aj(){if(Ow)return un;Ow=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,l=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 w(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 l:case p:case b:case y:case s:return I;default:return O}}case n:return O}}}function R(I){return w(I)===d}return un.AsyncMode=u,un.ConcurrentMode=d,un.ContextConsumer=l,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)||w(I)===u},un.isConcurrentMode=R,un.isContextConsumer=function(I){return w(I)===l},un.isContextProvider=function(I){return w(I)===s},un.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},un.isForwardRef=function(I){return w(I)===p},un.isFragment=function(I){return w(I)===r},un.isLazy=function(I){return w(I)===b},un.isMemo=function(I){return w(I)===y},un.isPortal=function(I){return w(I)===n},un.isProfiler=function(I){return w(I)===a},un.isStrictMode=function(I){return w(I)===o},un.isSuspense=function(I){return w(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===l||I.$$typeof===p||I.$$typeof===S||I.$$typeof===T||I.$$typeof===D||I.$$typeof===x)},un.typeOf=w,un}var Nw;function kj(){return Nw||(Nw=1,$1.exports=Aj()),$1.exports}var V1,Pw;function wj(){if(Pw)return V1;Pw=1;var e=kj(),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 l=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 w=s(b),R=s(x),I=0;I<D.length;++I){var O=D[I];if(!n[O]&&!(S&&S[O])&&!(R&&R[O])&&!(w&&w[O])){var F=p(x,O);try{l(b,O,F)}catch{}}}}return b}return V1=y,V1}wj();var Dj=!0;function y3(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ZT=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Dj===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},JT=function(t,n,r){ZT(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 Rj(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 Ij={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},Oj=/[A-Z]|^ms/g,Nj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b3=function(t){return t.charCodeAt(1)===45},Lw=function(t){return t!=null&&typeof t!="boolean"},G1=m3(function(e){return b3(e)?e:e.replace(Oj,"-$&").toLowerCase()}),Mw=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Nj,function(r,o,a){return si={name:o,styles:a,next:si},o})}return Ij[t]!==1&&!b3(t)&&typeof n=="number"&&n!==0?n+"px":n};function jp(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 si={name:o.name,styles:o.styles,next:si},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)si={name:s.name,styles:s.styles,next:si},s=s.next;var l=a.styles+";";return l}return Pj(e,t,n)}case"function":{if(e!==void 0){var u=si,d=n(e);return si=u,jp(e,t,d)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function Pj(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=jp(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=a+"{"+t[l]+"}":Lw(l)&&(r+=G1(a)+":"+Mw(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)Lw(s[u])&&(r+=G1(a)+":"+Mw(a,s[u])+";");else{var d=jp(e,t,s);switch(a){case"animation":case"animationName":{r+=G1(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var Fw=/label:\s*([^\s;{]+)\s*(;|$)/g,si;function xh(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="";si=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=jp(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=jp(n,t,e[l]),r){var u=a;o+=u[l]}Fw.lastIndex=0;for(var d="",p;(p=Fw.exec(o))!==null;)d+="-"+p[1];var h=Rj(o)+d;return{name:h,styles:o,next:si}}var Lj=function(t){return t()},v3=ox.useInsertionEffect?ox.useInsertionEffect:!1,E3=v3||Lj,Bw=v3||k.useLayoutEffect,x3=k.createContext(typeof HTMLElement<"u"?_j({key:"css"}):null);x3.Provider;var eS=function(t){return k.forwardRef(function(n,r){var o=k.useContext(x3);return t(n,o,r)})},nd=k.createContext({}),tS={}.hasOwnProperty,fx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mj=function(t,n){var r={};for(var o in n)tS.call(n,o)&&(r[o]=n[o]);return r[fx]=t,r},Fj=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ZT(n,r,o),E3(function(){return JT(n,r,o)}),null},Bj=eS(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[fx],a=[r],s="";typeof e.className=="string"?s=y3(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=xh(a,void 0,k.useContext(nd));s+=t.key+"-"+l.name;var u={};for(var d in e)tS.call(e,d)&&d!=="css"&&d!==fx&&(u[d]=e[d]);return u.className=s,n&&(u.ref=n),k.createElement(k.Fragment,null,k.createElement(Fj,{cache:t,serialized:l,isStringTag:typeof o=="string"}),k.createElement(o,u))}),jj=Bj,jw=function(t,n){var r=arguments;if(n==null||!tS.call(n,"css"))return k.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=jj,a[1]=Mj(t,n);for(var s=2;s<o;s++)a[s]=r[s];return k.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(jw||(jw={}));var Uj=eS(function(e,t){var n=e.styles,r=xh([n],void 0,k.useContext(nd)),o=k.useRef();return Bw(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}),l=!1,u=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",a),s.hydrate([u])),o.current=[s,l],function(){s.flush()}},[t]),Bw(function(){var a=o.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&JT(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 nS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xh(t)}function tl(){var e=nS.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 Hj=/^((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)-.*))$/,zj=m3(function(e){return Hj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),$j=zj,Vj=function(t){return t!=="theme"},Uw=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?$j:Vj},Hw=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},Gj=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ZT(n,r,o),E3(function(){return JT(n,r,o)}),null},qj=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 l=Hw(t,n,r),u=l||Uw(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=eS(function(S,T,D){var w=d&&S.as||o,R="",I=[],O=S;if(S.theme==null){O={};for(var F in S)O[F]=S[F];O.theme=k.useContext(nd)}typeof S.className=="string"?R=y3(T.registered,I,S.className):S.className!=null&&(R=S.className+" ");var j=xh(h.concat(I),T.registered,O);R+=T.key+"-"+j.name,s!==void 0&&(R+=" "+s);var H=d&&l===void 0?Uw(w):u,C={};for(var M in S)d&&M==="as"||H(M)&&(C[M]=S[M]);return C.className=R,D&&(C.ref=D),k.createElement(k.Fragment,null,k.createElement(Gj,{cache:T,serialized:j,isStringTag:typeof w=="string"}),k.createElement(w,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=l,Object.defineProperty(x,"toString",{value:function(){return"."+s}}),x.withComponent=function(S,T){var D=e(S,cx({},n,T,{shouldForwardProp:Hw(x,T,!0)}));return D.apply(void 0,h)},x}},Wj=["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"],hy=qj.bind(null);Wj.forEach(function(e){hy[e]=hy(e)});function Yj(e){return e==null||Object.keys(e).length===0}function T3(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Yj(o)?n:o):t;return v.jsx(Uj,{styles:r})}function S3(e,t){return hy(e,t)}function Kj(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const zw=[];function $w(e){return zw[0]=e,xh(zw)}var q1={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 Vw;function Qj(){if(Vw)return vn;Vw=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"),l=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 l: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=l,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)===l},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===l||x.$$typeof===y||x.getModuleId!==void 0)},vn.typeOf=b,vn}var Gw;function Xj(){return Gw||(Gw=1,q1.exports=Qj()),q1.exports}var C3=Xj();function ci(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 _3(e){if(k.isValidElement(e)||C3.isValidElementType(e)||!ci(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_3(e[n])}),t}function Pr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ci(e)&&ci(t)&&Object.keys(t).forEach(o=>{k.isValidElement(t[o])||C3.isValidElementType(t[o])?r[o]=t[o]:ci(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ci(e[o])?r[o]=Pr(e[o],t[o],n):n.clone?r[o]=ci(t[o])?_3(t[o]):t[o]:r[o]=t[o]}),r}const Zj=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 Jj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Zj(t),s=Object.keys(a);function l(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]):l(g)}function h(g){const y=s.indexOf(g);return y===0?l(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:l,down:u,between:d,only:p,not:h,unit:n,...o}}function eU(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 tU(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function nU(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 rU(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),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 oU={borderRadius:4};function dp(e,t){return t?Pr(e,t,{clone:!1}):e}const h0={xs:0,sm:600,md:900,lg:1200,xl:1536},qw={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${h0[e]}px)`},aU={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:h0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ja(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||qw;return t.reduce((s,l,u)=>(s[a.up(a.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const a=r.breakpoints||qw;return Object.keys(t).reduce((s,l)=>{if(tU(a.keys,l)){const u=nU(r.containerQueries?r:aU,l);u&&(s[u]=n(t[l],l))}else if(Object.keys(a.values||h0).includes(l)){const u=a.up(l);s[u]=n(t[l],l)}else{const u=l;s[u]=t[u]}return s},{})}return n(t)}function A3(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function k3(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function iU(e,...t){const n=A3(e),r=[n,...t].reduce((o,a)=>Pr(o,a),{});return k3(Object.keys(n),r)}function sU(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 W1({values:e,breakpoints:t,base:n}){const r=n||sU(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((s,l,u)=>(Array.isArray(e)?(s[l]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[a],a=l):s[l]=e,s),{})}function Ne(e){if(typeof e!="string")throw new Error(ns(7));return e.charAt(0).toUpperCase()+e.slice(1)}function m0(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 my(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=m0(e,n)||r,t&&(o=t(o,r,e)),o}function dr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,d=m0(u,r)||{};return ja(s,l,h=>{let g=my(d,o,h);return h===g&&typeof h=="string"&&(g=my(d,o,`${t}${h==="default"?"":Ne(h)}`,h)),n===!1?g:{[n]:g}})};return a.propTypes={},a.filterProps=[t],a}function lU(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cU={m:"margin",p:"padding"},uU={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ww={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dU=lU(e=>{if(e.length>2)if(Ww[e])e=Ww[e];else return[e];const[t,n]=e.split(""),r=cU[t],o=uU[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),rS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rS,...oS];function Th(e,t,n,r){const o=m0(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),l=o[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function g0(e){return Th(e,"spacing",8)}function Xl(e,t){return typeof t=="string"||t==null?t:e(t)}function fU(e,t){return n=>e.reduce((r,o)=>(r[o]=Xl(t,n),r),{})}function pU(e,t,n,r){if(!t.includes(n))return null;const o=dU(n),a=fU(o,r),s=e[n];return ja(e,s,a)}function w3(e,t){const n=g0(e.theme);return Object.keys(e).map(r=>pU(e,t,r,n)).reduce(dp,{})}function Jn(e){return w3(e,rS)}Jn.propTypes={};Jn.filterProps=rS;function er(e){return w3(e,oS)}er.propTypes={};er.filterProps=oS;function aS(e=8,t=g0({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 y0(...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]?dp(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pa(e){return typeof e!="number"?e:`${e}px solid`}function _a(e,t){return dr({prop:e,themeKey:"borders",transform:t})}const hU=_a("border",pa),mU=_a("borderTop",pa),gU=_a("borderRight",pa),yU=_a("borderBottom",pa),bU=_a("borderLeft",pa),vU=_a("borderColor"),EU=_a("borderTopColor"),xU=_a("borderRightColor"),TU=_a("borderBottomColor"),SU=_a("borderLeftColor"),CU=_a("outline",pa),_U=_a("outlineColor"),b0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Th(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Xl(t,r)});return ja(e,e.borderRadius,n)}return null};b0.propTypes={};b0.filterProps=["borderRadius"];y0(hU,mU,gU,yU,bU,vU,EU,xU,TU,SU,b0,CU,_U);const v0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Th(e.theme,"spacing",8),n=r=>({gap:Xl(t,r)});return ja(e,e.gap,n)}return null};v0.propTypes={};v0.filterProps=["gap"];const E0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Th(e.theme,"spacing",8),n=r=>({columnGap:Xl(t,r)});return ja(e,e.columnGap,n)}return null};E0.propTypes={};E0.filterProps=["columnGap"];const x0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Th(e.theme,"spacing",8),n=r=>({rowGap:Xl(t,r)});return ja(e,e.rowGap,n)}return null};x0.propTypes={};x0.filterProps=["rowGap"];const AU=dr({prop:"gridColumn"}),kU=dr({prop:"gridRow"}),wU=dr({prop:"gridAutoFlow"}),DU=dr({prop:"gridAutoColumns"}),RU=dr({prop:"gridAutoRows"}),IU=dr({prop:"gridTemplateColumns"}),OU=dr({prop:"gridTemplateRows"}),NU=dr({prop:"gridTemplateAreas"}),PU=dr({prop:"gridArea"});y0(v0,E0,x0,AU,kU,wU,DU,RU,IU,OU,NU,PU);function Au(e,t){return t==="grey"?t:e}const LU=dr({prop:"color",themeKey:"palette",transform:Au}),MU=dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Au}),FU=dr({prop:"backgroundColor",themeKey:"palette",transform:Au});y0(LU,MU,FU);function Ho(e){return e<=1&&e!==0?`${e*100}%`:e}const BU=dr({prop:"width",transform:Ho}),iS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||h0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ho(n)}};return ja(e,e.maxWidth,t)}return null};iS.filterProps=["maxWidth"];const jU=dr({prop:"minWidth",transform:Ho}),UU=dr({prop:"height",transform:Ho}),HU=dr({prop:"maxHeight",transform:Ho}),zU=dr({prop:"minHeight",transform:Ho});dr({prop:"size",cssProperty:"width",transform:Ho});dr({prop:"size",cssProperty:"height",transform:Ho});const $U=dr({prop:"boxSizing"});y0(BU,iS,jU,UU,HU,zU,$U);const Sh={border:{themeKey:"borders",transform:pa},borderTop:{themeKey:"borders",transform:pa},borderRight:{themeKey:"borders",transform:pa},borderBottom:{themeKey:"borders",transform:pa},borderLeft:{themeKey:"borders",transform:pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b0},color:{themeKey:"palette",transform:Au},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Au},backgroundColor:{themeKey:"palette",transform:Au},p:{style:er},pt:{style:er},pr:{style:er},pb:{style:er},pl:{style:er},px:{style:er},py:{style:er},padding:{style:er},paddingTop:{style:er},paddingRight:{style:er},paddingBottom:{style:er},paddingLeft:{style:er},paddingX:{style:er},paddingY:{style:er},paddingInline:{style:er},paddingInlineStart:{style:er},paddingInlineEnd:{style:er},paddingBlock:{style:er},paddingBlockStart:{style:er},paddingBlockEnd:{style:er},m:{style:Jn},mt:{style:Jn},mr:{style:Jn},mb:{style:Jn},ml:{style:Jn},mx:{style:Jn},my:{style:Jn},margin:{style:Jn},marginTop:{style:Jn},marginRight:{style:Jn},marginBottom:{style:Jn},marginLeft:{style:Jn},marginX:{style:Jn},marginY:{style:Jn},marginInline:{style:Jn},marginInlineStart:{style:Jn},marginInlineEnd:{style:Jn},marginBlock:{style:Jn},marginBlockStart:{style:Jn},marginBlockEnd:{style:Jn},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:v0},rowGap:{style:x0},columnGap:{style:E0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ho},maxWidth:{style:iS},minWidth:{transform:Ho},height:{transform:Ho},maxHeight:{transform:Ho},minHeight:{transform:Ho},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 VU(...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 GU(e,t){return typeof e=="function"?e(t):e}function qU(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=m0(o,d)||{};return h?h(s):ja(s,r,b=>{let x=my(g,p,b);return b===x&&typeof b=="string"&&(x=my(g,p,`${n}${b==="default"?"":Ne(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??Sh;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const d=A3(o.breakpoints),p=Object.keys(d);let h=d;return Object.keys(u).forEach(g=>{const y=GU(u[g],o);if(y!=null)if(typeof y=="object")if(a[g])h=dp(h,e(g,y,o,a));else{const b=ja({theme:o},y,x=>({[g]:x}));VU(b,y)?h[g]=t({sx:y,theme:o}):h=dp(h,b)}else h=dp(h,e(g,y,o,a))}),eU(o,k3(p,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const Xs=qU();Xs.filterProps=["sx"];function WU(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 rd(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=Jj(n),u=aS(o);let d=Pr({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...oU,...a}},s);return d=rU(d),d.applyStyles=WU,d=t.reduce((p,h)=>Pr(p,h),d),d.unstable_sxConfig={...Sh,...s?.unstable_sxConfig},d.unstable_sx=function(h){return Xs({sx:h,theme:this})},d}function YU(e){return Object.keys(e).length===0}function D3(e=null){const t=k.useContext(nd);return!t||YU(t)?e:t}const KU=rd();function od(e=KU){return D3(e)}function QU({styles:e,themeId:t,defaultTheme:n={}}){const r=od(n),o=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(T3,{styles:o})}const XU=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Sh;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function T0(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=XU(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return ci(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const Yw=e=>e,ZU=()=>{let e=Yw;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Yw}}},sS=ZU();function R3(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=R3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=R3(e))&&(r&&(r+=" "),r+=t);return r}function I3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=S3("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Xs);return k.forwardRef(function(u,d){const p=od(n),{className:h,component:g="div",...y}=T0(u);return v.jsx(a,{as:g,ref:d,className:qe(h,o?o(r):r),theme:t&&p[t]||p,...y})})}const JU={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 it(e,t,n="Mui"){const r=JU[t];return r?`${n}-${r}`:`${sS.generate(e)}-${t}`}function ut(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=it(e,o,n)}),r}const eH=ut("MuiBox",["root"]),O3=I3({defaultClassName:eH.root,generateClassName:sS.generate});function N3(e){const{variants:t,...n}=e,r={variants:t,style:$w(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=$w(o.style))}),r}const tH=rd();function Ug(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function nH(e){return e?(t,n)=>n[e]:null}function rH(e,t,n){e.theme=aH(e.theme)?n:e.theme[t]||e.theme}function Hg(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Hg(e,r));if(Array.isArray(n?.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...a}=n;r=a}return P3(e,n.variants,[r])}return n?.isProcessed?n.style:n}function P3(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 L3(e={}){const{themeId:t,defaultTheme:n=tH,rootShouldForwardProp:r=Ug,slotShouldForwardProp:o=Ug}=e;function a(l){rH(l,t,n)}return(l,u={})=>{Kj(l,I=>I.filter(O=>O!==Xs));const{name:d,slot:p,skipVariantsResolver:h,skipSx:g,overridesResolver:y=nH(sH(p)),...b}=u,x=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,S=g||!1;let T=Ug;p==="Root"||p==="root"?T=r:p?T=o:iH(l)&&(T=void 0);const D=S3(l,{shouldForwardProp:T,label:oH(),...b}),w=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(F){return Hg(F,I)};if(ci(I)){const O=N3(I);return O.variants?function(j){return Hg(j,O)}:O.style}return I},R=(...I)=>{const O=[],F=I.map(w),j=[];if(O.push(a),d&&y&&j.push(function($){const q=$.theme.components?.[d]?.styleOverrides;if(!q)return null;const Y={};for(const B in q)Y[B]=Hg($,q[B]);return y($,Y)}),d&&!x&&j.push(function($){const q=$.theme?.components?.[d]?.variants;return q?P3($,q):null}),S||j.push(Xs),Array.isArray(F[0])){const M=F.shift(),$=new Array(O.length).fill(""),z=new Array(j.length).fill("");let q;q=[...$,...M,...z],q.raw=[...$,...M.raw,...z],O.unshift(q)}const H=[...O,...F,...j],C=D(...H);return l.muiName&&(C.muiName=l.muiName),C};return D.withConfig&&(R.withConfig=D.withConfig),R}}function oH(e,t){return void 0}function aH(e){for(const t in e)return!1;return!0}function iH(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sH(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const lS=L3();function Up(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 l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;n[o][u]=Up(a[u],s[u])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function lH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Up(t.components[n].defaultProps,r)}function cS({props:e,name:t,defaultTheme:n,themeId:r}){let o=od(n);return r&&(o=o[r]||o),lH({theme:o,name:t,props:e})}const Wo=typeof window<"u"?k.useLayoutEffect:k.useEffect;function cH(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function uS(e,t=0,n=1){return cH(e,t,n)}function uH(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 Zs(e){if(e.type)return e;if(e.charAt(0)==="#")return Zs(uH(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ns(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(ns(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const dH=e=>{const t=Zs(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},tp=(e,t)=>{try{return dH(e)}catch{return e}};function S0(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 M3(e){e=Zs(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 l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),S0({type:l,values:u})}function px(e){e=Zs(e);let t=e.type==="hsl"||e.type==="hsla"?Zs(M3(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 fH(e,t){const n=px(e),r=px(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function It(e,t){return e=Zs(e),t=uS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,S0(e)}function sg(e,t,n){try{return It(e,t)}catch{return e}}function Ch(e,t){if(e=Zs(e),t=uS(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 S0(e)}function Cn(e,t,n){try{return Ch(e,t)}catch{return e}}function _h(e,t){if(e=Zs(e),t=uS(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 S0(e)}function _n(e,t,n){try{return _h(e,t)}catch{return e}}function hx(e,t=.15){return px(e)>.5?Ch(e,t):_h(e,t)}function lg(e,t,n){try{return hx(e,t)}catch{return e}}const F3=k.createContext(null);function dS(){return k.useContext(F3)}const pH=typeof Symbol=="function"&&Symbol.for,hH=pH?Symbol.for("mui.nested"):"__THEME_NESTED__";function mH(e,t){return typeof t=="function"?t(e):{...e,...t}}function gH(e){const{children:t,theme:n}=e,r=dS(),o=k.useMemo(()=>{const a=r===null?{...n}:mH(r,n);return a!=null&&(a[hH]=r!==null),a},[n,r]);return v.jsx(F3.Provider,{value:o,children:t})}const B3=k.createContext();function yH({value:e,...t}){return v.jsx(B3.Provider,{value:e??!0,...t})}const Ah=()=>k.useContext(B3)??!1,j3=k.createContext(void 0);function bH({value:e,children:t}){return v.jsx(j3.Provider,{value:e,children:t})}function vH(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?Up(o.defaultProps,r):!o.styleOverrides&&!o.variants?Up(o,r):r}function EH({props:e,name:t}){const n=k.useContext(j3);return vH({props:e,name:t,theme:{components:n}})}const Kw={};function Qw(e,t,n,r=!1){return k.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 U3(e){const{children:t,theme:n,themeId:r}=e,o=D3(Kw),a=dS()||Kw,s=Qw(r,o,n),l=Qw(r,a,n,!0),u=(r?s[r]:s).direction==="rtl";return v.jsx(gH,{theme:l,children:v.jsx(nd.Provider,{value:s,children:v.jsx(yH,{value:u,children:v.jsx(bH,{value:r?s[r].components:s.components,children:t})})})})}const Xw={theme:void 0};function H3(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(Xw.theme=o.theme,a=N3(e(Xw)),t=a,n=o.theme),a}}const fS="mode",pS="color-scheme",xH="data-color-scheme";function TH(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=fS,colorSchemeStorageKey:a=pS,attribute:s=xH,colorSchemeNode:l="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+=`${l}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
87
- ${l}.classList.add('${g}'.replace('%s', colorScheme));`}const h=p.match(/\[([^\]]+)\]/);if(h){const[g,y]=h[1].split("=");y||(d+=`${l}.removeAttribute('${g}'.replace('%s', light));
88
- ${l}.removeAttribute('${g}'.replace('%s', dark));`),d+=`
89
- ${l}.setAttribute('${g}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else d+=`${l}.setAttribute('${p}', colorScheme);`;return v.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 SH(){}const CH=({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 SH;const r=o=>{const a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Y1(){}function Zw(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function z3(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 _H(e){return z3(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function AH(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=fS,colorSchemeStorageKey:s=pS,storageWindow:l=typeof window>"u"?void 0:window,storageManager:u=CH,noSsr:d=!1}=e,p=o.join(","),h=o.length>1,g=k.useMemo(()=>u?.({key:a,storageWindow:l}),[u,a,l]),y=k.useMemo(()=>u?.({key:`${s}-light`,storageWindow:l}),[u,s,l]),b=k.useMemo(()=>u?.({key:`${s}-dark`,storageWindow:l}),[u,s,l]),[x,S]=k.useState(()=>{const j=g?.get(t)||t,H=y?.get(n)||n,C=b?.get(r)||r;return{mode:j,systemMode:Zw(j),lightColorScheme:H,darkColorScheme:C}}),[T,D]=k.useState(d||!h);k.useEffect(()=>{D(!0)},[]);const w=_H(x),R=k.useCallback(j=>{S(H=>{if(j===H.mode)return H;const C=j??t;return g?.set(C),{...H,mode:C,systemMode:Zw(C)}})},[g,t]),I=k.useCallback(j=>{j?typeof j=="string"?j&&!p.includes(j)?console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`):S(H=>{const C={...H};return z3(H,M=>{M==="light"&&(y?.set(j),C.lightColorScheme=j),M==="dark"&&(b?.set(j),C.darkColorScheme=j)}),C}):S(H=>{const C={...H},M=j.light===null?n:j.light,$=j.dark===null?r:j.dark;return M&&(p.includes(M)?(C.lightColorScheme=M,y?.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),$&&(p.includes($)?(C.darkColorScheme=$,b?.set($)):console.error(`\`${$}\` 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=k.useCallback(j=>{x.mode==="system"&&S(H=>{const C=j?.matches?"dark":"light";return H.systemMode===C?H:{...H,systemMode:C}})},[x.mode]),F=k.useRef(O);return F.current=O,k.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const j=(...C)=>F.current(...C),H=window.matchMedia("(prefers-color-scheme: dark)");return H.addListener(j),j(H),()=>{H.removeListener(j)}},[h]),k.useEffect(()=>{if(h){const j=g?.subscribe(M=>{(!M||["light","dark","system"].includes(M))&&R(M||t)})||Y1,H=y?.subscribe(M=>{(!M||p.match(M))&&I({light:M})})||Y1,C=b?.subscribe(M=>{(!M||p.match(M))&&I({dark:M})})||Y1;return()=>{j(),H(),C()}}},[I,R,p,t,l,h,g,y,b]),{...x,mode:T?x.mode:void 0,systemMode:T?x.systemMode:void 0,colorScheme:T?w:void 0,setMode:R,setColorScheme:I}}const kH="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function wH(e){const{themeId:t,theme:n={},modeStorageKey:r=fS,colorSchemeStorageKey:o=pS,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=k.createContext(void 0),p=()=>k.useContext(d)||u,h={},g={};function y(T){const{children:D,theme:w,modeStorageKey:R=r,colorSchemeStorageKey:I=o,disableTransitionOnChange:O=a,storageManager:F,storageWindow:j=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:$=!1,defaultMode:z="system",forceThemeRerender:q=!1,noSsr:Y}=T,B=k.useRef(!1),X=dS(),ae=k.useContext(d),te=!!ae&&!M,N=k.useMemo(()=>w||(typeof n=="function"?n():n),[w]),oe=N[t],K=oe||N,{colorSchemes:P=h,components:ee=g,cssVarPrefix:ce}=K,re=Object.keys(P).filter(de=>!!P[de]).join(","),be=k.useMemo(()=>re.split(","),[re]),ye=typeof s=="string"?s:s.light,Ge=typeof s=="string"?s:s.dark,Me=P[ye]&&P[Ge]?z:P[K.defaultColorScheme]?.palette?.mode||K.palette?.mode,{mode:Oe,setMode:Qe,systemMode:nt,lightColorScheme:Re,darkColorScheme:gt,colorScheme:At,setColorScheme:je}=AH({supportedColorSchemes:be,defaultLightColorScheme:ye,defaultDarkColorScheme:Ge,modeStorageKey:R,colorSchemeStorageKey:I,defaultMode:Me,storageManager:F,storageWindow:j,noSsr:Y});let mt=Oe,lt=At;te&&(mt=ae.mode,lt=ae.colorScheme);let ft=lt||K.defaultColorScheme;K.vars&&!q&&(ft=K.defaultColorScheme);const Ue=k.useMemo(()=>{const de=K.generateThemeVars?.()||K.vars,ge={...K,components:ee,colorSchemes:P,cssVarPrefix:ce,vars:de};if(typeof ge.generateSpacing=="function"&&(ge.spacing=ge.generateSpacing()),ft){const ze=P[ft];ze&&typeof ze=="object"&&Object.keys(ze).forEach(Xe=>{ze[Xe]&&typeof ze[Xe]=="object"?ge[Xe]={...ge[Xe],...ze[Xe]}:ge[Xe]=ze[Xe]})}return l?l(ge):ge},[K,ft,ee,P,ce]),Le=K.colorSchemeSelector;Wo(()=>{if(lt&&C&&Le&&Le!=="media"){const de=Le;let ge=Le;if(de==="class"&&(ge=".%s"),de==="data"&&(ge="[data-%s]"),de?.startsWith("data-")&&!de.includes("%s")&&(ge=`[${de}="%s"]`),ge.startsWith("."))C.classList.remove(...be.map(ze=>ge.substring(1).replace("%s",ze))),C.classList.add(ge.substring(1).replace("%s",lt));else{const ze=ge.replace("%s",lt).match(/\[([^\]]+)\]/);if(ze){const[Xe,Et]=ze[1].split("=");Et||be.forEach(Je=>{C.removeAttribute(Xe.replace(lt,Je))}),C.setAttribute(Xe,Et?Et.replace(/"|'/g,""):"")}else C.setAttribute(ge,lt)}}},[lt,Le,C,be]),k.useEffect(()=>{let de;if(O&&B.current&&H){const ge=H.createElement("style");ge.appendChild(H.createTextNode(kH)),H.head.appendChild(ge),window.getComputedStyle(H.body),de=setTimeout(()=>{H.head.removeChild(ge)},1)}return()=>{clearTimeout(de)}},[lt,O,H]),k.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);const Jt=k.useMemo(()=>({allColorSchemes:be,colorScheme:lt,darkColorScheme:gt,lightColorScheme:Re,mode:mt,setColorScheme:je,setMode:Qe,systemMode:nt}),[be,lt,gt,Re,mt,je,Qe,nt,Ue.colorSchemeSelector]);let Ut=!0;($||K.cssVariables===!1||te&&X?.cssVarPrefix===ce)&&(Ut=!1);const kt=v.jsxs(k.Fragment,{children:[v.jsx(U3,{themeId:oe?t:void 0,theme:Ue,children:D}),Ut&&v.jsx(T3,{styles:Ue.generateStyleSheets?.()||[]})]});return te?kt:v.jsx(d.Provider,{value:Jt,children:kt})}const b=typeof s=="string"?s:s.light,x=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:p,getInitColorSchemeScript:T=>TH({colorSchemeStorageKey:o,defaultLightColorScheme:b,defaultDarkColorScheme:x,modeStorageKey:r,...T})}}function $3(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 Jw=(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])})},DH=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...s,l]:s):t([...a,l],u,s))})}r(e)},RH=(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 K1(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return DH(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const p=`--${n?`${n}-`:""}${l.join("-")}`,h=RH(l,u);Object.assign(o,{[p]:h}),Jw(a,l,`var(${p})`,d),Jw(s,l,`var(${p}, ${h})`,d)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function IH(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=K1(u,t);let g=h;const y={},{[l]:b,...x}=a;if(Object.entries(x||{}).forEach(([w,R])=>{const{vars:I,css:O,varsWithDefaults:F}=K1(R,t);g=Pr(g,F),y[w]={css:O,vars:I}}),b){const{css:w,vars:R,varsWithDefaults:I}=K1(b,t);g=Pr(g,I),y[l]={css:w,vars:R}}function S(w,R){let I=o;if(o==="class"&&(I=".%s"),o==="data"&&(I="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(I=`[${o}="%s"]`),w){if(I==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${a[w]?.palette?.mode||w})`]:{":root":R}};if(I)return e.defaultColorScheme===w?`:root, ${I.replace("%s",String(w))}`:I.replace("%s",String(w))}return":root"}return{vars:g,generateThemeVars:()=>{let w={...d};return Object.entries(y).forEach(([,{vars:R}])=>{w=Pr(w,R)}),w},generateStyleSheets:()=>{const w=[],R=e.defaultColorScheme||"light";function I(j,H){Object.keys(H).length&&w.push(typeof j=="string"?{[j]:{...H}}:j)}I(n(void 0,{...p}),p);const{[R]:O,...F}=y;if(O){const{css:j}=O,H=a[R]?.palette?.mode,C=!r&&H?{colorScheme:H,...j}:{...j};I(n(R,{...C}),C)}return Object.entries(F).forEach(([j,{css:H}])=>{const C=a[j]?.palette?.mode,M=!r&&C?{colorScheme:C,...H}:{...H};I(n(j,{...M}),M)}),w}}}function OH(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 st(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}const NH=rd(),PH=lS("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ne(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),LH=e=>cS({props:e,name:"MuiContainer",defaultTheme:NH}),MH=(e,t)=>{const n=u=>it(t,u),{classes:r,fixed:o,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${Ne(String(s))}`,o&&"fixed",a&&"disableGutters"]};return st(l,n,r)};function FH(e={}){const{createStyledComponent:t=PH,useThemeProps:n=LH,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:l})=>l.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:l})=>({...l.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[s.breakpoints.up(l.maxWidth)]:{maxWidth:`${s.breakpoints.values[l.maxWidth]}${s.breakpoints.unit}`}}}));return k.forwardRef(function(l,u){const d=n(l),{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=MH(T,r);return v.jsx(o,{as:h,ownerState:T,className:qe(D.root,p),ref:u,...S})})}function fp(e,t){return k.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const BH=(e,t)=>e.filter(n=>t.includes(n)),ad=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{n((s,l)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,l):s[e.up(e.keys[a])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:BH(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,u)=>{r===a?Object.assign(l,u):l[e.up(a)]=u},s)}}):(typeof t=="number"||typeof t=="string")&&n((o,a)=>{Object.assign(o,a)},t)};function gy(e){return`--Grid-${e}Spacing`}function C0(e){return`--Grid-parent-${e}Spacing`}const eD="--Grid-columns",ku="--Grid-parent-columns",jH=({theme:e,ownerState:t})=>{const n={};return ad(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(${ku}) - (var(${ku}) - ${o}) * (var(${C0("column")}) / var(${ku})))`}),r(n,a)}),n},UH=({theme:e,ownerState:t})=>{const n={};return ad(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(${ku}) + var(${C0("column")}) * ${o} / var(${ku}))`}),r(n,a)}),n},HH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[eD]:12};return ad(e.breakpoints,t.columns,(r,o)=>{const a=o??12;r(n,{[eD]:a,"> *":{[ku]:a}})}),n},zH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ad(e.breakpoints,t.rowSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[gy("row")]:a,"> *":{[C0("row")]:a}})}),n},$H=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ad(e.breakpoints,t.columnSpacing,(r,o)=>{const a=typeof o=="string"?o:e.spacing?.(o);r(n,{[gy("column")]:a,"> *":{[C0("column")]:a}})}),n},VH=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ad(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},GH=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${gy("row")}) var(${gy("column")})`}}),qH=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},WH=(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[]},YH=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function KH(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 QH=rd(),XH=lS("div",{name:"MuiGrid",slot:"Root"});function ZH(e){return cS({props:e,name:"MuiGrid",defaultTheme:QH})}function JH(e={}){const{createStyledComponent:t=XH,useThemeProps:n=ZH,useTheme:r=od,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)}`,...YH(g),...qH(x),...h?WH(y,p.breakpoints.keys[0]):[]]};return st(S,T=>it(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 l=t(HH,$H,zH,jH,VH,GH,UH),u=k.forwardRef(function(p,h){const g=r(),y=n(p),b=T0(y);KH(b,g.breakpoints);const{className:x,children:S,columns:T=12,container:D=!1,component:w="div",direction:R="row",wrap:I="wrap",size:O={},offset:F={},spacing:j=0,rowSpacing:H=j,columnSpacing:C=j,unstable_level:M=0,...$}=b,z=s(O,g.breakpoints,oe=>oe!==!1),q=s(F,g.breakpoints),Y=p.columns??(M?void 0:T),B=p.spacing??(M?void 0:j),X=p.rowSpacing??p.spacing??(M?void 0:H),ae=p.columnSpacing??p.spacing??(M?void 0:C),te={...b,level:M,columns:Y,container:D,direction:R,wrap:I,spacing:B,rowSpacing:X,columnSpacing:ae,size:z,offset:q},N=a(te,g);return v.jsx(l,{ref:h,as:w,ownerState:te,className:qe(N.root,x),...$,children:k.Children.map(S,oe=>k.isValidElement(oe)&&fp(oe,["Grid"])&&D&&oe.props.container?k.cloneElement(oe,{unstable_level:oe.props?.unstable_level??M+1}):oe)})});return u.muiName="Grid",u}const ez=rd(),tz=lS("div",{name:"MuiStack",slot:"Root"});function nz(e){return cS({props:e,name:"MuiStack",defaultTheme:ez})}function rz(e,t){const n=k.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a<n.length-1&&r.push(k.cloneElement(t,{key:`separator-${a}`})),r),[])}const oz=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],az=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ja({theme:t},W1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=g0(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=W1({values:e.direction,base:o}),s=W1({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=Pr(n,ja({theme:t},s,(u,d)=>e.useFlexGap?{gap:Xl(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${oz(d?a[d]:e.direction)}`]:Xl(r,u)}}))}return n=iU(t.breakpoints,n),n};function hS(e={}){const{createStyledComponent:t=tz,useThemeProps:n=nz,componentName:r="MuiStack"}=e,o=()=>st({root:["root"]},u=>it(r,u),{}),a=t(az);return k.forwardRef(function(u,d){const p=n(u),h=T0(p),{component:g="div",direction:y="column",spacing:b=0,divider:x,children:S,className:T,useFlexGap:D=!1,...w}=h,R={direction:y,spacing:b,useFlexGap:D},I=o();return v.jsx(a,{as:g,ownerState:R,ref:d,className:qe(I.root,T),...w,children:x?rz(S,x):S})})}const tD=hS(),Hp={black:"#000",white:"#fff"},Qc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xc={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Zc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Jc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},eu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},wf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},iz={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"},pi="$$material";function V3(){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:Hp.white,default:Hp.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 sz=V3();function G3(){return{text:{primary:Hp.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:Hp.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 nD=G3();function rD(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=_h(e.main,o):t==="dark"&&(e.dark=Ch(e.main,a)))}function lz(e="light"){return e==="dark"?{main:Zc[200],light:Zc[50],dark:Zc[400]}:{main:Zc[700],light:Zc[400],dark:Zc[800]}}function cz(e="light"){return e==="dark"?{main:Xc[200],light:Xc[50],dark:Xc[400]}:{main:Xc[500],light:Xc[300],dark:Xc[700]}}function uz(e="light"){return e==="dark"?{main:Qc[500],light:Qc[300],dark:Qc[700]}:{main:Qc[700],light:Qc[400],dark:Qc[800]}}function dz(e="light"){return e==="dark"?{main:Jc[400],light:Jc[300],dark:Jc[700]}:{main:Jc[700],light:Jc[500],dark:Jc[900]}}function fz(e="light"){return e==="dark"?{main:eu[400],light:eu[300],dark:eu[700]}:{main:eu[800],light:eu[500],dark:eu[900]}}function pz(e="light"){return e==="dark"?{main:wf[400],light:wf[300],dark:wf[700]}:{main:"#ed6c02",light:wf[500],dark:wf[900]}}function mS(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||lz(t),s=e.secondary||cz(t),l=e.error||uz(t),u=e.info||dz(t),d=e.success||fz(t),p=e.warning||pz(t);function h(x){return fH(x,nD.text.primary)>=n?nD.text.primary:sz.text.primary}const g=({color:x,name:S,mainShade:T=500,lightShade:D=300,darkShade:w=700})=>{if(x={...x},!x.main&&x[T]&&(x.main=x[T]),!x.hasOwnProperty("main"))throw new Error(ns(11,S?` (${S})`:"",T));if(typeof x.main!="string")throw new Error(ns(12,S?` (${S})`:"",JSON.stringify(x.main)));return rD(x,"light",D,r),rD(x,"dark",w,r),x.contrastText||(x.contrastText=h(x.main)),x};let y;return t==="light"?y=V3():t==="dark"&&(y=G3()),Pr({common:{...Hp},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:l,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:iz,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},o)}function hz(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 mz(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function gz(e){return Math.round(e*1e5)/1e5}const oD={textTransform:"uppercase"},aD='"Roboto", "Helvetica", "Arial", sans-serif';function q3(e,t){const{fontFamily:n=aD,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=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,w,R)=>({fontFamily:n,fontWeight:S,fontSize:y(T),lineHeight:D,...n===aD?{letterSpacing:`${gz(w/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,oD),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,oD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pr({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},h,{clone:!1})}const yz=.2,bz=.14,vz=.12;function $n(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${yz})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${bz})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${vz})`].join(",")}const Ez=["none",$n(0,2,1,-1,0,1,1,0,0,1,3,0),$n(0,3,1,-2,0,2,2,0,0,1,5,0),$n(0,3,3,-2,0,3,4,0,0,1,8,0),$n(0,2,4,-1,0,4,5,0,0,1,10,0),$n(0,3,5,-1,0,5,8,0,0,1,14,0),$n(0,3,5,-1,0,6,10,0,0,1,18,0),$n(0,4,5,-2,0,7,10,1,0,2,16,1),$n(0,5,5,-3,0,8,10,1,0,3,14,2),$n(0,5,6,-3,0,9,12,1,0,3,16,2),$n(0,6,6,-3,0,10,14,1,0,4,18,3),$n(0,6,7,-4,0,11,15,1,0,4,20,3),$n(0,7,8,-4,0,12,17,2,0,5,22,4),$n(0,7,8,-4,0,13,19,2,0,5,24,4),$n(0,7,9,-4,0,14,21,2,0,5,26,4),$n(0,8,9,-5,0,15,22,2,0,6,28,5),$n(0,8,10,-5,0,16,24,2,0,6,30,5),$n(0,8,11,-5,0,17,26,2,0,6,32,5),$n(0,9,11,-5,0,18,28,2,0,7,34,6),$n(0,9,12,-6,0,19,29,2,0,7,36,6),$n(0,10,13,-6,0,20,31,3,0,8,38,7),$n(0,10,13,-6,0,21,33,3,0,8,40,7),$n(0,10,14,-6,0,22,35,3,0,8,42,7),$n(0,11,14,-7,0,23,36,3,0,9,44,8),$n(0,11,15,-7,0,24,38,3,0,9,46,8)],xz={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)"},W3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iD(e){return`${Math.round(e)}ms`}function Tz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Sz(e){const t={...xz,...e.easing},n={...W3,...e.duration};return{getAutoHeightDuration:Tz,create:(o=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:u=0,...d}=a;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof s=="string"?s:iD(s)} ${l} ${typeof u=="string"?u:iD(u)}`).join(",")},...e,easing:t,duration:n}}const Cz={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _z(e){return ci(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Y3(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,l]=o[a];!_z(l)||s.startsWith("unstable_")?delete r[s]:ci(l)&&(r[s]={...l},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 mx(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ns(20));const p=mS(a),h=rd(e);let g=Pr(h,{mixins:mz(h.breakpoints,r),palette:p,shadows:Ez.slice(),typography:q3(p,l),transitions:Sz(s),zIndex:{...Cz}});return g=Pr(g,d),g=t.reduce((y,b)=>Pr(y,b),g),g.unstable_sxConfig={...Sh,...d?.unstable_sxConfig},g.unstable_sx=function(b){return Xs({sx:b,theme:this})},g.toRuntimeSource=Y3,g}function gx(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 Az=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=gx(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function K3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Q3(e){return e==="dark"?Az:[]}function kz(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=mS(t);return{palette:a,opacity:{...K3(a.mode),...n},overlays:r||Q3(a.mode),...o}}function wz(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 Dz=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Rz=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 Dz(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),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 Iz(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Ce(e,t,n){!e[t]&&n&&(e[t]=n)}function np(e){return typeof e!="string"||!e.startsWith("hsl")?e:M3(e)}function Bi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tp(np(e[t])))}function Oz(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Za=e=>{try{return e()}catch{}},Nz=(e="mui")=>$3(e);function Q1(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=kz({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...s}=mx({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...K3(o),...t?.opacity},overlays:t?.overlays||Q3(o)},s}function Pz(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=wz,colorSchemeSelector:l=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=Nz(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(ns(21,h));const w=Q1(T,D,d,h);b&&!T.light&&Q1(T,b,void 0,"light"),x&&!T.dark&&Q1(T,x,void 0,"dark");let R={defaultColorScheme:h,...w,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:g,colorSchemes:T,font:{...hz(w.typography),...w.font},spacing:Oz(d.spacing)};Object.keys(R.colorSchemes).forEach(H=>{const C=R.colorSchemes[H].palette,M=$=>{const z=$.split("-"),q=z[1],Y=z[2];return g($,C[q][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")),Iz(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){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-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",Za(()=>C.getContrastText(C.error.main))),Ce(C.Alert,"infoFilledColor",Za(()=>C.getContrastText(C.info.main))),Ce(C.Alert,"successFilledColor",Za(()=>C.getContrastText(C.success.main))),Ce(C.Alert,"warningFilledColor",Za(()=>C.getContrastText(C.warning.main))),Ce(C.Alert,"errorStandardBg",_n(C.error.light,.9)),Ce(C.Alert,"infoStandardBg",_n(C.info.light,.9)),Ce(C.Alert,"successStandardBg",_n(C.success.light,.9)),Ce(C.Alert,"warningStandardBg",_n(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",_n(C.primary.main,.62)),Ce(C.LinearProgress,"secondaryBg",_n(C.secondary.main,.62)),Ce(C.LinearProgress,"errorBg",_n(C.error.main,.62)),Ce(C.LinearProgress,"infoBg",_n(C.info.main,.62)),Ce(C.LinearProgress,"successBg",_n(C.success.main,.62)),Ce(C.LinearProgress,"warningBg",_n(C.warning.main,.62)),Ce(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),Ce(C.Slider,"primaryTrack",_n(C.primary.main,.62)),Ce(C.Slider,"secondaryTrack",_n(C.secondary.main,.62)),Ce(C.Slider,"errorTrack",_n(C.error.main,.62)),Ce(C.Slider,"infoTrack",_n(C.info.main,.62)),Ce(C.Slider,"successTrack",_n(C.success.main,.62)),Ce(C.Slider,"warningTrack",_n(C.warning.main,.62));const $=lg(C.background.default,.8);Ce(C.SnackbarContent,"bg",$),Ce(C.SnackbarContent,"color",Za(()=>C.getContrastText($))),Ce(C.SpeedDialAction,"fabHoverBg",lg(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",_n(C.primary.main,.62)),Ce(C.Switch,"secondaryDisabledColor",_n(C.secondary.main,.62)),Ce(C.Switch,"errorDisabledColor",_n(C.error.main,.62)),Ce(C.Switch,"infoDisabledColor",_n(C.info.main,.62)),Ce(C.Switch,"successDisabledColor",_n(C.success.main,.62)),Ce(C.Switch,"warningDisabledColor",_n(C.warning.main,.62)),Ce(C.TableCell,"border",_n(sg(C.divider,1),.88)),Ce(C.Tooltip,"bg",sg(C.grey[700],.92))}if(C.mode==="dark"){Ce(C.Alert,"errorColor",_n(C.error.light,.6)),Ce(C.Alert,"infoColor",_n(C.info.light,.6)),Ce(C.Alert,"successColor",_n(C.success.light,.6)),Ce(C.Alert,"warningColor",_n(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",Za(()=>C.getContrastText(C.error.dark))),Ce(C.Alert,"infoFilledColor",Za(()=>C.getContrastText(C.info.dark))),Ce(C.Alert,"successFilledColor",Za(()=>C.getContrastText(C.success.dark))),Ce(C.Alert,"warningFilledColor",Za(()=>C.getContrastText(C.warning.dark))),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-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",Cn(C.primary.main,.5)),Ce(C.LinearProgress,"secondaryBg",Cn(C.secondary.main,.5)),Ce(C.LinearProgress,"errorBg",Cn(C.error.main,.5)),Ce(C.LinearProgress,"infoBg",Cn(C.info.main,.5)),Ce(C.LinearProgress,"successBg",Cn(C.success.main,.5)),Ce(C.LinearProgress,"warningBg",Cn(C.warning.main,.5)),Ce(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),Ce(C.Slider,"primaryTrack",Cn(C.primary.main,.5)),Ce(C.Slider,"secondaryTrack",Cn(C.secondary.main,.5)),Ce(C.Slider,"errorTrack",Cn(C.error.main,.5)),Ce(C.Slider,"infoTrack",Cn(C.info.main,.5)),Ce(C.Slider,"successTrack",Cn(C.success.main,.5)),Ce(C.Slider,"warningTrack",Cn(C.warning.main,.5));const $=lg(C.background.default,.98);Ce(C.SnackbarContent,"bg",$),Ce(C.SnackbarContent,"color",Za(()=>C.getContrastText($))),Ce(C.SpeedDialAction,"fabHoverBg",lg(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",Cn(C.primary.main,.55)),Ce(C.Switch,"secondaryDisabledColor",Cn(C.secondary.main,.55)),Ce(C.Switch,"errorDisabledColor",Cn(C.error.main,.55)),Ce(C.Switch,"infoDisabledColor",Cn(C.info.main,.55)),Ce(C.Switch,"successDisabledColor",Cn(C.success.main,.55)),Ce(C.Switch,"warningDisabledColor",Cn(C.warning.main,.55)),Ce(C.TableCell,"border",Cn(sg(C.divider,1),.68)),Ce(C.Tooltip,"bg",sg(C.grey[700],.92))}Bi(C.background,"default"),Bi(C.background,"paper"),Bi(C.common,"background"),Bi(C.common,"onBackground"),Bi(C,"divider"),Object.keys(C).forEach($=>{const z=C[$];$!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&Ce(C[$],"mainChannel",tp(np(z.main))),z.light&&Ce(C[$],"lightChannel",tp(np(z.light))),z.dark&&Ce(C[$],"darkChannel",tp(np(z.dark))),z.contrastText&&Ce(C[$],"contrastTextChannel",tp(np(z.contrastText))),$==="text"&&(Bi(C[$],"primary"),Bi(C[$],"secondary")),$==="action"&&(z.active&&Bi(C[$],"active"),z.selected&&Bi(C[$],"selected")))})}),R=t.reduce((H,C)=>Pr(H,C),R);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Rz(R)},{vars:O,generateThemeVars:F,generateStyleSheets:j}=IH(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([H,C])=>{R[H]=C}),R.generateThemeVars=F,R.generateStyleSheets=j,R.generateSpacing=function(){return aS(d.spacing,g0(this))},R.getColorSchemeSelector=OH(l),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...Sh,...d?.unstable_sxConfig},R.unstable_sx=function(C){return Xs({sx:C,theme:this})},R.toRuntimeSource=Y3,R}function sD(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:mS({...n===!0?{}:n.palette,mode:t})})}function _0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",u=o?.[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return mx(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=mx({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},sD(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},sD(h,"light",d.light)),h}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),Pz({...s,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const gS=_0();function nl(){const e=od(gS);return e[pi]||e}function X3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>X3(e)&&e!=="classes",ke=L3({themeId:pi,defaultTheme:gS,rootShouldForwardProp:co});function Lz({theme:e,...t}){const n=pi in e?e[pi]:void 0;return v.jsx(U3,{...t,themeId:n?pi:void 0,theme:n||e})}const cg={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Mz}=wH({themeId:pi,theme:()=>_0({cssVariables:!0}),colorSchemeStorageKey:cg.colorSchemeStorageKey,modeStorageKey:cg.modeStorageKey,defaultColorScheme:{light:cg.defaultLightColorScheme,dark:cg.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:q3(e.palette,e.typography)};return t.unstable_sx=function(r){return Xs({sx:r,theme:this})},t}}),Fz=Mz;function Bz({theme:e,...t}){const n=k.useMemo(()=>{if(typeof e=="function")return e;const r=pi in e?e[pi]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?v.jsx(Lz,{theme:n,...t}):v.jsx(Fz,{theme:e,...t})}function lD(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function jz(e){return v.jsx(QU,{...e,defaultTheme:gS,themeId:pi})}function yS(e){return function(n){return v.jsx(jz,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Uz(){return T0}const Ct=H3;function dt(e){return EH(e)}function Hz(e){return it("MuiSvgIcon",e)}ut("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zz=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(n)}`]};return st(o,Hz,r)},$z=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ne(n.color)}`],t[`fontSize${Ne(n.fontSize)}`]]}})(Ct(({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}}]}))),yx=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:g="0 0 24 24",...y}=r,b=k.isValidElement(o)&&o.type==="svg",x={...r,color:s,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:b},S={};p||(S.viewBox=g);const T=zz(x);return v.jsxs($z,{as:l,className:qe(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?v.jsx("title",{children:h}):null]})});yx.muiName="SvgIcon";function vi(e,t){function n(r,o){return v.jsx(yx,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=yx.muiName,k.memo(k.forwardRef(n))}function A0(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 ko(e){return e&&e.ownerDocument||document}function Ua(e){return ko(e).defaultView||window}function cD(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let uD=0;function Vz(e){const[t,n]=k.useState(e),r=e||t;return k.useEffect(()=>{t==null&&(uD+=1,n(`mui-${uD}`))},[t]),r}const Gz={...ox},dD=Gz.useId;function id(e){if(dD!==void 0){const t=dD();return e??t}return Vz(e)}function yy(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=k.useRef(t!==void 0),[s,l]=k.useState(n),u=a?t:s,d=k.useCallback(p=>{a||l(p)},[]);return[u,d]}function va(e){const t=k.useRef(e);return Wo(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function ar(...e){const t=k.useRef(void 0),n=k.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return k.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function qz(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Wz(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(d=>{qz(d,l[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),l[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,d=qe(s?.className,l?.className,u?.className),p=n(u,l);return{...l,...u,...p,...!!d&&{className:d},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=qe(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 bx(){return bx=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},bx.apply(null,arguments)}function Z3(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 vx(e,t){return vx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},vx(e,t)}function J3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vx(e,t)}const fD={disabled:!1},by=Fe.createContext(null);var Yz=function(t){return t.scrollTop},rp="unmounted",kl="exited",wl="entering",hu="entered",Ex="exiting",Va=function(e){J3(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=kl,a.appearStatus=wl):u=hu:r.unmountOnExit||r.mountOnEnter?u=rp:u=kl,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var s=o.in;return s&&a.status===rp?{status:kl}: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!==wl&&s!==hu&&(a=wl):(s===wl||s===hu)&&(a=Ex)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,s,l;return a=s=l=o,o!=null&&typeof o!="number"&&(a=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===wl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:$s.findDOMNode(this);s&&Yz(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kl&&this.setState({status:rp})},n.performEnter=function(o){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[$s.findDOMNode(this),l],d=u[0],p=u[1],h=this.getTimeouts(),g=l?h.appear:h.enter;if(!o&&!s||fD.disabled){this.safeSetState({status:hu},function(){a.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:wl},function(){a.props.onEntering(d,p),a.onTransitionEnd(g,function(){a.safeSetState({status:hu},function(){a.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:$s.findDOMNode(this);if(!a||fD.disabled){this.safeSetState({status:kl},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ex},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:kl},function(){o.props.onExited(l)})})})},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(l){s&&(s=!1,a.nextCallback=null,o(l))},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:$s.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){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===rp)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 l=Z3(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(by.Provider,{value:null},typeof s=="function"?s(o,l):Fe.cloneElement(Fe.Children.only(s),l))},t}(Fe.Component);Va.contextType=by;Va.propTypes={};function tu(){}Va.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};Va.UNMOUNTED=rp;Va.EXITED=kl;Va.ENTERING=wl;Va.ENTERED=hu;Va.EXITING=Ex;function Kz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bS(e,t){var n=function(a){return t&&k.isValidElement(a)?t(a):a},r=Object.create(null);return e&&k.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Qz(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,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];l[r[u][s]]=n(d)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Ml(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Xz(e,t){return bS(e.children,function(n){return k.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ml(n,"appear",e),enter:Ml(n,"enter",e),exit:Ml(n,"exit",e)})})}function Zz(e,t,n){var r=bS(e.children),o=Qz(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(k.isValidElement(s)){var l=a in t,u=a in r,d=t[a],p=k.isValidElement(d)&&!d.props.in;u&&(!l||p)?o[a]=k.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ml(s,"exit",e),enter:Ml(s,"enter",e)}):!u&&l&&!p?o[a]=k.cloneElement(s,{in:!1}):u&&l&&k.isValidElement(d)&&(o[a]=k.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Ml(s,"exit",e),enter:Ml(s,"enter",e)}))}}),o}var Jz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},e$={component:"div",childFactory:function(t){return t}},vS=function(e){J3(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(Kz(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,l=a.handleExited,u=a.firstRender;return{children:u?Xz(o,l):Zz(o,s,l),firstRender:!1}},n.handleExited=function(o,a){var s=bS(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var u=bx({},l.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,a=o.component,s=o.childFactory,l=Z3(o,["component","childFactory"]),u=this.state.contextValue,d=Jz(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?Fe.createElement(by.Provider,{value:u},d):Fe.createElement(by.Provider,{value:u},Fe.createElement(a,l,d))},t}(Fe.Component);vS.propTypes={};vS.defaultProps=e$;const pD={};function e5(e,t){const n=k.useRef(pD);return n.current===pD&&(n.current=e(t)),n}const t$=[];function n$(e){k.useEffect(e,t$)}class k0{static create(){return new k0}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 Fl(){const e=e5(k0.create).current;return n$(e.disposeEffect),e}const t5=e=>e.scrollTop;function Bu(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 r$(e){return it("MuiCollapse",e)}ut("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const o$=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return st(r,r$,n)},a$=ke("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]}})(Ct(({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"}}]}))),i$=ke("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),s$=ke("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ma=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:s,collapsedSize:l="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:w=W3.standard,TransitionComponent:R=Va,...I}=r,O={...r,orientation:T,collapsedSize:l},F=o$(O),j=nl(),H=Fl(),C=k.useRef(null),M=k.useRef(),$=typeof l=="number"?`${l}px`:l,z=T==="horizontal",q=z?"width":"height",Y=k.useRef(null),B=ar(n,Y),X=re=>be=>{if(re){const ye=Y.current;be===void 0?re(ye):re(ye,be)}},ae=()=>C.current?C.current[z?"clientWidth":"clientHeight"]:0,te=X((re,be)=>{C.current&&z&&(C.current.style.position="absolute"),re.style[q]=$,h&&h(re,be)}),N=X((re,be)=>{const ye=ae();C.current&&z&&(C.current.style.position="");const{duration:Ge,easing:Me}=Bu({style:D,timeout:w,easing:d},{mode:"enter"});if(w==="auto"){const Oe=j.transitions.getAutoHeightDuration(ye);re.style.transitionDuration=`${Oe}ms`,M.current=Oe}else re.style.transitionDuration=typeof Ge=="string"?Ge:`${Ge}ms`;re.style[q]=`${ye}px`,re.style.transitionTimingFunction=Me,y&&y(re,be)}),oe=X((re,be)=>{re.style[q]="auto",g&&g(re,be)}),K=X(re=>{re.style[q]=`${ae()}px`,b&&b(re)}),P=X(x),ee=X(re=>{const be=ae(),{duration:ye,easing:Ge}=Bu({style:D,timeout:w,easing:d},{mode:"exit"});if(w==="auto"){const Me=j.transitions.getAutoHeightDuration(be);re.style.transitionDuration=`${Me}ms`,M.current=Me}else re.style.transitionDuration=typeof ye=="string"?ye:`${ye}ms`;re.style[q]=$,re.style.transitionTimingFunction=Ge,S&&S(re)}),ce=re=>{w==="auto"&&H.start(M.current||0,re),o&&o(Y.current,re)};return v.jsx(R,{in:p,onEnter:te,onEntered:oe,onEntering:N,onExit:K,onExited:P,onExiting:ee,addEndListener:ce,nodeRef:Y,timeout:w==="auto"?null:w,...I,children:(re,{ownerState:be,...ye})=>v.jsx(a$,{as:u,className:qe(F.root,s,{entered:F.entered,exited:!p&&$==="0px"&&F.hidden}[re]),style:{[z?"minWidth":"minHeight"]:$,...D},ref:B,ownerState:{...O,state:re},...ye,children:v.jsx(i$,{ownerState:{...O,state:re},className:F.wrapper,ref:C,children:v.jsx(s$,{ownerState:{...O,state:re},className:F.wrapperInner,children:a})})})})});Ma&&(Ma.muiSupportAuto=!0);function l$(e){return it("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 c$=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return st(a,l$,o)},u$=ke("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}`]]}})(Ct(({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)"}}]}))),Ji=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiPaper"}),o=nl(),{className:a,component:s="div",elevation:l=1,square:u=!1,variant:d="elevation",...p}=r,h={...r,component:s,elevation:l,square:u,variant:d},g=c$(h);return v.jsx(u$,{as:s,ownerState:h,className:qe(g.root,a),ref:n,...p,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${It("#fff",gx(l))}, ${It("#fff",gx(l))})`}},...p.style}})});function d$(e){return typeof e=="string"}function n5(e,t,n){return e===void 0||d$(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function r5(e,t,n){return typeof e=="function"?e(t,n):e}function o5(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 hD(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 a5(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=qe(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=o5({...o,...r}),l=hD(r),u=hD(o),d=t(s),p=qe(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...l};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function Bt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...g}=a,y=p[e]||r,b=r5(h[e],o),{props:{component:x,...S},internalRef:T}=a5({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),D=ar(T,b?.ref,t.ref),w=e==="root"?x||d:x,R=n5(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...S,...w&&!l&&{as:w},...w&&l&&{component:w},ref:D},o);return[y,R]}function vy(e){try{return e.matches(":focus-visible")}catch{}return!1}class Ey{static create(){return new Ey}static use(){const t=e5(Ey.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.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=p$(),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 f$(){return Ey.use()}function p$(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function h$(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:d}=e,[p,h]=k.useState(!1),g=qe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=qe(n.child,p&&n.childLeaving,r&&n.childPulsate);return!l&&!p&&h(!0),k.useEffect(()=>{if(!l&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,l,d]),v.jsx("span",{className:g,style:y,children:v.jsx("span",{className:b})})}const da=ut("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xx=550,m$=80,g$=tl`
121
- 0% {
122
- transform: scale(0);
123
- opacity: 0.1;
124
- }
125
-
126
- 100% {
127
- transform: scale(1);
128
- opacity: 0.3;
129
- }
130
- `,y$=tl`
131
- 0% {
132
- opacity: 1;
133
- }
134
-
135
- 100% {
136
- opacity: 0;
137
- }
138
- `,b$=tl`
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
- `,v$=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),E$=ke(h$,{name:"MuiTouchRipple",slot:"Ripple"})`
151
- opacity: 0;
152
- position: absolute;
153
-
154
- &.${da.rippleVisible} {
155
- opacity: 0.3;
156
- transform: scale(1);
157
- animation-name: ${g$};
158
- animation-duration: ${xx}ms;
159
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
160
- }
161
-
162
- &.${da.ripplePulsate} {
163
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
164
- }
165
-
166
- & .${da.child} {
167
- opacity: 1;
168
- display: block;
169
- width: 100%;
170
- height: 100%;
171
- border-radius: 50%;
172
- background-color: currentColor;
173
- }
174
-
175
- & .${da.childLeaving} {
176
- opacity: 0;
177
- animation-name: ${y$};
178
- animation-duration: ${xx}ms;
179
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
180
- }
181
-
182
- & .${da.childPulsate} {
183
- position: absolute;
184
- /* @noflip */
185
- left: 0px;
186
- top: 0;
187
- animation-name: ${b$};
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
- `,x$=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:s,...l}=r,[u,d]=k.useState([]),p=k.useRef(0),h=k.useRef(null);k.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const g=k.useRef(!1),y=Fl(),b=k.useRef(null),x=k.useRef(null),S=k.useCallback(R=>{const{pulsate:I,rippleX:O,rippleY:F,rippleSize:j,cb:H}=R;d(C=>[...C,v.jsx(E$,{classes:{ripple:qe(a.ripple,da.ripple),rippleVisible:qe(a.rippleVisible,da.rippleVisible),ripplePulsate:qe(a.ripplePulsate,da.ripplePulsate),child:qe(a.child,da.child),childLeaving:qe(a.childLeaving,da.childLeaving),childPulsate:qe(a.childPulsate,da.childPulsate)},timeout:xx,pulsate:I,rippleX:O,rippleY:F,rippleSize:j},p.current)]),p.current+=1,h.current=H},[a]),T=k.useCallback((R={},I={},O=()=>{})=>{const{pulsate:F=!1,center:j=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 $,z,q;if(j||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)$=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;$=Math.round(Y-M.left),z=Math.round(B-M.top)}if(j)q=Math.sqrt((2*M.width**2+M.height**2)/3),q%2===0&&(q+=1);else{const Y=Math.max(Math.abs((C?C.clientWidth:0)-$),$)*2+2,B=Math.max(Math.abs((C?C.clientHeight:0)-z),z)*2+2;q=Math.sqrt(Y**2+B**2)}R?.touches?b.current===null&&(b.current=()=>{S({pulsate:F,rippleX:$,rippleY:z,rippleSize:q,cb:O})},y.start(m$,()=>{b.current&&(b.current(),b.current=null)})):S({pulsate:F,rippleX:$,rippleY:z,rippleSize:q,cb:O})},[o,S,y]),D=k.useCallback(()=>{T({},{pulsate:!0})},[T]),w=k.useCallback((R,I)=>{if(y.clear(),R?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{w(R,I)});return}b.current=null,d(O=>O.length>0?O.slice(1):O),h.current=I},[y]);return k.useImperativeHandle(n,()=>({pulsate:D,start:T,stop:w}),[D,T,w]),v.jsx(v$,{className:qe(da.root,a.root,s),ref:x,...l,children:v.jsx(vS,{component:null,exit:!0,children:u})})});function T$(e){return it("MuiButtonBase",e)}const S$=ut("MuiButtonBase",["root","disabled","focusVisible"]),C$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=st({root:["root",t&&"disabled",n&&"focusVisible"]},T$,o);return n&&r&&(s.root+=` ${r}`),s},_$=ke("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"},[`&.${S$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mi=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:s,className:l,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:w,onFocusVisible:R,onKeyDown:I,onKeyUp:O,onMouseDown:F,onMouseLeave:j,onMouseUp:H,onTouchEnd:C,onTouchMove:M,onTouchStart:$,tabIndex:z=0,TouchRippleProps:q,touchRippleRef:Y,type:B,...X}=r,ae=k.useRef(null),te=f$(),N=ar(te.ref,Y),[oe,K]=k.useState(!1);d&&oe&&K(!1),k.useImperativeHandle(o,()=>({focusVisible:()=>{K(!0),ae.current.focus()}}),[]);const P=te.shouldMount&&!p&&!d;k.useEffect(()=>{oe&&g&&!p&&te.pulsate()},[p,g,oe,te]);const ee=ji(te,"start",F,h),ce=ji(te,"stop",T,h),re=ji(te,"stop",D,h),be=ji(te,"stop",H,h),ye=ji(te,"stop",Le=>{oe&&Le.preventDefault(),j&&j(Le)},h),Ge=ji(te,"start",$,h),Me=ji(te,"stop",C,h),Oe=ji(te,"stop",M,h),Qe=ji(te,"stop",Le=>{vy(Le.target)||K(!1),x&&x(Le)},!1),nt=va(Le=>{ae.current||(ae.current=Le.currentTarget),vy(Le.target)&&(K(!0),R&&R(Le)),w&&w(Le)}),Re=()=>{const Le=ae.current;return u&&u!=="button"&&!(Le.tagName==="A"&&Le.href)},gt=va(Le=>{g&&!Le.repeat&&oe&&Le.key===" "&&te.stop(Le,()=>{te.start(Le)}),Le.target===Le.currentTarget&&Re()&&Le.key===" "&&Le.preventDefault(),I&&I(Le),Le.target===Le.currentTarget&&Re()&&Le.key==="Enter"&&!d&&(Le.preventDefault(),S&&S(Le))}),At=va(Le=>{g&&Le.key===" "&&oe&&!Le.defaultPrevented&&te.stop(Le,()=>{te.pulsate(Le)}),O&&O(Le),S&&Le.target===Le.currentTarget&&Re()&&Le.key===" "&&!Le.defaultPrevented&&S(Le)});let je=u;je==="button"&&(X.href||X.to)&&(je=b);const mt={};je==="button"?(mt.type=B===void 0?"button":B,mt.disabled=d):(!X.href&&!X.to&&(mt.role="button"),d&&(mt["aria-disabled"]=d));const lt=ar(n,ae),ft={...r,centerRipple:a,component:u,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:g,tabIndex:z,focusVisible:oe},Ue=C$(ft);return v.jsxs(_$,{as:je,className:qe(Ue.root,l),ownerState:ft,onBlur:Qe,onClick:S,onContextMenu:ce,onFocus:nt,onKeyDown:gt,onKeyUp:At,onMouseDown:ee,onMouseLeave:ye,onMouseUp:be,onDragLeave:re,onTouchEnd:Me,onTouchMove:Oe,onTouchStart:Ge,ref:lt,tabIndex:d?-1:z,type:B,...mt,...X,children:[s,P?v.jsx(x$,{ref:N,center:a,...q}):null]})});function ji(e,t,n,r=!1){return va(o=>(n&&n(o),r||e[t](o),!0))}function A$(e){return typeof e.main=="string"}function k$(e,t=[]){if(!A$(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function so(e=[]){return([,t])=>t&&k$(t,e)}function w$(e){return it("MuiCircularProgress",e)}ut("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ps=44,Tx=tl`
194
- 0% {
195
- transform: rotate(0deg);
196
- }
197
-
198
- 100% {
199
- transform: rotate(360deg);
200
- }
201
- `,Sx=tl`
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
- `,D$=typeof Tx!="string"?nS`
217
- animation: ${Tx} 1.4s linear infinite;
218
- `:null,R$=typeof Sx!="string"?nS`
219
- animation: ${Sx} 1.4s ease-in-out infinite;
220
- `:null,I$=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${Ne(r)}`],svg:["svg"],circle:["circle",`circle${Ne(n)}`,o&&"circleDisableShrink"]};return st(a,w$,t)},O$=ke("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ne(n.color)}`]]}})(Ct(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:D$||{animation:`${Tx} 1.4s linear infinite`}},...Object.entries(e.palette).filter(so()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),N$=ke("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),P$=ke("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ct(({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:R$||{animation:`${Sx} 1.4s ease-in-out infinite`}}]}))),ES=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:s=!1,size:l=40,style:u,thickness:d=3.6,value:p=0,variant:h="indeterminate",...g}=r,y={...r,color:a,disableShrink:s,size:l,thickness:d,value:p,variant:h},b=I$(y),x={},S={},T={};if(h==="determinate"){const D=2*Math.PI*((Ps-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 v.jsx(O$,{className:qe(b.root,o),style:{width:l,height:l,...S,...u},ownerState:y,ref:n,role:"progressbar",...T,...g,children:v.jsx(N$,{className:b.svg,ownerState:y,viewBox:`${Ps/2} ${Ps/2} ${Ps} ${Ps}`,children:v.jsx(P$,{className:b.circle,style:x,ownerState:y,cx:Ps,cy:Ps,r:(Ps-d)/2,fill:"none",strokeWidth:d})})})});function L$(e){return it("MuiIconButton",e)}const mD=ut("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),M$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return st(l,L$,t)},F$=ke(mi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(Ct(({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})`:It(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}}]})),Ct(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(so()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(so()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It((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)}}],[`&.${mD.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${mD.loading}`]:{color:"transparent"}}))),B$=ke("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"}}]})),or=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:s,color:l="default",disabled:u=!1,disableFocusRipple:d=!1,size:p="medium",id:h,loading:g=null,loadingIndicator:y,...b}=r,x=id(h),S=y??v.jsx(ES,{"aria-labelledby":x,color:"inherit",size:16}),T={...r,edge:o,color:l,disabled:u,disableFocusRipple:d,loading:g,loadingIndicator:S,size:p},D=M$(T);return v.jsxs(F$,{id:g?x:h,className:qe(D.root,s),centerRipple:!0,focusRipple:!d,disabled:u||g,ref:n,...b,ownerState:T,children:[typeof g=="boolean"&&v.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:v.jsx(B$,{className:D.loadingIndicator,ownerState:T,children:g&&S})}),a]})});function j$(e){return it("MuiTypography",e)}const gD=ut("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),U$={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},H$=Uz(),z$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${Ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return st(l,j$,s)},$$=ke("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${Ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ct(({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(so()).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${Ne(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}}]}))),yD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},He=k.forwardRef(function(t,n){const{color:r,...o}=dt({props:t,name:"MuiTypography"}),a=!U$[r],s=H$({...o,...a&&{color:r}}),{align:l="inherit",className:u,component:d,gutterBottom:p=!1,noWrap:h=!1,paragraph:g=!1,variant:y="body1",variantMapping:b=yD,...x}=s,S={...s,align:l,color:r,className:u,component:d,gutterBottom:p,noWrap:h,paragraph:g,variant:y,variantMapping:b},T=d||(g?"p":b[y]||yD[y])||"span",D=z$(S);return v.jsx($$,{as:T,ref:n,className:qe(D.root,u),...x,ownerState:S,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...x.style}})});function V$(e){return it("MuiAppBar",e)}ut("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const G$=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Ne(t)}`,`position${Ne(n)}`]};return st(o,V$,r)},bD=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,q$=ke(Ji,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ne(n.position)}`],t[`color${Ne(n.color)}`]]}})(Ct(({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(so(["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?bD(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?bD(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"})}}]}))),W$=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:s=!1,position:l="fixed",...u}=r,d={...r,color:a,position:l,enableColorOnDark:s},p=G$(d);return v.jsx(q$,{square:!0,component:"header",ownerState:d,elevation:4,className:qe(p.root,o,l==="fixed"&&"mui-fixed"),ref:n,...u})});var To="top",Sa="bottom",Ca="right",So="left",xS="auto",kh=[To,Sa,Ca,So],ju="start",zp="end",Y$="clippingParents",i5="viewport",Df="popper",K$="reference",vD=kh.reduce(function(e,t){return e.concat([t+"-"+ju,t+"-"+zp])},[]),s5=[].concat(kh,[xS]).reduce(function(e,t){return e.concat([t,t+"-"+ju,t+"-"+zp])},[]),Q$="beforeRead",X$="read",Z$="afterRead",J$="beforeMain",eV="main",tV="afterMain",nV="beforeWrite",rV="write",oV="afterWrite",aV=[Q$,X$,Z$,J$,eV,tV,nV,rV,oV];function gi(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zl(e){var t=Yo(e).Element;return e instanceof t||e instanceof Element}function Ea(e){var t=Yo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function TS(e){if(typeof ShadowRoot>"u")return!1;var t=Yo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iV(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];!Ea(a)||!gi(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function sV(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]),l=s.reduce(function(u,d){return u[d]="",u},{});!Ea(o)||!gi(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const lV={name:"applyStyles",enabled:!0,phase:"write",fn:iV,effect:sV,requires:["computeStyles"]};function hi(e){return e.split("-")[0]}var Vl=Math.max,xy=Math.min,Uu=Math.round;function Cx(){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 l5(){return!/^((?!chrome|android).)*safari/i.test(Cx())}function Hu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Ea(e)&&(o=e.offsetWidth>0&&Uu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Uu(r.height)/e.offsetHeight||1);var s=Zl(e)?Yo(e):window,l=s.visualViewport,u=!l5()&&n,d=(r.left+(u&&l?l.offsetLeft:0))/o,p=(r.top+(u&&l?l.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 SS(e){var t=Hu(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 c5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&TS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rs(e){return Yo(e).getComputedStyle(e)}function cV(e){return["table","td","th"].indexOf(gi(e))>=0}function rl(e){return((Zl(e)?e.ownerDocument:e.document)||window.document).documentElement}function w0(e){return gi(e)==="html"?e:e.assignedSlot||e.parentNode||(TS(e)?e.host:null)||rl(e)}function ED(e){return!Ea(e)||rs(e).position==="fixed"?null:e.offsetParent}function uV(e){var t=/firefox/i.test(Cx()),n=/Trident/i.test(Cx());if(n&&Ea(e)){var r=rs(e);if(r.position==="fixed")return null}var o=w0(e);for(TS(o)&&(o=o.host);Ea(o)&&["html","body"].indexOf(gi(o))<0;){var a=rs(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 wh(e){for(var t=Yo(e),n=ED(e);n&&cV(n)&&rs(n).position==="static";)n=ED(n);return n&&(gi(n)==="html"||gi(n)==="body"&&rs(n).position==="static")?t:n||uV(e)||t}function CS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pp(e,t,n){return Vl(e,xy(t,n))}function dV(e,t,n){var r=pp(e,t,n);return r>n?n:r}function u5(){return{top:0,right:0,bottom:0,left:0}}function d5(e){return Object.assign({},u5(),e)}function f5(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,d5(typeof t!="number"?t:f5(t,kh))};function pV(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=hi(n.placement),u=CS(l),d=[So,Ca].indexOf(l)>=0,p=d?"height":"width";if(!(!a||!s)){var h=fV(o.padding,n),g=SS(a),y=u==="y"?To:So,b=u==="y"?Sa:Ca,x=n.rects.reference[p]+n.rects.reference[u]-s[u]-n.rects.popper[p],S=s[u]-n.rects.reference[u],T=wh(a),D=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,w=x/2-S/2,R=h[y],I=D-g[p]-h[b],O=D/2-g[p]/2+w,F=pp(R,O,I),j=u;n.modifiersData[r]=(t={},t[j]=F,t.centerOffset=F-O,t)}}function hV(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)||c5(t.elements.popper,o)&&(t.elements.arrow=o))}const mV={name:"arrow",enabled:!0,phase:"main",fn:pV,effect:hV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zu(e){return e.split("-")[1]}var gV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yV(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Uu(n*o)/o||0,y:Uu(r*o)/o||0}}function xD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,l=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"),w=So,R=To,I=window;if(d){var O=wh(n),F="clientHeight",j="clientWidth";if(O===Yo(n)&&(O=rl(n),rs(O).position!=="static"&&l==="absolute"&&(F="scrollHeight",j="scrollWidth")),O=O,o===To||(o===So||o===Ca)&&a===zp){R=Sa;var H=h&&O===I&&I.visualViewport?I.visualViewport.height:O[F];x-=H-r.height,x*=u?1:-1}if(o===So||(o===To||o===Sa)&&a===zp){w=Ca;var C=h&&O===I&&I.visualViewport?I.visualViewport.width:O[j];y-=C-r.width,y*=u?1:-1}}var M=Object.assign({position:l},d&&gV),$=p===!0?yV({x:y,y:x},Yo(n)):{x:y,y:x};if(y=$.x,x=$.y,u){var z;return Object.assign({},M,(z={},z[R]=D?"0":"",z[w]=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[w]=T?y+"px":"",t.transform="",t))}function bV(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,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:hi(t.placement),variation:zu(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,xD(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,xD(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 vV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bV,data:{}};var ug={passive:!0};function EV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,u=Yo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",n.update,ug)}),l&&u.addEventListener("resize",n.update,ug),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",n.update,ug)}),l&&u.removeEventListener("resize",n.update,ug)}}const xV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:EV,data:{}};var TV={left:"right",right:"left",bottom:"top",top:"bottom"};function zg(e){return e.replace(/left|right|bottom|top/g,function(t){return TV[t]})}var SV={start:"end",end:"start"};function TD(e){return e.replace(/start|end/g,function(t){return SV[t]})}function _S(e){var t=Yo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function AS(e){return Hu(rl(e)).left+_S(e).scrollLeft}function CV(e,t){var n=Yo(e),r=rl(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,u=0;if(o){a=o.width,s=o.height;var d=l5();(d||!d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:a,height:s,x:l+AS(e),y:u}}function _V(e){var t,n=rl(e),r=_S(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Vl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Vl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+AS(e),u=-r.scrollTop;return rs(o||n).direction==="rtl"&&(l+=Vl(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}function kS(e){var t=rs(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function p5(e){return["html","body","#document"].indexOf(gi(e))>=0?e.ownerDocument.body:Ea(e)&&kS(e)?e:p5(w0(e))}function hp(e,t){var n;t===void 0&&(t=[]);var r=p5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=Yo(r),s=o?[a].concat(a.visualViewport||[],kS(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(hp(w0(s)))}function _x(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function AV(e,t){var n=Hu(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 SD(e,t,n){return t===i5?_x(CV(e,n)):Zl(t)?AV(t,n):_x(_V(rl(e)))}function kV(e){var t=hp(w0(e)),n=["absolute","fixed"].indexOf(rs(e).position)>=0,r=n&&Ea(e)?wh(e):e;return Zl(r)?t.filter(function(o){return Zl(o)&&c5(o,r)&&gi(o)!=="body"}):[]}function wV(e,t,n,r){var o=t==="clippingParents"?kV(e):[].concat(t),a=[].concat(o,[n]),s=a[0],l=a.reduce(function(u,d){var p=SD(e,d,r);return u.top=Vl(p.top,u.top),u.right=xy(p.right,u.right),u.bottom=xy(p.bottom,u.bottom),u.left=Vl(p.left,u.left),u},SD(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function h5(e){var t=e.reference,n=e.element,r=e.placement,o=r?hi(r):null,a=r?zu(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case To:u={x:s,y:t.y-n.height};break;case Sa:u={x:s,y:t.y+t.height};break;case Ca:u={x:t.x+t.width,y:l};break;case So:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?CS(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case ju:u[d]=u[d]-(t[p]/2-n[p]/2);break;case zp:u[d]=u[d]+(t[p]/2-n[p]/2);break}}return u}function $p(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,l=n.boundary,u=l===void 0?Y$:l,d=n.rootBoundary,p=d===void 0?i5:d,h=n.elementContext,g=h===void 0?Df:h,y=n.altBoundary,b=y===void 0?!1:y,x=n.padding,S=x===void 0?0:x,T=d5(typeof S!="number"?S:f5(S,kh)),D=g===Df?K$:Df,w=e.rects.popper,R=e.elements[b?D:g],I=wV(Zl(R)?R:R.contextElement||rl(e.elements.popper),u,p,s),O=Hu(e.elements.reference),F=h5({reference:O,element:w,placement:o}),j=_x(Object.assign({},w,F)),H=g===Df?j: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===Df&&M){var $=M[o];Object.keys(C).forEach(function(z){var q=[Ca,Sa].indexOf(z)>=0?1:-1,Y=[To,Sa].indexOf(z)>=0?"y":"x";C[z]+=$[Y]*q})}return C}function DV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?s5:u,p=zu(r),h=p?l?vD:vD.filter(function(b){return zu(b)===p}):kh,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]=$p(e,{placement:x,boundary:o,rootBoundary:a,padding:s})[hi(x)],b},{});return Object.keys(y).sort(function(b,x){return y[b]-y[x]})}function RV(e){if(hi(e)===xS)return[];var t=zg(e);return[TD(e),t,TD(t)]}function IV(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,l=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=hi(S),D=T===S,w=u||(D||!b?[zg(S)]:RV(S)),R=[S].concat(w).reduce(function(ee,ce){return ee.concat(hi(ce)===xS?DV(t,{placement:ce,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:x}):ce)},[]),I=t.rects.reference,O=t.rects.popper,F=new Map,j=!0,H=R[0],C=0;C<R.length;C++){var M=R[C],$=hi(M),z=zu(M)===ju,q=[To,Sa].indexOf($)>=0,Y=q?"width":"height",B=$p(t,{placement:M,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),X=q?z?Ca:So:z?Sa:To;I[Y]>O[Y]&&(X=zg(X));var ae=zg(X),te=[];if(a&&te.push(B[$]<=0),l&&te.push(B[X]<=0,B[ae]<=0),te.every(function(ee){return ee})){H=M,j=!1;break}F.set(M,te)}if(j)for(var N=b?3:1,oe=function(ce){var re=R.find(function(be){var ye=F.get(be);if(ye)return ye.slice(0,ce).every(function(Ge){return Ge})});if(re)return H=re,"break"},K=N;K>0;K--){var P=oe(K);if(P==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const OV={name:"flip",enabled:!0,phase:"main",fn:IV,requiresIfExists:["offset"],data:{_skip:!1}};function CD(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 _D(e){return[To,Ca,Sa,So].some(function(t){return e[t]>=0})}function NV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=$p(t,{elementContext:"reference"}),l=$p(t,{altBoundary:!0}),u=CD(s,r),d=CD(l,o,a),p=_D(u),h=_D(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 PV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NV};function LV(e,t,n){var r=hi(e),o=[So,To].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*o,[So,Ca].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function MV(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,s=s5.reduce(function(p,h){return p[h]=LV(h,t.rects,a),p},{}),l=s[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const FV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MV};function BV(e){var t=e.state,n=e.name;t.modifiersData[n]=h5({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jV={name:"popperOffsets",enabled:!0,phase:"read",fn:BV,data:{}};function UV(e){return e==="x"?"y":"x"}function HV(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,s=n.altAxis,l=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=$p(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:p}),T=hi(t.placement),D=zu(t.placement),w=!D,R=CS(T),I=UV(R),O=t.modifiersData.popperOffsets,F=t.rects.reference,j=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,$={x:0,y:0};if(O){if(a){var z,q=R==="y"?To:So,Y=R==="y"?Sa:Ca,B=R==="y"?"height":"width",X=O[R],ae=X+S[q],te=X-S[Y],N=y?-j[B]/2:0,oe=D===ju?F[B]:j[B],K=D===ju?-j[B]:-F[B],P=t.elements.arrow,ee=y&&P?SS(P):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:u5(),re=ce[q],be=ce[Y],ye=pp(0,F[B],ee[B]),Ge=w?F[B]/2-N-ye-re-C.mainAxis:oe-ye-re-C.mainAxis,Me=w?-F[B]/2+N+ye+be+C.mainAxis:K+ye+be+C.mainAxis,Oe=t.elements.arrow&&wh(t.elements.arrow),Qe=Oe?R==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,nt=(z=M?.[R])!=null?z:0,Re=X+Ge-nt-Qe,gt=X+Me-nt,At=pp(y?xy(ae,Re):ae,X,y?Vl(te,gt):te);O[R]=At,$[R]=At-X}if(l){var je,mt=R==="x"?To:So,lt=R==="x"?Sa:Ca,ft=O[I],Ue=I==="y"?"height":"width",Le=ft+S[mt],Jt=ft-S[lt],Ut=[To,So].indexOf(T)!==-1,kt=(je=M?.[I])!=null?je:0,de=Ut?Le:ft-F[Ue]-j[Ue]-kt+C.altAxis,ge=Ut?ft+F[Ue]+j[Ue]-kt-C.altAxis:Jt,ze=y&&Ut?dV(de,ft,ge):pp(y?de:Le,ft,y?ge:Jt);O[I]=ze,$[I]=ze-ft}t.modifiersData[r]=$}}const zV={name:"preventOverflow",enabled:!0,phase:"main",fn:HV,requiresIfExists:["offset"]};function $V(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function VV(e){return e===Yo(e)||!Ea(e)?_S(e):$V(e)}function GV(e){var t=e.getBoundingClientRect(),n=Uu(t.width)/e.offsetWidth||1,r=Uu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qV(e,t,n){n===void 0&&(n=!1);var r=Ea(t),o=Ea(t)&&GV(t),a=rl(t),s=Hu(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((gi(t)!=="body"||kS(a))&&(l=VV(t)),Ea(t)?(u=Hu(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=AS(a))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function WV(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(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function YV(e){var t=WV(e);return aV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function KV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function QV(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 AD={placement:"bottom",modifiers:[],strategy:"absolute"};function kD(){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 XV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?AD:o;return function(l,u,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},AD,a),modifiersData:{},elements:{reference:l,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:Zl(l)?hp(l):l.contextElement?hp(l.contextElement):[],popper:hp(u)};var w=YV(QV([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(R){return R.enabled}),b(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,D=T.reference,w=T.popper;if(kD(D,w)){p.rects={reference:qV(D,wh(w),p.options.strategy==="fixed"),popper:SS(w)},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,j=F===void 0?{}:F,H=I.name;typeof O=="function"&&(p=O({state:p,options:j,name:H,instance:y})||p)}}}},update:KV(function(){return new Promise(function(S){y.forceUpdate(),S(p)})}),destroy:function(){x(),g=!0}};if(!kD(l,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,w=D===void 0?{}:D,R=S.effect;if(typeof R=="function"){var I=R({state:p,name:T,instance:y,options:w}),O=function(){};h.push(I||O)}})}function x(){h.forEach(function(S){return S()}),h=[]}return y}}var ZV=[xV,jV,vV,lV,FV,OV,zV,mV,PV],JV=XV({defaultModifiers:ZV});function Jl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:r5(n,r),{props:l,internalRef:u}=a5({...a,externalSlotProps:s}),d=ar(u,s?.ref,e.additionalProps?.ref);return n5(t,{...l,ref:d},r)}function sd(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}function eG(e){return typeof e=="function"?e():e}const m5=k.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[s,l]=k.useState(null),u=ar(k.isValidElement(r)?sd(r):null,n);if(Wo(()=>{a||l(eG(o)||document.body)},[o,a]),Wo(()=>{if(s&&!a)return cD(n,s),()=>{cD(n,null)}},[n,s,a]),a){if(k.isValidElement(r)){const d={ref:u};return k.cloneElement(r,d)}return r}return s&&u0.createPortal(r,s)});function tG(e){return it("MuiPopper",e)}ut("MuiPopper",["root"]);function nG(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 Ax(e){return typeof e=="function"?e():e}function rG(e){return e.nodeType!==void 0}const oG=e=>{const{classes:t}=e;return st({root:["root"]},tG,t)},aG={},iG=k.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:d,popperOptions:p,popperRef:h,slotProps:g={},slots:y={},TransitionProps:b,ownerState:x,...S}=t,T=k.useRef(null),D=ar(T,n),w=k.useRef(null),R=ar(w,h),I=k.useRef(R);Wo(()=>{I.current=R},[R]),k.useImperativeHandle(h,()=>w.current,[]);const O=nG(d,a),[F,j]=k.useState(O),[H,C]=k.useState(Ax(r));k.useEffect(()=>{w.current&&w.current.forceUpdate()}),k.useEffect(()=>{r&&C(Ax(r))},[r]),Wo(()=>{if(!H||!u)return;const Y=ae=>{j(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)}}];l!=null&&(B=B.concat(l)),p&&p.modifiers!=null&&(B=B.concat(p.modifiers));const X=JV(H,T.current,{placement:O,...p,modifiers:B});return I.current(X),()=>{X.destroy(),I.current(null)}},[H,s,l,u,p,O]);const M={placement:F};b!==null&&(M.TransitionProps=b);const $=oG(t),z=y.root??"div",q=Jl({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:D},ownerState:t,className:$.root});return v.jsx(z,{...q,children:typeof o=="function"?o(M):o})}),sG=k.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:g=aG,popperRef:y,style:b,transition:x=!1,slotProps:S={},slots:T={},...D}=t,[w,R]=k.useState(!0),I=()=>{R(!1)},O=()=>{R(!0)};if(!u&&!p&&(!x||w))return null;let F;if(a)F=a;else if(r){const C=Ax(r);F=C&&rG(C)?ko(C).body:ko(null).body}const j=!p&&u&&(!x||w)?"none":void 0,H=x?{in:p,onEnter:I,onExited:O}:void 0;return v.jsx(m5,{disablePortal:l,container:F,children:v.jsx(iG,{anchorEl:r,direction:s,disablePortal:l,modifiers:d,ref:n,open:x?!w:p,placement:h,popperOptions:g,popperRef:y,slotProps:S,slots:T,...D,style:{position:"fixed",top:0,left:0,display:j,...b},TransitionProps:H,children:o})})}),lG=ke(sG,{name:"MuiPopper",slot:"Root"})({}),g5=k.forwardRef(function(t,n){const r=Ah(),o=dt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:b,popperOptions:x,popperRef:S,transition:T,slots:D,slotProps:w,...R}=o,I=D?.root??l?.Root,O={anchorEl:a,container:d,disablePortal:p,keepMounted:h,modifiers:g,open:y,placement:b,popperOptions:x,popperRef:S,transition:T,...R};return v.jsx(lG,{as:s,direction:r?"rtl":"ltr",slots:{root:I},slotProps:w??u,...O,ref:n})}),cG=vi(v.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 uG(e){return it("MuiChip",e)}const Yt=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"]),dG=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:s,clickable:l,variant:u}=e,d={root:["root",u,n&&"disabled",`size${Ne(r)}`,`color${Ne(o)}`,l&&"clickable",l&&`clickableColor${Ne(o)}`,s&&"deletable",s&&`deletableColor${Ne(o)}`,`${u}${Ne(o)}`],label:["label",`label${Ne(r)}`],avatar:["avatar",`avatar${Ne(r)}`,`avatarColor${Ne(o)}`],icon:["icon",`icon${Ne(r)}`,`iconColor${Ne(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Ne(r)}`,`deleteIconColor${Ne(o)}`,`deleteIcon${Ne(u)}Color${Ne(o)}`]};return st(d,uG,t)},fG=ke("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:s,size:l,variant:u}=n;return[{[`& .${Yt.avatar}`]:t.avatar},{[`& .${Yt.avatar}`]:t[`avatar${Ne(l)}`]},{[`& .${Yt.avatar}`]:t[`avatarColor${Ne(r)}`]},{[`& .${Yt.icon}`]:t.icon},{[`& .${Yt.icon}`]:t[`icon${Ne(l)}`]},{[`& .${Yt.icon}`]:t[`iconColor${Ne(o)}`]},{[`& .${Yt.deleteIcon}`]:t.deleteIcon},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${Ne(l)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIconColor${Ne(r)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${Ne(u)}Color${Ne(r)}`]},t.root,t[`size${Ne(l)}`],t[`color${Ne(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Ne(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Ne(r)}`],t[u],t[`${u}${Ne(r)}`]]}})(Ct(({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",[`&.${Yt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Yt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Yt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Yt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Yt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Yt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Yt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:It(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)`:It(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Yt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Yt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(so(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Yt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:It(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Yt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Yt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(so(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Yt.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}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(so(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Yt.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]}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Yt.avatar}`]:{marginLeft:4},[`& .${Yt.avatarSmall}`]:{marginLeft:2},[`& .${Yt.icon}`]:{marginLeft:4},[`& .${Yt.iconSmall}`]:{marginLeft:2},[`& .${Yt.deleteIcon}`]:{marginRight:5},[`& .${Yt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(so()).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)`:It(e.palette[n].main,.7)}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:It(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Yt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:It(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),pG=ke("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Ne(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 wD(e){return e.key==="Backspace"||e.key==="Delete"}const Gl=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:s,color:l="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:w,skipFocusWhenDisabled:R=!1,slots:I={},slotProps:O={},...F}=r,j=k.useRef(null),H=ar(j,n),C=re=>{re.stopPropagation(),b&&b(re)},M=re=>{re.currentTarget===re.target&&wD(re)&&re.preventDefault(),x&&x(re)},$=re=>{re.currentTarget===re.target&&b&&wD(re)&&b(re),S&&S(re)},z=s!==!1&&y?!0:s,q=z||b?mi:u||"div",Y={...r,component:q,disabled:p,size:T,color:l,iconColor:k.isValidElement(h)&&h.props.color||l,onDelete:!!b,clickable:z,variant:D},B=dG(Y),X=q===mi?{component:u||"div",focusVisibleClassName:B.focusVisible,...b&&{disableRipple:!0}}:{};let ae=null;b&&(ae=d&&k.isValidElement(d)?k.cloneElement(d,{className:qe(d.props.className,B.deleteIcon),onClick:C}):v.jsx(cG,{className:B.deleteIcon,onClick:C}));let te=null;o&&k.isValidElement(o)&&(te=k.cloneElement(o,{className:qe(B.avatar,o.props.className)}));let N=null;h&&k.isValidElement(h)&&(N=k.cloneElement(h,{className:qe(B.icon,h.props.className)}));const oe={slots:I,slotProps:O},[K,P]=Bt("root",{elementType:fG,externalForwardedProps:{...oe,...F},ownerState:Y,shouldForwardComponentProp:!0,ref:H,className:qe(B.root,a),additionalProps:{disabled:z&&p?!0:void 0,tabIndex:R&&p?-1:w,...X},getSlotProps:re=>({...re,onClick:be=>{re.onClick?.(be),y(be)},onKeyDown:be=>{re.onKeyDown?.(be),M(be)},onKeyUp:be=>{re.onKeyUp?.(be),$(be)}})}),[ee,ce]=Bt("label",{elementType:pG,externalForwardedProps:oe,ownerState:Y,className:B.label});return v.jsxs(K,{as:q,...P,children:[te||N,v.jsx(ee,{...ce,children:g}),ae]})});function dg(e){return parseInt(e,10)||0}const hG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function mG(e){for(const t in e)return!1;return!0}function DD(e){return mG(e)||e.outerHeightStyle===0&&!e.overflowing}const gG=k.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:s,value:l,...u}=t,{current:d}=k.useRef(l!=null),p=k.useRef(null),h=ar(n,p),g=k.useRef(null),y=k.useRef(null),b=k.useCallback(()=>{const w=p.current,R=y.current;if(!w||!R)return;const O=Ua(w).getComputedStyle(w);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=O.width,R.value=w.value||t.placeholder||"x",R.value.slice(-1)===`
221
- `&&(R.value+=" ");const F=O.boxSizing,j=dg(O.paddingBottom)+dg(O.paddingTop),H=dg(O.borderBottomWidth)+dg(O.borderTopWidth),C=R.scrollHeight;R.value="x";const M=R.scrollHeight;let $=C;a&&($=Math.max(Number(a)*M,$)),o&&($=Math.min(Number(o)*M,$)),$=Math.max($,M);const z=$+(F==="border-box"?j+H:0),q=Math.abs($-C)<=1;return{outerHeightStyle:z,overflowing:q}},[o,a,t.placeholder]),x=va(()=>{const w=p.current,R=b();if(!w||!R||DD(R))return!1;const I=R.outerHeightStyle;return g.current!=null&&g.current!==I}),S=k.useCallback(()=>{const w=p.current,R=b();if(!w||!R||DD(R))return;const I=R.outerHeightStyle;g.current!==I&&(g.current=I,w.style.height=`${I}px`),w.style.overflow=R.overflowing?"hidden":""},[b]),T=k.useRef(-1);Wo(()=>{const w=A0(S),R=p?.current;if(!R)return;const I=Ua(R);I.addEventListener("resize",w);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)),()=>{w.clear(),cancelAnimationFrame(T.current),I.removeEventListener("resize",w),O&&O.disconnect()}},[b,S,x]),Wo(()=>{S()});const D=w=>{d||S();const R=w.target,I=R.value.length,O=R.value.endsWith(`
222
- `),F=R.selectionStart===I;O&&F&&R.setSelectionRange(I,I),r&&r(w)};return v.jsxs(k.Fragment,{children:[v.jsx("textarea",{value:l,onChange:D,ref:h,rows:a,style:s,...u}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...hG.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Vp(e){return typeof e=="string"}function fc({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 wS=k.createContext(void 0);function ol(){return k.useContext(wS)}function RD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ty(e,t=!1){return e&&(RD(e.value)&&e.value!==""||t&&RD(e.defaultValue)&&e.defaultValue!=="")}function yG(e){return e.startAdornment}function bG(e){return it("MuiInputBase",e)}const $u=ut("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var ID;const D0=(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${Ne(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},R0=(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]},vG=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:s,formControl:l,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:h,size:g,startAdornment:y,type:b}=e,x={root:["root",`color${Ne(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",s&&"focused",l&&"formControl",g&&g!=="medium"&&`size${Ne(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 st(x,bG,t)},I0=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:D0})(Ct(({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",[`&.${$u.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%"}}]}))),O0=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:R0})(Ct(({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] + .${$u.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},[`&.${$u.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"}}]}})),OD=yS({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),DS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,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:w={},inputRef:R,margin:I,maxRows:O,minRows:F,multiline:j=!1,name:H,onBlur:C,onChange:M,onClick:$,onFocus:z,onKeyDown:q,onKeyUp:Y,placeholder:B,readOnly:X,renderSuffix:ae,rows:te,size:N,slotProps:oe={},slots:K={},startAdornment:P,type:ee="text",value:ce,...re}=r,be=w.value!=null?w.value:ce,{current:ye}=k.useRef(be!=null),Ge=k.useRef(),Me=k.useCallback(Je=>{},[]),Oe=ar(Ge,R,w.ref,Me),[Qe,nt]=k.useState(!1),Re=ol(),gt=fc({props:r,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});gt.focused=Re?Re.focused:Qe,k.useEffect(()=>{!Re&&g&&Qe&&(nt(!1),C&&C())},[Re,g,Qe,C]);const At=Re&&Re.onFilled,je=Re&&Re.onEmpty,mt=k.useCallback(Je=>{Ty(Je)?At&&At():je&&je()},[At,je]);Wo(()=>{ye&&mt({value:be})},[be,mt,ye]);const lt=Je=>{z&&z(Je),w.onFocus&&w.onFocus(Je),Re&&Re.onFocus?Re.onFocus(Je):nt(!0)},ft=Je=>{C&&C(Je),w.onBlur&&w.onBlur(Je),Re&&Re.onBlur?Re.onBlur(Je):nt(!1)},Ue=(Je,...en)=>{if(!ye){const zt=Je.target||Ge.current;if(zt==null)throw new Error(ns(1));mt({value:zt.value})}w.onChange&&w.onChange(Je,...en),M&&M(Je,...en)};k.useEffect(()=>{mt(Ge.current)},[]);const Le=Je=>{Ge.current&&Je.currentTarget===Je.target&&Ge.current.focus(),$&&$(Je)};let Jt=D,Ut=w;j&&Jt==="input"&&(te?Ut={type:void 0,minRows:te,maxRows:te,...Ut}:Ut={type:void 0,maxRows:O,minRows:F,...Ut},Jt=gG);const kt=Je=>{mt(Je.animationName==="mui-auto-fill-cancel"?Ge.current:{value:"x"})};k.useEffect(()=>{Re&&Re.setAdornedStart(!!P)},[Re,P]);const de={...r,color:gt.color||"primary",disabled:gt.disabled,endAdornment:b,error:gt.error,focused:gt.focused,formControl:Re,fullWidth:S,hiddenLabel:gt.hiddenLabel,multiline:j,size:gt.size,startAdornment:P,type:ee},ge=vG(de),ze=K.root||d.Root||I0,Xe=oe.root||p.root||{},Et=K.input||d.Input||O0;return Ut={...Ut,...oe.input??p.input},v.jsxs(k.Fragment,{children:[!y&&typeof OD=="function"&&(ID||(ID=v.jsx(OD,{}))),v.jsxs(ze,{...Xe,ref:n,onClick:Le,...re,...!Vp(ze)&&{ownerState:{...de,...Xe.ownerState}},className:qe(ge.root,Xe.className,l,X&&"MuiInputBase-readOnly"),children:[P,v.jsx(wS.Provider,{value:null,children:v.jsx(Et,{"aria-invalid":gt.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:h,disabled:gt.disabled,id:T,onAnimationStart:kt,name:H,placeholder:B,readOnly:X,required:gt.required,rows:te,value:be,onKeyDown:q,onKeyUp:Y,type:ee,...Ut,...!Vp(Et)&&{as:Jt,ownerState:{...de,...Ut.ownerState}},ref:Oe,className:qe(ge.input,Ut.className,X&&"MuiInputBase-readOnly"),onBlur:ft,onChange:Ue,onFocus:lt})}),b,ae?ae({...gt,startAdornment:P}):null]})]})});function EG(e){return it("MuiInput",e)}const Rf={...$u,...ut("MuiInput",["root","underline","input"])};function xG(e){return it("MuiOutlinedInput",e)}const Ja={...$u,...ut("MuiOutlinedInput",["root","notchedOutline","input"])};function TG(e){return it("MuiFilledInput",e)}const Cl={...$u,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},SG=vi(v.jsx("path",{d:"M7 10l5 5 5-5z"})),CG={entering:{opacity:1},entered:{opacity:1}},kx=k.forwardRef(function(t,n){const r=nl(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:u,in:d,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:x,style:S,timeout:T=o,TransitionComponent:D=Va,...w}=t,R=k.useRef(null),I=ar(R,sd(l),n),O=q=>Y=>{if(q){const B=R.current;Y===void 0?q(B):q(B,Y)}},F=O(g),j=O((q,Y)=>{t5(q);const B=Bu({style:S,timeout:T,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",B),q.style.transition=r.transitions.create("opacity",B),p&&p(q,Y)}),H=O(h),C=O(x),M=O(q=>{const Y=Bu({style:S,timeout:T,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),y&&y(q)}),$=O(b),z=q=>{a&&a(R.current,q)};return v.jsx(D,{appear:s,in:d,nodeRef:R,onEnter:j,onEntered:H,onEntering:F,onExit:M,onExited:$,onExiting:C,addEndListener:z,timeout:T,...w,children:(q,{ownerState:Y,...B})=>k.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!d?"hidden":void 0,...CG[q],...S,...l.props.style},ref:I,...B})})});function _G(e){return it("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const AG=e=>{const{classes:t,invisible:n}=e;return st({root:["root",n&&"invisible"]},_G,t)},kG=ke("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"}}]}),y5=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:u,components:d={},componentsProps:p={},slotProps:h={},slots:g={},TransitionComponent:y,transitionDuration:b,...x}=r,S={...r,component:s,invisible:l},T=AG(S),D={transition:y,root:d.Root,...g},w={...p,...h},R={slots:D,slotProps:w},[I,O]=Bt("root",{elementType:kG,externalForwardedProps:R,className:qe(T.root,a),ownerState:S}),[F,j]=Bt("transition",{elementType:kx,externalForwardedProps:R,ownerState:S});return v.jsx(F,{in:u,timeout:b,...x,...j,children:v.jsx(I,{"aria-hidden":!0,...O,classes:T,ref:n,children:o})})}),wG=ut("MuiBox",["root"]),DG=_0(),Nt=I3({themeId:pi,defaultTheme:DG,defaultClassName:wG.root,generateClassName:sS.generate}),RG=vi(v.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"})),IG=ke(mi)(Ct(({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:hx(e.palette.grey[200],.12)}:{backgroundColor:hx(e.palette.grey[600],.12)}}}))),OG=ke(RG)({width:24,height:16});function NG(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return v.jsx("li",{children:v.jsx(IG,{focusRipple:!0,...r,ownerState:o,children:v.jsx(OG,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function PG(e){return it("MuiBreadcrumbs",e)}const LG=ut("MuiBreadcrumbs",["root","ol","li","separator"]),MG=e=>{const{classes:t}=e;return st({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},PG,t)},FG=ke(He,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${LG.li}`]:t.li},t.root]})({}),BG=ke("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),jG=ke("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function UG(e,t,n,r){return e.reduce((o,a,s)=>(s<e.length-1?o=o.concat(a,v.jsx(jG,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):o.push(a),o),[])}const HG=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:s="nav",slots:l={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:h=1,maxItems:g=8,separator:y="/",...b}=r,[x,S]=k.useState(!1),T={...r,component:s,expanded:x,expandText:d,itemsAfterCollapse:p,itemsBeforeCollapse:h,maxItems:g,separator:y},D=MG(T),w=Jl({elementType:l.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:T}),R=k.useRef(null),I=F=>{const j=()=>{S(!0);const H=R.current.querySelector("a[href],button,[tabindex]");H&&H.focus()};return h+p>=F.length?F:[...F.slice(0,h),v.jsx(NG,{"aria-label":d,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:j},"ellipsis"),...F.slice(F.length-p,F.length)]},O=k.Children.toArray(o).filter(F=>k.isValidElement(F)).map((F,j)=>v.jsx("li",{className:D.li,children:F},`child-${j}`));return v.jsx(FG,{ref:n,component:s,color:"textSecondary",className:qe(D.root,a),ownerState:T,...b,children:v.jsx(BG,{className:D.ol,ref:R,ownerState:T,children:UG(x||g&&O.length<=g?O:I(O),D.separator,y,T)})})});function zG(e){return it("MuiButton",e)}const _l=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"]),$G=k.createContext({}),VG=k.createContext(void 0),GG=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:s,loadingPosition:l,classes:u}=e,d={root:["root",s&&"loading",a,`${a}${Ne(t)}`,`size${Ne(o)}`,`${a}Size${Ne(o)}`,`color${Ne(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Ne(l)}`],startIcon:["icon","startIcon",`iconSize${Ne(o)}`],endIcon:["icon","endIcon",`iconSize${Ne(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=st(d,zG,u);return{...u,...p}},b5=[{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}}}],qG=ke(mi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ne(n.color)}`],t[`size${Ne(n.size)}`],t[`${n.variant}Size${Ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ct(({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"},[`&.${_l.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]},[`&.${_l.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${_l.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)",[`&.${_l.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(so()).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)`:It(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})`:It(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})`:It(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})`:It(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:It(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"},[`&.${_l.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_l.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}),[`&.${_l.loading}`]:{color:"transparent"}}}]}})),WG=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Ne(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}},...b5]})),YG=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Ne(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}},...b5]})),KG=ke("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}}]})),ND=ke("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Hr=k.forwardRef(function(t,n){const r=k.useContext($G),o=k.useContext(VG),a=Up(r,t),s=dt({props:a,name:"MuiButton"}),{children:l,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:w,loadingPosition:R="center",size:I="medium",startIcon:O,type:F,variant:j="text",...H}=s,C=id(T),M=w??v.jsx(ES,{"aria-labelledby":C,color:"inherit",size:16}),$={...s,color:u,component:d,disabled:h,disableElevation:g,disableFocusRipple:y,fullWidth:S,loading:D,loadingIndicator:M,loadingPosition:R,size:I,type:F,variant:j},z=GG($),q=(O||D&&R==="start")&&v.jsx(WG,{className:z.startIcon,ownerState:$,children:O||v.jsx(ND,{className:z.loadingIconPlaceholder,ownerState:$})}),Y=(b||D&&R==="end")&&v.jsx(YG,{className:z.endIcon,ownerState:$,children:b||v.jsx(ND,{className:z.loadingIconPlaceholder,ownerState:$})}),B=o||"",X=typeof D=="boolean"?v.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:D&&v.jsx(KG,{className:z.loadingIndicator,ownerState:$,children:M})}):null;return v.jsxs(qG,{ownerState:$,className:qe(r.className,z.root,p,B),component:d,disabled:h||D,focusRipple:!y,focusVisibleClassName:qe(z.focusVisible,x),ref:n,type:F,id:D?C:T,...H,classes:z,children:[q,R!=="end"&&X,l,R==="end"&&X,Y]})});function QG(e){return it("MuiCard",e)}ut("MuiCard",["root"]);const XG=e=>{const{classes:t}=e;return st({root:["root"]},QG,t)},ZG=ke(Ji,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),bu=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCard"}),{className:o,raised:a=!1,...s}=r,l={...r,raised:a},u=XG(l);return v.jsx(ZG,{className:qe(u.root,o),elevation:a?8:void 0,ref:n,ownerState:l,...s})});function JG(e){return it("MuiCardActions",e)}ut("MuiCardActions",["root","spacing"]);const eq=e=>{const{classes:t,disableSpacing:n}=e;return st({root:["root",!n&&"spacing"]},JG,t)},tq=ke("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}}}]}),N0=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a,...s}=r,l={...r,disableSpacing:o},u=eq(l);return v.jsx(tq,{className:qe(u.root,a),ownerState:l,ref:n,...s})});function nq(e){return it("MuiCardContent",e)}ut("MuiCardContent",["root"]);const rq=e=>{const{classes:t}=e;return st({root:["root"]},nq,t)},oq=ke("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),vu=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardContent"}),{className:o,component:a="div",...s}=r,l={...r,component:a},u=rq(l);return v.jsx(oq,{as:a,className:qe(u.root,o),ownerState:l,ref:n,...s})});function aq(e){return it("MuiCardMedia",e)}ut("MuiCardMedia",["root","media","img"]);const iq=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return st({root:["root",n&&"media",r&&"img"]},aq,t)},sq=ke("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"}}]}),lq=["video","audio","picture","iframe","img"],cq=["picture","img"],uq=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiCardMedia"}),{children:o,className:a,component:s="div",image:l,src:u,style:d,...p}=r,h=lq.includes(s),g=!h&&l?{backgroundImage:`url("${l}")`,...d}:d,y={...r,component:s,isMediaComponent:h,isImageComponent:cq.includes(s)},b=iq(y);return v.jsx(sq,{className:qe(b.root,a),as:s,role:!h&&l?"img":void 0,ref:n,style:g,ownerState:y,src:h?l||u:void 0,...p,children:o})});function dq(e){return it("PrivateSwitchBase",e)}ut("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const fq=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${Ne(o)}`],input:["input"]};return st(a,dq,t)},pq=ke(mi)({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}}]}),hq=ke("input",{shouldForwardProp:co})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mq=k.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:h,inputProps:g,inputRef:y,name:b,onBlur:x,onChange:S,onFocus:T,readOnly:D,required:w=!1,tabIndex:R,type:I,value:O,slots:F={},slotProps:j={},...H}=t,[C,M]=yy({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),$=ol(),z=ce=>{T&&T(ce),$&&$.onFocus&&$.onFocus(ce)},q=ce=>{x&&x(ce),$&&$.onBlur&&$.onBlur(ce)},Y=ce=>{if(ce.nativeEvent.defaultPrevented)return;const re=ce.target.checked;M(re),S&&S(ce,re)};let B=l;$&&typeof B>"u"&&(B=$.disabled);const X=I==="checkbox"||I==="radio",ae={...t,checked:C,disabled:B,disableFocusRipple:u,edge:d},te=fq(ae),N={slots:F,slotProps:{input:g,...j}},[oe,K]=Bt("root",{ref:n,elementType:pq,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...N,component:"span",...H},getSlotProps:ce=>({...ce,onFocus:re=>{ce.onFocus?.(re),z(re)},onBlur:re=>{ce.onBlur?.(re),q(re)}}),ownerState:ae,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:B,role:void 0,tabIndex:null}}),[P,ee]=Bt("input",{ref:y,elementType:hq,className:te.input,externalForwardedProps:N,getSlotProps:ce=>({...ce,onChange:re=>{ce.onChange?.(re),Y(re)}}),ownerState:ae,additionalProps:{autoFocus:r,checked:o,defaultChecked:s,disabled:B,id:X?h:void 0,name:b,readOnly:D,required:w,tabIndex:R,type:I,...I==="checkbox"&&O===void 0?{}:{value:O}}});return v.jsxs(oe,{...K,children:[v.jsx(P,{...ee}),C?a:p]})}),RS=FH({createStyledComponent:ke("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Ne(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>dt({props:e,name:"MuiContainer"})}),wx=typeof yS({})=="function",gq=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),yq=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}}),v5=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const l=e.getColorSchemeSelector(a);l.startsWith("@")?n[l]={":root":{colorScheme:s.palette?.mode}}:n[l.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let r={html:gq(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...yq(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},$g="mui-ecs",bq=e=>{const t=v5(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${$g})`]={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(.${$g}))`]:{colorScheme:o.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${$g}))`]:{colorScheme:o.palette?.mode}}}),t},vq=yS(wx?({theme:e,enableColorScheme:t})=>v5(e,t):({theme:e})=>bq(e));function Eq(e){const t=dt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(k.Fragment,{children:[wx&&v.jsx(vq,{enableColorScheme:r}),!wx&&!r&&v.jsx("span",{className:$g,style:{display:"none"}}),n]})}function E5(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function xq(e){const t=ko(e);return t.body===e?Ua(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function mp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function PD(e){return parseInt(Ua(e).getComputedStyle(e).paddingRight,10)||0}function Tq(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 LD(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),u=!Tq(s);l&&u&&mp(s,o)})}function X1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Sq(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(xq(r)){const s=E5(Ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${PD(r)+s}px`;const l=ko(r).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${PD(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=ko(r).body;else{const s=r.parentElement,l=Ua(r);a=s?.nodeName==="HTML"&&l.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:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function Cq(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class _q{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&&mp(t.modalRef,!1);const o=Cq(n);LD(n,t.mount,t.modalRef,o,!0);const a=X1(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=X1(this.containers,a=>a.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Sq(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=X1(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&&mp(t.modalRef,n),LD(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&&mp(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Aq=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kq(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 wq(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 Dq(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||wq(e))}function Rq(e){const t=[],n=[];return Array.from(e.querySelectorAll(Aq)).forEach((r,o)=>{const a=kq(r);a===-1||!Dq(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 Iq(){return!0}function Oq(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Rq,isEnabled:s=Iq,open:l}=e,u=k.useRef(!1),d=k.useRef(null),p=k.useRef(null),h=k.useRef(null),g=k.useRef(null),y=k.useRef(!1),b=k.useRef(null),x=ar(sd(t),b),S=k.useRef(null);k.useEffect(()=>{!l||!b.current||(y.current=!n)},[n,l]),k.useEffect(()=>{if(!l||!b.current)return;const w=ko(b.current);return b.current.contains(w.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)}},[l]),k.useEffect(()=>{if(!l||!b.current)return;const w=ko(b.current),R=F=>{S.current=F,!(r||!s()||F.key!=="Tab")&&w.activeElement===b.current&&F.shiftKey&&(u.current=!0,p.current&&p.current.focus())},I=()=>{const F=b.current;if(F===null)return;if(!w.hasFocus()||!s()||u.current){u.current=!1;return}if(F.contains(w.activeElement)||r&&w.activeElement!==d.current&&w.activeElement!==p.current)return;if(w.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let j=[];if((w.activeElement===d.current||w.activeElement===p.current)&&(j=a(b.current)),j.length>0){const H=!!(S.current?.shiftKey&&S.current?.key==="Tab"),C=j[0],M=j[j.length-1];typeof C!="string"&&typeof M!="string"&&(H?M.focus():C.focus())}else F.focus()};w.addEventListener("focusin",I),w.addEventListener("keydown",R,!0);const O=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),w.removeEventListener("focusin",I),w.removeEventListener("keydown",R,!0)}},[n,r,o,s,l,a]);const T=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0,g.current=w.target;const R=t.props.onFocus;R&&R(w)},D=w=>{h.current===null&&(h.current=w.relatedTarget),y.current=!0};return v.jsxs(k.Fragment,{children:[v.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:d,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:x,onFocus:T}),v.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:p,"data-testid":"sentinelEnd"})]})}function Nq(e){return typeof e=="function"?e():e}function Pq(e){return e?e.props.hasOwnProperty("in"):!1}const MD=()=>{},fg=new _q;function Lq(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:p}=e,h=k.useRef({}),g=k.useRef(null),y=k.useRef(null),b=ar(y,p),[x,S]=k.useState(!d),T=Pq(l);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const w=()=>ko(g.current),R=()=>(h.current.modalRef=y.current,h.current.mount=g.current,h.current),I=()=>{fg.mount(R(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},O=va(()=>{const Y=Nq(t)||w().body;fg.add(R(),Y),y.current&&I()}),F=()=>fg.isTopModal(R()),j=va(Y=>{g.current=Y,Y&&(d&&F()?I():y.current&&mp(y.current,D))}),H=k.useCallback(()=>{fg.remove(R(),D)},[D]);k.useEffect(()=>()=>{H()},[H]),k.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=o5(e);delete B.onTransitionEnter,delete B.onTransitionExited;const X={...B,...Y};return{role:"presentation",...X,onKeyDown:C(X),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:lD(Y,l?.props.onEnter??MD),onExited:lD(B,l?.props.onExited??MD)}},rootRef:b,portalRef:j,isTopModal:F,exited:x,hasTransition:T}}function Mq(e){return it("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const Fq=e=>{const{open:t,exited:n,classes:r}=e;return st({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Mq,r)},Bq=ke("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ct(({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"}}]}))),jq=ke(y5,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),x5=k.forwardRef(function(t,n){const r=dt({name:"MuiModal",props:t}),{BackdropComponent:o=jq,BackdropProps:a,classes:s,className:l,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:w=!1,hideBackdrop:R=!1,keepMounted:I=!1,onClose:O,onTransitionEnter:F,onTransitionExited:j,open:H,slotProps:C={},slots:M={},theme:$,...z}=r,q={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:T,disableRestoreFocus:D,disableScrollLock:w,hideBackdrop:R,keepMounted:I},{getRootProps:Y,getBackdropProps:B,getTransitionProps:X,portalRef:ae,isTopModal:te,exited:N,hasTransition:oe}=Lq({...q,rootRef:n}),K={...q,exited:N},P=Fq(K),ee={};if(d.props.tabIndex===void 0&&(ee.tabIndex="-1"),oe){const{onEnter:Me,onExited:Oe}=X();ee.onEnter=Me,ee.onExited=Oe}const ce={slots:{root:g.Root,backdrop:g.Backdrop,...M},slotProps:{...y,...C}},[re,be]=Bt("root",{ref:n,elementType:Bq,externalForwardedProps:{...ce,...z,component:h},getSlotProps:Y,ownerState:K,className:qe(l,P?.root,!K.open&&K.exited&&P?.hidden)}),[ye,Ge]=Bt("backdrop",{ref:a?.ref,elementType:o,externalForwardedProps:ce,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Me=>B({...Me,onClick:Oe=>{Me?.onClick&&Me.onClick(Oe)}}),className:qe(a?.className,P?.backdrop),ownerState:K});return!I&&!H&&(!oe||N)?null:v.jsx(m5,{ref:ae,container:p,disablePortal:T,children:v.jsxs(re,{...be,children:[!R&&o?v.jsx(ye,{...Ge}):null,v.jsx(Oq,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:te,open:H,children:k.cloneElement(d,ee)})]})})});function Uq(e){return it("MuiDialog",e)}const Z1=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),T5=k.createContext({}),Hq=ke(y5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),zq=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Ne(n)}`],paper:["paper",`paperScroll${Ne(n)}`,`paperWidth${Ne(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return st(s,Uq,t)},$q=ke(x5,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Vq=ke("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Ne(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"}}}]}),Gq=ke(Ji,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Ne(n.scroll)}`],t[`paperWidth${Ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ct(({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%"}}}]}))),Vu=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialog"}),o=nl(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"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:w,PaperComponent:R=Ji,PaperProps:I={},scroll:O="paper",slots:F={},slotProps:j={},TransitionComponent:H=kx,transitionDuration:C=a,TransitionProps:M,...$}=r,z={...r,disableEscapeKeyDown:y,fullScreen:b,fullWidth:x,maxWidth:S,scroll:O},q=zq(z),Y=k.useRef(),B=nt=>{Y.current=nt.target===nt.currentTarget},X=nt=>{T&&T(nt),Y.current&&(Y.current=null,D&&D(nt,"backdropClick"))},ae=id(l),te=k.useMemo(()=>({titleId:ae}),[ae]),N={transition:H,...F},oe={transition:M,paper:I,backdrop:p,...j},K={slots:N,slotProps:oe},[P,ee]=Bt("root",{elementType:$q,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z,className:qe(q.root,g),ref:n}),[ce,re]=Bt("backdrop",{elementType:Hq,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z}),[be,ye]=Bt("paper",{elementType:Gq,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z,className:qe(q.paper,I.className)}),[Ge,Me]=Bt("container",{elementType:Vq,externalForwardedProps:K,ownerState:z,className:q.container}),[Oe,Qe]=Bt("transition",{elementType:kx,externalForwardedProps:K,ownerState:z,additionalProps:{appear:!0,in:w,timeout:C,role:"presentation"}});return v.jsx(P,{closeAfterTransition:!0,slots:{backdrop:ce},slotProps:{backdrop:{transitionDuration:C,as:d,...re}},disableEscapeKeyDown:y,onClose:D,open:w,onClick:X,...ee,...$,children:v.jsx(Oe,{...Qe,children:v.jsx(Ge,{onMouseDown:B,...Me,children:v.jsx(be,{as:R,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":ae,"aria-modal":u,...ye,children:v.jsx(T5.Provider,{value:te,children:h})})})})})});function qq(e){return it("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const Wq=e=>{const{classes:t,disableSpacing:n}=e;return st({root:["root",!n&&"spacing"]},qq,t)},Yq=ke("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}}}]}),S5=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},u=Wq(l);return v.jsx(Yq,{className:qe(u.root,o),ownerState:l,ref:n,...s})});function Kq(e){return it("MuiDialogContent",e)}ut("MuiDialogContent",["root","dividers"]);function Qq(e){return it("MuiDialogTitle",e)}const Xq=ut("MuiDialogTitle",["root"]),Zq=e=>{const{classes:t,dividers:n}=e;return st({root:["root",n&&"dividers"]},Kq,t)},Jq=ke("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ct(({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:{[`.${Xq.root} + &`]:{paddingTop:0}}}]}))),Gu=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=r,l={...r,dividers:a},u=Zq(l);return v.jsx(Jq,{className:qe(u.root,o),ownerState:l,ref:n,...s})});function eW(e){return it("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const tW=e=>{const{classes:t}=e,r=st({root:["root"]},eW,t);return{...t,...r}},nW=ke(He,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),rW=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogContentText"}),{children:o,className:a,...s}=r,l=tW(s);return v.jsx(nW,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:qe(l.root,a),...r,classes:l})}),oW=e=>{const{classes:t}=e;return st({root:["root"]},Qq,t)},aW=ke(He,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),qu=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDialogTitle"}),{className:o,id:a,...s}=r,l=r,u=oW(l),{titleId:d=a}=k.useContext(T5);return v.jsx(aW,{component:"h2",className:qe(u.root,o),ownerState:l,ref:n,variant:"h6",id:a??d,...s})});function iW(e){return it("MuiDivider",e)}const FD=ut("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sW=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:s,textAlign:l,variant:u}=e;return st({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},iW,r)},lW=ke("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]}})(Ct(({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)`:It(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%"}}}]}))),cW=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ct(({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)`}}]}))),Er=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:s,orientation:l="horizontal",component:u=a||l==="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:l,role:h,textAlign:g,variant:y},S=sW(x);return v.jsx(lW,{as:u,className:qe(S.root,s),role:h,ref:n,ownerState:x,"aria-orientation":h==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...b,children:a?v.jsx(cW,{className:S.wrapper,ownerState:x,children:a}):null})});Er&&(Er.muiSkipListHighlight=!0);const uW=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:s,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${Ne(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},d=st(u,TG,t);return{...t,...d}},dW=ke(I0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...D0(e,t),!n.disableUnderline&&t.underline]}})(Ct(({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}},[`&.${Cl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Cl.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"},[`&.${Cl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Cl.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(.${Cl.disabled}, .${Cl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Cl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(so()).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:l})=>s.multiline&&l==="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}}]}})),fW=ke(O0,{name:"MuiFilledInput",slot:"Input",overridesResolver:R0})(Ct(({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}}]}))),IS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:u,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:g={},type:y="text",...b}=r,x={...r,disableUnderline:o,fullWidth:l,inputComponent:d,multiline:p,type:y},S=uW(r),T={root:{ownerState:x},input:{ownerState:x}},D=h??s?Pr(T,h??s):T,w=g.root??a.Root??dW,R=g.input??a.Input??fW;return v.jsx(DS,{slots:{root:w,input:R},slotProps:D,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:y,...b,classes:S})});IS.muiName="Input";function pW(e){return it("MuiFormControl",e)}ut("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hW=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Ne(n)}`,r&&"fullWidth"]};return st(o,pW,t)},mW=ke("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Ne(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%"}}]}),Sy=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormControl"}),{children:o,className:a,color:s="primary",component:l="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:l,disabled:u,error:d,fullWidth:h,hiddenLabel:g,margin:y,required:b,size:x,variant:S},w=hW(D),[R,I]=k.useState(()=>{let Y=!1;return o&&k.Children.forEach(o,B=>{if(!fp(B,["Input","Select"]))return;const X=fp(B,["Select"])?B.props.input:B;X&&yG(X.props)&&(Y=!0)}),Y}),[O,F]=k.useState(()=>{let Y=!1;return o&&k.Children.forEach(o,B=>{fp(B,["Input","Select"])&&(Ty(B.props,!0)||Ty(B.props.inputProps,!0))&&(Y=!0)}),Y}),[j,H]=k.useState(!1);u&&j&&H(!1);const C=p!==void 0&&!u?p:j;let M;k.useRef(!1);const $=k.useCallback(()=>{F(!0)},[]),z=k.useCallback(()=>{F(!1)},[]),q=k.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:$,registerEffect:M,required:b,variant:S}),[R,s,u,d,O,C,h,g,M,z,$,b,x,S]);return v.jsx(wS.Provider,{value:q,children:v.jsx(mW,{as:l,ownerState:D,className:qe(w.root,a),ref:n,...T,children:o})})});function gW(e){return it("MuiFormControlLabel",e)}const op=ut("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),yW=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${Ne(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return st(s,gW,t)},bW=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${op.label}`]:t.label},t.root,t[`labelPlacement${Ne(n.labelPlacement)}`]]}})(Ct(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${op.disabled}`]:{cursor:"default"},[`& .${op.label}`]:{[`&.${op.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),vW=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ct(({theme:e})=>({[`&.${op.error}`]:{color:(e.vars||e).palette.error.main}}))),EW=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:s={},control:l,disabled:u,disableTypography:d,inputRef:p,label:h,labelPlacement:g="end",name:y,onChange:b,required:x,slots:S={},slotProps:T={},value:D,...w}=r,R=ol(),I=u??l.props.disabled??R?.disabled,O=x??l.props.required,F={disabled:I,required:O};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof l.props[Y]>"u"&&typeof r[Y]<"u"&&(F[Y]=r[Y])});const j=fc({props:r,muiFormControl:R,states:["error"]}),H={...r,disabled:I,labelPlacement:g,required:O,error:j.error},C=yW(H),M={slots:S,slotProps:{...s,...T}},[$,z]=Bt("typography",{elementType:He,externalForwardedProps:M,ownerState:H});let q=h;return q!=null&&q.type!==He&&!d&&(q=v.jsx($,{component:"span",...z,className:qe(C.label,z?.className),children:q})),v.jsxs(bW,{className:qe(C.root,a),ownerState:H,ref:n,...w,children:[k.cloneElement(l,F),O?v.jsxs("div",{children:[q,v.jsxs(vW,{ownerState:H,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):q]})});function xW(e){return it("MuiFormHelperText",e)}const BD=ut("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var jD;const TW=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:s,focused:l,required:u}=e,d={root:["root",o&&"disabled",a&&"error",r&&`size${Ne(r)}`,n&&"contained",l&&"focused",s&&"filled",u&&"required"]};return st(d,xW,t)},SW=ke("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Ne(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ct(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${BD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${BD.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}}]}))),CW=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:s="p",disabled:l,error:u,filled:d,focused:p,margin:h,required:g,variant:y,...b}=r,x=ol(),S=fc({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=TW(T);return v.jsx(SW,{as:s,className:qe(D.root,a),ref:n,...b,ownerState:T,children:o===" "?jD||(jD=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function _W(e){return it("MuiFormLabel",e)}const gp=ut("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),AW=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:s,required:l}=e,u={root:["root",`color${Ne(n)}`,o&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return st(u,_W,t)},kW=ke("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ct(({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(so()).map(([t])=>({props:{color:t},style:{[`&.${gp.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${gp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gp.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),wW=ke("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ct(({theme:e})=>({[`&.${gp.error}`]:{color:(e.vars||e).palette.error.main}}))),DW=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:s,component:l="label",disabled:u,error:d,filled:p,focused:h,required:g,...y}=r,b=ol(),x=fc({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),S={...r,color:x.color||"primary",component:l,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},T=AW(S);return v.jsxs(kW,{as:l,ownerState:S,className:qe(T.root,a),ref:n,...y,children:[o,x.required&&v.jsxs(wW,{ownerState:S,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})}),Kn=JH({createStyledComponent:ke("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>dt({props:e,name:"MuiGrid"}),useTheme:nl});function Dx(e){return`scale(${e}, ${e**2})`}const RW={entering:{opacity:1,transform:Dx(1)},entered:{opacity:1,transform:"none"}},J1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cy=k.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:y,style:b,timeout:x="auto",TransitionComponent:S=Va,...T}=t,D=Fl(),w=k.useRef(),R=nl(),I=k.useRef(null),O=ar(I,sd(a),n),F=Y=>B=>{if(Y){const X=I.current;B===void 0?Y(X):Y(X,B)}},j=F(p),H=F((Y,B)=>{t5(Y);const{duration:X,delay:ae,easing:te}=Bu({style:b,timeout:x,easing:s},{mode:"enter"});let N;x==="auto"?(N=R.transitions.getAutoHeightDuration(Y.clientHeight),w.current=N):N=X,Y.style.transition=[R.transitions.create("opacity",{duration:N,delay:ae}),R.transitions.create("transform",{duration:J1?N:N*.666,delay:ae,easing:te})].join(","),u&&u(Y,B)}),C=F(d),M=F(y),$=F(Y=>{const{duration:B,delay:X,easing:ae}=Bu({style:b,timeout:x,easing:s},{mode:"exit"});let te;x==="auto"?(te=R.transitions.getAutoHeightDuration(Y.clientHeight),w.current=te):te=B,Y.style.transition=[R.transitions.create("opacity",{duration:te,delay:X}),R.transitions.create("transform",{duration:J1?te:te*.666,delay:J1?X:X||te*.333,easing:ae})].join(","),Y.style.opacity=0,Y.style.transform=Dx(.75),h&&h(Y)}),z=F(g),q=Y=>{x==="auto"&&D.start(w.current||0,Y),r&&r(I.current,Y)};return v.jsx(S,{appear:o,in:l,nodeRef:I,onEnter:H,onEntered:C,onEntering:j,onExit:$,onExited:z,onExiting:M,addEndListener:q,timeout:x==="auto"?null:x,...T,children:(Y,{ownerState:B,...X})=>k.cloneElement(a,{style:{opacity:0,transform:Dx(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...RW[Y],...b,...a.props.style},ref:O,...X})})});Cy&&(Cy.muiSupportAuto=!0);const IW=e=>{const{classes:t,disableUnderline:n}=e,o=st({root:["root",!n&&"underline"],input:["input"]},EG,t);return{...t,...o}},OW=ke(I0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...D0(e,t),!n.disableUnderline&&t.underline]}})(Ct(({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"},[`&.${Rf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Rf.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(.${Rf.disabled}, .${Rf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Rf.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(so()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),NW=ke(O0,{name:"MuiInput",slot:"Input",overridesResolver:R0})({}),OS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:g="text",...y}=r,b=IW(r),S={root:{ownerState:{disableUnderline:o}}},T=p??s?Pr(p??s,S):S,D=h.root??a.Root??OW,w=h.input??a.Input??NW;return v.jsx(DS,{slots:{root:D,input:w},slotProps:T,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:g,...y,classes:b})});OS.muiName="Input";function PW(e){return it("MuiInputLabel",e)}ut("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const LW=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:s,required:l}=e,u={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Ne(r)}`,s],asterisk:[l&&"asterisk"]},d=st(u,PW,t);return{...t,...d}},MW=ke(DW,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gp.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]]}})(Ct(({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)"}}]}))),C5=k.forwardRef(function(t,n){const r=dt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:s,variant:l,className:u,...d}=r,p=ol();let h=s;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const g=fc({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=LW(y);return v.jsx(MW,{"data-shrink":h,ref:n,className:qe(b.root,u),...d,ownerState:y,classes:b})}),Fa=k.createContext({});function FW(e){return it("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const BW=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return st({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},FW,t)},jW=ke("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}}]}),Dh=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiList"}),{children:o,className:a,component:s="ul",dense:l=!1,disablePadding:u=!1,subheader:d,...p}=r,h=k.useMemo(()=>({dense:l}),[l]),g={...r,component:s,dense:l,disablePadding:u},y=BW(g);return v.jsx(Fa.Provider,{value:h,children:v.jsxs(jW,{as:s,className:qe(y.root,a),ref:n,ownerState:g,...p,children:[d,o]})})});function UW(e){return it("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function HW(e){return it("MuiListItemButton",e)}const mu=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),zW=(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]},$W=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:s,selected:l}=e,d=st({root:["root",r&&"dense",!a&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},HW,n);return{...n,...d}},VW=ke(mi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:zW})(Ct(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,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"}},[`&.${mu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${mu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(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})`:It(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${mu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),_5=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:s="div",children:l,dense:u=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:g=!1,className:y,...b}=r,x=k.useContext(Fa),S=k.useMemo(()=>({dense:u||x.dense||!1,alignItems:o,disableGutters:d}),[o,x.dense,u,d]),T=k.useRef(null);Wo(()=>{a&&T.current&&T.current.focus()},[a]);const D={...r,alignItems:o,dense:S.dense,disableGutters:d,divider:p,selected:g},w=$W(D),R=ar(T,n);return v.jsx(Fa.Provider,{value:S,children:v.jsx(VW,{ref:R,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:qe(w.focusVisible,h),ownerState:D,className:qe(w.root,y),...b,classes:w,children:l})})});function GW(e){return it("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const qW=e=>{const{disableGutters:t,classes:n}=e;return st({root:["root",t&&"disableGutters"]},GW,n)},WW=ke("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}}]}),A5=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=r,s=k.useContext(Fa),l={...r,disableGutters:s.disableGutters},u=qW(l);return v.jsx(WW,{className:qe(u.root,o),ownerState:l,ref:n,...a})});A5.muiName="ListItemSecondaryAction";const YW=(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]},KW=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:s,hasSecondaryAction:l}=e;return st({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},UW,n)},QW=ke("div",{name:"MuiListItem",slot:"Root",overridesResolver:YW})(Ct(({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:{[`& > .${mu.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}}]}))),XW=ke("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Eu=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:s,component:l,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:w={},...R}=r,I=k.useContext(Fa),O=k.useMemo(()=>({dense:y||I.dense||!1,alignItems:o,disableGutters:b}),[o,I.dense,y,b]),F=k.useRef(null),j=k.Children.toArray(a),H=j.length&&fp(j[j.length-1],["ListItemSecondaryAction"]),C={...r,alignItems:o,dense:O.dense,disableGutters:b,disablePadding:x,divider:S,hasSecondaryAction:H},M=KW(C),$=ar(F,n),z=w.root||u.Root||QW,q=D.root||d.root||{},Y={className:qe(M.root,q.className,s),...R};let B=l||"li";return H?(B=!Y.component&&!l?"div":B,p==="li"&&(B==="li"?B="div":Y.component==="li"&&(Y.component="div")),v.jsx(Fa.Provider,{value:O,children:v.jsxs(XW,{as:p,className:qe(M.container,h),ref:$,ownerState:C,...g,children:[v.jsx(z,{...q,...!Vp(z)&&{as:B,ownerState:{...C,...q.ownerState}},...Y,children:j}),j.pop()]})})):v.jsx(Fa.Provider,{value:O,children:v.jsxs(z,{...q,as:B,ref:$,...!Vp(z)&&{ownerState:{...C,...q.ownerState}},...Y,children:[j,T&&v.jsx(A5,{children:T})]})})});function ZW(e){return it("MuiListItemIcon",e)}const UD=ut("MuiListItemIcon",["root","alignItemsFlexStart"]),JW=e=>{const{alignItems:t,classes:n}=e;return st({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},ZW,n)},eY=ke("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ct(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),HD=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,s=k.useContext(Fa),l={...r,alignItems:s.alignItems},u=JW(l);return v.jsx(eY,{className:qe(u.root,o),ownerState:l,ref:n,...a})});function tY(e){return it("MuiListItemText",e)}const xu=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),nY=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return st({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},tY,t)},rY=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xu.primary}`]:t.primary},{[`& .${xu.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,[`.${gD.root}:where(& .${xu.primary})`]:{display:"block"},[`.${gD.root}:where(& .${xu.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),es=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:s=!1,inset:l=!1,primary:u,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h,slots:g={},slotProps:y={},...b}=r,{dense:x}=k.useContext(Fa);let S=u??o,T=p;const D={...r,disableTypography:s,inset:l,primary:!!S,secondary:!!T,dense:x},w=nY(D),R={slots:g,slotProps:{primary:d,secondary:h,...y}},[I,O]=Bt("root",{className:qe(w.root,a),elementType:rY,externalForwardedProps:{...R,...b},ownerState:D,ref:n}),[F,j]=Bt("primary",{className:w.primary,elementType:He,externalForwardedProps:R,ownerState:D}),[H,C]=Bt("secondary",{className:w.secondary,elementType:He,externalForwardedProps:R,ownerState:D});return S!=null&&S.type!==He&&!s&&(S=v.jsx(F,{variant:x?"body2":"body1",component:j?.variant?void 0:"span",...j,children:S})),T!=null&&T.type!==He&&!s&&(T=v.jsx(H,{variant:"body2",color:"textSecondary",...C,children:T})),v.jsxs(I,{...O,children:[S,T]})});function eE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function zD(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function k5(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 If(e,t,n,r,o,a){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!k5(l,a)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const oY=k.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu",...g}=t,y=k.useRef(null),b=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wo(()=>{o&&y.current.focus()},[o]),k.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:R})=>{const I=!y.current.style.width;if(w.clientHeight<y.current.clientHeight&&I){const O=`${E5(Ua(w))}px`;y.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=O,y.current.style.width=`calc(100% + ${O})`}return y.current}}),[]);const x=w=>{const R=y.current,I=w.key;if(w.ctrlKey||w.metaKey||w.altKey){p&&p(w);return}const F=ko(R).activeElement;if(I==="ArrowDown")w.preventDefault(),If(R,F,d,u,eE);else if(I==="ArrowUp")w.preventDefault(),If(R,F,d,u,zD);else if(I==="Home")w.preventDefault(),If(R,null,d,u,eE);else if(I==="End")w.preventDefault(),If(R,null,d,u,zD);else if(I.length===1){const j=b.current,H=I.toLowerCase(),C=performance.now();j.keys.length>0&&(C-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&H!==j.keys[0]&&(j.repeating=!1)),j.lastTime=C,j.keys.push(H);const M=F&&!j.repeating&&k5(F,j);j.previousKeyMatched&&(M||If(R,F,!1,u,eE,j))?w.preventDefault():j.previousKeyMatched=!1}p&&p(w)},S=ar(y,n);let T=-1;k.Children.forEach(s,(w,R)=>{if(!k.isValidElement(w)){T===R&&(T+=1,T>=s.length&&(T=-1));return}w.props.disabled||(h==="selectedMenu"&&w.props.selected||T===-1)&&(T=R),T===R&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const D=k.Children.map(s,(w,R)=>{if(R===T){const I={};return a&&(I.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),k.cloneElement(w,I)}return w});return v.jsx(Dh,{role:"menu",ref:S,className:l,onKeyDown:x,tabIndex:o?0:-1,...g,children:D})});function aY(e){return it("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function $D(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function VD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function GD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pg(e){return typeof e=="function"?e():e}const iY=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"]},aY,t)},sY=ke(x5,{name:"MuiPopover",slot:"Root"})({}),w5=ke(Ji,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lY=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,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:w,transitionDuration:R="auto",TransitionProps:I={},disableScrollLock:O=!1,...F}=r,j=k.useRef(),H={...r,anchorOrigin:s,anchorReference:u,elevation:g,marginThreshold:y,transformOrigin:D,TransitionComponent:w,transitionDuration:R,TransitionProps:I},C=iY(H),M=k.useCallback(()=>{if(u==="anchorPosition")return l;const Me=pg(a),Qe=(Me&&Me.nodeType===1?Me:ko(j.current).body).getBoundingClientRect();return{top:Qe.top+$D(Qe,s.vertical),left:Qe.left+VD(Qe,s.horizontal)}},[a,s.horizontal,s.vertical,l,u]),$=k.useCallback(Me=>({vertical:$D(Me,D.vertical),horizontal:VD(Me,D.horizontal)}),[D.horizontal,D.vertical]),z=k.useCallback(Me=>{const Oe={width:Me.offsetWidth,height:Me.offsetHeight},Qe=$(Oe);if(u==="none")return{top:null,left:null,transformOrigin:GD(Qe)};const nt=M();let Re=nt.top-Qe.vertical,gt=nt.left-Qe.horizontal;const At=Re+Oe.height,je=gt+Oe.width,mt=Ua(pg(a)),lt=mt.innerHeight-y,ft=mt.innerWidth-y;if(y!==null&&Re<y){const Ue=Re-y;Re-=Ue,Qe.vertical+=Ue}else if(y!==null&&At>lt){const Ue=At-lt;Re-=Ue,Qe.vertical+=Ue}if(y!==null&&gt<y){const Ue=gt-y;gt-=Ue,Qe.horizontal+=Ue}else if(je>ft){const Ue=je-ft;gt-=Ue,Qe.horizontal+=Ue}return{top:`${Math.round(Re)}px`,left:`${Math.round(gt)}px`,transformOrigin:GD(Qe)}},[a,u,M,$,y]),[q,Y]=k.useState(b),B=k.useCallback(()=>{const Me=j.current;if(!Me)return;const Oe=z(Me);Oe.top!==null&&Me.style.setProperty("top",Oe.top),Oe.left!==null&&(Me.style.left=Oe.left),Me.style.transformOrigin=Oe.transformOrigin,Y(!0)},[z]);k.useEffect(()=>(O&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[a,O,B]);const X=()=>{B()},ae=()=>{Y(!1)};k.useEffect(()=>{b&&B()}),k.useImperativeHandle(o,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),k.useEffect(()=>{if(!b)return;const Me=A0(()=>{B()}),Oe=Ua(pg(a));return Oe.addEventListener("resize",Me),()=>{Me.clear(),Oe.removeEventListener("resize",Me)}},[a,b,B]);let te=R;const N={slots:{transition:w,...S},slotProps:{transition:I,paper:x,...T}},[oe,K]=Bt("transition",{elementType:Cy,externalForwardedProps:N,ownerState:H,getSlotProps:Me=>({...Me,onEntering:(Oe,Qe)=>{Me.onEntering?.(Oe,Qe),X()},onExited:Oe=>{Me.onExited?.(Oe),ae()}}),additionalProps:{appear:!0,in:b}});R==="auto"&&!oe.muiSupportAuto&&(te=void 0);const P=h||(a?ko(pg(a)).body:void 0),[ee,{slots:ce,slotProps:re,...be}]=Bt("root",{ref:n,elementType:sY,externalForwardedProps:{...N,...F},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:Wz(typeof T.backdrop=="function"?T.backdrop(H):T.backdrop,{invisible:!0})},container:P,open:b},ownerState:H,className:qe(C.root,p)}),[ye,Ge]=Bt("paper",{ref:j,className:C.paper,elementType:w5,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:q?void 0:{opacity:0}},ownerState:H});return v.jsx(ee,{...be,...!Vp(ee)&&{slots:ce,slotProps:re,disableScrollLock:O},children:v.jsx(oe,{...K,timeout:te,children:v.jsx(ye,{...Ge,children:d})})})});function cY(e){return it("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const uY={vertical:"top",horizontal:"right"},dY={vertical:"top",horizontal:"left"},fY=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"],list:["list"]},cY,t)},pY=ke(lY,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),hY=ke(w5,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),mY=ke(oY,{name:"MuiMenu",slot:"List"})({outline:0}),P0=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:l=!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={},...w}=r,R=Ah(),I={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:b,PaperProps:h,transitionDuration:y,TransitionProps:x,variant:S},O=fY(I),F=o&&!l&&p,j=k.useRef(null),H=(te,N)=>{j.current&&j.current.adjustStyleForScrollbar(te,{direction:R?"rtl":"ltr"}),b&&b(te,N)},C=te=>{te.key==="Tab"&&(te.preventDefault(),d&&d(te,"tabKeyDown"))};let M=-1;k.Children.map(a,(te,N)=>{k.isValidElement(te)&&(te.props.disabled||(S==="selectedMenu"&&te.props.selected||M===-1)&&(M=N))});const $={slots:T,slotProps:{list:u,transition:x,paper:h,...D}},z=Jl({elementType:T.root,externalSlotProps:D.root,ownerState:I,className:[O.root,s]}),[q,Y]=Bt("paper",{className:O.paper,elementType:hY,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:I}),[B,X]=Bt("list",{className:qe(O.list,u.className),elementType:mY,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:te=>({...te,onKeyDown:N=>{C(N),te.onKeyDown?.(N)}}),ownerState:I}),ae=typeof $.slotProps.transition=="function"?$.slotProps.transition(I):$.slotProps.transition;return v.jsx(pY,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?uY:dY,slots:{root:T.root,paper:q,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:(...te)=>{H(...te),ae?.onEntering?.(...te)}}},open:p,ref:n,transitionDuration:y,ownerState:I,...w,classes:g,children:v.jsx(B,{actions:j,autoFocus:o&&(M===-1||l),autoFocusItem:F,variant:S,...X,children:a})})});function gY(e){return it("MuiMenuItem",e)}const Of=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},bY=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:s}=e,u=st({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},gY,s);return{...s,...u}},vY=ke(mi,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yY})(Ct(({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"}},[`&.${Of.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Of.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Of.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(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})`:It(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Of.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${FD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${FD.inset}`]:{marginLeft:52},[`& .${xu.root}`]:{marginTop:0,marginBottom:0},[`& .${xu.inset}`]:{paddingLeft:36},[`& .${UD.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,[`& .${UD.root} svg`]:{fontSize:"1.25rem"}}}]}))),ql=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:g,...y}=r,b=k.useContext(Fa),x=k.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),S=k.useRef(null);Wo(()=>{o&&S.current&&S.current.focus()},[o]);const T={...r,dense:x.dense,divider:l,disableGutters:u},D=bY(r),w=ar(S,n);let R;return r.disabled||(R=h!==void 0?h:-1),v.jsx(Fa.Provider,{value:x,children:v.jsx(vY,{ref:w,role:p,tabIndex:R,component:a,focusVisibleClassName:qe(D.focusVisible,d),className:qe(D.root,g),...y,ownerState:T,classes:D})})});function EY(e){return it("MuiNativeSelect",e)}const NS=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),xY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,a&&"iconOpen",r&&"disabled"]};return st(l,EY,t)},D5=ke("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${NS.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}}}]})),TY=ke(D5,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:co,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${NS.multiple}`]:t.multiple}]}})({}),R5=ke("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${NS.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}}]})),SY=ke(R5,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ne(n.variant)}`],n.open&&t.iconOpen]}})({}),CY=k.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:s,inputRef:l,variant:u="standard",...d}=t,p={...t,disabled:o,variant:u,error:a},h=xY(p);return v.jsxs(k.Fragment,{children:[v.jsx(TY,{ownerState:p,className:qe(h.select,r),disabled:o,ref:l||n,...d}),t.multiple?null:v.jsx(SY,{as:s,ownerState:p,className:h.icon})]})});var qD;const _Y=ke("fieldset",{shouldForwardProp:co})({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%"}),AY=ke("legend",{shouldForwardProp:co})(Ct(({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 kY(e){const{children:t,classes:n,className:r,label:o,notched:a,...s}=e,l=o!=null&&o!=="",u={...e,notched:a,withLabel:l};return v.jsx(_Y,{"aria-hidden":!0,className:r,ownerState:u,...s,children:v.jsx(AY,{ownerState:u,children:l?v.jsx("span",{children:o}):qD||(qD=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const wY=e=>{const{classes:t}=e,r=st({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},xG,t);return{...t,...r}},DY=ke(I0,{shouldForwardProp:e=>co(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:D0})(Ct(({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 .${Ja.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ja.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ja.focused} .${Ja.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(so()).map(([n])=>({props:{color:n},style:{[`&.${Ja.focused} .${Ja.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ja.error} .${Ja.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ja.disabled} .${Ja.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"}}]}})),RY=ke(kY,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ct(({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}})),IY=ke(O0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:R0})(Ct(({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}}]}))),PS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:u=!1,notched:d,slots:p={},slotProps:h={},type:g="text",...y}=r,b=wY(r),x=ol(),S=fc({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??DY,w=p.input??o.Input??IY,[R,I]=Bt("notchedOutline",{elementType:RY,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:p,slotProps:h},additionalProps:{label:l!=null&&l!==""&&S.required?v.jsxs(k.Fragment,{children:[l," ","*"]}):l}});return v.jsx(DS,{slots:{root:D,input:w},slotProps:h,renderSuffix:O=>v.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}})});PS.muiName="Input";function I5(e){return it("MuiSelect",e)}const Nf=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var WD;const OY=ke(D5,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nf.select}`]:t.select},{[`&.${Nf.select}`]:t[n.variant]},{[`&.${Nf.error}`]:t.error},{[`&.${Nf.multiple}`]:t.multiple}]}})({[`&.${Nf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),NY=ke(R5,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ne(n.variant)}`],n.open&&t.iconOpen]}})({}),PY=ke("input",{shouldForwardProp:e=>X3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function YD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function LY(e){return e==null||typeof e=="string"&&!e.trim()}const MY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return st(l,I5,t)},FY=k.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:g,error:y=!1,IconComponent:b,inputRef:x,labelId:S,MenuProps:T={},multiple:D,name:w,onBlur:R,onChange:I,onClose:O,onFocus:F,onOpen:j,open:H,readOnly:C,renderValue:M,required:$,SelectDisplayProps:z={},tabIndex:q,type:Y,value:B,variant:X="standard",...ae}=t,[te,N]=yy({controlled:B,default:p,name:"Select"}),[oe,K]=yy({controlled:H,default:d,name:"Select"}),P=k.useRef(null),ee=k.useRef(null),[ce,re]=k.useState(null),{current:be}=k.useRef(H!=null),[ye,Ge]=k.useState(),Me=ar(n,x),Oe=k.useCallback(Ke=>{ee.current=Ke,Ke&&re(Ke)},[]),Qe=ce?.parentNode;k.useImperativeHandle(Me,()=>({focus:()=>{ee.current.focus()},node:P.current,value:te}),[te]),k.useEffect(()=>{d&&oe&&ce&&!be&&(Ge(s?null:Qe.clientWidth),ee.current.focus())},[ce,s]),k.useEffect(()=>{a&&ee.current.focus()},[a]),k.useEffect(()=>{if(!S)return;const Ke=ko(ee.current).getElementById(S);if(Ke){const Ee=()=>{getSelection().isCollapsed&&ee.current.focus()};return Ke.addEventListener("click",Ee),()=>{Ke.removeEventListener("click",Ee)}}},[S]);const nt=(Ke,Ee)=>{Ke?j&&j(Ee):O&&O(Ee),be||(Ge(s?null:Qe.clientWidth),K(Ke))},Re=Ke=>{Ke.button===0&&(Ke.preventDefault(),ee.current.focus(),nt(!0,Ke))},gt=Ke=>{nt(!1,Ke)},At=k.Children.toArray(l),je=Ke=>{const Ee=At.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(te)?te.slice():[];const ht=te.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),te!==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:w}}),I(rt,Ke)}D||nt(!1,Ee)}},lt=Ke=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(Ke.key)&&(Ke.preventDefault(),nt(!0,Ke))},ft=ce!==null&&oe,Ue=Ke=>{!ft&&R&&(Object.defineProperty(Ke,"target",{writable:!0,value:{value:te,name:w}}),R(Ke))};delete ae["aria-invalid"];let Le,Jt;const Ut=[];let kt=!1;(Ty({value:te})||g)&&(M?Le=M(te):kt=!0);const de=At.map(Ke=>{if(!k.isValidElement(Ke))return null;let Ee;if(D){if(!Array.isArray(te))throw new Error(ns(2));Ee=te.some(Se=>YD(Se,Ke.props.value)),Ee&&kt&&Ut.push(Ke.props.children)}else Ee=YD(te,Ke.props.value),Ee&&kt&&(Jt=Ke.props.children);return k.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})});kt&&(D?Ut.length===0?Le=null:Le=Ut.reduce((Ke,Ee,Se)=>(Ke.push(Ee),Se<Ut.length-1&&Ke.push(", "),Ke),[]):Le=Jt);let ge=ye;!s&&be&&ce&&(ge=Qe.clientWidth);let ze;typeof q<"u"?ze=q:ze=h?null:0;const Xe=z.id||(w?`mui-component-select-${w}`:void 0),Et={...t,variant:X,value:te,open:ft,error:y},Je=MY(Et),en={...T.PaperProps,...T.slotProps?.paper},zt=id();return v.jsxs(k.Fragment,{children:[v.jsx(OY,{as:"div",ref:Oe,tabIndex:ze,role:"combobox","aria-controls":ft?zt:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ft?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[S,Xe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":$?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:lt,onMouseDown:h||C?null:Re,onBlur:Ue,onFocus:F,...z,ownerState:Et,className:qe(z.className,Je.select,u),id:Xe,children:LY(Le)?WD||(WD=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Le}),v.jsx(PY,{"aria-invalid":y,value:Array.isArray(te)?te.join(","):te,name:w,ref:P,"aria-hidden":!0,onChange:je,tabIndex:-1,disabled:h,className:Je.nativeInput,autoFocus:a,required:$,...ae,ownerState:Et}),v.jsx(NY,{as:b,className:Je.icon,ownerState:Et}),v.jsx(P0,{id:`menu-${w||""}`,anchorEl:Qe,open:ft,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:zt,...T.MenuListProps},paper:{...en,style:{minWidth:ge,...en!=null?en.style:null}}},children:de})]})}),BY=e=>{const{classes:t}=e,r=st({root:["root"]},I5,t);return{...t,...r}},LS={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>co(e)&&e!=="variant"},jY=ke(OS,LS)(""),UY=ke(PS,LS)(""),HY=ke(IS,LS)(""),MS=k.forwardRef(function(t,n){const r=dt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:s={},className:l,defaultOpen:u=!1,displayEmpty:d=!1,IconComponent:p=SG,id:h,input:g,inputProps:y,label:b,labelId:x,MenuProps:S,multiple:T=!1,native:D=!1,onClose:w,onOpen:R,open:I,renderValue:O,SelectDisplayProps:F,variant:j="outlined",...H}=r,C=D?CY:FY,M=ol(),$=fc({props:r,muiFormControl:M,states:["variant","error"]}),z=$.variant||j,q={...r,variant:z,classes:s},Y=BY(q),{root:B,...X}=Y,ae=g||{standard:v.jsx(jY,{ownerState:q}),outlined:v.jsx(UY,{label:b,ownerState:q}),filled:v.jsx(HY,{ownerState:q})}[z],te=ar(n,sd(ae));return v.jsx(k.Fragment,{children:k.cloneElement(ae,{inputComponent:C,inputProps:{children:a,error:$.error,IconComponent:p,variant:z,type:void 0,multiple:T,...D?{id:h}:{autoWidth:o,defaultOpen:u,displayEmpty:d,labelId:x,MenuProps:S,onClose:w,onOpen:R,open:I,renderValue:O,SelectDisplayProps:{id:h,...F}},...y,classes:y?Pr(X,y.classes):X,...g?g.props.inputProps:{}},...(T&&D||d)&&z==="outlined"?{notched:!0}:{},ref:te,className:qe(ae.props.className,l,Y.root),...!g&&{variant:z},...H})})});MS.muiName="Select";function zY(e){return it("MuiTooltip",e)}const rr=ut("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function $Y(e){return Math.round(e*1e5)/1e5}const VY=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${Ne(a.split("-")[0])}`],arrow:["arrow"]};return st(s,zY,t)},GY=ke(g5,{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]}})(Ct(({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"] .${rr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${rr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${rr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${rr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${rr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${rr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${rr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${rr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),qY=ke("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${Ne(n.placement.split("-")[0])}`]]}})(Ct(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:It(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,[`.${rr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${rr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${rr.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:`${$Y(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${rr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${rr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${rr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${rr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${rr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${rr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),WY=ke("span",{name:"MuiTooltip",slot:"Arrow"})(Ct(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:It(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hg=!1;const KD=new k0;let Pf={x:0,y:0};function mg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const lr=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:s,components:l={},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:w=0,leaveTouchDelay:R=1500,onClose:I,onOpen:O,open:F,placement:j="bottom",PopperComponent:H,PopperProps:C={},slotProps:M={},slots:$={},title:z,TransitionComponent:q,TransitionProps:Y,...B}=r,X=k.isValidElement(a)?a:v.jsx("span",{children:a}),ae=nl(),te=Ah(),[N,oe]=k.useState(),[K,P]=k.useState(null),ee=k.useRef(!1),ce=g||T,re=Fl(),be=Fl(),ye=Fl(),Ge=Fl(),[Me,Oe]=yy({controlled:F,default:!1,name:"Tooltip",state:"open"});let Qe=Me;const nt=id(D),Re=k.useRef(),gt=va(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),Ge.clear()});k.useEffect(()=>gt,[gt]);const At=yt=>{KD.clear(),hg=!0,Oe(!0),O&&!Qe&&O(yt)},je=va(yt=>{KD.start(800+w,()=>{hg=!1}),Oe(!1),I&&Qe&&I(yt),re.start(ae.transitions.duration.shortest,()=>{ee.current=!1})}),mt=yt=>{ee.current&&yt.type!=="touchstart"||(N&&N.removeAttribute("title"),be.clear(),ye.clear(),b||hg&&x?be.start(hg?x:b,()=>{At(yt)}):At(yt))},lt=yt=>{be.clear(),ye.start(w,()=>{je(yt)})},[,ft]=k.useState(!1),Ue=yt=>{vy(yt.target)||(ft(!1),lt(yt))},Le=yt=>{N||oe(yt.currentTarget),vy(yt.target)&&(ft(!0),mt(yt))},Jt=yt=>{ee.current=!0;const ne=X.props;ne.onTouchStart&&ne.onTouchStart(yt)},Ut=yt=>{Jt(yt),ye.clear(),re.clear(),gt(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ge.start(S,()=>{document.body.style.WebkitUserSelect=Re.current,mt(yt)})},kt=yt=>{X.props.onTouchEnd&&X.props.onTouchEnd(yt),gt(),ye.start(R,()=>{je(yt)})};k.useEffect(()=>{if(!Qe)return;function yt(ne){ne.key==="Escape"&&je(ne)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[je,Qe]);const de=ar(sd(X),oe,n);!z&&z!==0&&(Qe=!1);const ge=k.useRef(),ze=yt=>{const ne=X.props;ne.onMouseMove&&ne.onMouseMove(yt),Pf={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,...X.props,className:qe(B.className,X.props.className),onTouchStart:Jt,ref:de,...T?{onMouseMove:ze}:{}},en={};y||(Je.onTouchStart=Ut,Je.onTouchEnd=kt),h||(Je.onMouseOver=mg(mt,Je.onMouseOver),Je.onMouseLeave=mg(lt,Je.onMouseLeave),ce||(en.onMouseOver=mt,en.onMouseLeave=lt)),p||(Je.onFocus=mg(Le,Je.onFocus),Je.onBlur=mg(Ue,Je.onBlur),ce||(en.onFocus=Le,en.onBlur=Ue));const zt={...r,isRtl:te,arrow:o,disableInteractive:ce,placement:j,PopperComponentProp:H,touch:ee.current},Ke=typeof M.popper=="function"?M.popper(zt):M.popper,Ee=k.useMemo(()=>{let yt=[{name:"arrow",enabled:!!K,options:{element:K,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}},[K,C.popperOptions,Ke?.popperOptions]),Se=VY(zt),ht=typeof M.transition=="function"?M.transition(zt):M.transition,rt={slots:{popper:l.Popper,transition:l.Transition??q,tooltip:l.Tooltip,arrow:l.Arrow,...$},slotProps:{arrow:M.arrow??u.arrow,popper:{...C,...Ke??u.popper},tooltip:M.tooltip??u.tooltip,transition:{...Y,...ht??u.transition}}},[mn,Lr]=Bt("popper",{elementType:GY,externalForwardedProps:rt,ownerState:zt,className:qe(Se.popper,C?.className)}),[xr,Qn]=Bt("transition",{elementType:Cy,externalForwardedProps:rt,ownerState:zt}),[pr,fo]=Bt("tooltip",{elementType:qY,className:Se.tooltip,externalForwardedProps:rt,ownerState:zt}),[Tn,Mr]=Bt("arrow",{elementType:WY,className:Se.arrow,externalForwardedProps:rt,ownerState:zt,ref:P});return v.jsxs(k.Fragment,{children:[k.cloneElement(X,Je),v.jsx(mn,{as:H??g5,placement:j,anchorEl:T?{getBoundingClientRect:()=>({top:Pf.y,left:Pf.x,right:Pf.x,bottom:Pf.y,width:0,height:0})}:N,popperRef:ge,open:N?Qe:!1,id:nt,transition:!0,...en,...Lr,popperOptions:Ee,children:({TransitionProps:yt})=>v.jsx(xr,{timeout:ae.transitions.duration.shorter,...yt,...Qn,children:v.jsxs(pr,{...fo,children:[z,o?v.jsx(Tn,{...Mr}):null]})})})]})}),fn=hS({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>dt({props:e,name:"MuiStack"})});function YY(e){return it("MuiSwitch",e)}const oo=ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),KY=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,l={root:["root",n&&`edge${Ne(n)}`,`size${Ne(r)}`],switchBase:["switchBase",`color${Ne(o)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=st(l,YY,t);return{...t,...u}},QY=ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${oo.thumb}`]:{width:16,height:16},[`& .${oo.switchBase}`]:{padding:4,[`&.${oo.checked}`]:{transform:"translateX(16px)"}}}}]}),XY=ke(mq,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${oo.input}`]:t.input},n.color!=="default"&&t[`color${Ne(n.color)}`]]}})(Ct(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${oo.checked}`]:{transform:"translateX(20px)"},[`&.${oo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${oo.checked} + .${oo.track}`]:{opacity:.5},[`&.${oo.disabled} + .${oo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${oo.input}`]:{left:"-100%",width:"300%"}})),Ct(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(so(["light"])).map(([t])=>({props:{color:t},style:{[`&.${oo.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?_h(e.palette[t].main,.62):Ch(e.palette[t].main,.55)}`}},[`&.${oo.checked} + .${oo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),ZY=ke("span",{name:"MuiSwitch",slot:"Track"})(Ct(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),JY=ke("span",{name:"MuiSwitch",slot:"Thumb"})(Ct(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),eK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:s=!1,size:l="medium",sx:u,slots:d={},slotProps:p={},...h}=r,g={...r,color:a,edge:s,size:l},y=KY(g),b={slots:d,slotProps:p},[x,S]=Bt("root",{className:qe(y.root,o),elementType:QY,externalForwardedProps:b,ownerState:g,additionalProps:{sx:u}}),[T,D]=Bt("thumb",{className:y.thumb,elementType:JY,externalForwardedProps:b,ownerState:g}),w=v.jsx(T,{...D}),[R,I]=Bt("track",{className:y.track,elementType:ZY,externalForwardedProps:b,ownerState:g});return v.jsxs(x,{...S,children:[v.jsx(XY,{type:"checkbox",icon:w,checkedIcon:w,ref:n,ownerState:g,...h,classes:{...y,root:y.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(g):p.switchBase},...p.input&&{input:typeof p.input=="function"?p.input(g):p.input}}}),v.jsx(R,{...I})]})});function tK(e){return it("MuiTab",e)}const ia=ut("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),nK=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:s,selected:l,disabled:u}=e,d={root:["root",a&&s&&"labelIcon",`textColor${Ne(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return st(d,tK,t)},rK=ke(mi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Ne(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ia.iconWrapper}`]:t.iconWrapper},{[`& .${ia.icon}`]:t.icon}]}})(Ct(({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:{[`& > .${ia.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${ia.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${ia.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${ia.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ia.selected}`]:{opacity:1},[`&.${ia.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ia.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ia.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ia.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ia.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)}}]}))),oK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:l,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:w=!1,...R}=r,I={...r,disabled:a,disableFocusRipple:s,selected:x,icon:!!u,iconPosition:d,label:!!h,fullWidth:l,textColor:T,wrapped:w},O=nK(I),F=u&&h&&k.isValidElement(u)?k.cloneElement(u,{className:qe(O.icon,u.props.className)}):u,j=C=>{!x&&g&&g(C,D),y&&y(C)},H=C=>{S&&!x&&g&&g(C,D),b&&b(C)};return v.jsxs(rK,{focusRipple:!s,className:qe(O.root,o),ref:n,role:"tab","aria-selected":x,disabled:a,onClick:j,onFocus:H,ownerState:I,tabIndex:x?0:-1,...R,children:[d==="top"||d==="start"?v.jsxs(k.Fragment,{children:[F,h]}):v.jsxs(k.Fragment,{children:[h,F]}),p]})}),O5=k.createContext();function aK(e){return it("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const iK=e=>{const{classes:t,stickyHeader:n}=e;return st({root:["root",n&&"stickyHeader"]},aK,t)},sK=ke("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ct(({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"}}]}))),QD="table",Gp=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTable"}),{className:o,component:a=QD,padding:s="normal",size:l="medium",stickyHeader:u=!1,...d}=r,p={...r,component:a,padding:s,size:l,stickyHeader:u},h=iK(p),g=k.useMemo(()=>({padding:s,size:l,stickyHeader:u}),[s,l,u]);return v.jsx(O5.Provider,{value:g,children:v.jsx(sK,{as:a,role:a===QD?null:"table",ref:n,className:qe(h.root,o),ownerState:p,...d})})}),L0=k.createContext();function lK(e){return it("MuiTableBody",e)}ut("MuiTableBody",["root"]);const cK=e=>{const{classes:t}=e;return st({root:["root"]},lK,t)},uK=ke("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),dK={variant:"body"},XD="tbody",qp=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableBody"}),{className:o,component:a=XD,...s}=r,l={...r,component:a},u=cK(l);return v.jsx(L0.Provider,{value:dK,children:v.jsx(uK,{className:qe(u.root,o),as:a,ref:n,role:a===XD?null:"rowgroup",ownerState:l,...s})})});function fK(e){return it("MuiTableCell",e)}const pK=ut("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hK=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Ne(r)}`,o!=="normal"&&`padding${Ne(o)}`,`size${Ne(a)}`]};return st(l,fK,t)},mK=ke("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ne(n.size)}`],n.padding!=="normal"&&t[`padding${Ne(n.padding)}`],n.align!=="inherit"&&t[`align${Ne(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ct(({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"?_h(It(e.palette.divider,1),.88):Ch(It(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",[`&.${pK.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}}]}))),xn=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:s,padding:l,scope:u,size:d,sortDirection:p,variant:h,...g}=r,y=k.useContext(O5),b=k.useContext(L0),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,w={...r,align:o,component:S,padding:l||(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=hK(w);let I=null;return p&&(I=p==="asc"?"ascending":"descending"),v.jsx(mK,{as:S,ref:n,className:qe(R.root,a),"aria-sort":I,scope:T,ownerState:w,...g})});function gK(e){return it("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const yK=e=>{const{classes:t}=e;return st({root:["root"]},gK,t)},bK=ke("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),FS=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...s}=r,l={...r,component:a},u=yK(l);return v.jsx(bK,{ref:n,as:a,className:qe(u.root,o),ownerState:l,...s})});function vK(e){return it("MuiTableHead",e)}ut("MuiTableHead",["root"]);const EK=e=>{const{classes:t}=e;return st({root:["root"]},vK,t)},xK=ke("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),TK={variant:"head"},ZD="thead",_y=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableHead"}),{className:o,component:a=ZD,...s}=r,l={...r,component:a},u=EK(l);return v.jsx(L0.Provider,{value:TK,children:v.jsx(xK,{as:a,className:qe(u.root,o),ref:n,role:a===ZD?null:"rowgroup",ownerState:l,...s})})});function SK(e){return it("MuiToolbar",e)}ut("MuiToolbar",["root","gutters","regular","dense"]);const CK=e=>{const{classes:t,disableGutters:n,variant:r}=e;return st({root:["root",!n&&"gutters",r]},SK,t)},_K=ke("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ct(({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}]}))),AK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:s=!1,variant:l="regular",...u}=r,d={...r,component:a,disableGutters:s,variant:l},p=CK(d);return v.jsx(_K,{as:a,className:qe(p.root,o),ref:n,ownerState:d,...u})}),kK=vi(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),wK=vi(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function DK(e){return it("MuiTableRow",e)}const JD=ut("MuiTableRow",["root","selected","hover","head","footer"]),RK=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return st({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},DK,t)},IK=ke("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ct(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${JD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${JD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(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}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),eR="tr",ui=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTableRow"}),{className:o,component:a=eR,hover:s=!1,selected:l=!1,...u}=r,d=k.useContext(L0),p={...r,component:a,hover:s,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},h=RK(p);return v.jsx(IK,{as:a,ref:n,className:qe(h.root,o),role:a===eR?null:"row",ownerState:p,...u})});function OK(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function NK(e,t,n,r={},o=()=>{}){const{ease:a=OK,duration:s=300}=r;let l=null;const u=t[e];let d=!1;const p=()=>{d=!0},h=g=>{if(d){o(new Error("Animation cancelled"));return}l===null&&(l=g);const y=Math.min(1,(g-l)/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 PK={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function LK(e){const{onChange:t,...n}=e,r=k.useRef(),o=k.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Wo(()=>{const s=A0(()=>{const u=r.current;a(),u!==r.current&&t(r.current)}),l=Ua(o.current);return l.addEventListener("resize",s),()=>{s.clear(),l.removeEventListener("resize",s)}},[t]),k.useEffect(()=>{a(),t(r.current)},[t]),v.jsx("div",{style:PK,...n,ref:o})}function MK(e){return it("MuiTabScrollButton",e)}const FK=ut("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),BK=e=>{const{classes:t,orientation:n,disabled:r}=e;return st({root:["root",n,r&&"disabled"]},MK,t)},jK=ke(mi,{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,[`&.${FK.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),UK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:l,orientation:u,disabled:d,...p}=r,h=Ah(),g={isRtl:h,...r},y=BK(g),b=a.StartScrollButtonIcon??kK,x=a.EndScrollButtonIcon??wK,S=Jl({elementType:b,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),T=Jl({elementType:x,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return v.jsx(jK,{component:"div",className:qe(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:l==="left"?v.jsx(b,{...S}):v.jsx(x,{...T})})});function HK(e){return it("MuiTabs",e)}const tE=ut("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),tR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,nR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gg=(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}}},zK=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:s,scrollButtonsHideMobile:l,classes:u}=e;return st({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",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},HK,u)},$K=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${tE.scrollButtons}`]:t.scrollButtons},{[`& .${tE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Ct(({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:{[`& .${tE.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),VK=ke("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"}}]}),GK=ke("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"}}]}),qK=ke("span",{name:"MuiTabs",slot:"Indicator"})(Ct(({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}}]}))),WK=ke(LK)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),rR={},YK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTabs"}),o=nl(),a=Ah(),{"aria-label":s,"aria-labelledby":l,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:w,slots:R={},slotProps:I={},TabIndicatorProps:O={},TabScrollButtonProps:F={},textColor:j="primary",value:H,variant:C="standard",visibleScrollbar:M=!1,...$}=r,z=C==="scrollable",q=S==="vertical",Y=q?"scrollTop":"scrollLeft",B=q?"top":"left",X=q?"bottom":"right",ae=q?"clientHeight":"clientWidth",te=q?"height":"width",N={...r,component:g,allowScrollButtonsMobile:y,indicatorColor:b,orientation:S,vertical:q,scrollButtons:D,textColor:j,variant:C,visibleScrollbar:M,fixed:!z,hideScrollbar:z&&!M,scrollableX:z&&!q,scrollableY:z&&q,centered:d&&!z,scrollButtonsHideMobile:!y},oe=zK(N),K=Jl({elementType:R.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:N}),P=Jl({elementType:R.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:N}),[ee,ce]=k.useState(!1),[re,be]=k.useState(rR),[ye,Ge]=k.useState(!1),[Me,Oe]=k.useState(!1),[Qe,nt]=k.useState(!1),[Re,gt]=k.useState({overflow:"hidden",scrollbarWidth:0}),At=new Map,je=k.useRef(null),mt=k.useRef(null),lt={slots:R,slotProps:{indicator:O,scrollButton:F,...I}},ft=()=>{const J=je.current;let ie;if(J){const we=J.getBoundingClientRect();ie={clientWidth:J.clientWidth,scrollLeft:J.scrollLeft,scrollTop:J.scrollTop,scrollWidth:J.scrollWidth,top:we.top,bottom:we.bottom,left:we.left,right:we.right}}let ve;if(J&&H!==!1){const we=mt.current.children;if(we.length>0){const Ye=we[At.get(H)];ve=Ye?Ye.getBoundingClientRect():null}}return{tabsMeta:ie,tabMeta:ve}},Ue=va(()=>{const{tabsMeta:J,tabMeta:ie}=ft();let ve=0,we;q?(we="top",ie&&J&&(ve=ie.top-J.top+J.scrollTop)):(we=a?"right":"left",ie&&J&&(ve=(a?-1:1)*(ie[we]-J[we]+J.scrollLeft)));const Ye={[we]:ve,[te]:ie?ie[te]:0};if(typeof re[we]!="number"||typeof re[te]!="number")be(Ye);else{const ot=Math.abs(re[we]-Ye[we]),Ze=Math.abs(re[te]-Ye[te]);(ot>=1||Ze>=1)&&be(Ye)}}),Le=(J,{animation:ie=!0}={})=>{ie?NK(Y,je.current,J,{duration:o.transitions.duration.standard}):je.current[Y]=J},Jt=J=>{let ie=je.current[Y];q?ie+=J:ie+=J*(a?-1:1),Le(ie)},Ut=()=>{const J=je.current[ae];let ie=0;const ve=Array.from(mt.current.children);for(let we=0;we<ve.length;we+=1){const Ye=ve[we];if(ie+Ye[ae]>J){we===0&&(ie=J);break}ie+=Ye[ae]}return ie},kt=()=>{Jt(-1*Ut())},de=()=>{Jt(Ut())},[ge,{onChange:ze,...Xe}]=Bt("scrollbar",{className:qe(oe.scrollableX,oe.hideScrollbar),elementType:WK,shouldForwardComponentProp:!0,externalForwardedProps:lt,ownerState:N}),Et=k.useCallback(J=>{ze?.(J),gt({overflow:null,scrollbarWidth:J})},[ze]),[Je,en]=Bt("scrollButtons",{className:qe(oe.scrollButtons,F.className),elementType:UK,externalForwardedProps:lt,ownerState:N,additionalProps:{orientation:S,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:K,endScrollButtonIcon:P}}}),zt=()=>{const J={};J.scrollbarSizeListener=z?v.jsx(ge,{...Xe,onChange:Et}):null;const ve=z&&(D==="auto"&&(ye||Me)||D===!0);return J.scrollButtonStart=ve?v.jsx(Je,{direction:a?"right":"left",onClick:kt,disabled:!ye,...en}):null,J.scrollButtonEnd=ve?v.jsx(Je,{direction:a?"left":"right",onClick:de,disabled:!Me,...en}):null,J},Ke=va(J=>{const{tabsMeta:ie,tabMeta:ve}=ft();if(!(!ve||!ie)){if(ve[B]<ie[B]){const we=ie[Y]+(ve[B]-ie[B]);Le(we,{animation:J})}else if(ve[X]>ie[X]){const we=ie[Y]+(ve[X]-ie[X]);Le(we,{animation:J})}}}),Ee=va(()=>{z&&D!==!1&&nt(!Qe)});k.useEffect(()=>{const J=A0(()=>{je.current&&Ue()});let ie;const ve=ot=>{ot.forEach(Ze=>{Ze.removedNodes.forEach(ct=>{ie?.unobserve(ct)}),Ze.addedNodes.forEach(ct=>{ie?.observe(ct)})}),J(),Ee()},we=Ua(je.current);we.addEventListener("resize",J);let Ye;return typeof ResizeObserver<"u"&&(ie=new ResizeObserver(J),Array.from(mt.current.children).forEach(ot=>{ie.observe(ot)})),typeof MutationObserver<"u"&&(Ye=new MutationObserver(ve),Ye.observe(mt.current,{childList:!0})),()=>{J.clear(),we.removeEventListener("resize",J),Ye?.disconnect(),ie?.disconnect()}},[Ue,Ee]),k.useEffect(()=>{const J=Array.from(mt.current.children),ie=J.length;if(typeof IntersectionObserver<"u"&&ie>0&&z&&D!==!1){const ve=J[0],we=J[ie-1],Ye={root:je.current,threshold:.99},ot=bt=>{Ge(!bt[0].isIntersecting)},Ze=new IntersectionObserver(ot,Ye);Ze.observe(ve);const ct=bt=>{Oe(!bt[0].isIntersecting)},et=new IntersectionObserver(ct,Ye);return et.observe(we),()=>{Ze.disconnect(),et.disconnect()}}},[z,D,Qe,p?.length]),k.useEffect(()=>{ce(!0)},[]),k.useEffect(()=>{Ue()}),k.useEffect(()=>{Ke(rR!==re)},[Ke,re]),k.useImperativeHandle(u,()=>({updateIndicator:Ue,updateScrollButtons:Ee}),[Ue,Ee]);const[Se,ht]=Bt("indicator",{className:qe(oe.indicator,O.className),elementType:qK,externalForwardedProps:lt,ownerState:N,additionalProps:{style:re}}),rt=v.jsx(Se,{...ht});let mn=0;const Lr=k.Children.map(p,J=>{if(!k.isValidElement(J))return null;const ie=J.props.value===void 0?mn:J.props.value;At.set(ie,mn);const ve=ie===H;return mn+=1,k.cloneElement(J,{fullWidth:C==="fullWidth",indicator:ve&&!ee&&rt,selected:ve,selectionFollowsFocus:w,onChange:x,textColor:j,value:ie,...mn===1&&H===!1&&!J.props.tabIndex?{tabIndex:0}:{}})}),xr=J=>{if(J.altKey||J.shiftKey||J.ctrlKey||J.metaKey)return;const ie=mt.current,ve=ko(ie).activeElement;if(ve.getAttribute("role")!=="tab")return;let Ye=S==="horizontal"?"ArrowLeft":"ArrowUp",ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&a&&(Ye="ArrowRight",ot="ArrowLeft"),J.key){case Ye:J.preventDefault(),gg(ie,ve,nR);break;case ot:J.preventDefault(),gg(ie,ve,tR);break;case"Home":J.preventDefault(),gg(ie,null,tR);break;case"End":J.preventDefault(),gg(ie,null,nR);break}},Qn=zt(),[pr,fo]=Bt("root",{ref:n,className:qe(oe.root,h),elementType:$K,externalForwardedProps:{...lt,...$,component:g},ownerState:N}),[Tn,Mr]=Bt("scroller",{ref:je,className:oe.scroller,elementType:VK,externalForwardedProps:lt,ownerState:N,additionalProps:{style:{overflow:Re.overflow,[q?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-Re.scrollbarWidth}}}),[yt,ne]=Bt("list",{ref:mt,className:qe(oe.list,oe.flexContainer),elementType:GK,externalForwardedProps:lt,ownerState:N,getSlotProps:J=>({...J,onKeyDown:ie=>{xr(ie),J.onKeyDown?.(ie)}})});return v.jsxs(pr,{...fo,children:[Qn.scrollButtonStart,Qn.scrollbarSizeListener,v.jsxs(Tn,{...Mr,children:[v.jsx(yt,{"aria-label":s,"aria-labelledby":l,"aria-orientation":S==="vertical"?"vertical":null,role:"tablist",...ne,children:Lr}),ee&&rt]}),Qn.scrollButtonEnd]})});function KK(e){return it("MuiTextField",e)}ut("MuiTextField",["root"]);const QK={standard:OS,filled:IS,outlined:PS},XK=e=>{const{classes:t}=e;return st({root:["root"]},KK,t)},ZK=ke(Sy,{name:"MuiTextField",slot:"Root"})({}),JK=k.forwardRef(function(t,n){const r=dt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:s,className:l,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:w,label:R,maxRows:I,minRows:O,multiline:F=!1,name:j,onBlur:H,onChange:C,onFocus:M,placeholder:$,required:z=!1,rows:q,select:Y=!1,SelectProps:B,slots:X={},slotProps:ae={},type:te,value:N,variant:oe="outlined",...K}=r,P={...r,autoFocus:a,color:u,disabled:p,error:h,fullWidth:y,multiline:F,required:z,select:Y,variant:oe},ee=XK(P),ce=id(x),re=b&&ce?`${ce}-helper-text`:void 0,be=R&&ce?`${ce}-label`:void 0,ye=QK[oe],Ge={slots:X,slotProps:{input:D,inputLabel:S,htmlInput:T,formHelperText:g,select:B,...ae}},Me={},Oe=Ge.slotProps.inputLabel;oe==="outlined"&&(Oe&&typeof Oe.shrink<"u"&&(Me.notched=Oe.shrink),Me.label=R),Y&&((!B||!B.native)&&(Me.id=void 0),Me["aria-describedby"]=void 0);const[Qe,nt]=Bt("root",{elementType:ZK,shouldForwardComponentProp:!0,externalForwardedProps:{...Ge,...K},ownerState:P,className:qe(ee.root,l),ref:n,additionalProps:{disabled:p,error:h,fullWidth:y,required:z,color:u,variant:oe}}),[Re,gt]=Bt("input",{elementType:ye,externalForwardedProps:Ge,additionalProps:Me,ownerState:P}),[At,je]=Bt("inputLabel",{elementType:C5,externalForwardedProps:Ge,ownerState:P}),[mt,lt]=Bt("htmlInput",{elementType:"input",externalForwardedProps:Ge,ownerState:P}),[ft,Ue]=Bt("formHelperText",{elementType:CW,externalForwardedProps:Ge,ownerState:P}),[Le,Jt]=Bt("select",{elementType:MS,externalForwardedProps:Ge,ownerState:P}),Ut=v.jsx(Re,{"aria-describedby":re,autoComplete:o,autoFocus:a,defaultValue:d,fullWidth:y,multiline:F,name:j,rows:q,maxRows:I,minRows:O,type:te,value:N,id:ce,inputRef:w,onBlur:H,onChange:C,onFocus:M,placeholder:$,inputProps:lt,slots:{input:X.htmlInput?mt:void 0},...gt});return v.jsxs(Qe,{...nt,children:[R!=null&&R!==""&&v.jsx(At,{htmlFor:ce,id:be,...je,children:R}),Y?v.jsx(Le,{"aria-describedby":re,id:ce,labelId:be,value:N,input:Ut,...Jt,children:s}):Ut,b&&v.jsx(ft,{id:re,...Ue,children:b})]})});function N5(e,t){return function(){return e.apply(t,arguments)}}const{toString:eQ}=Object.prototype,{getPrototypeOf:BS}=Object,{iterator:M0,toStringTag:P5}=Symbol,F0=(e=>t=>{const n=eQ.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ga=e=>(e=e.toLowerCase(),t=>F0(t)===e),B0=e=>t=>typeof t===e,{isArray:ld}=Array,Wp=B0("undefined");function tQ(e){return e!==null&&!Wp(e)&&e.constructor!==null&&!Wp(e.constructor)&&Co(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const L5=Ga("ArrayBuffer");function nQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&L5(e.buffer),t}const rQ=B0("string"),Co=B0("function"),M5=B0("number"),j0=e=>e!==null&&typeof e=="object",oQ=e=>e===!0||e===!1,Vg=e=>{if(F0(e)!=="object")return!1;const t=BS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(P5 in e)&&!(M0 in e)},aQ=Ga("Date"),iQ=Ga("File"),sQ=Ga("Blob"),lQ=Ga("FileList"),cQ=e=>j0(e)&&Co(e.pipe),uQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Co(e.append)&&((t=F0(e))==="formdata"||t==="object"&&Co(e.toString)&&e.toString()==="[object FormData]"))},dQ=Ga("URLSearchParams"),[fQ,pQ,hQ,mQ]=["ReadableStream","Request","Response","Headers"].map(Ga),gQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Rh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ld(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 l;for(r=0;r<s;r++)l=a[r],t.call(null,e[l],l,e)}}function F5(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 Bl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,B5=e=>!Wp(e)&&e!==Bl;function Rx(){const{caseless:e}=B5(this)&&this||{},t={},n=(r,o)=>{const a=e&&F5(t,o)||o;Vg(t[a])&&Vg(r)?t[a]=Rx(t[a],r):Vg(r)?t[a]=Rx({},r):ld(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Rh(arguments[r],n);return t}const yQ=(e,t,n,{allOwnKeys:r}={})=>(Rh(t,(o,a)=>{n&&Co(o)?e[a]=N5(o,n):e[a]=o},{allOwnKeys:r}),e),bQ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vQ=(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)},EQ=(e,t,n,r)=>{let o,a,s;const l={};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))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&BS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xQ=(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},TQ=e=>{if(!e)return null;if(ld(e))return e;let t=e.length;if(!M5(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},SQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&BS(Uint8Array)),CQ=(e,t)=>{const r=(e&&e[M0]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},_Q=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},AQ=Ga("HTMLFormElement"),kQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),oR=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wQ=Ga("RegExp"),j5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Rh(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},DQ=e=>{j5(e,(t,n)=>{if(Co(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Co(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+"'")})}})},RQ=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return ld(e)?r(e):r(String(e).split(t)),n},IQ=()=>{},OQ=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function NQ(e){return!!(e&&Co(e.append)&&e[P5]==="FormData"&&e[M0])}const PQ=e=>{const t=new Array(10),n=(r,o)=>{if(j0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=ld(r)?[]:{};return Rh(r,(s,l)=>{const u=n(s,o+1);!Wp(u)&&(a[l]=u)}),t[o]=void 0,a}}return r};return n(e,0)},LQ=Ga("AsyncFunction"),MQ=e=>e&&(j0(e)||Co(e))&&Co(e.then)&&Co(e.catch),U5=((e,t)=>e?setImmediate:t?((n,r)=>(Bl.addEventListener("message",({source:o,data:a})=>{o===Bl&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Bl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Co(Bl.postMessage)),FQ=typeof queueMicrotask<"u"?queueMicrotask.bind(Bl):typeof process<"u"&&process.nextTick||U5,BQ=e=>e!=null&&Co(e[M0]),xe={isArray:ld,isArrayBuffer:L5,isBuffer:tQ,isFormData:uQ,isArrayBufferView:nQ,isString:rQ,isNumber:M5,isBoolean:oQ,isObject:j0,isPlainObject:Vg,isReadableStream:fQ,isRequest:pQ,isResponse:hQ,isHeaders:mQ,isUndefined:Wp,isDate:aQ,isFile:iQ,isBlob:sQ,isRegExp:wQ,isFunction:Co,isStream:cQ,isURLSearchParams:dQ,isTypedArray:SQ,isFileList:lQ,forEach:Rh,merge:Rx,extend:yQ,trim:gQ,stripBOM:bQ,inherits:vQ,toFlatObject:EQ,kindOf:F0,kindOfTest:Ga,endsWith:xQ,toArray:TQ,forEachEntry:CQ,matchAll:_Q,isHTMLForm:AQ,hasOwnProperty:oR,hasOwnProp:oR,reduceDescriptors:j5,freezeMethods:DQ,toObjectSet:RQ,toCamelCase:kQ,noop:IQ,toFiniteNumber:OQ,findKey:F5,global:Bl,isContextDefined:B5,isSpecCompliantForm:NQ,toJSONObject:PQ,isAsyncFn:LQ,isThenable:MQ,setImmediate:U5,asap:FQ,isIterable:BQ};function Ft(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(Ft,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 H5=Ft.prototype,z5={};["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=>{z5[e]={value:e}});Object.defineProperties(Ft,z5);Object.defineProperty(H5,"isAxiosError",{value:!0});Ft.from=(e,t,n,r,o,a)=>{const s=Object.create(H5);return xe.toFlatObject(e,s,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),Ft.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const jQ=null;function Ix(e){return xe.isPlainObject(e)||xe.isArray(e)}function $5(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function aR(e,t,n){return e?e.concat(t).map(function(o,a){return o=$5(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function UQ(e){return xe.isArray(e)&&!e.some(Ix)}const HQ=xe.toFlatObject(xe,{},null,function(t){return/^is[A-Z]/.test(t)});function U0(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 Ft("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)&&UQ(b)||(xe.isFileList(b)||xe.endsWith(x,"[]"))&&(T=xe.toArray(b)))return x=$5(x),T.forEach(function(w,R){!(xe.isUndefined(w)||w===null)&&t.append(s===!0?aR([x],R,a):s===null?x:x+"[]",d(w))}),!1}return Ix(b)?!0:(t.append(aR(S,x,a),d(b)),!1)}const h=[],g=Object.assign(HQ,{defaultVisitor:p,convertValue:d,isVisitable:Ix});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 iR(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function jS(e,t){this._pairs=[],e&&U0(e,this,t)}const V5=jS.prototype;V5.append=function(t,n){this._pairs.push([t,n])};V5.toString=function(t){const n=t?function(r){return t.call(this,r,iR)}:iR;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zQ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function G5(e,t,n){if(!t)return e;const r=n&&n.encode||zQ;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 jS(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class sR{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 q5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$Q=typeof URLSearchParams<"u"?URLSearchParams:jS,VQ=typeof FormData<"u"?FormData:null,GQ=typeof Blob<"u"?Blob:null,qQ={isBrowser:!0,classes:{URLSearchParams:$Q,FormData:VQ,Blob:GQ},protocols:["http","https","file","blob","url","data"]},US=typeof window<"u"&&typeof document<"u",Ox=typeof navigator=="object"&&navigator||void 0,WQ=US&&(!Ox||["ReactNative","NativeScript","NS"].indexOf(Ox.product)<0),YQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",KQ=US&&window.location.href||"http://localhost",QQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:US,hasStandardBrowserEnv:WQ,hasStandardBrowserWebWorkerEnv:YQ,navigator:Ox,origin:KQ},Symbol.toStringTag,{value:"Module"})),Qr={...QQ,...qQ};function XQ(e,t){return U0(e,new Qr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Qr.isNode&&xe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function ZQ(e){return xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JQ(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 W5(e){function t(n,r,o,a){let s=n[a++];if(s==="__proto__")return!0;const l=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,!l):((!o[s]||!xe.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&xe.isArray(o[s])&&(o[s]=JQ(o[s])),!l)}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const n={};return xe.forEachEntry(e,(r,o)=>{t(ZQ(r),o,n,0)}),n}return null}function eX(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 Ih={transitional:q5,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(W5(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 l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return XQ(t,this.formSerializer).toString();if((l=xe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return U0(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),eX(t)):t}],transformResponse:[function(t){const n=this.transitional||Ih.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(l){if(s)throw l.name==="SyntaxError"?Ft.from(l,Ft.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qr.classes.FormData,Blob:Qr.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=>{Ih.headers[e]={}});const tX=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"]),nX=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]&&tX[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lR=Symbol("internals");function Lf(e){return e&&String(e).trim().toLowerCase()}function Gg(e){return e===!1||e==null?e:xe.isArray(e)?e.map(Gg):String(e)}function rX(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 oX=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nE(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 aX(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function iX(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 _o=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,u,d){const p=Lf(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]=Gg(l))}const s=(l,u)=>xe.forEach(l,(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())&&!oX(t))s(nX(t),n);else if(xe.isObject(t)&&xe.isIterable(t)){let l={},u,d;for(const p of t){if(!xe.isArray(p))throw TypeError("Object iterator must return a key-value pair");l[d=p[0]]=(u=l[d])?xe.isArray(u)?[...u,p[1]]:[u,p[1]]:p[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Lf(t),t){const r=xe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return rX(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=Lf(t),t){const r=xe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nE(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=Lf(s),s){const l=xe.findKey(r,s);l&&(!n||nE(r,r[l],l,n))&&(delete r[l],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||nE(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]=Gg(o),delete n[a];return}const l=t?aX(a):String(a).trim();l!==a&&delete n[a],n[l]=Gg(o),r[l]=!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[lR]=this[lR]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=Lf(s);r[l]||(iX(o,s),r[l]=!0)}return xe.isArray(t)?t.forEach(a):a(t),this}};_o.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xe.reduceDescriptors(_o.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});xe.freezeMethods(_o);function rE(e,t){const n=this||Ih,r=t||n,o=_o.from(r.headers);let a=r.data;return xe.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Y5(e){return!!(e&&e.__CANCEL__)}function cd(e,t,n){Ft.call(this,e??"canceled",Ft.ERR_CANCELED,t,n),this.name="CanceledError"}xe.inherits(cd,Ft,{__CANCEL__:!0});function K5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ft("Request failed with status code "+n.status,[Ft.ERR_BAD_REQUEST,Ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sX(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lX(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 cX(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 Ay=(e,t,n=3)=>{let r=0;const o=lX(50,250);return cX(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,u=s-r,d=o(u),p=s<=l;r=s;const h={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l&&p?(l-s)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},cR=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},uR=e=>(...t)=>xe.asap(()=>e(...t)),uX=Qr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qr.origin),Qr.navigator&&/(msie|trident)/i.test(Qr.navigator.userAgent)):()=>!0,dX=Qr.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 fX(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pX(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Q5(e,t,n){let r=!fX(t);return e&&(r||n==!1)?pX(e,t):t}const dR=e=>e instanceof _o?{...e}:e;function ec(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 l(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:l,headers:(d,p,h)=>o(dR(d),dR(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!==l||(n[p]=g)}),n}const X5=e=>{const t=ec({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;t.headers=s=_o.from(s),t.url=G5(Q5(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(xe.isFormData(n)){if(Qr.hasStandardBrowserEnv||Qr.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(Qr.hasStandardBrowserEnv&&(r&&xe.isFunction(r)&&(r=r(t)),r||r!==!1&&uX(t.url))){const d=o&&a&&dX.read(a);d&&s.set(o,d)}return t},hX=typeof XMLHttpRequest<"u",mX=hX&&function(e){return new Promise(function(n,r){const o=X5(e);let a=o.data;const s=_o.from(o.headers).normalize();let{responseType:l,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 w=_o.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),I={data:!l||l==="text"||l==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:w,config:e,request:S};K5(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 Ft("Request aborted",Ft.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new Ft("Network Error",Ft.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||q5;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new Ft(R,I.clarifyTimeoutError?Ft.ETIMEDOUT:Ft.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),l&&l!=="json"&&(S.responseType=o.responseType),d&&([g,b]=Ay(d,!0),S.addEventListener("progress",g)),u&&S.upload&&([h,y]=Ay(u),S.upload.addEventListener("progress",h),S.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=w=>{S&&(r(!w||w.type?new cd(null,e,S):w),S.abort(),S=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const D=sX(o.url);if(D&&Qr.protocols.indexOf(D)===-1){r(new Ft("Unsupported protocol "+D+":",Ft.ERR_BAD_REQUEST,e));return}S.send(a||null)})},gX=(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,l();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Ft?p:new cd(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{s=null,a(new Ft(`timeout ${t} of ms exceeded`,Ft.ETIMEDOUT))},t);const l=()=>{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(l),u}},yX=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},bX=async function*(e,t){for await(const n of vX(e))yield*yX(n,t)},vX=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()}},fR=(e,t,n,r)=>{const o=bX(e,t);let a=0,s,l=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:p}=await o.next();if(d){l(),u.close();return}let h=p.byteLength;if(n){let g=a+=h;n(g)}u.enqueue(new Uint8Array(p))}catch(d){throw l(d),d}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},H0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Z5=H0&&typeof ReadableStream=="function",EX=H0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),J5=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xX=Z5&&J5(()=>{let e=!1;const t=new Request(Qr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pR=64*1024,Nx=Z5&&J5(()=>xe.isReadableStream(new Response("").body)),ky={stream:Nx&&(e=>e.body)};H0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ky[t]&&(ky[t]=xe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ft(`Response type '${t}' is not supported`,Ft.ERR_NOT_SUPPORT,r)})})})(new Response);const TX=async e=>{if(e==null)return 0;if(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e))return(await new Request(Qr.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 EX(e)).byteLength},SX=async(e,t)=>{const n=xe.toFiniteNumber(e.getContentLength());return n??TX(t)},CX=H0&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:s,onDownloadProgress:l,onUploadProgress:u,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=X5(e);d=d?(d+"").toLowerCase():"text";let y=gX([o,a&&a.toAbortSignal()],s),b;const x=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let S;try{if(u&&xX&&n!=="get"&&n!=="head"&&(S=await SX(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,j]=cR(S,Ay(uR(u)));r=fR(I.body,pR,F,j)}}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 w=Nx&&(d==="stream"||d==="response");if(Nx&&(l||w&&x)){const I={};["status","statusText","headers"].forEach(H=>{I[H]=D[H]});const O=xe.toFiniteNumber(D.headers.get("content-length")),[F,j]=l&&cR(O,Ay(uR(l),!0))||[];D=new Response(fR(D.body,pR,F,()=>{j&&j(),x&&x()}),I)}d=d||"text";let R=await ky[xe.findKey(ky,d)||"text"](D,e);return!w&&x&&x(),await new Promise((I,O)=>{K5(I,O,{data:R,headers:_o.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 Ft("Network Error",Ft.ERR_NETWORK,e,b),{cause:T.cause||T}):Ft.from(T,T&&T.code,e,b)}}),Px={http:jQ,xhr:mX,fetch:CX};xe.forEach(Px,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hR=e=>`- ${e}`,_X=e=>xe.isFunction(e)||e===null||e===!1,eP={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,!_X(n)&&(r=Px[(s=String(n)).toLowerCase()],r===void 0))throw new Ft(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+a]=r}if(!r){const a=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since :
226
- `+a.map(hR).join(`
227
- `):" "+hR(a[0]):"as no adapter specified";throw new Ft("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Px};function oE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cd(null,e)}function mR(e){return oE(e),e.headers=_o.from(e.headers),e.data=rE.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eP.getAdapter(e.adapter||Ih.adapter)(e).then(function(r){return oE(e),r.data=rE.call(e,e.transformResponse,r),r.headers=_o.from(r.headers),r},function(r){return Y5(r)||(oE(e),r&&r.response&&(r.response.data=rE.call(e,e.transformResponse,r.response),r.response.headers=_o.from(r.response.headers))),Promise.reject(r)})}const tP="1.9.0",z0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{z0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gR={};z0.transitional=function(t,n,r){function o(a,s){return"[Axios v"+tP+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new Ft(o(s," has been removed"+(n?" in "+n:"")),Ft.ERR_DEPRECATED);return n&&!gR[s]&&(gR[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};z0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function AX(e,t,n){if(typeof e!="object")throw new Ft("options must be an object",Ft.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 l=e[a],u=l===void 0||s(l,a,e);if(u!==!0)throw new Ft("option "+a+" must be "+u,Ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ft("Unknown option "+a,Ft.ERR_BAD_OPTION)}}const qg={assertOptions:AX,validators:z0},ei=qg.validators;let Wl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sR,response:new sR}}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=ec(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&qg.assertOptions(r,{silentJSONParsing:ei.transitional(ei.boolean),forcedJSONParsing:ei.transitional(ei.boolean),clarifyTimeoutError:ei.transitional(ei.boolean)},!1),o!=null&&(xe.isFunction(o)?n.paramsSerializer={serialize:o}:qg.assertOptions(o,{encode:ei.function,serialize:ei.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),qg.assertOptions(n,{baseUrl:ei.spelling("baseURL"),withXsrfToken:ei.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=_o.concat(s,a);const l=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,l.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=[mR.bind(this),void 0];for(b.unshift.apply(b,l),b.push.apply(b,d),g=b.length,p=Promise.resolve(n);h<g;)p=p.then(b[h++],b[h++]);return p}g=l.length;let y=n;for(h=0;h<g;){const b=l[h++],x=l[h++];try{y=b(y)}catch(S){x.call(this,S);break}}try{p=mR.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=ec(this.defaults,t);const n=Q5(t.baseURL,t.url,t.allowAbsoluteUrls);return G5(n,t.params,t.paramsSerializer)}};xe.forEach(["delete","get","head","options"],function(t){Wl.prototype[t]=function(n,r){return this.request(ec(r||{},{method:t,url:n,data:(r||{}).data}))}});xe.forEach(["post","put","patch"],function(t){function n(r){return function(a,s,l){return this.request(ec(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}Wl.prototype[t]=n(),Wl.prototype[t+"Form"]=n(!0)});let kX=class nP{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(l=>{r.subscribe(l),a=l}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new cd(a,s,l),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 nP(function(o){t=o}),cancel:t}}};function wX(e){return function(n){return e.apply(null,n)}}function DX(e){return xe.isObject(e)&&e.isAxiosError===!0}const Lx={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(Lx).forEach(([e,t])=>{Lx[t]=e});function rP(e){const t=new Wl(e),n=N5(Wl.prototype.request,t);return xe.extend(n,Wl.prototype,t,{allOwnKeys:!0}),xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return rP(ec(e,o))},n}const Rt=rP(Ih);Rt.Axios=Wl;Rt.CanceledError=cd;Rt.CancelToken=kX;Rt.isCancel=Y5;Rt.VERSION=tP;Rt.toFormData=U0;Rt.AxiosError=Ft;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=wX;Rt.isAxiosError=DX;Rt.mergeConfig=ec;Rt.AxiosHeaders=_o;Rt.formToJSON=e=>W5(xe.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=eP.getAdapter;Rt.HttpStatusCode=Lx;Rt.default=Rt;const{Axios:$Ee,AxiosError:VEe,CanceledError:GEe,isCancel:qEe,CancelToken:WEe,VERSION:YEe,all:KEe,Cancel:QEe,isAxiosError:XEe,spread:ZEe,toFormData:JEe,AxiosHeaders:exe,HttpStatusCode:txe,formToJSON:nxe,getAdapter:rxe,mergeConfig:oxe}=Rt;var ud=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(){}},tc=typeof window>"u"||"Deno"in globalThis;function ua(){}function RX(e,t){return typeof e=="function"?e(t):e}function Mx(e){return typeof e=="number"&&e>=0&&e!==1/0}function oP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wu(e,t){return typeof e=="function"?e(t):e}function Na(e,t){return typeof e=="function"?e(t):e}function yR(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==HS(s,t.options))return!1}else if(!Yp(t.queryKey,s))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function bR(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(nc(t.options.mutationKey)!==nc(a))return!1}else if(!Yp(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function HS(e,t){return(t?.queryKeyHashFn||nc)(e)}function nc(e){return JSON.stringify(e,(t,n)=>Fx(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Yp(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Yp(e[n],t[n])):!1}function aP(e,t){if(e===t)return e;const n=vR(e)&&vR(t);if(n||Fx(e)&&Fx(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),s=a.length,l=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?(l[p]=void 0,u++):(l[p]=aP(e[p],t[p]),l[p]===e[p]&&e[p]!==void 0&&u++)}return o===s&&u===o?e:l}return t}function wy(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 vR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fx(e){if(!ER(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ER(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ER(e){return Object.prototype.toString.call(e)==="[object Object]"}function IX(e){return new Promise(t=>{setTimeout(t,e)})}function Bx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?aP(e,t):t}function OX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function NX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zS=Symbol();function iP(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===zS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var PX=class extends ud{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!tc&&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"}},$S=new PX,LX=class extends ud{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!tc&&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}},Dy=new LX;function jx(){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 MX(e){return Math.min(1e3*2**e,3e4)}function sP(e){return(e??"online")==="online"?Dy.isOnline():!0}var lP=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function aE(e){return e instanceof lP}function cP(e){let t=!1,n=0,r=!1,o;const a=jx(),s=x=>{r||(g(new lP(x)),e.abort?.())},l=()=>{t=!0},u=()=>{t=!1},d=()=>$S.isFocused()&&(e.networkMode==="always"||Dy.isOnline())&&e.canRun(),p=()=>sP(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??(tc?0:3),w=e.retryDelay??MX,R=typeof w=="function"?w(n,T):w,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),IX(R).then(()=>d()?void 0:y()).then(()=>{t?g(T):b()})})};return{promise:a,cancel:s,continue:()=>(o?.(),a),cancelRetry:l,continueRetry:u,canStart:p,start:()=>(p()?b():y().then(b),a)}}var FX=e=>setTimeout(e,0);function BX(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=FX;const a=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(u=>{n(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||s()}return u},batchCalls:l=>(...u)=>{a(()=>{l(...u)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var _r=BX(),uP=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mx(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tc?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},jX=class extends uP{#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=UX(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=Bx(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(ua).catch(ua):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Na(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zS||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||!oP(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 l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const l=iP(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(l,u,this):l(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=l=>{aE(l)&&l.silent||this.#a({type:"error",error:l}),aE(l)||(this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this)),this.scheduleGc()};return this.#o=cP({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:l=>{if(l===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(l)}catch(u){s(u);return}this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),this.scheduleGc()},onError:s,onFail:(l,u)=>{this.#a({type:"failed",failureCount:l,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,...dP(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 aE(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),_r.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function dP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function UX(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 HX=class extends ud{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??HS(r,t);let a=this.get(o);return a||(a=new jX({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(){_r.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=>yR(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>yR(e,n)):t}notify(e){_r.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_r.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_r.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},zX=class extends uP{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||fP(),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=cP({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),_r.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function fP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $X=class extends ud{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 zX({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=yg(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=yg(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=yg(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=yg(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){_r.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=>bR(t,n))}findAll(e={}){return this.getAll().filter(t=>bR(e,t))}notify(e){_r.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return _r.batch(()=>Promise.all(e.map(t=>t.continue().catch(ua))))}};function yg(e){return e.options.scope?.id}function xR(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 l={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=iP(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:w}=t.options,R=S?NX:OX;return{pages:R(b.pages,D,w),pageParams:R(b.pageParams,x,w)}};if(o&&a.length){const b=o==="backward",x=b?VX:TR,S={pages:a,pageParams:s},T=x(r,S);l=await y(S,T,b)}else{const b=e??a.length;do{const x=u===0?s[0]??r.initialPageParam:TR(r,l);if(u>0&&x==null)break;l=await y(l,x),u++}while(u<b)}return l};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 TR(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 VX(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var GX=class{#t;#e;#n;#r;#o;#i;#s;#a;constructor(e={}){this.#t=e.queryCache||new HX,this.#e=e.mutationCache||new $X,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=$S.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=Dy.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(wu(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=RX(t,a);if(s!==void 0)return this.#t.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return _r.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;_r.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return _r.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_r.batch(()=>this.#t.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ua).catch(ua)}invalidateQueries(e,t={}){return _r.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=_r.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(ua)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ua)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(wu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ua).catch(ua)}fetchInfiniteQuery(e){return e.behavior=xR(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ua).catch(ua)}ensureInfiniteQueryData(e){return e.behavior=xR(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Dy.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(nc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Yp(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(nc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Yp(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=HS(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===zS&&(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()}},qX=class extends ud{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#s=jx(),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),SR(this.#e,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ux(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ux(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 Na(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&&!wy(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&CR(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Na(this.options.enabled,this.#e)!==Na(t.enabled,this.#e)||wu(this.options.staleTime,this.#e)!==wu(t.staleTime,this.#e))&&this.#g();const o=this.#y();r&&(this.#e!==n||Na(this.options.enabled,this.#e)!==Na(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 YX(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(ua)),t}#g(){this.#E();const e=wu(this.options.staleTime,this.#e);if(tc||this.#r.isStale||!Mx(e))return;const n=oP(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,!(tc||Na(this.options.enabled,this.#e)===!1||!Mx(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||$S.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 j=this.hasListeners(),H=!j&&SR(e,t),C=j&&CR(e,n,t,r);(H||C)&&(p={...p,...dP(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 j;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(j=o.data,S=!0):j=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,j!==void 0&&(x="success",g=Bx(o?.data,j,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=Bx(o?.data,g,t),this.#f=g,this.#a=null}catch(j){this.#a=j}this.#a&&(y=this.#a,g=this.#f,b=Date.now(),x="error");const T=p.fetchStatus==="fetching",D=x==="pending",w=x==="error",R=D&&T,I=g!==void 0,F={status:x,fetchStatus:p.fetchStatus,isPending:D,isSuccess:x==="success",isError:w,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:w&&!I,isPaused:p.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&I,isStale:VS(e,t),refetch:this.refetch,promise:this.#s};if(this.options.experimental_prefetchInRender){const j=M=>{F.status==="error"?M.reject(F.error):F.data!==void 0&&M.resolve(F.data)},H=()=>{const M=this.#s=F.promise=jx();j(M)},C=this.#s;switch(C.status){case"pending":e.queryHash===n.queryHash&&j(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),wy(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 l=s;return this.#r[l]!==e[l]&&a.has(l)})};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){_r.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function WX(e,t){return Na(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function SR(e,t){return WX(e,t)||e.state.data!==void 0&&Ux(e,t,t.refetchOnMount)}function Ux(e,t,n){if(Na(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&VS(e,t)}return!1}function CR(e,t,n,r){return(e!==t||Na(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&VS(e,n)}function VS(e,t){return Na(t.enabled,e)!==!1&&e.isStaleByTime(wu(t.staleTime,e))}function YX(e,t){return!wy(e.getCurrentResult(),t)}var KX=class extends ud{#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),wy(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&nc(n.mutationKey)!==nc(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??fP();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){_r.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)})})}},QX=k.createContext(void 0),pP=e=>{const t=k.useContext(QX);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hP=k.createContext(!1),XX=()=>k.useContext(hP);hP.Provider;function ZX(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var JX=k.createContext(ZX()),eZ=()=>k.useContext(JX);function mP(e,t){return typeof e=="function"?e(...t):!!e}function Hx(){}var tZ=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},nZ=e=>{k.useEffect(()=>{e.clearReset()},[e])},rZ=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||mP(n,[e.error,r])),oZ=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)))},aZ=(e,t)=>e.isLoading&&e.isFetching&&!t,iZ=(e,t)=>e?.suspense&&t.isPending,_R=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function sZ(e,t,n){const r=pP(n),o=XX(),a=eZ(),s=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=o?"isRestoring":"optimistic",oZ(s),tZ(s,a),nZ(a);const l=!r.getQueryCache().get(s.queryHash),[u]=k.useState(()=>new t(r,s)),d=u.getOptimisticResult(s),p=!o&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(h=>{const g=p?u.subscribe(_r.batchCalls(h)):Hx;return u.updateResult(),g},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),k.useEffect(()=>{u.setOptions(s)},[s,u]),iZ(s,d))throw _R(s,u,a);if(rZ({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&&!tc&&aZ(d,o)&&(l?_R(s,u,a):r.getQueryCache().get(s.queryHash)?.promise)?.catch(Hx).finally(()=>{u.updateResult()}),s.notifyOnChangeProps?d:u.trackResult(d)}function lZ(e,t){return sZ(e,qX,t)}function cZ(e,t){const n=pP(t),[r]=k.useState(()=>new KX(n,e));k.useEffect(()=>{r.setOptions(e)},[r,e]);const o=k.useSyncExternalStore(k.useCallback(s=>r.subscribe(_r.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=k.useCallback((s,l)=>{r.mutate(s,l).catch(Hx)},[r]);if(o.error&&mP(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function Nl(){return Nl=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},Nl.apply(this,arguments)}const uZ=["children","options"],_t={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 AR;(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"})(AR||(AR={}));const kR=["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"}),wR={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},dZ=["style","script"],fZ=["src","href","data","formAction","srcDoc","action"],pZ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,hZ=/mailto:/i,mZ=/\n{2,}$/,gP=/^(\s*>[\s\S]*?)(?=\n\n|$)/,gZ=/^ *> ?/gm,yZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,bZ=/^ {2,}\n/,vZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yP=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,bP=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,EZ=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,xZ=/^(?:\n *)*\n/,TZ=/\r\n?/g,SZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,CZ=/^\[\^([^\]]+)]/,_Z=/\f/g,AZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,kZ=/^\s*?\[(x|\s)\]/,vP=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,EP=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,xP=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,zx=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,wZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,TP=/^<!--[\s\S]*?(?:-->)/,DZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,$x=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,RZ=/^\{.*\}$/,IZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,OZ=/^<([^ >]+@[^ >]+)>/,NZ=/^<([^ >]+:\/[^ >]+)>/,PZ=/-([a-z])?/gi,SP=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,LZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,MZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,FZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,BZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,jZ=/\t/g,UZ=/(^ *\||\| *$)/g,HZ=/^ *:-+: *$/,zZ=/^ *:-+ *$/,$Z=/^ *-+: *$/,$0="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",VZ=new RegExp(`^([*_])\\1${$0}\\1\\1(?!\\1)`),GZ=new RegExp(`^([*_])${$0}\\1(?!\\1)`),qZ=new RegExp(`^(==)${$0}\\1`),WZ=new RegExp(`^(~~)${$0}\\1`),YZ=/^\\([^0-9A-Za-z\s])/,DR=/\\([^0-9A-Za-z\s])/g,KZ=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,QZ=/^\n+/,XZ=/^([ \t]*)/,ZZ=/\\([^\\])/g,JZ=/(?:^|\n)( *)$/,GS="(?:\\d+\\.)",qS="(?:[*+-])";function CP(e){return"( *)("+(e===1?GS:qS)+") +"}const _P=CP(1),AP=CP(2);function kP(e){return new RegExp("^"+(e===1?_P:AP))}const eJ=kP(1),tJ=kP(2);function wP(e){return new RegExp("^"+(e===1?_P:AP)+"[^\\n]*(?:\\n(?!\\1"+(e===1?GS:qS)+" )[^\\n]*)*(\\n|$)","gm")}const nJ=wP(1),rJ=wP(2);function DP(e){const t=e===1?GS:qS;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const RP=DP(1),IP=DP(2);function RR(e,t){const n=t===1,r=n?RP:IP,o=n?nJ:rJ,a=n?eJ:tJ;return{match:Wu(function(s,l){const u=JZ.exec(l.prevCapture);return u&&(l.list||!l.inline&&!l.simple)?r.exec(s=u[1]+s):null}),order:1,parse(s,l,u){const d=n?+s[2]:void 0,p=s[0].replace(mZ,`
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 w=u.inline,R=u.list;let I;u.list=!0,D?(u.inline=!1,I=Kp(S)+`
232
-
233
- `):(u.inline=!0,I=Kp(S));const O=l(I,u);return u.inline=w,u.list=R,O}),ordered:n,start:d}},render:(s,l,u)=>e(s.ordered?"ol":"ul",{key:u.key,start:s.type===_t.orderedList?s.start:void 0},s.items.map(function(d,p){return e("li",{key:p},l(d,u))}))}}const oJ=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),aJ=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,OP=[gP,yP,bP,vP,xP,EP,SP,RP,IP],iJ=[...OP,/^[^\n]+(?: \n|\n{2,})/,zx,TP,$x];function Kp(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Mf(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 sJ(e){return $Z.test(e)?"right":HZ.test(e)?"center":zZ.test(e)?"left":null}function IR(e,t,n,r){const o=n.inTable;n.inTable=!0;let a=[[]],s="";function l(){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()==="|"&&(l(),r)?d!==0&&d!==p.length-1&&a.push([]):s+=u}),l(),n.inTable=o,a}function lJ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(UZ,"").split("|").map(sJ):[],o=e[3]?function(s,l,u){return s.trim().split(`
234
- `).map(function(d){return IR(d,l,u,!0)})}(e[3],t,n):[],a=IR(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:r,cells:o,header:a,type:_t.table}:{children:a,type:_t.paragraph}}function OR(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Wu(e){return e.inline=1,e}function Ls(e){return Wu(function(t,n){return n.inline?e.exec(t):null})}function Ms(e){return Wu(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Ui(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Ff(e){return Wu(function(t){return e.exec(t)})}function cJ(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
235
- `).every(o=>(o+=`
236
- `,!OP.some(a=>a.test(o))&&(n+=o,!!o.trim())));const r=Kp(n);return r==""?null:[n,,r]}const uJ=/(javascript|vbscript|data(?!:image)):/i;function dJ(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(uJ.test(t))return null}catch{return null}return e}function NR(e){return e.replace(ZZ,"$1")}function Wg(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 fJ(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 pJ(e,t,n){const r=n.inline||!1;n.inline=!1;const o=e(t,n);return n.inline=r,o}const iE=(e,t,n)=>({children:Wg(t,e[2],n)});function sE(){return{}}function lE(){return null}function hJ(...e){return e.filter(Boolean).join(" ")}function cE(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 mJ(e="",t={}){function n(g,y,...b){const x=cE(t.overrides,`${g}.props`,{});return t.createElement(function(S,T){const D=cE(T,S);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:cE(T,`${S}.component`,S):S}(g,t.overrides),Nl({},y,x,{className:hJ(y?.className,x.className)||void 0}),...b)}function r(g){g=g.replace(AZ,"");let y=!1;t.forceInline?y=!0:t.forceBlock||(y=BZ.test(g)===!1);const b=d(u(y?g:`${Kp(g).replace(QZ,"")}
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(pZ);return b?b.reduce(function(x,S){const T=S.indexOf("=");if(T!==-1){const D=function(O){return O.indexOf("-")!==-1&&O.match(DZ)===null&&(O=O.replace(PZ,function(F,j){return j.toUpperCase()})),O}(S.slice(0,T)).trim(),w=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=kR[D]||D;if(R==="ref")return x;const I=x[R]=function(O,F,j,H){return F==="style"?function(C){const M=[];let $="",z=!1,q=!1,Y="";if(!C)return M;for(let X=0;X<C.length;X++){const ae=C[X];if(ae!=='"'&&ae!=="'"||z||(q?ae===Y&&(q=!1,Y=""):(q=!0,Y=ae)),ae==="("&&$.endsWith("url")?z=!0:ae===")"&&z&&(z=!1),ae!==";"||q||z)$+=ae;else{const te=$.trim();if(te){const N=te.indexOf(":");if(N>0){const oe=te.slice(0,N).trim(),K=te.slice(N+1).trim();M.push([oe,K])}}$=""}}const B=$.trim();if(B){const X=B.indexOf(":");if(X>0){const ae=B.slice(0,X).trim(),te=B.slice(X+1).trim();M.push([ae,te])}}return M}(j).reduce(function(C,[M,$]){return C[M.replace(/(-[a-z])/g,z=>z[1].toUpperCase())]=H($,O,M),C},{}):fZ.indexOf(F)!==-1?H(j,O,F):(j.match(RZ)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(g,D,w,t.sanitizer);typeof I=="string"&&(zx.test(I)||$x.test(I))&&(x[R]=r(I.trim()))}else S!=="style"&&(x[kR[S]||S]=!0);return x},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||dJ,t.slugify=t.slugify||Mf,t.namedCodesToUnicode=t.namedCodesToUnicode?Nl({},wR,t.namedCodesToUnicode):wR,t.createElement=t.createElement||k.createElement;const a=[],s={},l={[_t.blockQuote]:{match:Ui(gP),order:1,parse(g,y,b){const[,x,S]=g[0].replace(gZ,"").match(yZ);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(),Mf),g.children.unshift({attrs:{},children:[{type:_t.text,text:g.alert}],noInnerParse:!0,type:_t.htmlBlock,tag:"header"})),n("blockquote",x,y(g.children,b))}},[_t.breakLine]:{match:Ff(bZ),order:1,parse:sE,render:(g,y,b)=>n("br",{key:b.key})},[_t.breakThematic]:{match:Ui(vZ),order:1,parse:sE,render:(g,y,b)=>n("hr",{key:b.key})},[_t.codeBlock]:{match:Ui(bP),order:0,parse:g=>({lang:void 0,text:Kp(g[0].replace(/^ {4}/gm,"")).replace(DR,"$1")}),render:(g,y,b)=>n("pre",{key:b.key},n("code",Nl({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[_t.codeFenced]:{match:Ui(yP),order:0,parse:g=>({attrs:o("code",g[3]||""),lang:g[2]||void 0,text:g[4],type:_t.codeBlock})},[_t.codeInline]:{match:Ms(EZ),order:3,parse:g=>({text:g[2].replace(DR,"$1")}),render:(g,y,b)=>n("code",{key:b.key},g.text)},[_t.footnote]:{match:Ui(SZ),order:0,parse:g=>(a.push({footnote:g[2],identifier:g[1]}),{}),render:lE},[_t.footnoteReference]:{match:Ls(CZ),order:1,parse:g=>({target:`#${t.slugify(g[1],Mf)}`,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))},[_t.gfmTask]:{match:Ls(kZ),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"})},[_t.heading]:{match:Ui(t.enforceAtxHeadings?EP:vP),order:1,parse:(g,y,b)=>({children:Wg(y,g[2],b),id:t.slugify(g[2],Mf),level:g[1].length}),render:(g,y,b)=>n(`h${g.level}`,{id:g.id,key:b.key},y(g.children,b))},[_t.headingSetext]:{match:Ui(xP),order:0,parse:(g,y,b)=>({children:Wg(y,g[1],b),level:g[2]==="="?1:2,type:_t.heading})},[_t.htmlBlock]:{match:Ff(zx),order:1,parse(g,y,b){const[,x]=g[3].match(XZ),S=new RegExp(`^${x}`,"gm"),T=g[3].replace(S,""),D=(w=T,iJ.some(j=>j.test(w))?pJ:Wg);var w;const R=g[1].toLowerCase(),I=dZ.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,Nl({key:b.key},g.attrs),g.text||(g.children?y(g.children,b):""))},[_t.htmlSelfClosing]:{match:Ff($x),order:1,parse(g){const y=g[1].trim();return{attrs:o(y,g[2]||""),tag:y}},render:(g,y,b)=>n(g.tag,Nl({},g.attrs,{key:b.key}))},[_t.htmlComment]:{match:Ff(TP),order:1,parse:()=>({}),render:lE},[_t.image]:{match:Ms(aJ),order:1,parse:g=>({alt:g[1],target:NR(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")})},[_t.link]:{match:Ls(oJ),order:3,parse:(g,y,b)=>({children:fJ(y,g[1],b),target:NR(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))},[_t.linkAngleBraceStyleDetector]:{match:Ls(NZ),order:0,parse:g=>({children:[{text:g[1],type:_t.text}],target:g[1],type:_t.link})},[_t.linkBareUrlDetector]:{match:Wu((g,y)=>y.inAnchor||t.disableAutoLink?null:Ls(IZ)(g,y)),order:0,parse:g=>({children:[{text:g[1],type:_t.text}],target:g[1],title:void 0,type:_t.link})},[_t.linkMailtoDetector]:{match:Ls(OZ),order:0,parse(g){let y=g[1],b=g[1];return hZ.test(b)||(b="mailto:"+b),{children:[{text:y.replace("mailto:",""),type:_t.text}],target:b,type:_t.link}}},[_t.orderedList]:RR(n,1),[_t.unorderedList]:RR(n,2),[_t.newlineCoalescer]:{match:Ui(xZ),order:3,parse:sE,render:()=>`
239
- `},[_t.paragraph]:{match:Wu(cJ),order:3,parse:iE,render:(g,y,b)=>n("p",{key:b.key},y(g.children,b))},[_t.ref]:{match:Ls(LZ),order:0,parse:g=>(s[g[1]]={target:g[2],title:g[4]},{}),render:lE},[_t.refImage]:{match:Ms(MZ),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},[_t.refLink]:{match:Ls(FZ),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)},[_t.table]:{match:Ui(SP),order:1,parse:lJ,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:OR(x,T)},y(S,b))}))),n("tbody",null,x.cells.map(function(S,T){return n("tr",{key:T},S.map(function(D,w){return n("td",{key:w,style:OR(x,w)},y(D,b))}))})))}},[_t.text]:{match:Ff(KZ),order:4,parse:g=>({text:g[0].replace(wZ,(y,b)=>t.namedCodesToUnicode[b]?t.namedCodesToUnicode[b]:y)}),render:g=>g.text},[_t.textBolded]:{match:Ms(VZ),order:2,parse:(g,y,b)=>({children:y(g[2],b)}),render:(g,y,b)=>n("strong",{key:b.key},y(g.children,b))},[_t.textEmphasized]:{match:Ms(GZ),order:3,parse:(g,y,b)=>({children:y(g[2],b)}),render:(g,y,b)=>n("em",{key:b.key},y(g.children,b))},[_t.textEscaped]:{match:Ms(YZ),order:1,parse:g=>({text:g[1],type:_t.text})},[_t.textMarked]:{match:Ms(qZ),order:3,parse:iE,render:(g,y,b)=>n("mark",{key:b.key},y(g.children,b))},[_t.textStrikethroughed]:{match:Ms(WZ),order:3,parse:iE,render:(g,y,b)=>n("del",{key:b.key},y(g.children,b))}};t.disableParsingRawHTML===!0&&(delete l[_t.htmlBlock],delete l[_t.htmlSelfClosing]);const u=function(g){let y=Object.keys(g);function b(x,S){let T,D,w=[],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),w.push(D);break}O++}}return S.prevCapture="",w}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(TZ,`
240
- `).replace(_Z,"").replace(jZ," ")}(x),S)}}(l),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)}}(l,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 w=g(y[D],b),R=typeof w=="string";R&&T?S[S.length-1]+=w:w!==null&&S.push(w),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,Mf),key:g.identifier},g.identifier,d(u(g.footnote,{inline:!0})))}))):h}const WS=e=>{let{children:t="",options:n}=e,r=function(o,a){if(o==null)return{};var s,l,u={},d=Object.keys(o);for(l=0;l<d.length;l++)a.indexOf(s=d[l])>=0||(u[s]=o[s]);return u}(e,uZ);return k.cloneElement(mJ(t,n),r)},gJ=vi(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),yJ=vi(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),bJ=vi(v.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),vJ=vi(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),EJ=vi(v.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 YS=Nh(),Pt=e=>Oh(e,YS),KS=Nh();Pt.write=e=>Oh(e,KS);var V0=Nh();Pt.onStart=e=>Oh(e,V0);var QS=Nh();Pt.onFrame=e=>Oh(e,QS);var XS=Nh();Pt.onFinish=e=>Oh(e,XS);var Du=[];Pt.setTimeout=(e,t)=>{const n=Pt.now()+t,r=()=>{const a=Du.findIndex(s=>s.cancel==r);~a&&Du.splice(a,1),Gs-=~a?1:0},o={time:n,handler:e,cancel:r};return Du.splice(NP(n),0,o),Gs+=1,PP(),o};var NP=e=>~(~Du.findIndex(t=>t.time>e)||~Du.length);Pt.cancel=e=>{V0.delete(e),QS.delete(e),XS.delete(e),YS.delete(e),KS.delete(e)};Pt.sync=e=>{Vx=!0,Pt.batchedUpdates(e),Vx=!1};Pt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Pt.onStart(n)}return r.handler=e,r.cancel=()=>{V0.delete(n),t=null},r};var ZS=typeof window<"u"?window.requestAnimationFrame:()=>{};Pt.use=e=>ZS=e;Pt.now=typeof performance<"u"?()=>performance.now():Date.now;Pt.batchedUpdates=e=>e();Pt.catch=console.error;Pt.frameLoop="always";Pt.advance=()=>{Pt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):MP()};var Vs=-1,Gs=0,Vx=!1;function Oh(e,t){Vx?(t.delete(e),e(0)):(t.add(e),PP())}function PP(){Vs<0&&(Vs=0,Pt.frameLoop!=="demand"&&ZS(LP))}function xJ(){Vs=-1}function LP(){~Vs&&(ZS(LP),Pt.batchedUpdates(MP))}function MP(){const e=Vs;Vs=Pt.now();const t=NP(Vs);if(t&&(FP(Du.splice(0,t),n=>n.handler()),Gs-=t),!Gs){xJ();return}V0.flush(),YS.flush(e?Math.min(64,Vs-e):16.667),QS.flush(),KS.flush(),XS.flush()}function Nh(){let e=new Set,t=e;return{add(n){Gs+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Gs-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Gs-=t.size,FP(t,r=>r(n)&&e.add(r)),Gs+=e.size,t=e)}}}function FP(e,t){e.forEach(n=>{try{t(n)}catch(r){Pt.catch(r)}})}var TJ=Object.defineProperty,SJ=(e,t)=>{for(var n in t)TJ(e,n,{get:t[n],enumerable:!0})},Ha={};SJ(Ha,{assign:()=>_J,colors:()=>Ys,createStringInterpolator:()=>eC,skipAnimation:()=>jP,to:()=>BP,willAdvance:()=>tC});function Gx(){}var CJ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),We={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 qi(e,t){if(We.arr(e)){if(!We.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 Zt=(e,t)=>e.forEach(t);function yi(e,t,n){if(We.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 $o=e=>We.und(e)?[]:We.arr(e)?e:[e];function yp(e,t){if(e.size){const n=Array.from(e);e.clear(),Zt(n,t)}}var ap=(e,...t)=>yp(e,n=>n(...t)),JS=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),eC,BP,Ys=null,jP=!1,tC=Gx,_J=e=>{e.to&&(BP=e.to),e.now&&(Pt.now=e.now),e.colors!==void 0&&(Ys=e.colors),e.skipAnimation!=null&&(jP=e.skipAnimation),e.createStringInterpolator&&(eC=e.createStringInterpolator),e.requestAnimationFrame&&Pt.use(e.requestAnimationFrame),e.batchedUpdates&&(Pt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tC=e.willAdvance),e.frameLoop&&(Pt.frameLoop=e.frameLoop)},bp=new Set,ba=[],uE=[],Ry=0,G0={get idle(){return!bp.size&&!ba.length},start(e){Ry>e.priority?(bp.add(e),Pt.onStart(AJ)):(UP(e),Pt(qx))},advance:qx,sort(e){if(Ry)Pt.onFrame(()=>G0.sort(e));else{const t=ba.indexOf(e);~t&&(ba.splice(t,1),HP(e))}},clear(){ba=[],bp.clear()}};function AJ(){bp.forEach(UP),bp.clear(),Pt(qx)}function UP(e){ba.includes(e)||HP(e)}function HP(e){ba.splice(kJ(ba,t=>t.priority>e.priority),0,e)}function qx(e){const t=uE;for(let n=0;n<ba.length;n++){const r=ba[n];Ry=r.priority,r.idle||(tC(r),r.advance(e),r.idle||t.push(r))}return Ry=0,uE=ba,uE.length=0,ba=t,ba.length>0}function kJ(e,t){const n=e.findIndex(t);return n<0?e.length:n}var wJ={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},La="[-+]?\\d*\\.?\\d+",Iy=La+"%";function q0(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var DJ=new RegExp("rgb"+q0(La,La,La)),RJ=new RegExp("rgba"+q0(La,La,La,La)),IJ=new RegExp("hsl"+q0(La,Iy,Iy)),OJ=new RegExp("hsla"+q0(La,Iy,Iy,La)),NJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,PJ=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,LJ=/^#([0-9a-fA-F]{6})$/,MJ=/^#([0-9a-fA-F]{8})$/;function FJ(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=LJ.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ys&&Ys[e]!==void 0?Ys[e]:(t=DJ.exec(e))?(nu(t[1])<<24|nu(t[2])<<16|nu(t[3])<<8|255)>>>0:(t=RJ.exec(e))?(nu(t[1])<<24|nu(t[2])<<16|nu(t[3])<<8|MR(t[4]))>>>0:(t=NJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=MJ.exec(e))?parseInt(t[1],16)>>>0:(t=PJ.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=IJ.exec(e))?(PR(LR(t[1]),bg(t[2]),bg(t[3]))|255)>>>0:(t=OJ.exec(e))?(PR(LR(t[1]),bg(t[2]),bg(t[3]))|MR(t[4]))>>>0:null}function dE(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 PR(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=dE(o,r,e+1/3),s=dE(o,r,e),l=dE(o,r,e-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function nu(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function LR(e){return(parseFloat(e)%360+360)%360/360}function MR(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function bg(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function FR(e){let t=FJ(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 Qp=(e,t,n)=>{if(We.fun(e))return e;if(We.arr(e))return Qp({range:e,output:t,extrapolate:n});if(We.str(e.output[0]))return eC(e);const r=e,o=r.output,a=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(d=>d);return d=>{const p=jJ(d,a);return BJ(d,a[p],a[p+1],o[p],o[p+1],u,s,l,r.map)}};function BJ(e,t,n,r,o,a,s,l,u){let d=u?u(e):e;if(d<t){if(s==="identity")return d;s==="clamp"&&(d=t)}if(d>n){if(l==="identity")return d;l==="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 jJ(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var UJ={linear:e=>e},Xp=Symbol.for("FluidValue.get"),Yu=Symbol.for("FluidValue.observers"),ha=e=>!!(e&&e[Xp]),xo=e=>e&&e[Xp]?e[Xp]():e,BR=e=>e[Yu]||null;function HJ(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Zp(e,t){const n=e[Yu];n&&n.forEach(r=>{HJ(r,t)})}var zP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");zJ(this,e)}},zJ=(e,t)=>$P(e,Xp,t);function dd(e,t){if(e[Xp]){let n=e[Yu];n||$P(e,Yu,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Jp(e,t){const n=e[Yu];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Yu]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var $P=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Yg=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,$J=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,jR=new RegExp(`(${Yg.source})(%|[a-z]+)`,"i"),VJ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,W0=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,VP=e=>{const[t,n]=GJ(e);if(!t||JS())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&&W0.test(n))return VP(n);if(n)return n}return e},GJ=e=>{const t=W0.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},fE,qJ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,GP=e=>{fE||(fE=Ys?new RegExp(`(${Object.keys(Ys).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>xo(a).replace(W0,VP).replace($J,FR).replace(fE,FR)),n=t.map(a=>a.match(Yg).map(Number)),o=n[0].map((a,s)=>n.map(l=>{if(!(s in l))throw Error('The arity of each "output" value must be equal');return l[s]})).map(a=>Qp({...e,output:a}));return a=>{const s=!jR.test(t[0])&&t.find(u=>jR.test(u))?.replace(Yg,"");let l=0;return t[0].replace(Yg,()=>`${o[l++](a)}${s||""}`).replace(VJ,qJ)}},nC="react-spring: ",qP=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${nC}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},WJ=qP(console.warn);function YJ(){WJ(`${nC}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var KJ=qP(console.warn);function QJ(){KJ(`${nC}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 Y0(e){return We.str(e)&&(e[0]=="#"||/\d/.test(e)||!JS()&&W0.test(e)||e in(Ys||{}))}var rC=JS()?k.useEffect:k.useLayoutEffect,XJ=()=>{const e=k.useRef(!1);return rC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function WP(){const e=k.useState()[1],t=XJ();return()=>{t.current&&e(Math.random())}}var YP=e=>k.useEffect(e,ZJ),ZJ=[];function UR(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e}),t.current}var eh=Symbol.for("Animated:node"),JJ=e=>!!e&&e[eh]===e,ai=e=>e&&e[eh],oC=(e,t)=>CJ(e,eh,t),K0=e=>e&&e[eh]&&e[eh].getPayload(),KP=class{constructor(){oC(this,this)}getPayload(){return this.payload||[]}},Q0=class QP extends KP{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,We.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new QP(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return We.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,We.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Oy=class XP extends Q0{constructor(t){super(0),this._string=null,this._toString=Qp({output:[t,t]})}static create(t){return new XP(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(We.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=Qp({output:[this.getValue(),t]})),this._value=0,super.reset()}},Ny={dependencies:null},X0=class extends KP{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return yi(this.source,(n,r)=>{JJ(n)?t[r]=n.getValue(e):ha(n)?t[r]=xo(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Zt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return yi(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ny.dependencies&&ha(e)&&Ny.dependencies.add(e);const t=K0(e);t&&Zt(t,n=>this.add(n))}},eee=class ZP extends X0{constructor(t){super(t)}static create(t){return new ZP(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(tee)),!0)}};function tee(e){return(Y0(e)?Oy:Q0).create(e)}function Wx(e){const t=ai(e);return t?t.constructor:We.arr(e)?eee:Y0(e)?Oy:Q0}var HR=(e,t)=>{const n=!We.fun(e)||e.prototype&&e.prototype.isReactComponent;return k.forwardRef((r,o)=>{const a=k.useRef(null),s=n&&k.useCallback(b=>{a.current=oee(o,b)},[o]),[l,u]=ree(r,t),d=WP(),p=()=>{const b=a.current;if(n&&!b)return;(b?t.applyAnimatedValues(b,l.getValue(!0)):!1)===!1&&d()},h=new nee(p,u),g=k.useRef(void 0);rC(()=>(g.current=h,Zt(u,b=>dd(b,h)),()=>{g.current&&(Zt(g.current.deps,b=>Jp(b,g.current)),Pt.cancel(g.current.update))})),k.useEffect(p,[]),YP(()=>()=>{const b=g.current;Zt(b.deps,x=>Jp(x,b))});const y=t.getComponentProps(l.getValue());return k.createElement(e,{...y,ref:s})})},nee=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Pt.write(this.update)}};function ree(e,t){const n=new Set;return Ny.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new X0(e),Ny.dependencies=null,[e,n]}function oee(e,t){return e&&(We.fun(e)?e(t):e.current=t),t}var zR=Symbol.for("AnimatedComponent"),aee=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new X0(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=s=>{const l=$R(s)||"Anonymous";return We.str(s)?s=a[s]||(a[s]=HR(s,o)):s=s[zR]||(s[zR]=HR(s,o)),s.displayName=`Animated(${l})`,s};return yi(e,(s,l)=>{We.arr(e)&&(l=$R(s)),a[l]=a(s)}),{animated:a}},$R=e=>We.str(e)?e:e&&We.str(e.displayName)?e.displayName:We.fun(e)&&e.name||null;function Pl(e,...t){return We.fun(e)?e(...t):e}var vp=(e,t)=>e===!0||!!(t&&e&&(We.fun(e)?e(t):$o(e).includes(t))),JP=(e,t)=>We.obj(e)?t&&e[t]:e,e4=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,iee=e=>e,aC=(e,t=iee)=>{let n=see;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);We.und(a)||(r[o]=a)}return r},see=["config","onProps","onStart","onChange","onPause","onResume","onRest"],lee={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 cee(e){const t={};let n=0;if(yi(e,(r,o)=>{lee[o]||(t[o]=r,n++)}),n)return t}function t4(e){const t=cee(e);if(t){const n={to:t};return yi(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function th(e){return e=xo(e),We.arr(e)?e.map(th):Y0(e)?Ha.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function uee(e){for(const t in e)return!0;return!1}function Yx(e){return We.fun(e)||We.arr(e)&&We.obj(e[0])}function dee(e,t){e.ref?.delete(e),t?.delete(e)}function fee(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var pee={default:{tension:170,friction:26}},Kx={...pee.default,mass:1,damping:1,easing:UJ.linear,clamp:!1},hee=class{constructor(){this.velocity=0,Object.assign(this,Kx)}};function mee(e,t,n){n&&(n={...n},VR(n,t),t={...n,...t}),VR(e,t),Object.assign(e,t);for(const s in Kx)e[s]==null&&(e[s]=Kx[s]);let{frequency:r,damping:o}=e;const{mass:a}=e;return We.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 VR(e,t){if(!We.und(t.decay))e.duration=void 0;else{const n=!We.und(t.tension)||!We.und(t.friction);(n||!We.und(t.frequency)||!We.und(t.damping)||!We.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var GR=[],gee=class{constructor(){this.changed=!1,this.values=GR,this.toValues=null,this.fromValues=GR,this.config=new hee,this.immediate=!1}};function n4(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise((s,l)=>{let u,d,p=vp(n.cancel??r?.cancel,t);if(p)y();else{We.und(n.pause)||(o.paused=vp(n.pause,t));let b=r?.pause;b!==!0&&(b=o.paused||vp(b,t)),u=Pl(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-Pt.now()}function g(){u>0&&!Ha.skipAnimation?(o.delayed=!0,d=Pt.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){l(b)}}})}var iC=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ru(e.get()):t.every(n=>n.noop)?r4(e.get()):Pa(e.get(),t.every(n=>n.finished)),r4=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Pa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ru=e=>({value:e,cancelled:!0,finished:!1});function o4(e,t,n,r){const{callId:o,parentId:a,onRest:s}=t,{asyncTo:l,promise:u}=n;return!a&&e===l&&!t.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const d=aC(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)&&Ru(r)||o!==n.asyncId&&Pa(r,!1);if(T)throw S.result=T,h(S),S},b=(S,T)=>{const D=new qR,w=new WR;return(async()=>{if(Ha.skipAnimation)throw nh(n),w.result=Pa(r,!1),h(w),w;y(D);const R=We.obj(S)?{...S}:{...T,to:S};R.parentId=o,yi(d,(O,F)=>{We.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(Ha.skipAnimation)return nh(n),Pa(r,!1);try{let S;We.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=Pa(r.get(),!0,!1)}catch(S){if(S instanceof qR)x=S.result;else if(S instanceof WR)x=S.result;else throw S}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?u:void 0)}return We.fun(s)&&Pt.batchedUpdates(()=>{s(x,r,r.item)}),x})()}function nh(e,t){yp(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var qR=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.")}},WR=class extends Error{constructor(){super("SkipAnimationSignal")}},Qx=e=>e instanceof sC,yee=1,sC=class extends zP{constructor(){super(...arguments),this.id=yee++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ai(this);return e&&e.getValue()}to(...e){return Ha.to(this,e)}interpolate(...e){return YJ(),Ha.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){Zp(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||G0.sort(this),Zp(this,{type:"priority",parent:this,priority:e})}},rc=Symbol.for("SpringPhase"),a4=1,i4=2,s4=4,pE=e=>(e[rc]&a4)>0,Fs=e=>(e[rc]&i4)>0,Bf=e=>(e[rc]&s4)>0,YR=(e,t)=>t?e[rc]|=i4|a4:e[rc]&=-3,KR=(e,t)=>t?e[rc]|=s4:e[rc]&=-5,bee=class extends sC{constructor(e,t){if(super(),this.animation=new gee,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,!We.und(e)||!We.und(t)){const n=We.obj(e)?{...e}:{...t,from:e};We.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Fs(this)||this._state.asyncTo)||Bf(this)}get goal(){return xo(this.animation.to)}get velocity(){const e=ai(this);return e instanceof Q0?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return pE(this)}get isAnimating(){return Fs(this)}get isPaused(){return Bf(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=K0(r.to);!s&&ha(r.to)&&(o=$o(xo(r.to))),r.values.forEach((d,p)=>{if(d.done)return;const h=d.constructor==Oy?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=We.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(We.und(a.duration))if(a.decay){const w=a.decay===!0?.998:a.decay,R=Math.exp(-(1-w)*b);y=x+S/(1-w)*(1-R),g=Math.abs(d.lastPosition-y)<=D,T=S*R}else{T=d.lastVelocity==null?S:d.lastVelocity;const w=a.restVelocity||D/10,R=a.clamp?0:a.bounce,I=!We.und(R),O=x==h?d.v0>0:x<h;let F,j=!1;const H=1,C=Math.ceil(e/H);for(let M=0;M<C&&(F=Math.abs(T)>w,!(!F&&(g=Math.abs(h-y)<=D,g)));++M){I&&(j=y==h||y>h==O,j&&(T=-T*R,y=h));const $=-a.tension*1e-6*(y-h),z=-a.friction*.001*T,q=($+z)/a.mass;T=T+q*H,y=y+T*H}}else{let w=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)),w=(a.progress||0)+b/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),y=x+a.easing(w)*(h-x),T=(y-d.lastPosition)/e,g=w==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 l=ai(this),u=l.getValue();if(t){const d=xo(r.to);(u!==d||n)&&!a.decay?(l.setValue(d),this._onChange(d)):n&&a.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return Pt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Fs(this)){const{to:e,config:t}=this.animation;Pt.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 We.und(e)?(n=this.queue||[],this.queue=[]):n=[We.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>iC(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),nh(this._state,e&&this._lastCallId),Pt.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=We.obj(n)?n[t]:n,(n==null||Yx(n))&&(n=void 0),r=We.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return pE(this)||(e.reverse&&([n,r]=[r,n]),r=xo(r),We.und(r)?ai(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,aC(e,(s,l)=>/^on/.test(l)?JP(s,n):s)),XR(this,e,"onProps"),Uf(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 n4(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{Bf(this)||(KR(this,!0),ap(a.pauseQueue),Uf(this,"onPause",Pa(this,jf(this,this.animation.to)),this))},resume:()=>{Bf(this)&&(KR(this,!1),Fs(this)&&this._resume(),ap(a.resumeQueue),Uf(this,"onResume",Pa(this,jf(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const l=l4(e);if(l)return this._update(l,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ru(this));const r=!We.und(e.to),o=!We.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ru(this));const{key:a,defaultProps:s,animation:l}=this,{to:u,from:d}=l;let{to:p=u,from:h=d}=e;o&&!r&&(!t.default||We.und(p))&&(p=h),t.reverse&&([p,h]=[h,p]);const g=!qi(h,d);g&&(l.from=h),h=xo(h);const y=!qi(p,u);y&&this._focus(p);const b=Yx(t.to),{config:x}=l,{decay:S,velocity:T}=x;(r||o)&&(x.velocity=0),t.config&&!b&&mee(x,Pl(t.config,a),t.config!==s.config?Pl(s.config,a):void 0);let D=ai(this);if(!D||We.und(p))return n(Pa(this,!0));const w=We.und(t.reset)?o&&!t.default:!We.und(h)&&vp(t.reset,a),R=w?h:this.get(),I=th(p),O=We.num(I)||We.arr(I)||Y0(I),F=!b&&(!O||vp(s.immediate||t.immediate,a));if(y){const M=Wx(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 j=D.constructor;let H=ha(p),C=!1;if(!H){const M=w||!pE(this)&&g;(y||M)&&(C=qi(th(R),I),H=!C),(!qi(l.immediate,F)&&!F||!qi(x.decay,S)||!qi(x.velocity,T))&&(H=!0)}if(C&&Fs(this)&&(l.changed&&!w?H=!0:H||this._stop(u)),!b&&((H||ha(u))&&(l.values=D.getPayload(),l.toValues=ha(p)?null:j==Oy?[1]:$o(I)),l.immediate!=F&&(l.immediate=F,!F&&!w&&this._set(u)),H)){const{onRest:M}=l;Zt(Eee,z=>XR(this,t,z));const $=Pa(this,jf(this,u));ap(this._pendingCalls,$),this._pendingCalls.add(n),l.changed&&Pt.batchedUpdates(()=>{l.changed=!w,M?.($,this),w?Pl(s.onRest,$):l.onStart?.($,this)})}w&&this._set(R),b?n(o4(t.to,t,this._state,this)):H?this._start():Fs(this)&&!y?this._pendingCalls.add(n):n(r4(R))}_focus(e){const t=this.animation;e!==t.to&&(BR(this)&&this._detach(),t.to=e,BR(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ha(t)&&(dd(t,this),Qx(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ha(e)&&Jp(e,this)}_set(e,t=!0){const n=xo(e);if(!We.und(n)){const r=ai(this);if(!r||!qi(n,r.getValue())){const o=Wx(n);!r||r.constructor!=o?oC(this,o.create(n)):r.setValue(n),r&&Pt.batchedUpdates(()=>{this._onChange(n,t)})}}return ai(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Uf(this,"onStart",Pa(this,jf(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Pl(this.animation.onChange,e,this)),Pl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ai(this).reset(xo(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Fs(this)||(YR(this,!0),Bf(this)||this._resume())}_resume(){Ha.skipAnimation?this.finish():G0.start(this)}_stop(e,t){if(Fs(this)){YR(this,!1);const n=this.animation;Zt(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Zp(this,{type:"idle",parent:this});const r=t?Ru(this.get()):Pa(this.get(),jf(this,e??n.to));ap(this._pendingCalls,r),n.changed&&(n.changed=!1,Uf(this,"onRest",r,this))}}};function jf(e,t){const n=th(t),r=th(e.get());return qi(r,n)}function l4(e,t=e.loop,n=e.to){const r=Pl(t);if(r){const o=r!==!0&&t4(r),a=(o||e).reverse,s=!o||o.reset;return rh({...e,loop:t,default:!1,pause:void 0,to:!a||Yx(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function rh(e){const{to:t,from:n}=e=t4(e),r=new Set;return We.obj(t)&&QR(t,r),We.obj(n)&&QR(n,r),e.keys=r.size?Array.from(r):null,e}function vee(e){const t=rh(e);return We.und(t.default)&&(t.default=aC(t)),t}function QR(e,t){yi(e,(n,r)=>n!=null&&t.add(r))}var Eee=["onStart","onRest","onChange","onPause","onResume"];function XR(e,t,n){e.animation[n]=t[n]!==e4(t,n)?JP(t[n],e.key):void 0}function Uf(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xee=["onStart","onChange","onRest"],Tee=1,See=class{constructor(e,t){this.id=Tee++,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];We.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(rh(e)),this}start(e){let{queue:t}=this;return e?t=$o(e).map(rh):this.queue=[],this._flush?this._flush(this,t):(p4(this,t),Xx(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Zt($o(t),r=>n[r].stop(!!e))}else nh(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(We.und(e))this.start({pause:!0});else{const t=this.springs;Zt($o(e),n=>t[n].pause())}return this}resume(e){if(We.und(e))this.start({pause:!1});else{const t=this.springs;Zt($o(e),n=>t[n].resume())}return this}each(e){yi(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,yp(e,([l,u])=>{u.value=this.get(),l(u,this,this._item)}));const a=!r&&this._started,s=o||a&&n.size?this.get():null;o&&t.size&&yp(t,([l,u])=>{u.value=s,l(u,this,this._item)}),a&&(this._started=!1,yp(n,([l,u])=>{u.value=s,l(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;Pt.onFrame(this._onFrame)}};function Xx(e,t){return Promise.all(t.map(n=>c4(e,n))).then(n=>iC(e,n))}async function c4(e,t,n){const{keys:r,to:o,from:a,loop:s,onRest:l,onResolve:u}=t,d=We.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),a===!1&&(t.from=null);const p=We.arr(o)||We.fun(o)?o:void 0;p?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):Zt(xee,x=>{const S=t[x];if(We.fun(S)){const T=e._events[x];t[x]=({finished:D,cancelled:w})=>{const R=T.get(S);R?(D||(R.finished=!1),w&&(R.cancelled=!0)):T.set(S,{value:null,finished:D||!1,cancelled:w||!1})},d&&(d[x]=t[x])}});const h=e._state;t.pause===!h.paused?(h.paused=t.pause,ap(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||e4(t,"cancel")===!0;(p||y&&h.asyncId)&&g.push(n4(++e._lastAsyncId,{props:t,state:h,actions:{pause:Gx,resume:Gx,start(x,S){y?(nh(h,e._lastAsyncId),S(Ru(e))):(x.onRest=l,S(o4(p,x,h,e)))}}})),h.paused&&await new Promise(x=>{h.resumeQueue.add(x)});const b=iC(e,await Promise.all(g));if(s&&b.finished&&!(n&&b.noop)){const x=l4(t,s,o);if(x)return p4(e,[x]),c4(e,x,!0)}return u&&Pt.batchedUpdates(()=>u(b,e,e.item)),b}function ZR(e,t){const n={...e.springs};return t&&Zt($o(t),r=>{We.und(r.keys)&&(r=rh(r)),We.obj(r.to)||(r={...r,to:void 0}),f4(n,r,o=>d4(o))}),u4(e,n),n}function u4(e,t){yi(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,dd(n,e))})}function d4(e,t){const n=new bee;return n.key=e,t&&dd(n,t),n}function f4(e,t,n){t.keys&&Zt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function p4(e,t){Zt(t,n=>{f4(e.springs,n,r=>d4(r,e))})}var Cee=k.createContext({pause:!1,immediate:!1}),_ee=()=>{const e=[],t=function(r){QJ();const o=[];return Zt(e,(a,s)=>{if(We.und(r))o.push(a.start());else{const l=n(r,a,s);l&&o.push(a.start(l))}}),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 Zt(e,r=>r.pause(...arguments)),this},t.resume=function(){return Zt(e,r=>r.resume(...arguments)),this},t.set=function(r){Zt(e,(o,a)=>{const s=We.fun(r)?r(a,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return Zt(e,(a,s)=>{if(We.und(r))o.push(a.start());else{const l=this._getProps(r,a,s);l&&o.push(a.start(l))}}),o},t.stop=function(){return Zt(e,r=>r.stop(...arguments)),this},t.update=function(r){return Zt(e,(o,a)=>o.update(this._getProps(r,o,a))),this};const n=function(r,o,a){return We.fun(r)?r(a,o):r};return t._getProps=n,t};function Aee(e,t,n){const r=We.fun(t)&&t;r&&!n&&(n=[]);const o=k.useMemo(()=>r||arguments.length==3?_ee():void 0,[]),a=k.useRef(0),s=WP(),l=k.useMemo(()=>({ctrls:[],queue:[],flush(T,D){const w=ZR(T,D);return a.current>0&&!l.queue.length&&!Object.keys(w).some(I=>!T.springs[I])?Xx(T,D):new Promise(I=>{u4(T,w),l.queue.push(()=>{I(Xx(T,D))}),s()})}}),[]),u=k.useRef([...l.ctrls]),d=k.useRef([]),p=UR(e)||0;k.useMemo(()=>{Zt(u.current.slice(e,p),T=>{dee(T,o),T.stop(!0)}),u.current.length=e,h(p,e)},[e]),k.useMemo(()=>{h(0,Math.min(p,e))},n);function h(T,D){for(let w=T;w<D;w++){const R=u.current[w]||(u.current[w]=new See(null,l.flush)),I=r?r(w,R):t[w];I&&(d.current[w]=vee(I))}}const g=u.current.map((T,D)=>ZR(T,d.current[D])),y=k.useContext(Cee),b=UR(y),x=y!==b&&uee(y);rC(()=>{a.current++,l.ctrls=u.current;const{queue:T}=l;T.length&&(l.queue=[],Zt(T,D=>D())),Zt(u.current,(D,w)=>{o?.add(D),x&&D.start({default:y});const R=d.current[w];R&&(fee(D,R.ref),D.ref?D.queue.push(R):D.start(R))})}),YP(()=>()=>{Zt(l.ctrls,T=>T.stop(!0))});const S=g.map(T=>({...T}));return o?[S,o]:S}function kee(e,t){const n=We.fun(e),[[r],o]=Aee(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,o]:r}var wee=class extends sC{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Qp(...t);const n=this._get(),r=Wx(n);oC(this,r.create(n))}advance(e){const t=this._get(),n=this.get();qi(t,n)||(ai(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&JR(this._active)&&hE(this)}_get(){const e=We.arr(this.source)?this.source.map(xo):$o(xo(this.source));return this.calc(...e)}_start(){this.idle&&!JR(this._active)&&(this.idle=!1,Zt(K0(this),e=>{e.done=!1}),Ha.skipAnimation?(Pt.batchedUpdates(()=>this.advance()),hE(this)):G0.start(this))}_attach(){let e=1;Zt($o(this.source),t=>{ha(t)&&dd(t,this),Qx(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Zt($o(this.source),e=>{ha(e)&&Jp(e,this)}),this._active.clear(),hE(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=$o(this.source).reduce((t,n)=>Math.max(t,(Qx(n)?n.priority:0)+1),0))}};function Dee(e){return e.idle!==!1}function JR(e){return!e.size||Array.from(e).every(Dee)}function hE(e){e.idle||(e.idle=!0,Zt(K0(e),t=>{t.done=!0}),Zp(e,{type:"idle",parent:e}))}Ha.assign({createStringInterpolator:GP,to:(e,t)=>new wee(e,t)});var h4=/^--/;function Ree(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!h4.test(e)&&!(Ep.hasOwnProperty(e)&&Ep[e])?t+"px":(""+t).trim()}var eI={};function Iee(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:l,viewBox:u,...d}=t,p=Object.values(d),h=Object.keys(d).map(g=>n||e.hasAttribute(g)?g:eI[g]||(eI[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=Ree(g,o[g]);h4.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),l!==void 0&&(e.scrollLeft=l),u!==void 0&&e.setAttribute("viewBox",u)}var Ep={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},Oee=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Nee=["Webkit","Ms","Moz","O"];Ep=Object.keys(Ep).reduce((e,t)=>(Nee.forEach(n=>e[Oee(n,t)]=e[t]),e),Ep);var Pee=/^(matrix|translate|scale|rotate|skew)/,Lee=/^(translate)/,Mee=/^(rotate|skew)/,mE=(e,t)=>We.num(e)&&e!==0?e+t:e,Kg=(e,t)=>We.arr(e)?e.every(n=>Kg(n,t)):We.num(e)?e===t:parseFloat(e)===t,Fee=class extends X0{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(l=>mE(l,"px")).join(",")})`,Kg(s,0)])),yi(r,(s,l)=>{if(l==="transform")o.push([s||""]),a.push(u=>[u,u===""]);else if(Pee.test(l)){if(delete r[l],We.und(s))return;const u=Lee.test(l)?"px":Mee.test(l)?"deg":"";o.push($o(s)),a.push(l==="rotate3d"?([d,p,h,g])=>[`rotate3d(${d},${p},${h},${mE(g,u)})`,Kg(g,0)]:d=>[`${l}(${d.map(p=>mE(p,u)).join(",")})`,Kg(d,l.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new Bee(o,a)),super(r)}},Bee=class extends zP{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 Zt(this.inputs,(n,r)=>{const o=xo(n[0]),[a,s]=this.transforms[r](We.arr(o)?o:n.map(xo));e+=" "+a,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Zt(this.inputs,t=>Zt(t,n=>ha(n)&&dd(n,this)))}observerRemoved(e){e==0&&Zt(this.inputs,t=>Zt(t,n=>ha(n)&&Jp(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Zp(this,e)}},jee=["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"];Ha.assign({batchedUpdates:u0.unstable_batchedUpdates,createStringInterpolator:GP,colors:wJ});var Uee=aee(jee,{applyAnimatedValues:Iee,createAnimatedStyle:e=>new Fee(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Hee=Uee.animated;const tI=e=>e,zee=()=>{let e=tI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tI}}},$ee=zee();function oc(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 za(e){if(typeof e!="string")throw new Error(oc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Z0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nI={exports:{}},gE,rI;function Vee(){if(rI)return gE;rI=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gE=e,gE}var yE,oI;function Gee(){if(oI)return yE;oI=1;var e=Vee();function t(){}function n(){}return n.resetWarningCache=t,yE=function(){function r(s,l,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},yE}var aI;function qee(){return aI||(aI=1,nI.exports=Gee()()),nI.exports}var Wee=qee();const iI=Z0(Wee);function m4(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=m4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=m4(e))&&(r&&(r+=" "),r+=t);return r}function Ph(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}var sI={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 lI;function Yee(){if(lI)return En;lI=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"),l=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 l: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=l,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)===l},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===l||x.$$typeof===y||x.getModuleId!==void 0)},En.typeOf=b,En}var cI;function Kee(){return cI||(cI=1,sI.exports=Yee()),sI.exports}var g4=Kee();function Yi(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 y4(e){if(k.isValidElement(e)||g4.isValidElementType(e)||!Yi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=y4(e[n])}),t}function Go(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Yi(e)&&Yi(t)&&Object.keys(t).forEach(o=>{k.isValidElement(t[o])||g4.isValidElementType(t[o])?r[o]=t[o]:Yi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Yi(e[o])?r[o]=Go(e[o],t[o],n):n.clone?r[o]=Yi(t[o])?y4(t[o]):t[o]:r[o]=t[o]}),r}function xp(e,t){return t?Go(e,t,{clone:!1}):e}function Qee(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 Xee(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Zee(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 Jee(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const u=t(e.breakpoints.not(...l),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 J0={xs:0,sm:600,md:900,lg:1200,xl:1536},uI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${J0[e]}px)`},ete={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:J0[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function os(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||uI;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||uI;return Object.keys(t).reduce((a,s)=>{if(Xee(o.keys,s)){const l=Zee(r.containerQueries?r:ete,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(o.values||J0).includes(s)){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function tte(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function nte(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function eb(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 Py(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=eb(e,n)||r,t&&(o=t(o,r,e)),o}function fr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=s=>{if(s[t]==null)return null;const l=s[t],u=s.theme,d=eb(u,r)||{};return os(s,l,p=>{let h=Py(d,o,p);return p===h&&typeof p=="string"&&(h=Py(d,o,`${t}${p==="default"?"":za(p)}`,p)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function rte(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ote={m:"margin",p:"padding"},ate={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ite=rte(e=>{if(e.length>2)if(dI[e])e=dI[e];else return[e];const[t,n]=e.split(""),r=ote[t],o=ate[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),lC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...lC,...cC];function Lh(e,t,n,r){const o=eb(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),l=o[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function uC(e){return Lh(e,"spacing",8)}function Mh(e,t){return typeof t=="string"||t==null?t:e(t)}function ste(e,t){return n=>e.reduce((r,o)=>(r[o]=Mh(t,n),r),{})}function lte(e,t,n,r){if(!t.includes(n))return null;const o=ite(n),a=ste(o,r),s=e[n];return os(e,s,a)}function b4(e,t){const n=uC(e.theme);return Object.keys(e).map(r=>lte(e,t,r,n)).reduce(xp,{})}function tr(e){return b4(e,lC)}tr.propTypes={};tr.filterProps=lC;function nr(e){return b4(e,cC)}nr.propTypes={};nr.filterProps=cC;function tb(...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]?xp(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ma(e){return typeof e!="number"?e:`${e}px solid`}function Aa(e,t){return fr({prop:e,themeKey:"borders",transform:t})}const cte=Aa("border",ma),ute=Aa("borderTop",ma),dte=Aa("borderRight",ma),fte=Aa("borderBottom",ma),pte=Aa("borderLeft",ma),hte=Aa("borderColor"),mte=Aa("borderTopColor"),gte=Aa("borderRightColor"),yte=Aa("borderBottomColor"),bte=Aa("borderLeftColor"),vte=Aa("outline",ma),Ete=Aa("outlineColor"),nb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Lh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Mh(t,r)});return os(e,e.borderRadius,n)}return null};nb.propTypes={};nb.filterProps=["borderRadius"];tb(cte,ute,dte,fte,pte,hte,mte,gte,yte,bte,nb,vte,Ete);const rb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Lh(e.theme,"spacing",8),n=r=>({gap:Mh(t,r)});return os(e,e.gap,n)}return null};rb.propTypes={};rb.filterProps=["gap"];const ob=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Lh(e.theme,"spacing",8),n=r=>({columnGap:Mh(t,r)});return os(e,e.columnGap,n)}return null};ob.propTypes={};ob.filterProps=["columnGap"];const ab=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Lh(e.theme,"spacing",8),n=r=>({rowGap:Mh(t,r)});return os(e,e.rowGap,n)}return null};ab.propTypes={};ab.filterProps=["rowGap"];const xte=fr({prop:"gridColumn"}),Tte=fr({prop:"gridRow"}),Ste=fr({prop:"gridAutoFlow"}),Cte=fr({prop:"gridAutoColumns"}),_te=fr({prop:"gridAutoRows"}),Ate=fr({prop:"gridTemplateColumns"}),kte=fr({prop:"gridTemplateRows"}),wte=fr({prop:"gridTemplateAreas"}),Dte=fr({prop:"gridArea"});tb(rb,ob,ab,xte,Tte,Ste,Cte,_te,Ate,kte,wte,Dte);function Iu(e,t){return t==="grey"?t:e}const Rte=fr({prop:"color",themeKey:"palette",transform:Iu}),Ite=fr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Iu}),Ote=fr({prop:"backgroundColor",themeKey:"palette",transform:Iu});tb(Rte,Ite,Ote);function zo(e){return e<=1&&e!==0?`${e*100}%`:e}const Nte=fr({prop:"width",transform:zo}),dC=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||J0[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:zo(n)}};return os(e,e.maxWidth,t)}return null};dC.filterProps=["maxWidth"];const Pte=fr({prop:"minWidth",transform:zo}),Lte=fr({prop:"height",transform:zo}),Mte=fr({prop:"maxHeight",transform:zo}),Fte=fr({prop:"minHeight",transform:zo});fr({prop:"size",cssProperty:"width",transform:zo});fr({prop:"size",cssProperty:"height",transform:zo});const Bte=fr({prop:"boxSizing"});tb(Nte,dC,Pte,Lte,Mte,Fte,Bte);const ib={border:{themeKey:"borders",transform:ma},borderTop:{themeKey:"borders",transform:ma},borderRight:{themeKey:"borders",transform:ma},borderBottom:{themeKey:"borders",transform:ma},borderLeft:{themeKey:"borders",transform:ma},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ma},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nb},color:{themeKey:"palette",transform:Iu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Iu},backgroundColor:{themeKey:"palette",transform:Iu},p:{style:nr},pt:{style:nr},pr:{style:nr},pb:{style:nr},pl:{style:nr},px:{style:nr},py:{style:nr},padding:{style:nr},paddingTop:{style:nr},paddingRight:{style:nr},paddingBottom:{style:nr},paddingLeft:{style:nr},paddingX:{style:nr},paddingY:{style:nr},paddingInline:{style:nr},paddingInlineStart:{style:nr},paddingInlineEnd:{style:nr},paddingBlock:{style:nr},paddingBlockStart:{style:nr},paddingBlockEnd:{style:nr},m:{style:tr},mt:{style:tr},mr:{style:tr},mb:{style:tr},ml:{style:tr},mx:{style:tr},my:{style:tr},margin:{style:tr},marginTop:{style:tr},marginRight:{style:tr},marginBottom:{style:tr},marginLeft:{style:tr},marginX:{style:tr},marginY:{style:tr},marginInline:{style:tr},marginInlineStart:{style:tr},marginInlineEnd:{style:tr},marginBlock:{style:tr},marginBlockStart:{style:tr},marginBlockEnd:{style:tr},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:rb},rowGap:{style:ab},columnGap:{style:ob},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zo},maxWidth:{style:dC},minWidth:{transform:zo},height:{transform:zo},maxHeight:{transform:zo},minHeight:{transform:zo},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 jte(...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 Ute(e,t){return typeof e=="function"?e(t):e}function Hte(){function e(n,r,o,a){const s={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:p,style:h}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=eb(o,d)||{};return h?h(s):os(s,r,y=>{let b=Py(g,p,y);return y===b&&typeof y=="string"&&(b=Py(g,p,`${n}${y==="default"?"":za(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??ib;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const d=tte(o.breakpoints),p=Object.keys(d);let h=d;return Object.keys(u).forEach(g=>{const y=Ute(u[g],o);if(y!=null)if(typeof y=="object")if(a[g])h=xp(h,e(g,y,o,a));else{const b=os({theme:o},y,x=>({[g]:x}));jte(b,y)?h[g]=t({sx:y,theme:o}):h=xp(h,b)}else h=xp(h,e(g,y,o,a))}),Qee(o,nte(p,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const Ku=Hte();Ku.filterProps=["sx"];function zte(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function fC(e,t=0,n=1){return zte(e,t,n)}function $te(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 Js(e){if(e.type)return e;if(e.charAt(0)==="#")return Js($te(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(oc(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(oc(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const Vte=e=>{const t=Js(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ip=(e,t)=>{try{return Vte(e)}catch{return e}};function sb(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 v4(e){e=Js(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 l="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),sb({type:l,values:u})}function Zx(e){e=Js(e);let t=e.type==="hsl"||e.type==="hsla"?Js(v4(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 Gte(e,t){const n=Zx(e),r=Zx(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Jx(e,t){return e=Js(e),t=fC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,sb(e)}function vg(e,t,n){try{return Jx(e,t)}catch{return e}}function pC(e,t){if(e=Js(e),t=fC(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 sb(e)}function An(e,t,n){try{return pC(e,t)}catch{return e}}function hC(e,t){if(e=Js(e),t=fC(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 sb(e)}function kn(e,t,n){try{return hC(e,t)}catch{return e}}function qte(e,t=.15){return Zx(e)>.5?pC(e,t):hC(e,t)}function Eg(e,t,n){try{return qte(e,t)}catch{return e}}const oh={black:"#000",white:"#fff"},Wte={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"},ru={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ou={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Hf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},au={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},iu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},su={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function E4(){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:oh.white,default:oh.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 Yte=E4();function x4(){return{text:{primary:oh.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:oh.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 fI=x4();function pI(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=hC(e.main,o):t==="dark"&&(e.dark=pC(e.main,a)))}function Kte(e="light"){return e==="dark"?{main:au[200],light:au[50],dark:au[400]}:{main:au[700],light:au[400],dark:au[800]}}function Qte(e="light"){return e==="dark"?{main:ru[200],light:ru[50],dark:ru[400]}:{main:ru[500],light:ru[300],dark:ru[700]}}function Xte(e="light"){return e==="dark"?{main:ou[500],light:ou[300],dark:ou[700]}:{main:ou[700],light:ou[400],dark:ou[800]}}function Zte(e="light"){return e==="dark"?{main:iu[400],light:iu[300],dark:iu[700]}:{main:iu[700],light:iu[500],dark:iu[900]}}function Jte(e="light"){return e==="dark"?{main:su[400],light:su[300],dark:su[700]}:{main:su[800],light:su[500],dark:su[900]}}function ene(e="light"){return e==="dark"?{main:Hf[400],light:Hf[300],dark:Hf[700]}:{main:"#ed6c02",light:Hf[500],dark:Hf[900]}}function mC(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||Kte(t),s=e.secondary||Qte(t),l=e.error||Xte(t),u=e.info||Zte(t),d=e.success||Jte(t),p=e.warning||ene(t);function h(b){return Gte(b,fI.text.primary)>=n?fI.text.primary:Yte.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(oc(11,x?` (${x})`:"",S));if(typeof b.main!="string")throw new Error(oc(12,x?` (${x})`:"",JSON.stringify(b.main)));return pI(b,"light",T,r),pI(b,"dark",D,r),b.contrastText||(b.contrastText=h(b.main)),b};let y;return t==="light"?y=E4():t==="dark"&&(y=x4()),Go({common:{...oh},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:l,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:Wte,contrastThreshold:n,getContrastText:h,augmentColor:g,tonalOffset:r,...y},o)}function tne(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 nne={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 rne(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var one=/[A-Z]|^ms/g,ane=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T4=function(e){return e.charCodeAt(1)===45},hI=function(e){return e!=null&&typeof e!="boolean"},bE=rne(function(e){return T4(e)?e:e.replace(one,"-$&").toLowerCase()}),mI=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(ane,function(n,r,o){return qs={name:r,styles:o,next:qs},r})}return nne[e]!==1&&!T4(e)&&typeof t=="number"&&t!==0?t+"px":t};function Ly(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 qs={name:o.name,styles:o.styles,next:qs},o.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)qs={name:s.name,styles:s.styles,next:qs},s=s.next;var l=a.styles+";";return l}return ine(e,t,n)}}var u=n;return u}function ine(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ly(e,t,n[o])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;hI(l)&&(r+=bE(a)+":"+mI(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)hI(s[u])&&(r+=bE(a)+":"+mI(a,s[u])+";");else{var d=Ly(e,t,s);switch(a){case"animation":case"animationName":{r+=bE(a)+":"+d+";";break}default:r+=a+"{"+d+"}"}}}return r}var gI=/label:\s*([^\s;{]+)\s*(;|$)/g,qs;function sne(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="";qs=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Ly(n,t,a);else{var s=a;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=Ly(n,t,e[l]),r){var u=a;o+=u[l]}gI.lastIndex=0;for(var d="",p;(p=gI.exec(o))!==null;)d+="-"+p[1];var h=tne(o)+d;return{name:h,styles:o,next:qs}}function lne(e,t){return hy(e,t)}function cne(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const yI=[];function bI(e){return yI[0]=e,sne(yI)}const une=typeof window<"u"?k.useLayoutEffect:k.useEffect;function dne(e){return Object.keys(e).length===0}function fne(e=null){const t=k.useContext(nd);return!t||dne(t)?e:t}const pne=k.createContext(),hne=()=>k.useContext(pne)??!1;function My(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 l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const u=l;n[o][u]=My(a[u],s[u])}}}else n[o]===void 0&&(n[o]=e[o])}return n}const mne=k.createContext(void 0);function gne(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?My(o.defaultProps,r):!o.styleOverrides&&!o.variants?My(o,r):r}function yne({props:e,name:t}){const n=k.useContext(mne);return gne({props:e,name:t,theme:{components:n}})}const vI=(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])})},bne=(e,t,n)=>{function r(o,a=[],s=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...a,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...a,l],Array.isArray(u)?[...s,l]:s):t([...a,l],u,s))})}r(e)},vne=(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 vE(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},s={};return bne(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const p=`--${n?`${n}-`:""}${l.join("-")}`,h=vne(l,u);Object.assign(o,{[p]:h}),vI(a,l,`var(${p})`,d),vI(s,l,`var(${p}, ${h})`,d)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:s}}function Ene(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=vE(u,t);let g=h;const y={},{[l]:b,...x}=a;if(Object.entries(x||{}).forEach(([T,D])=>{const{vars:w,css:R,varsWithDefaults:I}=vE(D,t);g=Go(g,I),y[T]={css:R,vars:w}}),b){const{css:T,vars:D,varsWithDefaults:w}=vE(b,t);g=Go(g,w),y[l]={css:T,vars:D}}function S(T,D){let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),T){if(w==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${a[T]?.palette?.mode||T})`]:{":root":D}};if(w)return e.defaultColorScheme===T?`:root, ${w.replace("%s",String(T))}`:w.replace("%s",String(T))}return":root"}return{vars:g,generateThemeVars:()=>{let T={...d};return Object.entries(y).forEach(([,{vars:D}])=>{T=Go(T,D)}),T},generateStyleSheets:()=>{const T=[],D=e.defaultColorScheme||"light";function w(O,F){Object.keys(F).length&&T.push(typeof O=="string"?{[O]:{...F}}:O)}w(n(void 0,{...p}),p);const{[D]:R,...I}=y;if(R){const{css:O}=R,F=a[D]?.palette?.mode,j=!r&&F?{colorScheme:F,...O}:{...O};w(n(D,{...j}),j)}return Object.entries(I).forEach(([O,{css:F}])=>{const j=a[O]?.palette?.mode,H=!r&&j?{colorScheme:j,...F}:{...F};w(n(O,{...H}),H)}),T}}}function xne(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 Tne(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 Sne=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 Cne(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=Sne(t),s=Object.keys(a);function l(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]):l(g)}function h(g){const y=s.indexOf(g);return y===0?l(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:l,down:u,between:d,only:p,not:h,unit:n,...o}}const _ne={borderRadius:4};function Ane(e=8,t=uC({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 kne(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 gC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...s}=e,l=Cne(n),u=Ane(o);let d=Go({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{..._ne,...a}},s);return d=Jee(d),d.applyStyles=kne,d=t.reduce((p,h)=>Go(p,h),d),d.unstable_sxConfig={...ib,...s?.unstable_sxConfig},d.unstable_sx=function(p){return Ku({sx:p,theme:this})},d}const wne={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 fd(e,t,n="Mui"){const r=wne[t];return r?`${n}-${r}`:`${$ee.generate(e)}-${t}`}function Dne(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Rne(e){return Math.round(e*1e5)/1e5}const EI={textTransform:"uppercase"},xI='"Roboto", "Helvetica", "Arial", sans-serif';function Ine(e,t){const{fontFamily:n=xI,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=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,w,R)=>({fontFamily:n,fontWeight:S,fontSize:y(T),lineHeight:D,...n===xI?{letterSpacing:`${Rne(w/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,EI),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,EI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Go({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...x},h,{clone:!1})}const One=.2,Nne=.14,Pne=.12;function Vn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${One})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Nne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Pne})`].join(",")}const Lne=["none",Vn(0,2,1,-1,0,1,1,0,0,1,3,0),Vn(0,3,1,-2,0,2,2,0,0,1,5,0),Vn(0,3,3,-2,0,3,4,0,0,1,8,0),Vn(0,2,4,-1,0,4,5,0,0,1,10,0),Vn(0,3,5,-1,0,5,8,0,0,1,14,0),Vn(0,3,5,-1,0,6,10,0,0,1,18,0),Vn(0,4,5,-2,0,7,10,1,0,2,16,1),Vn(0,5,5,-3,0,8,10,1,0,3,14,2),Vn(0,5,6,-3,0,9,12,1,0,3,16,2),Vn(0,6,6,-3,0,10,14,1,0,4,18,3),Vn(0,6,7,-4,0,11,15,1,0,4,20,3),Vn(0,7,8,-4,0,12,17,2,0,5,22,4),Vn(0,7,8,-4,0,13,19,2,0,5,24,4),Vn(0,7,9,-4,0,14,21,2,0,5,26,4),Vn(0,8,9,-5,0,15,22,2,0,6,28,5),Vn(0,8,10,-5,0,16,24,2,0,6,30,5),Vn(0,8,11,-5,0,17,26,2,0,6,32,5),Vn(0,9,11,-5,0,18,28,2,0,7,34,6),Vn(0,9,12,-6,0,19,29,2,0,7,36,6),Vn(0,10,13,-6,0,20,31,3,0,8,38,7),Vn(0,10,13,-6,0,21,33,3,0,8,40,7),Vn(0,10,14,-6,0,22,35,3,0,8,42,7),Vn(0,11,14,-7,0,23,36,3,0,9,44,8),Vn(0,11,15,-7,0,24,38,3,0,9,46,8)],Mne={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)"},S4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function TI(e){return`${Math.round(e)}ms`}function Fne(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Bne(e){const t={...Mne,...e.easing},n={...S4,...e.duration};return{getAutoHeightDuration:Fne,create:(r=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...u}=o;return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:TI(a)} ${s} ${typeof l=="string"?l:TI(l)}`).join(",")},...e,easing:t,duration:n}}const jne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Une(e){return Yi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function C4(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[s,l]=o[a];!Une(l)||s.startsWith("unstable_")?delete r[s]:Yi(l)&&(r[s]={...l},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 eT(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:s={},typography:l={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(oc(20));const p=mC(a),h=gC(e);let g=Go(h,{mixins:Dne(h.breakpoints,r),palette:p,shadows:Lne.slice(),typography:Ine(p,l),transitions:Bne(s),zIndex:{...jne}});return g=Go(g,d),g=t.reduce((y,b)=>Go(y,b),g),g.unstable_sxConfig={...ib,...d?.unstable_sxConfig},g.unstable_sx=function(y){return Ku({sx:y,theme:this})},g.toRuntimeSource=C4,g}function Hne(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 zne=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Hne(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function _4(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function A4(e){return e==="dark"?zne:[]}function $ne(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=mC(t);return{palette:a,opacity:{..._4(a.mode),...n},overlays:r||A4(a.mode),...o}}function Vne(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 Gne=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],qne=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 Gne(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),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 Wne(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _e(e,t,n){!e[t]&&n&&(e[t]=n)}function sp(e){return typeof e!="string"||!e.startsWith("hsl")?e:v4(e)}function Hi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ip(sp(e[t])))}function Yne(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ti=e=>{try{return e()}catch{}},Kne=(e="mui")=>$3(e);function EE(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=$ne({...t,palette:{mode:o,...t?.palette}});return}const{palette:a,...s}=eT({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{..._4(o),...t?.opacity},overlays:t?.overlays||A4(o)},s}function Qne(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=Vne,colorSchemeSelector:l=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=Kne(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(oc(21,h));const w=EE(T,D,d,h);b&&!T.light&&EE(T,b,void 0,"light"),x&&!T.dark&&EE(T,x,void 0,"dark");let R={defaultColorScheme:h,...w,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:u,getCssVar:g,colorSchemes:T,font:{...xne(w.typography),...w.font},spacing:Yne(d.spacing)};Object.keys(R.colorSchemes).forEach(H=>{const C=R.colorSchemes[H].palette,M=$=>{const z=$.split("-"),q=z[1],Y=z[2];return g($,C[q][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")),Wne(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){_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-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",ti(()=>C.getContrastText(C.error.main))),_e(C.Alert,"infoFilledColor",ti(()=>C.getContrastText(C.info.main))),_e(C.Alert,"successFilledColor",ti(()=>C.getContrastText(C.success.main))),_e(C.Alert,"warningFilledColor",ti(()=>C.getContrastText(C.warning.main))),_e(C.Alert,"errorStandardBg",kn(C.error.light,.9)),_e(C.Alert,"infoStandardBg",kn(C.info.light,.9)),_e(C.Alert,"successStandardBg",kn(C.success.light,.9)),_e(C.Alert,"warningStandardBg",kn(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",kn(C.primary.main,.62)),_e(C.LinearProgress,"secondaryBg",kn(C.secondary.main,.62)),_e(C.LinearProgress,"errorBg",kn(C.error.main,.62)),_e(C.LinearProgress,"infoBg",kn(C.info.main,.62)),_e(C.LinearProgress,"successBg",kn(C.success.main,.62)),_e(C.LinearProgress,"warningBg",kn(C.warning.main,.62)),_e(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),_e(C.Slider,"primaryTrack",kn(C.primary.main,.62)),_e(C.Slider,"secondaryTrack",kn(C.secondary.main,.62)),_e(C.Slider,"errorTrack",kn(C.error.main,.62)),_e(C.Slider,"infoTrack",kn(C.info.main,.62)),_e(C.Slider,"successTrack",kn(C.success.main,.62)),_e(C.Slider,"warningTrack",kn(C.warning.main,.62));const $=Eg(C.background.default,.8);_e(C.SnackbarContent,"bg",$),_e(C.SnackbarContent,"color",ti(()=>C.getContrastText($))),_e(C.SpeedDialAction,"fabHoverBg",Eg(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",kn(C.primary.main,.62)),_e(C.Switch,"secondaryDisabledColor",kn(C.secondary.main,.62)),_e(C.Switch,"errorDisabledColor",kn(C.error.main,.62)),_e(C.Switch,"infoDisabledColor",kn(C.info.main,.62)),_e(C.Switch,"successDisabledColor",kn(C.success.main,.62)),_e(C.Switch,"warningDisabledColor",kn(C.warning.main,.62)),_e(C.TableCell,"border",kn(vg(C.divider,1),.88)),_e(C.Tooltip,"bg",vg(C.grey[700],.92))}if(C.mode==="dark"){_e(C.Alert,"errorColor",kn(C.error.light,.6)),_e(C.Alert,"infoColor",kn(C.info.light,.6)),_e(C.Alert,"successColor",kn(C.success.light,.6)),_e(C.Alert,"warningColor",kn(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",ti(()=>C.getContrastText(C.error.dark))),_e(C.Alert,"infoFilledColor",ti(()=>C.getContrastText(C.info.dark))),_e(C.Alert,"successFilledColor",ti(()=>C.getContrastText(C.success.dark))),_e(C.Alert,"warningFilledColor",ti(()=>C.getContrastText(C.warning.dark))),_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-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",An(C.primary.main,.5)),_e(C.LinearProgress,"secondaryBg",An(C.secondary.main,.5)),_e(C.LinearProgress,"errorBg",An(C.error.main,.5)),_e(C.LinearProgress,"infoBg",An(C.info.main,.5)),_e(C.LinearProgress,"successBg",An(C.success.main,.5)),_e(C.LinearProgress,"warningBg",An(C.warning.main,.5)),_e(C.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),_e(C.Slider,"primaryTrack",An(C.primary.main,.5)),_e(C.Slider,"secondaryTrack",An(C.secondary.main,.5)),_e(C.Slider,"errorTrack",An(C.error.main,.5)),_e(C.Slider,"infoTrack",An(C.info.main,.5)),_e(C.Slider,"successTrack",An(C.success.main,.5)),_e(C.Slider,"warningTrack",An(C.warning.main,.5));const $=Eg(C.background.default,.98);_e(C.SnackbarContent,"bg",$),_e(C.SnackbarContent,"color",ti(()=>C.getContrastText($))),_e(C.SpeedDialAction,"fabHoverBg",Eg(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",An(C.primary.main,.55)),_e(C.Switch,"secondaryDisabledColor",An(C.secondary.main,.55)),_e(C.Switch,"errorDisabledColor",An(C.error.main,.55)),_e(C.Switch,"infoDisabledColor",An(C.info.main,.55)),_e(C.Switch,"successDisabledColor",An(C.success.main,.55)),_e(C.Switch,"warningDisabledColor",An(C.warning.main,.55)),_e(C.TableCell,"border",An(vg(C.divider,1),.68)),_e(C.Tooltip,"bg",vg(C.grey[700],.92))}Hi(C.background,"default"),Hi(C.background,"paper"),Hi(C.common,"background"),Hi(C.common,"onBackground"),Hi(C,"divider"),Object.keys(C).forEach($=>{const z=C[$];$!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&_e(C[$],"mainChannel",ip(sp(z.main))),z.light&&_e(C[$],"lightChannel",ip(sp(z.light))),z.dark&&_e(C[$],"darkChannel",ip(sp(z.dark))),z.contrastText&&_e(C[$],"contrastTextChannel",ip(sp(z.contrastText))),$==="text"&&(Hi(C[$],"primary"),Hi(C[$],"secondary")),$==="action"&&(z.active&&Hi(C[$],"active"),z.selected&&Hi(C[$],"selected")))})}),R=t.reduce((H,C)=>Go(H,C),R);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:qne(R)},{vars:O,generateThemeVars:F,generateStyleSheets:j}=Ene(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([H,C])=>{R[H]=C}),R.generateThemeVars=F,R.generateStyleSheets=j,R.generateSpacing=function(){return aS(d.spacing,uC(this))},R.getColorSchemeSelector=Tne(l),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=s,R.unstable_sxConfig={...ib,...d?.unstable_sxConfig},R.unstable_sx=function(H){return Ku({sx:H,theme:this})},R.toRuntimeSource=C4,R}function SI(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:mC({...n===!0?{}:n.palette,mode:t})})}function Xne(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,l=a||"light",u=o?.[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return eT(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const h=eT({...e,palette:p},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},SI(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},SI(h,"light",d.light)),h}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),Qne({...s,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const yC=Xne(),bC="$$material";function Zne(){const e=od(yC);return e[bC]||e}function Jne(e){const{variants:t,...n}=e,r={variants:t,style:bI(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=bI(o.style))}),r}const ere=gC();function Ks(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function tre(e){return e?(t,n)=>n[e]:null}function nre(e,t,n){e.theme=ore(e.theme)?n:e.theme[t]||e.theme}function Qg(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Qg(e,r));if(Array.isArray(n?.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...a}=n;r=a}return k4(e,n.variants,[r])}return n?.isProcessed?n.style:n}function k4(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 rre(e={}){const{themeId:t,defaultTheme:n=ere,rootShouldForwardProp:r=Ks,slotShouldForwardProp:o=Ks}=e;function a(s){nre(s,t,n)}return(s,l={})=>{cne(s,R=>R.filter(I=>I!==Ku));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:g=tre(ire(d)),...y}=l,b=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=h||!1;let S=Ks;d==="Root"||d==="root"?S=r:d?S=o:are(s)&&(S=void 0);const T=lne(s,{shouldForwardProp:S,label:void 0,...y}),D=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(I){return Qg(I,R)};if(Yi(R)){const I=Jne(R);return I.variants?function(O){return Qg(O,I)}:I.style}return R},w=(...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 $={};for(const z in M)$[z]=Qg(C,M[z]);return g(C,$)}),u&&!b&&F.push(function(C){const M=C.theme?.components?.[u]?.variants;return M?k4(C,M):null}),x||F.push(Ku),Array.isArray(O[0])){const C=O.shift(),M=new Array(I.length).fill(""),$=new Array(F.length).fill("");let z;z=[...M,...C,...$],z.raw=[...M,...C.raw,...$],I.unshift(z)}const j=[...I,...O,...F],H=T(...j);return s.muiName&&(H.muiName=s.muiName),H};return T.withConfig&&(w.withConfig=T.withConfig),w}}function ore(e){for(const t in e)return!1;return!0}function are(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ire(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function sre(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vC=e=>sre(e)&&e!=="classes",Un=rre({themeId:bC,defaultTheme:yC,rootShouldForwardProp:vC}),EC=H3;function pd(e){return yne(e)}function hd(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=fd(e,o,n)}),r}function lre(e){return fd("MuiSvgIcon",e)}hd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cre=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${za(t)}`,`fontSize${za(n)}`]};return Ph(o,lre,r)},ure=Un("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${za(n.color)}`],t[`fontSize${za(n.fontSize)}`]]}})(EC(({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}}]}))),tT=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...g}=n,y=k.isValidElement(r)&&r.type==="svg",b={...n,color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},x={};d||(x.viewBox=h);const S=cre(b);return v.jsxs(ure,{as:s,className:cr(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?v.jsx("title",{children:p}):null]})});tT.muiName="SvgIcon";function Rn(e,t){function n(r,o){return v.jsx(tT,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=tT.muiName,k.memo(k.forwardRef(n))}function dre(e){const{controlled:t,default:n}=e,{current:r}=k.useRef(t!==void 0),[o,a]=k.useState(n),s=r?t:o,l=k.useCallback(u=>{r||a(u)},[]);return[s,l]}function Xg(e){const t=k.useRef(e);return une(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Fy(...e){const t=k.useRef(void 0),n=k.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return k.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function fre(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function pre(e,t){if(!e)return t;function n(s,l){const u={};return Object.keys(l).forEach(d=>{fre(d,l[d])&&typeof s[d]=="function"&&(u[d]=(...p)=>{s[d](...p),l[d](...p)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...l}):e,d=cr(s?.className,l?.className,u?.className),p=n(u,l);return{...l,...u,...p,...!!d&&{className:d},...l?.style&&u?.style&&{style:{...l.style,...u.style}},...l?.sx&&u?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),a=cr(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 lb=Rn(v.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"})),Fh=Rn(v.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"})),w4=[{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"),[])}],hre=Object.fromEntries(w4.map(e=>[e.id,e.import])),mre=Object.fromEntries(w4.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),gre={...hre,...mre},yre=[{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"),[])}],bre=Object.fromEntries(yre.map(e=>[e.id,e.import]));let ts=class extends Error{constructor(e){super(e),this.name="ShikiError"}},xC=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function vre(){return 2147483648}function Ere(){return typeof performance<"u"?performance.now():Date.now()}const xre=(e,t)=>e+(t-e%t)%t;async function Tre(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 l(y){const b=r.HEAPU8.length;y=y>>>0;const x=vre();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,xre(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 w=y[b++];if(!(w&128)){D+=String.fromCharCode(w);continue}const R=y[b++]&63;if((w&224)===192){D+=String.fromCharCode((w&31)<<6|R);continue}const I=y[b++]&63;if((w&240)===224?w=(w&15)<<12|R<<6|I:w=(w&7)<<18|R<<12|I<<6|y[b++]&63,w<65536)D+=String.fromCharCode(w);else{const O=w-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:Ere,emscripten_memcpy_big:a,emscripten_resize_heap:l,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 Sre=Object.defineProperty,Cre=(e,t,n)=>t in e?Sre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cr=(e,t,n)=>(Cre(e,typeof t!="symbol"?t+"":t,n),n);let Or=null;function _re(e){throw new xC(e.UTF8ToString(e.getLastOnigError()))}class cb{constructor(t){Cr(this,"utf16Length"),Cr(this,"utf8Length"),Cr(this,"utf16Value"),Cr(this,"utf8Value"),Cr(this,"utf16OffsetToUtf8"),Cr(this,"utf8OffsetToUtf16");const n=t.length,r=cb._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 l=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?l[u++]=h:h<=2047?(l[u++]=192|(h&1984)>>>6,l[u++]=128|(h&63)>>>0):h<=65535?(l[u++]=224|(h&61440)>>>12,l[u++]=128|(h&4032)>>>6,l[u++]=128|(h&63)>>>0):(l[u++]=240|(h&1835008)>>>18,l[u++]=128|(h&258048)>>>12,l[u++]=128|(h&4032)>>>6,l[u++]=128|(h&63)>>>0),g&&d++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=l,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,l=!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,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const ni=class{constructor(e){if(Cr(this,"id",++ni.LAST_ID),Cr(this,"_onigBinding"),Cr(this,"content"),Cr(this,"utf16Length"),Cr(this,"utf8Length"),Cr(this,"utf16OffsetToUtf8"),Cr(this,"utf8OffsetToUtf16"),Cr(this,"ptr"),!Or)throw new xC("Must invoke loadWasm first.");this._onigBinding=Or,this.content=e;const t=new cb(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!ni._sharedPtrInUse?(ni._sharedPtr||(ni._sharedPtr=Or.omalloc(1e4)),ni._sharedPtrInUse=!0,Or.HEAPU8.set(t.utf8Value,ni._sharedPtr),this.ptr=ni._sharedPtr):this.ptr=t.createString(Or)}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===ni._sharedPtr?ni._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Bh=ni;Cr(Bh,"LAST_ID",0);Cr(Bh,"_sharedPtr",0);Cr(Bh,"_sharedPtrInUse",!1);class Are{constructor(t){if(Cr(this,"_onigBinding"),Cr(this,"_ptr"),!Or)throw new xC("Must invoke loadWasm first.");const n=[],r=[];for(let l=0,u=t.length;l<u;l++){const d=new cb(t[l]);n[l]=d.createString(Or),r[l]=d.utf8Length}const o=Or.omalloc(4*t.length);Or.HEAPU32.set(n,o/4);const a=Or.omalloc(4*t.length);Or.HEAPU32.set(r,a/4);const s=Or.createOnigScanner(o,a,t.length);for(let l=0,u=t.length;l<u;l++)Or.ofree(n[l]);Or.ofree(a),Or.ofree(o),s===0&&_re(Or),this._onigBinding=Or,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 Bh(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 l=a.HEAPU32;let u=s/4;const d=l[u++],p=l[u++],h=[];for(let g=0;g<p;g++){const y=t.convertUtf8OffsetToUtf16(l[u++]),b=t.convertUtf8OffsetToUtf16(l[u++]);h[g]={start:y,end:b,length:b-y}}return{index:d,captureIndices:h}}}function kre(e){return typeof e.instantiator=="function"}function wre(e){return typeof e.default=="function"}function Dre(e){return typeof e.data<"u"}function Rre(e){return typeof Response<"u"&&e instanceof Response}function Ire(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 xg;function Ore(e){if(xg)return xg;async function t(){Or=await Tre(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),kre(r)?r=await r.instantiator(n):wre(r)?r=await r.default(n):(Dre(r)&&(r=r.data),Rre(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Nre(r)(n):r=await Pre(r)(n):Ire(r)?r=await xE(r)(n):r instanceof WebAssembly.Module?r=await xE(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await xE(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return xg=t(),xg}function xE(e){return t=>WebAssembly.instantiate(e,t)}function Nre(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Pre(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Lre;function Mre(){return Lre}async function D4(e){return e&&await Ore(e),{createScanner(t){return new Are(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Bh(t)}}}function Fre(e){return TC(e)}function TC(e){return Array.isArray(e)?Bre(e):e instanceof RegExp?e:typeof e=="object"?jre(e):e}function Bre(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=TC(e[n]);return t}function jre(e){let t={};for(let n in e)t[n]=TC(e[n]);return t}function R4(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function I4(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?I4(e.substring(0,e.length-1)):e.substr(~t+1)}var TE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Tg=class{static hasCaptures(e){return e===null?!1:(TE.lastIndex=0,TE.test(e))}static replaceCaptures(e,t,n){return e.replace(TE,(r,o,a,s)=>{let l=n[parseInt(o||a,10)];if(l){let u=t.substring(l.start,l.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 O4(e,t){return e<t?-1:e>t?1:0}function N4(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=O4(e[o],t[o]);if(a!==0)return a}return 0}return n-r}function CI(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 P4(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var L4=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}},By=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(zre(e),t)}static createFromParsedTheme(e,t){return Vre(e,t)}_cachedMatchRoot=new L4(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=>Ure(e.parent,r.parentScopes));return n?new M4(n.fontStyle,n.foreground,n.background):null}},SE=class Zg{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Zg(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Zg(n,t[r]);return n}push(t){return new Zg(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 Ure(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&&!Hre(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Hre(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var M4=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function zre(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 l;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];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"&&CI(s.settings.foreground)&&(d=s.settings.foreground);let p=null;typeof s.settings.background=="string"&&CI(s.settings.background)&&(p=s.settings.background);for(let h=0,g=l.length;h<g;h++){let y=l[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 $re(b,x,o,u,d,p)}}return n}var $re=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 Vre(e,t){e.sort((u,d)=>{let p=O4(u.scope,d.scope);return p!==0||(p=N4(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 Gre(t),s=new M4(n,a.getId(r),a.getId(o)),l=new Wre(new nT(0,null,-1,0,0),[]);for(let u=0,d=e.length;u<d;u++){let p=e[u];l.insert(0,p.scope,p.parentScopes,p.fontStyle,a.getId(p.foreground),a.getId(p.background))}return new By(a,s,l)}var Gre=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)}},qre=Object.freeze([]),nT=class F4{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,a){this.scopeDepth=t,this.parentScopes=n||qre,this.fontStyle=r,this.foreground=o,this.background=a}clone(){return new F4(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)}},Wre=class rT{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(rT._cmpBySpecificity),n}insert(t,n,r,o,a,s){if(n===""){this._doInsertHere(t,r,o,a,s);return}let l=n.indexOf("."),u,d;l===-1?(u=n,d=""):(u=n.substring(0,l),d=n.substring(l+1));let p;this._children.hasOwnProperty(u)?p=this._children[u]:(p=new rT(this._mainRule.clone(),nT.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,l=this._rulesWithParentScopes.length;s<l;s++){let u=this._rulesWithParentScopes[s];if(N4(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 nT(t,n,r,o,a))}},Qu=class sa{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=sa.getLanguageId(t),r=sa.getTokenType(t),o=sa.getFontStyle(t),a=sa.getForeground(t),s=sa.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,l){let u=sa.getLanguageId(t),d=sa.getTokenType(t),p=sa.containsBalancedBrackets(t)?1:0,h=sa.getFontStyle(t),g=sa.getForeground(t),y=sa.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),l!==0&&(y=l),(u<<0|d<<8|p<<10|h<<11|g<<15|y<<24)>>>0}};function jy(e,t){const n=[],r=Yre(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=l();return o===")"&&(o=r.next()),u}if(_I(o)){const u=[];do u.push(o),o=r.next();while(_I(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 l(){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 _I(e){return!!e&&!!e.match(/[\w\.:]+/)}function Yre(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 B4(e){typeof e.dispose=="function"&&e.dispose()}var ah=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Kre=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Qre=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))}},Xre=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ah(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Qre;for(const n of e)Zre(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof ah){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 Zre(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 ah?Jg({baseGrammar:a,selfGrammar:o},r):oT(e.ruleName,{baseGrammar:a,selfGrammar:o,repository:o.repository},r);const s=n.injections(e.scopeName);if(s)for(const l of s)r.add(new ah(l))}function oT(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Uy([r],t,n)}}function Jg(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Uy(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Uy(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Uy(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?R4({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Uy(r.patterns,{...t,repository:o},n);const a=r.include;if(!a)continue;const s=j4(a);switch(s.kind){case 0:Jg({...t,selfGrammar:t.baseGrammar},n);break;case 1:Jg(t,n);break;case 2:oT(s.ruleName,{...t,repository:o},n);break;case 3:case 4:const l=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){const u={baseGrammar:t.baseGrammar,selfGrammar:l,repository:o};s.kind===4?oT(s.ruleName,u,n):Jg(u,n)}else s.kind===4?n.add(new Kre(s.scopeName,s.ruleName)):n.add(new ah(s.scopeName));break}}}var Jre=class{kind=0},eoe=class{kind=1},toe=class{constructor(e){this.ruleName=e}kind=2},noe=class{constructor(e){this.scopeName=e}kind=3},roe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function j4(e){if(e==="$base")return new Jre;if(e==="$self")return new eoe;const t=e.indexOf("#");if(t===-1)return new noe(e);if(t===0)return new toe(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new roe(n,r)}}var ooe=/\\(\d+)/,AI=/\\(\d+)/g,aoe=-1,U4=-2,jh=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Tg.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Tg.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${I4(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:Tg.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Tg.replaceCaptures(this._contentName,e,t)}},ioe=class extends jh{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!")}},soe=class extends jh{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new ih(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 sh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kI=class extends jh{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 sh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},aT=class extends jh{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,a,s,l,u,d){super(e,t,n,r),this._begin=new ih(o,this.id),this.beginCaptures=a,this._end=new ih(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,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 sh;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}},Hy=class extends jh{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,a,s,l,u){super(e,t,n,r),this._begin=new ih(o,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new ih(s,U4),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 sh;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 sh,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},H4=class Kr{static createCaptureRule(t,n,r,o,a){return t.registerRule(s=>new ioe(n,s,r,o,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new soe(t.$vscodeTextmateLocation,t.id,t.name,t.match,Kr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=R4({},r,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new kI(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Kr._compilePatterns(a,n,r))}return t.while?new Hy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Kr._compileCaptures(t.whileCaptures||t.captures,n,r),Kr._compilePatterns(t.patterns,n,r)):new aT(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Kr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Kr._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 l=parseInt(s,10);l>a&&(a=l)}for(let s=0;s<=a;s++)o[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let u=0;t[s].patterns&&(u=Kr.getCompiledRuleId(t[s],n,r)),o[l]=Kr.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 l=t[a];let u=-1;if(l.include){const d=j4(l.include);switch(d.kind){case 0:case 1:u=Kr.getCompiledRuleId(r[l.include],n,r);break;case 2:let p=r[d.ruleName];p&&(u=Kr.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=Kr.getCompiledRuleId(b,n,y.repository))}else u=Kr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else u=Kr.getCompiledRuleId(l,n,r);if(u!==-1){const d=n.getRule(u);let p=!1;if((d instanceof kI||d instanceof aT||d instanceof Hy)&&d.hasMissingPatterns&&d.patterns.length===0&&(p=!0),p)continue;o.push(u)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},ih=class z4{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 l=0;l<r;l++)if(t.charAt(l)==="\\"&&l+1<r){const u=t.charAt(l+1);u==="z"?(a.push(t.substring(o,l)),a.push("$(?!\\n)(?<!\\n)"),o=l+2):(u==="A"||u==="G")&&(s=!0),l++}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=ooe.test(this.source):this.hasBackReferences=!1}clone(){return new z4(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 AI.lastIndex=0,this.source.replace(AI,(o,a)=>P4(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,l,u;for(a=0,s=this.source.length;a<s;a++)l=this.source.charAt(a),t[a]=l,n[a]=l,r[a]=l,o[a]=l,l==="\\"&&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}},sh=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 wI(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 wI(e,r,this._items.map(o=>o.ruleId))}},wI=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}},CE=class{constructor(e,t){this.languageId=e,this.tokenType=t}},loe=class iT{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new CE(t,8),this._embeddedLanguagesMatcher=new coe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?iT._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new CE(0,0);_getBasicScopeAttributes=new L4(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new CE(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(iT.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/},coe=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])=>P4(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])}},DI=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function $4(e,t,n,r,o,a,s,l){const u=t.content.length;let d=!1,p=-1;if(s){const y=uoe(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(l!==0&&Date.now()-h>l)return new DI(o,!0);g()}return new DI(o,!1);function g(){const y=doe(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===aoe){const T=o.getRule(e);a.produce(o,b[0].start),o=o.withContentNameScopesList(o.nameScopesList),lp(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,w=T.getName(t.content,b),R=o.contentNameScopesList.pushAttributed(w,e);if(o=o.push(x,r,p,b[0].end===u,null,R,R),T instanceof aT){const I=T;lp(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 Hy){const I=T;lp(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(lp(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 uoe(e,t,n,r,o,a){let s=o.beginRuleCapturedEOL?0:-1;const l=[];for(let u=o;u;u=u.pop()){const d=u.getRule(e);d instanceof Hy&&l.push({rule:d,stack:u})}for(let u=l.pop();u;u=l.pop()){const{ruleScanner:d,findOptions:p}=hoe(u.rule,e,u.stack.endRule,n,r===s),h=d.findNextMatchSync(t,r,p);if(h){if(h.ruleId!==U4){o=u.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(a.produce(u.stack,h.captureIndices[0].start),lp(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 doe(e,t,n,r,o,a){const s=foe(e,t,n,r,o,a),l=e.getInjections();if(l.length===0)return s;const u=poe(l,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 foe(e,t,n,r,o,a){const s=o.getRule(e),{ruleScanner:l,findOptions:u}=V4(s,e,o.endRule,n,r===a),d=l.findNextMatchSync(t,r,u);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function poe(e,t,n,r,o,a,s){let l=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}=V4(x,t,null,r,o===s),D=S.findNextMatchSync(n,o,T);if(!D)continue;const w=D.captureIndices[0].start;if(!(w>=l)&&(l=w,u=D.captureIndices,d=D.ruleId,p=b.priority,l===o))break}return u?{priorityMatch:p===-1,captureIndices:u,matchedRuleId:d}:null}function V4(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function hoe(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function lp(e,t,n,r,o,a,s){if(a.length===0)return;const l=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(l,s),S=r.contentNameScopesList.pushAttributed(x,e),T=g.getContentName(l,s),D=S.pushAttributed(T,e),w=r.push(g.retokenizeCapturedWithRuleId,y.start,-1,!1,null,S,D),R=e.createOnigString(l.substring(0,y.end));$4(e,R,n&&y.start===0,y.start,w,o,!1,0),B4(R);continue}const b=g.getName(l,s);if(b!==null){const x=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(b,e);d.push(new moe(x,y.end))}}for(;d.length>0;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var moe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function goe(e,t,n,r,o,a,s,l){return new boe(e,t,n,r,o,a,s,l)}function RI(e,t,n,r,o){const a=jy(t,zy),s=H4.getCompiledRuleId(n,r,o.repository);for(const l of a)e.push({debugSelector:t,matcher:l.matcher,ruleId:s,grammar:o,priority:l.priority})}function zy(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(yoe(t[o],r))return n=o+1,!0;return!1})}function yoe(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 boe=class{constructor(e,t,n,r,o,a,s,l){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=l,this._basicScopeAttributesProvider=new loe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=II(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const u of Object.keys(o)){const d=jy(u,zy);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)RI(t,s,o[s],this,r);const a=this._grammarRepository.injections(n);a&&a.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const u=l.injectionSelector;u&&RI(t,u,l,this,l)}})}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]=II(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=H4.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===sT.NULL){o=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),h=Qu.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=Tp.createRootAndLookUpScopeName(g,h,this):y=Tp.createRoot("unknown",h),t=new sT(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,l=new Eoe(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=$4(this,a,o,0,t,l,!0,r);return B4(a),{lineLength:s,lineTokens:l,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function II(e,t){return e=Fre(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 Tp=class ri{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=SE.push(o,a.scopeNames),r=new ri(r,o,a.encodedTokenAttributes);return r}static createRoot(t,n){return new ri(null,new SE(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),a=new SE(null,t),s=r.themeProvider.themeMatch(a),l=ri.mergeAttributes(n,o,s);return new ri(null,a,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ri.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),Qu.set(t,n.languageId,n.tokenType,null,o,a,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ri._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const a of r)o=ri._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),l=ri.mergeAttributes(t.tokenAttributes,o,s);return new ri(t,a,l)}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}},sT=class Dl{constructor(t,n,r,o,a,s,l,u){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=a,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}_stackElementBrand=void 0;static NULL=new Dl(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Dl._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Tp.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(){Dl._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,a,s,l){return new Dl(this,t,n,r,o,a,s,l)}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 Dl(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=Tp.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Dl(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Tp.fromExtension(r,n.contentNameScopesList))}},voe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):jy(n,zy).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>jy(n,zy).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}},Eoe=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=Qu.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(a))}if(o&&(r=Qu.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}},xoe=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,goe(e,a,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},Toe=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new xoe(By.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(By.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 voe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,o){const a=new Xre(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)}},lT=sT.NULL;const G4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Uh=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Uh.prototype.normal={};Uh.prototype.property={};Uh.prototype.space=void 0;function q4(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Uh(n,r,t)}function lh(e){return e.toLowerCase()}let Do=class{constructor(e,t){this.attribute=t,this.property=e}};Do.prototype.attribute="";Do.prototype.booleanish=!1;Do.prototype.boolean=!1;Do.prototype.commaOrSpaceSeparated=!1;Do.prototype.commaSeparated=!1;Do.prototype.defined=!1;Do.prototype.mustUseProperty=!1;Do.prototype.number=!1;Do.prototype.overloadedBoolean=!1;Do.prototype.property="";Do.prototype.spaceSeparated=!1;Do.prototype.space=void 0;let Soe=0;const Lt=pc(),gr=pc(),W4=pc(),$e=pc(),On=pc(),Ou=pc(),Fo=pc();function pc(){return 2**++Soe}const cT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Lt,booleanish:gr,commaOrSpaceSeparated:Fo,commaSeparated:Ou,number:$e,overloadedBoolean:W4,spaceSeparated:On},Symbol.toStringTag,{value:"Module"})),_E=Object.keys(cT);let SC=class extends Do{constructor(e,t,n,r){let o=-1;if(super(e,t),OI(this,"space",r),typeof n=="number")for(;++o<_E.length;){const a=_E[o];OI(this,_E[o],(n&cT[a])===cT[a])}}};SC.prototype.defined=!0;function OI(e,t,n){n&&(e[t]=n)}function md(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new SC(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[lh(r)]=r,n[lh(a.attribute)]=r}return new Uh(t,n,e.space)}const Y4=md({properties:{ariaActiveDescendant:null,ariaAtomic:gr,ariaAutoComplete:null,ariaBusy:gr,ariaChecked:gr,ariaColCount:$e,ariaColIndex:$e,ariaColSpan:$e,ariaControls:On,ariaCurrent:null,ariaDescribedBy:On,ariaDetails:null,ariaDisabled:gr,ariaDropEffect:On,ariaErrorMessage:null,ariaExpanded:gr,ariaFlowTo:On,ariaGrabbed:gr,ariaHasPopup:null,ariaHidden:gr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:On,ariaLevel:$e,ariaLive:null,ariaModal:gr,ariaMultiLine:gr,ariaMultiSelectable:gr,ariaOrientation:null,ariaOwns:On,ariaPlaceholder:null,ariaPosInSet:$e,ariaPressed:gr,ariaReadOnly:gr,ariaRelevant:null,ariaRequired:gr,ariaRoleDescription:On,ariaRowCount:$e,ariaRowIndex:$e,ariaRowSpan:$e,ariaSelected:gr,ariaSetSize:$e,ariaSort:null,ariaValueMax:$e,ariaValueMin:$e,ariaValueNow:$e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function K4(e,t){return t in e?e[t]:t}function Q4(e,t){return K4(e,t.toLowerCase())}const Coe=md({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ou,acceptCharset:On,accessKey:On,action:null,allow:null,allowFullScreen:Lt,allowPaymentRequest:Lt,allowUserMedia:Lt,alt:null,as:null,async:Lt,autoCapitalize:null,autoComplete:On,autoFocus:Lt,autoPlay:Lt,blocking:On,capture:null,charSet:null,checked:Lt,cite:null,className:On,cols:$e,colSpan:null,content:null,contentEditable:gr,controls:Lt,controlsList:On,coords:$e|Ou,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Lt,defer:Lt,dir:null,dirName:null,disabled:Lt,download:W4,draggable:gr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Lt,formTarget:null,headers:On,height:$e,hidden:Lt,high:$e,href:null,hrefLang:null,htmlFor:On,httpEquiv:On,id:null,imageSizes:null,imageSrcSet:null,inert:Lt,inputMode:null,integrity:null,is:null,isMap:Lt,itemId:null,itemProp:On,itemRef:On,itemScope:Lt,itemType:On,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Lt,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:Lt,muted:Lt,name:null,nonce:null,noModule:Lt,noValidate:Lt,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:Lt,optimum:$e,pattern:null,ping:On,placeholder:null,playsInline:Lt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Lt,referrerPolicy:null,rel:On,required:Lt,reversed:Lt,rows:$e,rowSpan:$e,sandbox:On,scope:null,scoped:Lt,seamless:Lt,selected:Lt,shadowRootClonable:Lt,shadowRootDelegatesFocus:Lt,shadowRootMode:null,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:gr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:Lt,useMap:null,value:gr,width:$e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:On,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Lt,declare:Lt,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:Lt,noHref:Lt,noShade:Lt,noWrap:Lt,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:gr,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Lt,disableRemotePlayback:Lt,prefix:null,property:null,results:$e,security:null,unselectable:null},space:"html",transform:Q4}),_oe=md({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:Fo,accentHeight:$e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$e,amplitude:$e,arabicForm:null,ascent:$e,attributeName:null,attributeType:null,azimuth:$e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$e,by:null,calcMode:null,capHeight:$e,className:On,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:$e,diffuseConstant:$e,direction:null,display:null,dur:null,divisor:$e,dominantBaseline:null,download:Lt,dx:null,dy:null,edgeMode:null,editable:null,elevation:$e,enableBackground:null,end:null,event:null,exponent:$e,externalResourcesRequired:null,fill:null,fillOpacity:$e,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:Ou,g2:Ou,glyphName:Ou,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$e,horizOriginX:$e,horizOriginY:$e,id:null,ideographic:$e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$e,k:$e,k1:$e,k2:$e,k3:$e,k4:$e,kernelMatrix:Fo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$e,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:$e,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:$e,overlineThickness:$e,paintOrder:null,panose1:null,path:null,pathLength:$e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:On,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$e,pointsAtY:$e,pointsAtZ:$e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fo,rev:Fo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fo,requiredFeatures:Fo,requiredFonts:Fo,requiredFormats:Fo,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:$e,specularExponent:$e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$e,strikethroughThickness:$e,string:null,stroke:null,strokeDashArray:Fo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$e,strokeOpacity:$e,strokeWidth:null,style:null,surfaceScale:$e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fo,tabIndex:$e,tableValues:null,target:null,targetX:$e,targetY:$e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$e,underlineThickness:$e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$e,values:null,vAlphabetic:$e,vMathematical:$e,vectorEffect:null,vHanging:$e,vIdeographic:$e,version:null,vertAdvY:$e,vertOriginX:$e,vertOriginY:$e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:K4}),X4=md({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()}}),Z4=md({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Q4}),J4=md({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Aoe={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"},koe=/[A-Z]/g,NI=/-[a-z]/g,woe=/^data[-\w.:]+$/i;function Hh(e,t){const n=lh(t);let r=t,o=Do;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&woe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(NI,Roe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!NI.test(a)){let s=a.replace(koe,Doe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=SC}return new o(r,t)}function Doe(e){return"-"+e.toLowerCase()}function Roe(e){return e.charAt(1).toUpperCase()}const gd=q4([Y4,Coe,X4,Z4,J4],"html"),as=q4([Y4,_oe,X4,Z4,J4],"svg"),PI={}.hasOwnProperty;function ub(e,t){const n=t||{};function r(o,...a){let s=r.invalid;const l=r.handlers;if(o&&PI.call(o,e)){const u=String(o[e]);s=PI.call(l,u)?l[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 Ioe=/["&'<>`]/g,Ooe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Noe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Poe=/[|\\{}()[\]^$+*?.]/g,LI=new WeakMap;function Loe(e,t){if(e=e.replace(t.subset?Moe(t.subset):Ioe,r),t.subset||t.escapeOnly)return e;return e.replace(Ooe,n).replace(Noe,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 Moe(e){let t=LI.get(e);return t||(t=Foe(e),LI.set(e,t)),t}function Foe(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Poe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Boe=/[\dA-Fa-f]/;function joe(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Boe.test(String.fromCharCode(t))?r:r+";"}const Uoe=/\d/;function Hoe(e,t,n){const r="&#"+String(e);return n&&t&&!Uoe.test(String.fromCharCode(t))?r:r+";"}const zoe=["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"],AE={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:"€"},$oe=["cent","copy","divide","gt","lt","not","para","times"],eL={}.hasOwnProperty,uT={};let Sg;for(Sg in AE)eL.call(AE,Sg)&&(uT[AE[Sg]]=Sg);const Voe=/[^\dA-Za-z]/;function Goe(e,t,n,r){const o=String.fromCharCode(e);if(eL.call(uT,o)){const a=uT[o],s="&"+a;return n&&zoe.includes(a)&&!$oe.includes(a)&&(!r||t&&t!==61&&Voe.test(String.fromCharCode(t)))?s:s+";"}return""}function qoe(e,t,n){let r=joe(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=Goe(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const a=Hoe(e,t,n.omitOptionalSemicolons);a.length<r.length&&(r=a)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function Nu(e,t){return Loe(e,Object.assign({format:qoe},t))}const Woe=/^>|^->|<!--|-->|--!>|<!-$/g,Yoe=[">"],Koe=["<",">"];function Qoe(e,t,n,r){return r.settings.bogusComments?"<?"+Nu(e.value,Object.assign({},r.settings.characterReferences,{subset:Yoe}))+">":"<!--"+e.value.replace(Woe,o)+"-->";function o(a){return Nu(a,Object.assign({},r.settings.characterReferences,{subset:Koe}))}}function Xoe(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function $y(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 dT(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 db(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function fT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function fb(e){return e.join(" ").trim()}const Zoe=/[ \t\n\f\r]/g;function zh(e){return typeof e=="object"?e.type==="text"?MI(e.value):!1:MI(e)}function MI(e){return e.replace(Zoe,"")===""}const kr=nL(1),tL=nL(-1),Joe=[];function nL(e){return t;function t(n,r,o){const a=n?n.children:Joe;let s=(r||0)+e,l=a[s];if(!o)for(;l&&zh(l);)s+=e,l=a[s];return l}}const eae={}.hasOwnProperty;function rL(e){return t;function t(n,r,o){return eae.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const CC=rL({body:nae,caption:kE,colgroup:kE,dd:iae,dt:aae,head:kE,html:tae,li:oae,optgroup:sae,option:lae,p:rae,rp:FI,rt:FI,tbody:uae,td:BI,tfoot:dae,th:BI,thead:cae,tr:fae});function kE(e,t,n){const r=kr(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&zh(r.value.charAt(0)))}function tae(e,t,n){const r=kr(n,t);return!r||r.type!=="comment"}function nae(e,t,n){const r=kr(n,t);return!r||r.type!=="comment"}function rae(e,t,n){const r=kr(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 oae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="li"}function aae(e,t,n){const r=kr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function iae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function FI(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function sae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function lae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function cae(e,t,n){const r=kr(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function uae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function dae(e,t,n){return!kr(n,t)}function fae(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function BI(e,t,n){const r=kr(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const pae=rL({body:gae,colgroup:yae,head:mae,html:hae,tbody:bae});function hae(e){const t=kr(e,-1);return!t||t.type!=="comment"}function mae(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 gae(e){const t=kr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&zh(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function yae(e,t,n){const r=tL(n,t),o=kr(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&CC(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function bae(e,t,n){const r=tL(n,t),o=kr(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&CC(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const Cg={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 vae(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 l=[];let u;o.space==="html"&&e.tagName==="svg"&&(r.schema=as);const d=Eae(r,e.properties),p=r.all(o.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=o,p&&(s=!1),(d||!a||!pae(e,t,n))&&(l.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!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(p),!s&&(!a||!CC(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function Eae(e,t){const n=[];let r=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){const a=xae(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 xae(e,t,n){const r=Hh(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let s=e.quote,l;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=Nu(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Cg.name[o][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?db:fb)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(l=Nu(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Cg.unquoted[o][a]}))),l!==n&&(e.settings.quoteSmart&&$y(n,s)>$y(n,e.alternative)&&(s=e.alternative),l=s+Nu(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Cg.single:Cg.double)[o][a],attribute:!0}))+s),u+(l&&"="+l))}const Tae=["<","&"];function oL(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Nu(e.value,Object.assign({},r.settings.characterReferences,{subset:Tae}))}function Sae(e,t,n,r){return r.settings.allowDangerousHtml?e.value:oL(e,t,n,r)}function Cae(e,t,n,r){return r.all(e)}const _ae=ub("type",{invalid:Aae,unknown:kae,handlers:{comment:Qoe,doctype:Xoe,element:vae,raw:Sae,root:Cae,text:oL}});function Aae(e){throw new Error("Expected node, not `"+e+"`")}function kae(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const wae={},Dae={},Rae=[];function Iae(e,t){const n=wae,r=n.quote||'"',o=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Oae,all:Nae,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||G4,characterReferences:n.characterReferences||Dae,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?as:gd,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Oae(e,t,n){return _ae(e,t,n,this)}function Nae(e){const t=[],n=e&&e.children||Rae;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Pae(e){return Array.isArray(e)?e:[e]}function pb(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 _C(e){return!e||["plaintext","txt","text","plain"].includes(e)}function aL(e){return e==="ansi"||_C(e)}function AC(e){return e==="none"}function iL(e){return AC(e)}function sL(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 Lae(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 Mae(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,l)=>s-l);return a.length?Lae(o,a):o})):e}async function lL(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Vy(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 jl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function cL(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 Fae(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Bae(e){const t=pb(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 l of t){if(a<l.length)break;a-=l.length,s++}return{line:s,character:a}}function r(o,a){let s=0;for(let l=0;l<o;l++)s+=t[l].length;return s+=a,s}return{lines:t,indexToPos:n,posToIndex:r}}class ao extends Error{constructor(t){super(t),this.name="ShikiError"}}const uL=new WeakMap;function hb(e,t){uL.set(e,t)}function ch(e){return uL.get(e)}class yd{_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 yd(Object.fromEntries(Pae(n).map(r=>[r,lT])),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 jI(this._stacks[this.theme])}getScopes(t=this.theme){return jI(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function jI(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 jae(e,t){if(!(e instanceof yd))throw new ao("Invalid grammar state");return e.getInternalStack(t)}function Uae(){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 ao(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...o.indexToPos(s),offset:s}}else{const l=o.lines[s.line];if(l===void 0)throw new ao(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${o.lines.length}`);if(s.character<0||s.character>l.length)throw new ao(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,offset:o.posToIndex(s.line,s.character)}}};const o=Bae(n.source),a=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));Hae(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 Mae(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 ao(`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 w=0;w<b.children.length;w++)x+=dL(b.children[w]),S===-1&&x.length===h&&(S=w+1),T===-1&&x.length===g&&(T=w+1);if(S===-1)throw new ao(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(T===-1)throw new ao(`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)l(b,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")l(D[0],y,"token");else{const w={type:"element",tagName:"span",properties:{},children:D};l(w,y,"wrapper"),b.children.splice(S,D.length,w)}}function s(p,h){o[p]=l(o[p],h,"line")}function l(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&&sL(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 Hae(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new ao(`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,l=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||l||u){if(s&&s||l&&u)continue;throw new ao(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function dL(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(dL).join(""):""}const zae=[Uae()];function Gy(e){return[...e.transformers||[],...zae]}var Ul=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],wE={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function $ae(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 UI(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 Vae(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)wE[o]&&t.push({type:"setDecoration",value:wE[o]});else if(o<=29){const a=wE[o-20];a&&t.push({type:"resetDecoration",value:a})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ul[o-30]}});else if(o===38){const[a,s]=UI(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:Ul[o-40]}});else if(o===48){const[a,s]=UI(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:Ul[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ul[o-100+8]}})}return t}function Gae(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let a=0;do{const s=$ae(r,a),l=s.sequence?r.substring(a,s.startPosition):r.substring(a);if(l.length>0&&o.push({value:l,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const u=Vae(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 qae={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 Wae(e=qae){function t(l){return e[l]}function n(l){return`#${l.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<Ul.length;d++)r.push(t(Ul[d]));let l=[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([l[d],l[p],l[h]]));let u=8;for(let d=0;d<24;d++,u+=10)r.push(n([u,u,u]));return r}function a(l){return o()[l]}function s(l){switch(l.type){case"named":return t(l.name);case"rgb":return n(l.rgb);case"table":return a(l.index)}}return{value:s}}function Yae(e,t,n){const r=Vy(e,n),o=pb(t),a=Wae(Object.fromEntries(Ul.map(l=>[l,e.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),s=Gae();return o.map(l=>s.parse(l[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=jl(d,r),p=jl(p,r),u.decorations.has("dim")&&(d=Kae(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:l[1],color:d,bgColor:p,fontStyle:h}}))}function Kae(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 kC(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(_C(r)||AC(o))return pb(t).map(u=>[{content:u[0],offset:u[1]}]);const{theme:a,colorMap:s}=e.setTheme(o);if(r==="ansi")return Yae(a,t,n);const l=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new ts(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(a.name))throw new ts(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return Xae(t,l,a,s,n)}function Qae(...e){if(e.length===2)return ch(e[1]);const[t,n,r={}]=e,{lang:o="text",theme:a=t.getLoadedThemes()[0]}=r;if(_C(o)||AC(a))throw new ts("Plain language does not have grammar state");if(o==="ansi")throw new ts("ANSI language does not have grammar state");const{theme:s,colorMap:l}=t.setTheme(a),u=t.getLanguage(o);return new yd(qy(n,u,s,l,r).stateStack,u.name,s.name)}function Xae(e,t,n,r,o){const a=qy(e,t,n,r,o),s=new yd(qy(e,t,n,r,o).stateStack,t.name,n.name);return hb(a.tokens,s),a.tokens}function qy(e,t,n,r,o){const a=Vy(n,o),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=o,u=pb(e);let d=o.grammarState?jae(o.grammarState,n.name)??lT:o.grammarContextCode!=null?qy(o.grammarContextCode,t,n,r,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:lT,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 w=t.tokenizeLine2(b,d,l),R=w.tokens.length/2;for(let I=0;I<R;I++){const O=w.tokens[2*I],F=I+1<R?w.tokens[2*I+2]:b.length;if(O===F)continue;const j=w.tokens[2*I+1],H=jl(r[Qu.getForeground(j)],a),C=Qu.getFontStyle(j),M={content:b.substring(O,F),offset:x+O,color:H,fontStyle:C};if(o.includeExplanation){const $=[];if(o.includeExplanation!=="scopeName")for(const q of n.settings){let Y;switch(typeof q.scope){case"string":Y=q.scope.split(/,/).map(B=>B.trim());break;case"object":Y=q.scope;break;default:continue}$.push({settings:q,selectors:Y.map(B=>B.split(/ /))})}M.explanation=[];let z=0;for(;O+z<F;){const q=T[D],Y=b.substring(q.startIndex,q.endIndex);z+=Y.length,M.explanation.push({content:Y,scopes:o.includeExplanation==="scopeName"?Zae(q.scopes):Jae($,q.scopes)}),D+=1}}p.push(M)}h.push(p),p=[],d=w.ruleStack}return{tokens:h,stateStack:d}}function Zae(e){return e.map(t=>({scopeName:t}))}function Jae(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n[r]={scopeName:a,themeMatches:tie(e,a,t.slice(0,r))}}return n}function HI(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function eie(e,t,n){if(!HI(e[e.length-1],t))return!1;let r=e.length-2,o=n.length-1;for(;r>=0&&o>=0;)HI(e[r],n[o])&&(r-=1),o-=1;return r===-1}function tie(e,t,n){const r=[];for(const{selectors:o,settings:a}of e)for(const s of o)if(eie(s,t,n)){r.push(a);break}return r}function fL(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=kC(e,t,{...n,theme:u.theme}),p=ch(d),h=typeof u.theme=="string"?u.theme:u.theme.name;return{tokens:d,state:p,theme:h}}),a=nie(...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})),l=o[0].state?new yd(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&hb(s,l),s}function nie(...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),l=o.map(u=>u[0]);for(;l.every(u=>u);){const u=Math.min(...l.map(d=>d.content.length));for(let d=0;d<n;d++){const p=l[d];p.content.length===u?(a[d].push(p),s[d]+=1,l[d]=o[d][s[d]]):(a[d].push({...p,content:p.content.slice(0,u)}),l[d]={...p,content:p.content.slice(u),offset:p.offset+u})}}}return t}function Wy(e,t,n){let r,o,a,s,l,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 ts("`themes` option must not be empty");const g=fL(e,t,n);if(u=ch(g),d&&!h.find(S=>S.color===d))throw new ts(`\`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=>rie(T,b,p,d))),u&&hb(a,u);const x=h.map(S=>Vy(S.theme,n));o=h.map((S,T)=>(T===0&&d?"":`${p+S.color}:`)+(jl(y[T].fg,x[T])||"inherit")).join(";"),r=h.map((S,T)=>(T===0&&d?"":`${p+S.color}-bg:`)+(jl(y[T].bg,x[T])||"inherit")).join(";"),s=`shiki-themes ${y.map(S=>S.name).join(" ")}`,l=d?void 0:[o,r].join(";")}else if("theme"in n){const d=Vy(n.theme,n);a=kC(e,t,n);const p=e.getTheme(n.theme);r=jl(p.bg,d),o=jl(p.fg,d),s=p.name,u=ch(a)}else throw new ts("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:o,bg:r,themeName:s,rootStyle:l,grammarState:u}}function rie(e,t,n,r){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(u=>cL(e.variants[u])),s=new Set(a.flatMap(u=>Object.keys(u))),l={};return a.forEach((u,d)=>{for(const p of s){const h=u[p]||"inherit";if(d===0&&r)l[p]=h;else{const g=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[d]+(p==="color"?"":g);l[y]=h}}}),o.htmlStyle=l,o}function Yy(e,t,n,r={meta:{},options:n,codeToHast:(o,a)=>Yy(e,o,a),codeToTokens:(o,a)=>Wy(e,o,a)}){let o=t;for(const y of Gy(n))o=y.preprocess?.call(r,o,n)||o;let{tokens:a,fg:s,bg:l,themeName:u,rootStyle:d,grammarState:p}=Wy(e,o,n);const{mergeWhitespaces:h=!0}=n;h===!0?a=aie(a):h==="never"&&(a=iie(a));const g={...r,get source(){return o}};for(const y of Gy(n))a=y.tokens?.call(g,a)||a;return oie(a,{...n,fg:s,bg:l,themeName:u,rootStyle:d},g,p)}function oie(e,t,n,r=ch(e)){const o=Gy(t),a=[],s={type:"root",children:[]},{structure:l="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:l,addClassToHast:sL,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&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="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 w={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const R=Fae(D.htmlStyle||cL(D));R&&(w.properties.style=R);for(const I of o)w=I?.span?.call(g,w,x+1,T,S,D)||w;l==="inline"?s.children.push(w):l==="classic"&&S.children.push(w),T+=D.content.length}if(l==="classic"){for(const D of o)S=D?.line?.call(g,S,x+1)||S;h.push(S),a.push(S)}}),l==="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&&hb(y,r),y}function aie(e){return e.map(t=>{const n=[];let r="",o=0;return t.forEach((a,s)=>{const l=!(a.fontStyle&&a.fontStyle&Qi.Underline);l&&a.content.match(/^\s+$/)&&t[s+1]?(o||(o=a.offset),r+=a.content):r?(l?n.push({...a,offset:o,content:r+a.content}):n.push({content:r,offset:o},a),o=0,r=""):n.push(a)}),n})}function iie(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 l=[{...n,offset:n.offset+o.length,content:a}];return o&&l.unshift({content:o,offset:n.offset}),s&&l.push({content:s,offset:n.offset+o.length+a.length}),l}))}function sie(e,t,n){const r={meta:{},options:n,codeToHast:(a,s)=>Yy(e,a,s),codeToTokens:(a,s)=>Wy(e,a,s)};let o=Iae(Yy(e,t,n,r));for(const a of Gy(n))o=a.postprocess?.call(r,o,n)||o;return o}const zI={light:"#333333",dark:"#bbbbbb"},$I={light:"#fffffe",dark:"#1e1e1e"},VI="__shiki_resolved";function wC(e){if(e?.[VI])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 l=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(n=l.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"?zI.light:zI.dark),n||(n=t.type==="light"?$I.light:$I.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(l){if(a.has(l))return a.get(l);o+=1;const u=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?s(l):(a.set(l,u),u)}t.settings=t.settings.map(l=>{const u=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!u&&!d)return l;const p={...l,settings:{...l.settings}};if(u){const h=s(l.settings.foreground);t.colorReplacements[h]=l.settings.foreground,p.settings.foreground=h}if(d){const h=s(l.settings.background);t.colorReplacements[h]=l.settings.background,p.settings.background=h}return p});for(const l of Object.keys(t.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!t.colors[l]?.startsWith("#")){const u=s(t.colors[l]);t.colorReplacements[u]=t.colors[l],t.colors[l]=u}return Object.defineProperty(t,VI,{enumerable:!1,writable:!1,value:!0}),t}async function pL(e){return Array.from(new Set((await Promise.all(e.filter(t=>!aL(t)).map(async t=>await lL(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function hL(e){return(await Promise.all(e.map(async t=>iL(t)?null:wC(await lL(t))))).filter(t=>!!t)}class lie extends Toe{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=wC(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=By.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 ao(`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(l=>r.map(([u])=>u).includes(l))).filter(a=>!r.includes(a));throw new ao(`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 cie{_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 zf=0;function uie(e){zf+=1,e.warnings!==!1&&zf>=10&&zf%10===0&&console.warn(`[Shiki] ${zf} 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 ao("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(wC),o=new cie(e.engine,n),a=new lie(o,r,n,e.langAlias);let s;function l(D){S();const w=a.getGrammar(typeof D=="string"?D:D.name);if(!w)throw new ao(`Language \`${D}\` not found, you may need to load it first`);return w}function u(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};S();const w=a.getTheme(D);if(!w)throw new ao(`Theme \`${D}\` not found, you may need to load it first`);return w}function d(D){S();const w=u(D);s!==D&&(a.setTheme(w),s=D);const R=a.getColorMap();return{theme:w,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 pL(D))}function b(...D){S();for(const w of D.flat(1))a.loadTheme(w)}async function x(...D){return S(),b(await hL(D))}function S(){if(t)throw new ao("Shiki instance has been disposed")}function T(){t||(t=!0,a.dispose(),zf-=1)}return{setTheme:d,getTheme:u,getLanguage:l,getLoadedThemes:p,getLoadedLanguages:h,loadLanguage:y,loadLanguageSync:g,loadTheme:x,loadThemeSync:b,dispose:T,[Symbol.dispose]:T}}async function die(e={}){e.loadWasm;const[t,n,r]=await Promise.all([hL(e.themes||[]),pL(e.langs||[]),e.engine||D4(e.loadWasm||Mre())]);return uie({...e,themes:t,langs:n,engine:r})}async function fie(e={}){const t=await die(e);return{getLastGrammarState:(...n)=>Qae(t,...n),codeToTokensBase:(n,r)=>kC(t,n,r),codeToTokensWithThemes:(n,r)=>fL(t,n,r),codeToTokens:(n,r)=>Wy(t,n,r),codeToHast:(n,r)=>Yy(t,n,r),codeToHtml:(n,r)=>sie(t,n,r),...t,getInternalContext:()=>t}}function pie(e,t,n){let r,o,a;{const l=e;r=l.langs,o=l.themes,a=l.engine}async function s(l){function u(y){if(typeof y=="string"){if(aL(y))return[];const b=r[y];if(!b)throw new ts(`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(iL(y))return"none";if(typeof y=="string"){const b=o[y];if(!b)throw new ts(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return b}return y}const p=(l.themes??[]).map(y=>d(y)),h=(l.langs??[]).map(y=>u(y)),g=await fie({engine:l.engine??a(),...l,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 hie=pie({langs:gre,themes:bre,engine:()=>D4(G(()=>import("./wasm-DQxwEHae-CG6Dc4jp.js"),[]))}),DE={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"}]}}},mie={...DE,patterns:[...DE.patterns,{include:"#docvar"}],repository:{...DE.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},gie={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"}]}}},mL="catppuccin-latte",yie=hie({themes:[mL],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...mie},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...gie}]});async function ac(e,t){return(await yie).codeToHtml(e,{lang:t,theme:mL})}const Ar=ke(bu)({display:"flex",flexDirection:"column",height:"100%"}),Ko=ke(vu)({display:"flex",flexDirection:"column",padding:"10px",flexGrow:1}),DC=ke(uq)({padding:"10px"}),bie=ke("div")({height:"100%"});ke("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const gL=ke("div")({height:"75vh",width:"100%",overflowY:"auto"});ke("div")({position:"relative",height:"100%",flex:"0 0 auto"});function $r({error:e,context:t}){const n=e.data?.message||"Unknown Error";return v.jsxs(v.Fragment,{children:[t&&v.jsx(He,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),v.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function Zr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:a=2,textVariant:s="body2"}){const l=v.jsxs(Nt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:a},children:[v.jsx(ES,{size:t,color:n,thickness:r}),e&&v.jsx(He,{variant:s,color:"text.secondary",children:e})]});return o?v.jsx(Nt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:l}):l}const vie=Rn([v.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"),v.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]),wn="http://localhost/api/v0".replace(/\/+$/,"");class al{constructor(t,n=wn,r=Rt){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration}class Eie extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}const Pn={},Ln="https://example.com",St=function(e,t,n){if(n==null)throw new Eie(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function pT(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>pT(e,r,n)):Object.keys(t).forEach(r=>pT(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Mn=function(e,...t){const n=new URLSearchParams(e.search);pT(n,t),e.search=n.toString()},Ky=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Fn=function(e){return e.pathname+e.search+e.hash},Bn=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)}},xie=function(e){return{getConnection:async(t,n,r={})=>{St("getConnection","projectName",t),St("getConnection","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Ln);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Mn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...u,...d,...r.headers},{url:Fn(a),options:l}},getQuerydata:async(t,n,r,o,a={})=>{St("getQuerydata","projectName",t),St("getQuerydata","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(s,Ln);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),Mn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Fn(l),options:d}},getSqlsource:async(t,n,r,o={})=>{St("getSqlsource","projectName",t),St("getSqlsource","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Ln);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),Mn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Fn(s),options:u}},getTablesource:async(t,n,r,o,a={})=>{St("getTablesource","projectName",t),St("getTablesource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(s,Ln);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),Mn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Fn(l),options:d}},getTemporarytable:async(t,n,r,o={})=>{St("getTemporarytable","projectName",t),St("getTemporarytable","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,Ln);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.sqlStatement=r),Mn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Fn(s),options:u}},getTest:async(t,n,r={})=>{St("getTest","projectName",t),St("getTest","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Ln);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Mn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...u,...d,...r.headers},{url:Fn(a),options:l}},listConnections:async(t,n={})=>{St("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,Ln);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={};Mn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Fn(o),options:s}},listSchemas:async(t,n,r={})=>{St("listSchemas","projectName",t),St("listSchemas","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),a=new URL(o,Ln);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={};Mn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...u,...d,...r.headers},{url:Fn(a),options:l}},listTables:async(t,n,r,o={})=>{St("listTables","projectName",t),St("listTables","connectionName",n),St("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,Ln);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={};Mn(s,{});let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:Fn(s),options:u}}}},zi=function(e){const t=xie(e);return{async getConnection(n,r,o){const a=await t.getConnection(n,r,o),s=e?.serverIndex??0,l=Pn["ConnectionsApi.getConnection"]?.[s]?.url;return(u,d)=>Bn(a,Rt,wn,e)(u,l||d)},async getQuerydata(n,r,o,a,s){const l=await t.getQuerydata(n,r,o,a,s),u=e?.serverIndex??0,d=Pn["ConnectionsApi.getQuerydata"]?.[u]?.url;return(p,h)=>Bn(l,Rt,wn,e)(p,d||h)},async getSqlsource(n,r,o,a){const s=await t.getSqlsource(n,r,o,a),l=e?.serverIndex??0,u=Pn["ConnectionsApi.getSqlsource"]?.[l]?.url;return(d,p)=>Bn(s,Rt,wn,e)(d,u||p)},async getTablesource(n,r,o,a,s){const l=await t.getTablesource(n,r,o,a,s),u=e?.serverIndex??0,d=Pn["ConnectionsApi.getTablesource"]?.[u]?.url;return(p,h)=>Bn(l,Rt,wn,e)(p,d||h)},async getTemporarytable(n,r,o,a){const s=await t.getTemporarytable(n,r,o,a),l=e?.serverIndex??0,u=Pn["ConnectionsApi.getTemporarytable"]?.[l]?.url;return(d,p)=>Bn(s,Rt,wn,e)(d,u||p)},async getTest(n,r,o){const a=await t.getTest(n,r,o),s=e?.serverIndex??0,l=Pn["ConnectionsApi.getTest"]?.[s]?.url;return(u,d)=>Bn(a,Rt,wn,e)(u,l||d)},async listConnections(n,r){const o=await t.listConnections(n,r),a=e?.serverIndex??0,s=Pn["ConnectionsApi.listConnections"]?.[a]?.url;return(l,u)=>Bn(o,Rt,wn,e)(l,s||u)},async listSchemas(n,r,o){const a=await t.listSchemas(n,r,o),s=e?.serverIndex??0,l=Pn["ConnectionsApi.listSchemas"]?.[s]?.url;return(u,d)=>Bn(a,Rt,wn,e)(u,l||d)},async listTables(n,r,o,a){const s=await t.listTables(n,r,o,a),l=e?.serverIndex??0,u=Pn["ConnectionsApi.listTables"]?.[l]?.url;return(d,p)=>Bn(s,Rt,wn,e)(d,u||p)}}};class yL extends al{getConnection(t,n,r){return zi(this.configuration).getConnection(t,n,r).then(o=>o(this.axios,this.basePath))}getQuerydata(t,n,r,o,a){return zi(this.configuration).getQuerydata(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getSqlsource(t,n,r,o){return zi(this.configuration).getSqlsource(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTablesource(t,n,r,o,a){return zi(this.configuration).getTablesource(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}getTemporarytable(t,n,r,o){return zi(this.configuration).getTemporarytable(t,n,r,o).then(a=>a(this.axios,this.basePath))}getTest(t,n,r){return zi(this.configuration).getTest(t,n,r).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return zi(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return zi(this.configuration).listSchemas(t,n,r).then(o=>o(this.axios,this.basePath))}listTables(t,n,r,o){return zi(this.configuration).listTables(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const Tie=function(e){return{listDatabases:async(t,n,r,o={})=>{St("listDatabases","projectName",t),St("listDatabases","packageName",n);const a="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Ln);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),Mn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Fn(s),options:u}}}},Sie=function(e){const t=Tie(e);return{async listDatabases(n,r,o,a){const s=await t.listDatabases(n,r,o,a),l=e?.serverIndex??0,u=Pn["DatabasesApi.listDatabases"]?.[l]?.url;return(d,p)=>Bn(s,Rt,wn,e)(d,u||p)}}};class Cie extends al{listDatabases(t,n,r,o){return Sie(this.configuration).listDatabases(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const _ie=function(e){return{getModel:async(t,n,r,o,a={})=>{St("getModel","projectName",t),St("getModel","packageName",n),St("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))),l=new URL(s,Ln);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),Mn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Fn(l),options:d}},listModels:async(t,n,r,o={})=>{St("listModels","projectName",t),St("listModels","packageName",n);const a="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Ln);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),Mn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Fn(s),options:u}}}},GI=function(e){const t=_ie(e);return{async getModel(n,r,o,a,s){const l=await t.getModel(n,r,o,a,s),u=e?.serverIndex??0,d=Pn["ModelsApi.getModel"]?.[u]?.url;return(p,h)=>Bn(l,Rt,wn,e)(p,d||h)},async listModels(n,r,o,a){const s=await t.listModels(n,r,o,a),l=e?.serverIndex??0,u=Pn["ModelsApi.listModels"]?.[l]?.url;return(d,p)=>Bn(s,Rt,wn,e)(d,u||p)}}};class mb extends al{getModel(t,n,r,o,a){return GI(this.configuration).getModel(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listModels(t,n,r,o){return GI(this.configuration).listModels(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const Aie=function(e){return{getNotebook:async(t,n,r,o,a={})=>{St("getNotebook","projectName",t),St("getNotebook","packageName",n),St("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))),l=new URL(s,Ln);let u;e&&(u=e.baseOptions);const d={method:"GET",...u,...a},p={},h={};o!==void 0&&(h.versionId=o),Mn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Fn(l),options:d}},listNotebooks:async(t,n,r,o={})=>{St("listNotebooks","projectName",t),St("listNotebooks","packageName",n);const a="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Ln);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),Mn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Fn(s),options:u}}}},qI=function(e){const t=Aie(e);return{async getNotebook(n,r,o,a,s){const l=await t.getNotebook(n,r,o,a,s),u=e?.serverIndex??0,d=Pn["NotebooksApi.getNotebook"]?.[u]?.url;return(p,h)=>Bn(l,Rt,wn,e)(p,d||h)},async listNotebooks(n,r,o,a){const s=await t.listNotebooks(n,r,o,a),l=e?.serverIndex??0,u=Pn["NotebooksApi.listNotebooks"]?.[l]?.url;return(d,p)=>Bn(s,Rt,wn,e)(d,u||p)}}};class bL extends al{getNotebook(t,n,r,o,a){return qI(this.configuration).getNotebook(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listNotebooks(t,n,r,o){return qI(this.configuration).listNotebooks(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const kie=function(e){return{createPackage:async(t,n,r={})=>{St("createPackage","projectName",t),St("createPackage","body",n);const o="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,Ln);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...r},u={},d={};u["Content-Type"]="application/json",Mn(a,d);let p=s&&s.headers?s.headers:{};return l.headers={...u,...p,...r.headers},l.data=Ky(n,l,e),{url:Fn(a),options:l}},deletePackage:async(t,n,r={})=>{St("deletePackage","projectName",t),St("deletePackage","packageName",n);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),a=new URL(o,Ln);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...r},u={};Mn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...u,...d,...r.headers},{url:Fn(a),options:l}},getPackage:async(t,n,r,o,a={})=>{St("getPackage","projectName",t),St("getPackage","packageName",n);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,Ln);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),Mn(l,h);let g=u&&u.headers?u.headers:{};return d.headers={...p,...g,...a.headers},{url:Fn(l),options:d}},listPackages:async(t,n={})=>{St("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,Ln);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...n},l={};Mn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Fn(o),options:s}},updatePackage:async(t,n,r,o={})=>{St("updatePackage","projectName",t),St("updatePackage","packageName",n),St("updatePackage","body",r);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Ln);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},d={},p={};d["Content-Type"]="application/json",Mn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},u.data=Ky(r,u,e),{url:Fn(s),options:u}}}},$f=function(e){const t=kie(e);return{async createPackage(n,r,o){const a=await t.createPackage(n,r,o),s=e?.serverIndex??0,l=Pn["PackagesApi.createPackage"]?.[s]?.url;return(u,d)=>Bn(a,Rt,wn,e)(u,l||d)},async deletePackage(n,r,o){const a=await t.deletePackage(n,r,o),s=e?.serverIndex??0,l=Pn["PackagesApi.deletePackage"]?.[s]?.url;return(u,d)=>Bn(a,Rt,wn,e)(u,l||d)},async getPackage(n,r,o,a,s){const l=await t.getPackage(n,r,o,a,s),u=e?.serverIndex??0,d=Pn["PackagesApi.getPackage"]?.[u]?.url;return(p,h)=>Bn(l,Rt,wn,e)(p,d||h)},async listPackages(n,r){const o=await t.listPackages(n,r),a=e?.serverIndex??0,s=Pn["PackagesApi.listPackages"]?.[a]?.url;return(l,u)=>Bn(o,Rt,wn,e)(l,s||u)},async updatePackage(n,r,o,a){const s=await t.updatePackage(n,r,o,a),l=e?.serverIndex??0,u=Pn["PackagesApi.updatePackage"]?.[l]?.url;return(d,p)=>Bn(s,Rt,wn,e)(d,u||p)}}};class vL extends al{createPackage(t,n,r){return $f(this.configuration).createPackage(t,n,r).then(o=>o(this.axios,this.basePath))}deletePackage(t,n,r){return $f(this.configuration).deletePackage(t,n,r).then(o=>o(this.axios,this.basePath))}getPackage(t,n,r,o,a){return $f(this.configuration).getPackage(t,n,r,o,a).then(s=>s(this.axios,this.basePath))}listPackages(t,n){return $f(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,o){return $f(this.configuration).updatePackage(t,n,r,o).then(a=>a(this.axios,this.basePath))}}const wie=function(e){return{createProject:async(t,n={})=>{St("createProject","body",t);const r="/projects",o=new URL(r,Ln);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...n},l={},u={};l["Content-Type"]="application/json",Mn(o,u);let d=a&&a.headers?a.headers:{};return s.headers={...l,...d,...n.headers},s.data=Ky(t,s,e),{url:Fn(o),options:s}},deleteProject:async(t,n={})=>{St("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(r,Ln);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...n},l={};Mn(o,{});let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...n.headers},{url:Fn(o),options:s}},getProject:async(t,n,r={})=>{St("getProject","projectName",t);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,Ln);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...r},u={},d={};n!==void 0&&(d.reload=n),Mn(a,d);let p=s&&s.headers?s.headers:{};return l.headers={...u,...p,...r.headers},{url:Fn(a),options:l}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Ln);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},s={};Mn(r,{});let l=o&&o.headers?o.headers:{};return a.headers={...s,...l,...t.headers},{url:Fn(r),options:a}},updateProject:async(t,n,r={})=>{St("updateProject","projectName",t),St("updateProject","body",n);const o="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(o,Ln);let s;e&&(s=e.baseOptions);const l={method:"PATCH",...s,...r},u={},d={};u["Content-Type"]="application/json",Mn(a,d);let p=s&&s.headers?s.headers:{};return l.headers={...u,...p,...r.headers},l.data=Ky(n,l,e),{url:Fn(a),options:l}}}},Vf=function(e){const t=wie(e);return{async createProject(n,r){const o=await t.createProject(n,r),a=e?.serverIndex??0,s=Pn["ProjectsApi.createProject"]?.[a]?.url;return(l,u)=>Bn(o,Rt,wn,e)(l,s||u)},async deleteProject(n,r){const o=await t.deleteProject(n,r),a=e?.serverIndex??0,s=Pn["ProjectsApi.deleteProject"]?.[a]?.url;return(l,u)=>Bn(o,Rt,wn,e)(l,s||u)},async getProject(n,r,o){const a=await t.getProject(n,r,o),s=e?.serverIndex??0,l=Pn["ProjectsApi.getProject"]?.[s]?.url;return(u,d)=>Bn(a,Rt,wn,e)(u,l||d)},async listProjects(n){const r=await t.listProjects(n),o=e?.serverIndex??0,a=Pn["ProjectsApi.listProjects"]?.[o]?.url;return(s,l)=>Bn(r,Rt,wn,e)(s,a||l)},async updateProject(n,r,o){const a=await t.updateProject(n,r,o),s=e?.serverIndex??0,l=Pn["ProjectsApi.updateProject"]?.[s]?.url;return(u,d)=>Bn(a,Rt,wn,e)(u,l||d)}}};class EL extends al{createProject(t,n){return Vf(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Vf(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Vf(this.configuration).getProject(t,n,r).then(o=>o(this.axios,this.basePath))}listProjects(t){return Vf(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Vf(this.configuration).updateProject(t,n,r).then(o=>o(this.axios,this.basePath))}}const Die=function(e){return{executeQuery:async(t,n,r,o,a,s,l,u={})=>{St("executeQuery","projectName",t),St("executeQuery","packageName",n),St("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,Ln);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),l!==void 0&&(b.versionId=l),Mn(p,b);let x=h&&h.headers?h.headers:{};return g.headers={...y,...x,...u.headers},{url:Fn(p),options:g}}}},Rie=function(e){const t=Die(e);return{async executeQuery(n,r,o,a,s,l,u,d){const p=await t.executeQuery(n,r,o,a,s,l,u,d),h=e?.serverIndex??0,g=Pn["QueryresultsApi.executeQuery"]?.[h]?.url;return(y,b)=>Bn(p,Rt,wn,e)(y,g||b)}}};class RC extends al{executeQuery(t,n,r,o,a,s,l,u){return Rie(this.configuration).executeQuery(t,n,r,o,a,s,l,u).then(d=>d(this.axios,this.basePath))}}const Iie=function(e){return{listSchedules:async(t,n,r,o={})=>{St("listSchedules","projectName",t),St("listSchedules","packageName",n);const a="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,Ln);let l;e&&(l=e.baseOptions);const u={method:"GET",...l,...o},d={},p={};r!==void 0&&(p.versionId=r),Mn(s,p);let h=l&&l.headers?l.headers:{};return u.headers={...d,...h,...o.headers},{url:Fn(s),options:u}}}},Oie=function(e){const t=Iie(e);return{async listSchedules(n,r,o,a){const s=await t.listSchedules(n,r,o,a),l=e?.serverIndex??0,u=Pn["SchedulesApi.listSchedules"]?.[l]?.url;return(d,p)=>Bn(s,Rt,wn,e)(d,u||p)}}};class Nie extends al{listSchedules(t,n,r,o){return Oie(this.configuration).listSchedules(t,n,r,o).then(a=>a(this.axios,this.basePath))}}class Vr{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 xL=k.createContext(void 0),uh=({projectName:e,packageName:t,versionId:n,children:r})=>v.jsx(xL.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function uo(e=!0){const t=k.useContext(xL);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const TL=new GX({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),IC=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function Jr(e){const{server:t,getAccessToken:n}=zC(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const o=await IC(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 lZ(r,TL)}function Pie(e){const{server:t,getAccessToken:n}=zC(),r={...e,mutationFn:async o=>{try{const a=await IC(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 l=new Error(s.response.data.message||s.message);throw l.status=s.response.status,l.data=s.response.data,l}}throw a}},retry:!1,throwOnError:!1};return cZ(r,TL)}const Lie=k.lazy(()=>G(()=>import("./RenderedResult-BAZuT25g-BMU632YI.js"),[])),Mie=new RC(new Vr);function SL(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 Fie({modelPath:e,query:t,sourceName:n,queryName:r,optionalProjectName:o,optionalPackageName:a,optionalVersionId:s}){const l=uo(!1),u=o||l?.projectName,d=a||l?.packageName,p=s||l?.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}=Jr({queryKey:["queryResult",u,d,e,p,t,n,r],queryFn:x=>Mie.executeQuery(u,d,e,t,n,r,p,x)});return v.jsxs(v.Fragment,{children:[!g&&!y&&v.jsx(Zr,{text:"Fetching Query Results..."}),g&&v.jsx(k.Suspense,{fallback:v.jsx("div",{children:"Loading..."}),children:v.jsx(Lie,{result:h.data.result})}),y&&v.jsx($r,{context:`${u} > ${d} > ${e}`,error:b})]})}const CL=Rn(v.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"})),Bie=k.lazy(()=>G(()=>import("./RenderedResult-BAZuT25g-BMU632YI.js"),[]));function _L({result:e,minHeight:t,maxHeight:n}){const[r,o]=k.useState(!1),[a,s]=k.useState(0),[l,u]=k.useState(!1),d=k.useRef(null),p=k.useRef(null),[h,g]=k.useState(void 0),[y,b]=k.useState(!1),x=k.useCallback(()=>{const R=r;o(!r),R&&p.current&&setTimeout(()=>{p.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[r]),S=k.useCallback(R=>{s(R)},[]);if(k.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=v.jsx(Zr,{text:"Loading...",centered:!0,size:32}),D=y?r?n-40:t-40:void 0,w=h?{minHeight:`${h}px`,height:"100%"}:{height:"100%"};return v.jsx(v.Fragment,{children:v.jsxs(Nt,{ref:p,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${r?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...w},children:[v.jsx(Nt,{ref:d,sx:{flex:1,overflow:r?"auto":"hidden",p:0,pb:l?"40px":1},children:e&&v.jsx(k.Suspense,{fallback:T,children:v.jsx(Bie,{result:e,height:D,isFillElement:R=>{b(R)},onSizeChange:S})})||T}),l&&v.jsx(Nt,{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:v.jsx(or,{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?v.jsx(bJ,{sx:{fontSize:30}}):v.jsx(vJ,{sx:{fontSize:30}})})})]})})}const jie=`
267
- .code-display pre {
268
- margin: 0;
269
- padding: 0;
270
- }
271
- `;function Uie({cell:e,notebookPath:t,expandCodeCell:n,hideCodeCellIcon:r,expandEmbedding:o,hideEmbeddingIcon:a}){const[s,l]=Fe.useState(n),[u,d]=Fe.useState(o),[p,h]=Fe.useState(),[g,y]=Fe.useState(),[b,x]=Fe.useState(!1),{packageName:S,projectName:T}=uo(),D=SL({modelPath:t,query:e.text,optionalPackageName:S,optionalProjectName:T});return k.useEffect(()=>{e.type==="code"&&ac(e.text,"malloy").then(w=>{h(w)})},[e]),k.useEffect(()=>{ac(D,"typescript").then(w=>{y(w)})},[D]),e.type==="markdown"&&v.jsx(Ar,{variant:"outlined",children:v.jsx(Ko,{children:v.jsx(WS,{children:e.text})})})||e.type==="code"&&v.jsxs(Ar,{variant:"outlined",sx:{height:"auto"},children:[(!r||!a&&e.result)&&v.jsxs(fn,{sx:{flexDirection:"row",justifyContent:"space-between",ml:"8px"},children:[v.jsxs(fn,{sx:{flexDirection:"row"},children:[e.newSources&&e.newSources.length>0&&v.jsx(He,{variant:"overline",children:v.jsx("b",{children:"Data source"})}),e.result&&v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Results"})]}),v.jsx(fn,{sx:{flexDirection:"row"},children:v.jsxs(N0,{sx:{padding:"0px 8px 0px 8px",mb:"auto",mt:"auto"},children:[e.newSources&&e.newSources.length>0&&v.jsx(lr,{title:"Explore Data Sources",children:v.jsx(or,{size:"small",onClick:()=>{x(!b),d(!1),l(!1)},children:v.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{d:"M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",fill:"currentColor"})})})}),!r&&v.jsx(lr,{title:s?"Hide Code":"View Code",children:v.jsx(or,{size:"small",onClick:()=>{l(!s)},children:v.jsx(CL,{})})}),!a&&e.result&&v.jsx(lr,{title:u?"Hide Embedding":"View Embedding",children:v.jsx(or,{size:"small",onClick:()=>{d(!u)},children:v.jsx(Fh,{})})})]})})]}),v.jsx(Ma,{in:u,timeout:"auto",unmountOnExit:!0,children:v.jsxs(fn,{sx:{p:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:g}}),v.jsx(lr,{title:"Copy Embeddable Code",children:v.jsx(or,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(D)},children:v.jsx(lb,{})})})]})}),v.jsxs(Ma,{in:s,timeout:"auto",unmountOnExit:!0,children:[v.jsx("style",{children:jie}),v.jsx(fn,{sx:{mx:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx("div",{className:"code-display",style:{fontSize:"12px",width:"800px",border:"1px solid rgb(220,220,220)"},dangerouslySetInnerHTML:{__html:p}})})]}),v.jsx(Ma,{in:b,timeout:"auto",unmountOnExit:!0,sx:{p:"5px"},children:v.jsx(rM,{sourceAndPaths:e.newSources.map(w=>({sourceInfo:JSON.parse(w),modelPath:t}))})}),e.result&&!b&&v.jsx(v.Fragment,{children:v.jsx(_L,{result:e.result,minHeight:300,maxHeight:700})})]})}const Hie=new bL(new Vr);function AL({notebookPath:e,expandResults:t,hideResultIcons:n,expandEmbeddings:r,hideEmbeddingIcons:o}){const[a,s]=Fe.useState(!1),[l,u]=Fe.useState(),{projectName:d,packageName:p,versionId:h}=uo(),g=zie(e,!0);k.useEffect(()=>{ac(g,"typescript").then(T=>{u(T)})},[a,g]);const{data:y,isSuccess:b,isError:x,error:S}=Jr({queryKey:["notebook",d,p,e,h],queryFn:async T=>(await Hie.getNotebook(d,p,e,h,T)).data});return v.jsxs(Ar,{variant:"outlined",children:[v.jsxs(Ko,{children:[v.jsxs(fn,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Notebook"}),!o&&v.jsx(N0,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:v.jsx(lr,{title:a?"Hide Embedding":"View Embedding",children:v.jsx(or,{size:"small",onClick:()=>{s(!a)},children:v.jsx(Fh,{})})})})]}),v.jsx(Ma,{in:a,timeout:"auto",unmountOnExit:!0,children:v.jsxs(fn,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:l}})}),v.jsx(lr,{title:"Copy Embeddable Code",children:v.jsx(or,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(g)},children:v.jsx(lb,{})})})]})})]}),v.jsx(DC,{children:v.jsxs(fn,{spacing:2,component:"section",children:[!b&&!x&&v.jsx(Zr,{text:"Fetching Notebook..."}),b&&y.notebookCells?.map((T,D)=>v.jsx(Uie,{cell:T,notebookPath:e,expandCodeCell:t,hideCodeCellIcon:n,expandEmbedding:r,hideEmbeddingIcon:o},D)),x&&S.status===404&&v.jsxs(He,{variant:"body2",children:[v.jsx("code",{children:`${d} > ${p} > ${e}`})," ","not found."]}),x&&S.status!==404&&v.jsx($r,{error:S,context:`${d} > ${p} > ${e}`})]})})]})}function zie(e,t){return`<Notebook
272
- notebookPath="${e}"
273
- expandCodeCells={${t}}
274
- />`}const kL=Rn(v.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"})),$ie=new vL(new Vr);function Vie(){const{projectName:e,packageName:t,versionId:n}=uo(),{data:r,isSuccess:o,isError:a,error:s}=Jr({queryKey:["package",e,t,n],queryFn:l=>$ie.getPackage(e,t,n,!1,l)});return v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Package Config"}),v.jsx(Er,{}),v.jsx(Nt,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsxs(Dh,{dense:!0,disablePadding:!0,children:[v.jsx(Eu,{dense:!0,disablePadding:!0,children:v.jsx(es,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!o&&!a&&v.jsx(Eu,{children:v.jsx(Zr,{text:"Fetching Package Metadata..."})}),o&&(r.data&&v.jsx(Eu,{dense:!0,disablePadding:!0,children:v.jsx(es,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||v.jsxs(Eu,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[v.jsx(kL,{sx:{color:"grey.600",mr:"10px"}}),v.jsx(es,{primary:"No package manifest"})]})),a&&v.jsx($r,{error:s,context:`${e} > ${t} > ${n}`})]})})]})})}const Gie=Rn(v.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"})),qie=new EL(new Vr);function Wie(){const{projectName:e}=$h(),{data:t,isSuccess:n,isError:r,error:o}=Jr({queryKey:["about",e],queryFn:a=>qie.getProject(e,!1,a)});return v.jsxs(v.Fragment,{children:[!n&&!r&&v.jsx(Zr,{text:"Fetching About..."}),n&&t.data?.readme&&v.jsxs(Ar,{variant:"outlined",sx:{p:2},children:[v.jsx(He,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),v.jsx(Ar,{sx:{p:1},children:v.jsx(WS,{children:t.data.readme})})]}),r&&v.jsx($r,{error:o,context:`${e} > About`})]})}const Yie=new vL(new Vr);function Kie({navigate:e}){const{projectName:t}=$h(),{data:n,isSuccess:r,isError:o,error:a}=Jr({queryKey:["packages",t],queryFn:s=>Yie.listPackages(t,s)});return v.jsxs(v.Fragment,{children:[!r&&!o&&v.jsx(Zr,{text:"Fetching Packages..."}),r&&v.jsxs(Ar,{variant:"outlined",sx:{p:2},children:[v.jsx(He,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),v.jsx(Kn,{container:!0,spacing:2,columns:12,children:n.data.sort((s,l)=>s.name.localeCompare(l.name)).map(s=>v.jsx(Kn,{size:{xs:12,sm:12,md:12,lg:4},children:v.jsx(Ar,{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:l=>e(s.name,l),children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",color:"primary.main",children:s.name}),v.jsx(Nt,{sx:{maxHeight:"120px",overflowY:"auto"},children:v.jsx(He,{variant:"body2",children:s.description})})]})})},s.name))})]}),o&&v.jsx($r,{error:a,context:`${t} > Packages`})]})}const wL=k.createContext(void 0);function $h(){const e=k.useContext(wL);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function DL({children:e,projectName:t}){return v.jsx(wL.Provider,{value:{projectName:t},children:e})}function Qie({navigate:e}){return v.jsxs(Kn,{container:!0,spacing:2,columns:12,children:[v.jsx(Kn,{size:{xs:12,md:12},children:v.jsx(Kie,{navigate:e})}),v.jsx(Kn,{size:{xs:12,md:12},children:v.jsx(Wie,{})})]})}const OC=new yL(new Vr);function Xie({connectionName:e,schema:t}){const{projectName:n}=$h(),[r,o]=Fe.useState(void 0),[a,s]=Fe.useState(t||null),[l,u]=Fe.useState(!1),{data:d,isSuccess:p,isError:h,error:g,isLoading:y}=Jr({queryKey:["tablePath",n,e],queryFn:b=>OC.listSchemas(n,e,b)});return v.jsxs(Kn,{container:!0,spacing:1,children:[!t&&v.jsx(Kn,{size:{xs:12,md:4},children:v.jsxs(Ji,{sx:{p:1,m:0},children:[v.jsxs(Nt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),v.jsx(EW,{control:v.jsx(eK,{checked:l,onChange:b=>u(b.target.checked)}),label:"Hidden Schemas"})]}),v.jsx(Er,{sx:{mt:"2px"}}),v.jsxs(Nt,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[y&&v.jsx(Zr,{text:"Fetching Table Paths..."}),h&&v.jsx($r,{error:g,context:`${n} > ${e}`}),p&&d.data.length===0&&v.jsx(He,{variant:"body2",children:"No Schemas"}),p&&d.data.length>0&&v.jsx(Dh,{dense:!0,disablePadding:!0,children:d.data.filter(({isHidden:b})=>l||!b).sort((b,x)=>b.isDefault===x.isDefault?0:b.isDefault?-1:1).map(b=>v.jsx(_5,{selected:a===b.name,onClick:()=>s(b.name),children:v.jsx(es,{primary:b.name})},b.name))})]})]})}),v.jsx(Kn,{size:{xs:12,md:t?6:4},children:a&&v.jsx(Ji,{sx:{p:1,m:0},children:v.jsx(Jie,{connectionName:e,schemaName:a,onTableClick:b=>{o(b)}})})}),v.jsx(Kn,{size:{xs:12,md:t?6:4},children:r&&a&&v.jsx(Ji,{sx:{p:1,m:0},children:v.jsx(Zie,{connectionName:e,schemaName:a,tableName:r})})})]})}function Zie({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=$h(),{data:o,isSuccess:a,isError:s,error:l,isLoading:u}=Jr({queryKey:["tablePathSchema",r,e,t,n],queryFn:d=>OC.getTablesource(r,e,n,`${t}.${n}`,d)});return v.jsxs(v.Fragment,{children:[v.jsxs(He,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),v.jsx(Er,{}),v.jsxs(Nt,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[u&&v.jsx(Zr,{text:"Fetching Table Details..."}),s&&v.jsx($r,{error:l,context:`${r} > ${e} > ${t}.${n}`}),a&&o&&v.jsx(FS,{children:v.jsxs(Gp,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[v.jsx(_y,{children:v.jsxs(ui,{children:[v.jsx(xn,{children:"NAME"}),v.jsx(xn,{children:"TYPE"})]})}),v.jsx(qp,{children:o.data.columns?.map(d=>v.jsxs(ui,{children:[v.jsx(xn,{children:d.name}),v.jsx(xn,{children:d.type})]},d.name))})]})})]})]})}function Jie({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=$h(),{data:o,isSuccess:a,isError:s,error:l,isLoading:u}=Jr({queryKey:["tablesInSchema",r,e,t],queryFn:d=>OC.listTables(r,e,t,d)});return v.jsxs(v.Fragment,{children:[v.jsxs(He,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),v.jsx(Er,{}),v.jsxs(Nt,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[u&&v.jsx(Zr,{text:"Fetching Tables..."}),s&&v.jsx($r,{error:l,context:`${r} > ${e} > ${t}`}),a&&o.data.length===0&&v.jsx(He,{variant:"body2",children:"No Tables"}),a&&o.data.length>0&&v.jsx(Dh,{dense:!0,disablePadding:!0,children:o.data.map(d=>v.jsx(_5,{onClick:()=>n(d),children:v.jsx(es,{primary:d})},d))})]})]})}const ese=new yL(new Vr);function tse({connection:e,onClick:t}){return v.jsxs(ui,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(xn,{children:v.jsxs(Nt,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx(He,{variant:"body2",children:e.name}),v.jsx(Gie,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(xn,{children:v.jsx(He,{variant:"body2",children:e.type})})]},e.name)}function nse(){const{projectName:e}=uo(),[t,n]=k.useState(null),{data:r,isSuccess:o,isError:a,error:s}=Jr({queryKey:["connections",e],queryFn:d=>ese.listConnections(e,d)}),l=d=>{n(d)},u=()=>{n(null)};return v.jsxs(DL,{projectName:e,children:[v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),v.jsx(Er,{}),v.jsxs(Nt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!o&&!a&&v.jsx(He,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),o&&r.data.length>0&&v.jsx(Gp,{size:"small",children:v.jsxs(qp,{children:[v.jsxs(ui,{children:[v.jsx(xn,{children:v.jsx(He,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),v.jsx(xn,{children:v.jsx(He,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),r.data.map(d=>v.jsx(tse,{connection:d,onClick:()=>l(d.name)},d.name))]})}),o&&r.data.length===0&&v.jsx(He,{variant:"body2",children:"No Connections"}),a&&v.jsx($r,{error:s,context:`${e} > Connections`})]})]})}),v.jsxs(Vu,{open:t!==null,onClose:u,maxWidth:"lg",fullWidth:!0,children:[v.jsxs(qu,{children:["Connection Explorer: ",t,v.jsx(or,{"aria-label":"close",onClick:u,sx:{position:"absolute",right:8,top:8},children:v.jsx(Nt,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Gu,{children:t&&v.jsx(Xie,{connectionName:t})})]})]})}const rse=new Cie(new Vr);function ose(){const{projectName:e,packageName:t,versionId:n}=uo(),[r,o]=Fe.useState(!1),[a,s]=Fe.useState(null),l=b=>{s(b),o(!0)},u=()=>{o(!1),s(null)},{data:d,isError:p,error:h,isSuccess:g}=Jr({queryKey:["databases",e,t,n],queryFn:b=>rse.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 v.jsxs(v.Fragment,{children:[v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),v.jsx(Er,{}),v.jsxs(Nt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!g&&!p&&v.jsx(Zr,{text:"Fetching Databases..."}),p&&v.jsx($r,{error:h,context:`${e} > ${t} > Databases`}),g&&d.data.length>0&&v.jsxs(Gp,{size:"small",children:[v.jsx(_y,{children:v.jsxs(ui,{children:[v.jsx(xn,{children:"Name"}),v.jsx(xn,{align:"right",children:"Rows"})]})}),v.jsx(qp,{children:d.data.map(b=>v.jsxs(ui,{onClick:()=>l(b),sx:{cursor:"pointer"},children:[v.jsx(xn,{component:"th",scope:"row",children:b.path}),v.jsx(xn,{align:"right",children:y(b.info.rowCount)})]},b.path))})]}),g&&d.data.length===0&&v.jsx(He,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),v.jsxs(Vu,{open:r,onClose:u,maxWidth:"sm",fullWidth:!0,children:[v.jsx(qu,{children:a?.path}),v.jsx(Gu,{children:a?.info?.columns&&v.jsx(FS,{children:v.jsxs(Gp,{size:"small",children:[v.jsx(_y,{children:v.jsxs(ui,{children:[v.jsx(xn,{children:"Column"}),v.jsx(xn,{children:"Type"})]})}),v.jsx(qp,{children:a.info.columns.map(b=>v.jsxs(ui,{children:[v.jsx(xn,{component:"th",scope:"row",children:b.name}),v.jsx(xn,{children:b.type})]},b.name))})]})})})]})]})}function Xi(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 ase(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:My(t.components[n].defaultProps,r)}const ise=gC();function sse(e=ise){return fne(e)}function lse({props:e,name:t,defaultTheme:n,themeId:r}){let o=sse(n);return o=o[r]||o,ase({theme:o,name:t,props:e})}function cse({props:e,name:t}){return lse({props:e,name:t,defaultTheme:yC,themeId:bC})}function hT(){return hT=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},hT.apply(null,arguments)}function RL(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 mT(e,t){return mT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},mT(e,t)}function IL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mT(e,t)}const WI={disabled:!1},Qy=Fe.createContext(null);var use=function(e){return e.scrollTop},cp="unmounted",Rl="exited",Il="entering",gu="entered",gT="exiting",is=function(e){IL(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?l?(u=Rl,a.appearStatus=Il):u=gu:r.unmountOnExit||r.mountOnEnter?u=cp:u=Rl,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===cp?{status:Rl}: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!==Il&&a!==gu&&(o=Il):(a===Il||a===gu)&&(o=gT)}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===Il){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:$s.findDOMNode(this);a&&use(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rl&&this.setState({status:cp})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[$s.findDOMNode(this),s],u=l[0],d=l[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!r&&!a||WI.disabled){this.safeSetState({status:gu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Il},function(){o.props.onEntering(u,d),o.onTransitionEnd(h,function(){o.safeSetState({status:gu},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:$s.findDOMNode(this);if(!o||WI.disabled){this.safeSetState({status:Rl},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:gT},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Rl},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:$s.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===cp)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=RL(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(Qy.Provider,{value:null},typeof a=="function"?a(r,s):Fe.cloneElement(Fe.Children.only(a),s))},t}(Fe.Component);is.contextType=Qy;is.propTypes={};function lu(){}is.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lu,onEntering:lu,onEntered:lu,onExit:lu,onExiting:lu,onExited:lu};is.UNMOUNTED=cp;is.EXITED=Rl;is.ENTERING=Il;is.ENTERED=gu;is.EXITING=gT;function dse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NC(e,t){var n=function(o){return t&&k.isValidElement(o)?t(o):o},r=Object.create(null);return e&&k.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function fse(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,l={};for(var u in t){if(r[u])for(s=0;s<r[u].length;s++){var d=r[u][s];l[r[u][s]]=n(d)}l[u]=n(u)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Hl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function pse(e,t){return NC(e.children,function(n){return k.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Hl(n,"appear",e),enter:Hl(n,"enter",e),exit:Hl(n,"exit",e)})})}function hse(e,t,n){var r=NC(e.children),o=fse(t,r);return Object.keys(o).forEach(function(a){var s=o[a];if(k.isValidElement(s)){var l=a in t,u=a in r,d=t[a],p=k.isValidElement(d)&&!d.props.in;u&&(!l||p)?o[a]=k.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Hl(s,"exit",e),enter:Hl(s,"enter",e)}):!u&&l&&!p?o[a]=k.cloneElement(s,{in:!1}):u&&l&&k.isValidElement(d)&&(o[a]=k.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Hl(s,"exit",e),enter:Hl(s,"enter",e)}))}}),o}var mse=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gse={component:"div",childFactory:function(e){return e}},PC=function(e){IL(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var s=a.handleExited.bind(dse(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,l=o.firstRender;return{children:l?pse(r,s):hse(r,a,s),firstRender:!1}},n.handleExited=function(r,o){var a=NC(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(s){var l=hT({},s.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,o=r.component,a=r.childFactory,s=RL(r,["component","childFactory"]),l=this.state.contextValue,u=mse(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?Fe.createElement(Qy.Provider,{value:l},u):Fe.createElement(Qy.Provider,{value:l},Fe.createElement(o,s,u))},t}(Fe.Component);PC.propTypes={};PC.defaultProps=gse;const YI={};function OL(e,t){const n=k.useRef(YI);return n.current===YI&&(n.current=e(t)),n}const yse=[];function bse(e){k.useEffect(e,yse)}class LC{static create(){return new LC}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=OL(LC.create).current;return bse(e.disposeEffect),e}function KI(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 vse(e){return fd("MuiCollapse",e)}hd("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Ese=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ph(r,vse,n)},xse=Un("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]}})(EC(({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"}}]}))),Tse=Un("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Sse=Un("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),dh=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:d,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:x,orientation:S="vertical",style:T,timeout:D=S4.standard,TransitionComponent:w=is,...R}=n,I={...n,orientation:S,collapsedSize:s},O=Ese(I),F=Zne(),j=NL(),H=k.useRef(null),C=k.useRef(),M=typeof s=="number"?`${s}px`:s,$=S==="horizontal",z=$?"width":"height",q=k.useRef(null),Y=Fy(t,q),B=ee=>ce=>{if(ee){const re=q.current;ce===void 0?ee(re):ee(re,ce)}},X=()=>H.current?H.current[$?"clientWidth":"clientHeight"]:0,ae=B((ee,ce)=>{H.current&&$&&(H.current.style.position="absolute"),ee.style[z]=M,p&&p(ee,ce)}),te=B((ee,ce)=>{const re=X();H.current&&$&&(H.current.style.position="");const{duration:be,easing:ye}=KI({style:T,timeout:D,easing:u},{mode:"enter"});if(D==="auto"){const Ge=F.transitions.getAutoHeightDuration(re);ee.style.transitionDuration=`${Ge}ms`,C.current=Ge}else ee.style.transitionDuration=typeof be=="string"?be:`${be}ms`;ee.style[z]=`${re}px`,ee.style.transitionTimingFunction=ye,g&&g(ee,ce)}),N=B((ee,ce)=>{ee.style[z]="auto",h&&h(ee,ce)}),oe=B(ee=>{ee.style[z]=`${X()}px`,y&&y(ee)}),K=B(b),P=B(ee=>{const ce=X(),{duration:re,easing:be}=KI({style:T,timeout:D,easing:u},{mode:"exit"});if(D==="auto"){const ye=F.transitions.getAutoHeightDuration(ce);ee.style.transitionDuration=`${ye}ms`,C.current=ye}else ee.style.transitionDuration=typeof re=="string"?re:`${re}ms`;ee.style[z]=M,ee.style.transitionTimingFunction=be,x&&x(ee)});return v.jsx(w,{in:d,onEnter:ae,onEntered:N,onEntering:te,onExit:oe,onExited:K,onExiting:P,addEndListener:ee=>{D==="auto"&&j.start(C.current||0,ee),r&&r(q.current,ee)},nodeRef:q,timeout:D==="auto"?null:D,...R,children:(ee,{ownerState:ce,...re})=>v.jsx(xse,{as:l,className:cr(O.root,a,{entered:O.entered,exited:!d&&M==="0px"&&O.hidden}[ee]),style:{[$?"minWidth":"minHeight"]:M,...T},ref:Y,ownerState:{...I,state:ee},...re,children:v.jsx(Tse,{ownerState:{...I,state:ee},className:O.wrapper,ref:H,children:v.jsx(Sse,{ownerState:{...I,state:ee},className:O.wrapperInner,children:o})})})})});dh&&(dh.muiSupportAuto=!0);const Cse=k.createContext(void 0);function _se(){return k.useContext(Cse)}function QI(e){try{return e.matches(":focus-visible")}catch{}return!1}class Xy{static create(){return new Xy}static use(){const t=OL(Xy.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.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=kse(),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 Ase(){return Xy.use()}function kse(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function wse(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:d}=e,[p,h]=k.useState(!1),g=cr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+o},b=cr(n.child,p&&n.childLeaving,r&&n.childPulsate);return!l&&!p&&h(!0),k.useEffect(()=>{if(!l&&u!=null){const x=setTimeout(u,d);return()=>{clearTimeout(x)}}},[u,l,d]),v.jsx("span",{className:g,style:y,children:v.jsx("span",{className:b})})}const fa=hd("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),yT=550,Dse=80,Rse=tl`
275
- 0% {
276
- transform: scale(0);
277
- opacity: 0.1;
278
- }
279
-
280
- 100% {
281
- transform: scale(1);
282
- opacity: 0.3;
283
- }
284
- `,Ise=tl`
285
- 0% {
286
- opacity: 1;
287
- }
288
-
289
- 100% {
290
- opacity: 0;
291
- }
292
- `,Ose=tl`
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
- `,Nse=Un("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Pse=Un(wse,{name:"MuiTouchRipple",slot:"Ripple"})`
305
- opacity: 0;
306
- position: absolute;
307
-
308
- &.${fa.rippleVisible} {
309
- opacity: 0.3;
310
- transform: scale(1);
311
- animation-name: ${Rse};
312
- animation-duration: ${yT}ms;
313
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
314
- }
315
-
316
- &.${fa.ripplePulsate} {
317
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
318
- }
319
-
320
- & .${fa.child} {
321
- opacity: 1;
322
- display: block;
323
- width: 100%;
324
- height: 100%;
325
- border-radius: 50%;
326
- background-color: currentColor;
327
- }
328
-
329
- & .${fa.childLeaving} {
330
- opacity: 0;
331
- animation-name: ${Ise};
332
- animation-duration: ${yT}ms;
333
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
334
- }
335
-
336
- & .${fa.childPulsate} {
337
- position: absolute;
338
- /* @noflip */
339
- left: 0px;
340
- top: 0;
341
- animation-name: ${Ose};
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
- `,Lse=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...s}=n,[l,u]=k.useState([]),d=k.useRef(0),p=k.useRef(null);k.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=k.useRef(!1),g=NL(),y=k.useRef(null),b=k.useRef(null),x=k.useCallback(w=>{const{pulsate:R,rippleX:I,rippleY:O,rippleSize:F,cb:j}=w;u(H=>[...H,v.jsx(Pse,{classes:{ripple:cr(o.ripple,fa.ripple),rippleVisible:cr(o.rippleVisible,fa.rippleVisible),ripplePulsate:cr(o.ripplePulsate,fa.ripplePulsate),child:cr(o.child,fa.child),childLeaving:cr(o.childLeaving,fa.childLeaving),childPulsate:cr(o.childPulsate,fa.childPulsate)},timeout:yT,pulsate:R,rippleX:I,rippleY:O,rippleSize:F},d.current)]),d.current+=1,p.current=j},[o]),S=k.useCallback((w={},R={},I=()=>{})=>{const{pulsate:O=!1,center:F=r||R.pulsate,fakeElement:j=!1}=R;if(w?.type==="mousedown"&&h.current){h.current=!1;return}w?.type==="touchstart"&&(h.current=!0);const H=j?null:b.current,C=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,$,z;if(F||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)M=Math.round(C.width/2),$=Math.round(C.height/2);else{const{clientX:q,clientY:Y}=w.touches&&w.touches.length>0?w.touches[0]:w;M=Math.round(q-C.left),$=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 q=Math.max(Math.abs((H?H.clientWidth:0)-M),M)*2+2,Y=Math.max(Math.abs((H?H.clientHeight:0)-$),$)*2+2;z=Math.sqrt(q**2+Y**2)}w?.touches?y.current===null&&(y.current=()=>{x({pulsate:O,rippleX:M,rippleY:$,rippleSize:z,cb:I})},g.start(Dse,()=>{y.current&&(y.current(),y.current=null)})):x({pulsate:O,rippleX:M,rippleY:$,rippleSize:z,cb:I})},[r,x,g]),T=k.useCallback(()=>{S({},{pulsate:!0})},[S]),D=k.useCallback((w,R)=>{if(g.clear(),w?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{D(w,R)});return}y.current=null,u(I=>I.length>0?I.slice(1):I),p.current=R},[g]);return k.useImperativeHandle(t,()=>({pulsate:T,start:S,stop:D}),[T,S,D]),v.jsx(Nse,{className:cr(fa.root,o.root,a),ref:b,...s,children:v.jsx(PC,{component:null,exit:!0,children:l})})});function Mse(e){return fd("MuiButtonBase",e)}const Fse=hd("MuiButtonBase",["root","disabled","focusVisible"]),Bse=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ph({root:["root",t&&"disabled",n&&"focusVisible"]},Mse,o);return n&&r&&(a.root+=` ${r}`),a},jse=Un("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"},[`&.${Fse.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Use=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:l="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:w,onKeyDown:R,onKeyUp:I,onMouseDown:O,onMouseLeave:F,onMouseUp:j,onTouchEnd:H,onTouchMove:C,onTouchStart:M,tabIndex:$=0,TouchRippleProps:z,touchRippleRef:q,type:Y,...B}=n,X=k.useRef(null),ae=Ase(),te=Fy(ae.ref,q),[N,oe]=k.useState(!1);u&&N&&oe(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{oe(!0),X.current.focus()}}),[]);const K=ae.shouldMount&&!d&&!u;k.useEffect(()=>{N&&h&&!d&&ae.pulsate()},[d,h,N,ae]);const P=$i(ae,"start",O,p),ee=$i(ae,"stop",S,p),ce=$i(ae,"stop",T,p),re=$i(ae,"stop",j,p),be=$i(ae,"stop",Ue=>{N&&Ue.preventDefault(),F&&F(Ue)},p),ye=$i(ae,"start",M,p),Ge=$i(ae,"stop",H,p),Me=$i(ae,"stop",C,p),Oe=$i(ae,"stop",Ue=>{QI(Ue.target)||oe(!1),b&&b(Ue)},!1),Qe=Xg(Ue=>{X.current||(X.current=Ue.currentTarget),QI(Ue.target)&&(oe(!0),w&&w(Ue)),D&&D(Ue)}),nt=()=>{const Ue=X.current;return l&&l!=="button"&&!(Ue.tagName==="A"&&Ue.href)},Re=Xg(Ue=>{h&&!Ue.repeat&&N&&Ue.key===" "&&ae.stop(Ue,()=>{ae.start(Ue)}),Ue.target===Ue.currentTarget&&nt()&&Ue.key===" "&&Ue.preventDefault(),R&&R(Ue),Ue.target===Ue.currentTarget&&nt()&&Ue.key==="Enter"&&!u&&(Ue.preventDefault(),x&&x(Ue))}),gt=Xg(Ue=>{h&&Ue.key===" "&&N&&!Ue.defaultPrevented&&ae.stop(Ue,()=>{ae.pulsate(Ue)}),I&&I(Ue),x&&Ue.target===Ue.currentTarget&&nt()&&Ue.key===" "&&!Ue.defaultPrevented&&x(Ue)});let At=l;At==="button"&&(B.href||B.to)&&(At=y);const je={};At==="button"?(je.type=Y===void 0?"button":Y,je.disabled=u):(!B.href&&!B.to&&(je.role="button"),u&&(je["aria-disabled"]=u));const mt=Fy(t,X),lt={...n,centerRipple:o,component:l,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:$,focusVisible:N},ft=Bse(lt);return v.jsxs(jse,{as:At,className:cr(ft.root,s),ownerState:lt,onBlur:Oe,onClick:x,onContextMenu:ee,onFocus:Qe,onKeyDown:Re,onKeyUp:gt,onMouseDown:P,onMouseLeave:be,onMouseUp:re,onDragLeave:ce,onTouchEnd:Ge,onTouchMove:Me,onTouchStart:ye,ref:mt,tabIndex:u?-1:$,type:Y,...je,...B,children:[a,K?v.jsx(Lse,{ref:te,center:o,...z}):null]})});function $i(e,t,n,r=!1){return Xg(o=>(n&&n(o),r||e[t](o),!0))}function Hse(e){return fd("PrivateSwitchBase",e)}hd("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function zse(e){return typeof e=="string"}function $se(e,t,n){return e===void 0||zse(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Vse(e,t,n){return typeof e=="function"?e(t,n):e}function Gse(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 XI(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 qse(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=cr(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=Gse({...o,...r}),l=XI(r),u=XI(o),d=t(s),p=cr(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...l};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function bT(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...g}=a,y=p[e]||r,b=Vse(h[e],o),{props:{component:x,...S},internalRef:T}=qse({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),D=Fy(T,b?.ref,t.ref),w=e==="root"?x||d:x,R=$se(y,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...S,...w&&!l&&{as:w},...w&&l&&{component:w},ref:D},o);return[y,R]}const Wse=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${za(o)}`],input:["input"]};return Ph(a,Hse,t)},Yse=Un(Use)({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}}]}),Kse=Un("input",{shouldForwardProp:vC})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Qse=k.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!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:w,type:R,value:I,slots:O={},slotProps:F={},...j}=e,[H,C]=dre({controlled:r,default:!!a}),M=_se(),$=ee=>{S&&S(ee),M&&M.onFocus&&M.onFocus(ee)},z=ee=>{b&&b(ee),M&&M.onBlur&&M.onBlur(ee)},q=ee=>{if(ee.nativeEvent.defaultPrevented)return;const ce=ee.target.checked;C(ce),x&&x(ee,ce)};let Y=s;M&&typeof Y>"u"&&(Y=M.disabled);const B=R==="checkbox"||R==="radio",X={...e,checked:H,disabled:Y,disableFocusRipple:l,edge:u},ae=Wse(X),te={slots:O,slotProps:{input:h,...F}},[N,oe]=bT("root",{ref:t,elementType:Yse,className:ae.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...j},getSlotProps:ee=>({...ee,onFocus:ce=>{ee.onFocus?.(ce),$(ce)},onBlur:ce=>{ee.onBlur?.(ce),z(ce)}}),ownerState:X,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:Y,role:void 0,tabIndex:null}}),[K,P]=bT("input",{ref:g,elementType:Kse,className:ae.input,externalForwardedProps:te,getSlotProps:ee=>({...ee,onChange:ce=>{ee.onChange?.(ce),q(ce)}}),ownerState:X,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:Y,id:B?p:void 0,name:y,readOnly:T,required:D,tabIndex:w,type:R,...R==="checkbox"&&I===void 0?{}:{value:I}}});return v.jsxs(N,{...oe,children:[v.jsx(K,{...P}),H?o:d]})}),Xse=Rn(v.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"})),Zse=Rn(v.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"})),Jse=Rn(v.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 ele(e){return fd("MuiCheckbox",e)}const RE=hd("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function tle(e){return typeof e.main=="string"}function nle(e,t=[]){if(!tle(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&&nle(t,e)}const rle=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${za(r)}`,`size${za(o)}`]},s=Ph(a,ele,t);return{...t,...s}},ole=Un(Qse,{shouldForwardProp:e=>vC(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${za(n.size)}`],n.color!=="default"&&t[`color${za(n.color)}`]]}})(EC(({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})`:Jx(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})`:Jx(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ZI()).map(([t])=>({props:{color:t},style:{[`&.${RE.checked}, &.${RE.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${RE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ale=v.jsx(Zse,{}),ile=v.jsx(Xse,{}),sle=v.jsx(Jse,{}),PL=k.forwardRef(function(e,t){const n=pd({props:e,name:"MuiCheckbox"}),{checkedIcon:r=ale,color:o="primary",icon:a=ile,indeterminate:s=!1,indeterminateIcon:l=sle,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:g={},slotProps:y={},...b}=n,x=s?l:a,S=s?l:r,T={...n,disableRipple:p,color:o,indeterminate:s,size:d},D=rle(T),w=y.input??u,[R,I]=bT("root",{ref:t,elementType:ole,className:cr(D.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...b},ownerState:T,additionalProps:{type:"checkbox",icon:k.cloneElement(x,{fontSize:x.props.fontSize??d}),checkedIcon:k.cloneElement(S,{fontSize:S.props.fontSize??d}),disableRipple:p,slots:g,slotProps:{input:pre(typeof w=="function"?w(T):w,{"data-indeterminate":s})}}});return v.jsx(R,{...I,classes:D})});function Xu(...e){const t=k.useRef(void 0),n=k.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a?.())}},e);return k.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function lle(e){return typeof e=="string"}function cle(e,t,n){return e===void 0||lle(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function la(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 JI(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 ule(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=cr(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=la({...o,...r}),l=JI(r),u=JI(o),d=t(s),p=cr(d?.className,n?.className,a,o?.className,r?.className),h={...d?.style,...n?.style,...o?.style,...r?.style},g={...d,...n,...u,...l};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:d.ref}}function Wi(e,t,n){return typeof e=="function"?e(t,n):e}function zl(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,s=o?{}:Wi(n,r),{props:l,internalRef:u}=ule({...a,externalSlotProps:s}),d=Xu(u,s?.ref,e.additionalProps?.ref);return cle(t,{...l,ref:d},r)}function LL(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let s="",l=!0;for(let u=0;u<a.length;u+=1){const d=a[u];d&&(s+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(s+=" "+n[d]))}r[o]=s}return r}function ML(e){return cse}const FL=k.createContext(null);function dle(e){const{value:t,children:n}=e;return v.jsx(FL.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const hc=()=>{const e=k.useContext(FL);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},fle=({props:e})=>{const{instance:t}=hc(),{label:n,itemId:r}=e,[o,a]=k.useState(n),s=t.isItemBeingEdited(r);return k.useEffect(()=>{s||a(n)},[s,n]),{propsEnhancers:{labelInput:({externalEventHandlers:l,interactions:u})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:d=>{l.onChange?.(d),a(d.target.value)},onKeyDown:d=>{if(l.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=>{l.onBlur?.(d),!d.defaultMuiPrevented&&d.target.value&&u.handleSaveItemLabel(d,d.target.value)},autoFocus:!0,type:"text"}:{}}}},xa=({instance:e,state:t,setState:n,params:r})=>{const o=k.useRef(t.editedItemId),a=h=>o.current===h,s=h=>{n(g=>at({},g,{editedItemId:h})),o.current=h},l=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:l,updateItemLabel:p,isItemEditable:d,isTreeViewEditable:u,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:p}}};xa.itemPlugin=fle;xa.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return at({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};xa.getInitialState=()=>({editedItemId:null});xa.params={onItemLabelChange:!0,isItemEditable:!0};const Yl=(e,t)=>e.getAvailablePlugins().has(t),BL=e=>Array.isArray(e)?e.length>0&&e.some(BL):!!e,ple=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:o}=hc(),a={expandable:BL(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)},l=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=()=>{Yl(n,xa)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:s,handleSelection:l,handleCheckboxSelection:u,toggleItemEditing:d,handleSaveItemLabel:(p,h)=>{Yl(n,xa)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,h),d(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{Yl(n,xa)&&n.isItemBeingEditedRef(e)&&(d(),n.focusItem(p,e))}},status:a,publicAPI:o}},MC=k.createContext(()=>-1),jL=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},UL=(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:UL(e,n.parentId);let s=r[a],l=jL(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&l!=null;)s=l,l=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},ey=(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},HL=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=jL(e,n);if(r==null)return t;t=r}return t},fh=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),zL=(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 l=r.parentId,u=o.parentId,d=s.indexOf(l)!==-1,p=a.indexOf(u)!==-1,h=!0,g=!0;for(;!p&&!d;)h&&(a.push(l),d=s.indexOf(l)!==-1,h=l!==null,!d&&h&&(l=e.getItemMeta(l).parentId)),g&&!d&&(s.push(u),p=a.indexOf(u)!==-1,g=u!==null,!p&&g&&(u=e.getItemMeta(u).parentId));const y=d?l: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]},hle=(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]=zL(e,t,n),s=[o];let l=o;for(;l!==a;)l=r(l),e.isItemDisabled(l)||s.push(l);return s},mle=e=>{let t=fh(e);const n=[];for(;t!=null;)n.push(t),t=ey(e,t);return n},ph=(e,t)=>t!==e.closest('*[role="treeitem"]');let eO=0;const gle=()=>(eO+=1,`mui-tree-view-${eO}`),FC=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,yle=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:o},selection:{disableSelection:a,checkboxSelection:s},expansion:{expansionTrigger:l},treeId:u,instance:d,publicAPI:p}=hc(),h=k.useContext(MC),{id:g,itemId:y,label:b,children:x,rootRef:S}=e,{rootRef:T,contentRef:D,propsEnhancers:w}=t(e),{interactions:R,status:I}=ple({itemId:y,children:x}),O=k.useRef(null),F=k.useRef(null),j=Xu(S,T,O),H=Xu(D,F),C=k.useRef(null),M=FC({itemId:y,treeId:u,id:g}),$=d.canItemBeTabbed(y)?0:-1,z={rootRefObject:O,contentRefObject:F,interactions:R},q=K=>P=>{if(K.onFocus?.(P),P.defaultMuiPrevented)return;const ee=!I.disabled||r;!I.focused&&ee&&P.currentTarget===P.target&&d.focusItem(P,y)},Y=K=>P=>{if(K.onBlur?.(P),P.defaultMuiPrevented)return;const ee=d.getItemDOMElement(y);I.editing||P.relatedTarget&&ph(P.relatedTarget,ee)&&(P.target&&P.target?.dataset?.element==="labelInput"&&ph(P.target,ee)||P.relatedTarget?.dataset?.element==="labelInput")||d.removeFocusedItem()},B=K=>P=>{K.onKeyDown?.(P),!(P.defaultMuiPrevented||P.target?.dataset?.element==="labelInput")&&d.handleItemKeyDown(P,y)},X=K=>P=>{K.onDoubleClick?.(P),!P.defaultMuiPrevented&&R.toggleItemEditing()},ae=K=>P=>{K.onClick?.(P),n?.(P,y),!(P.defaultMuiPrevented||C.current?.contains(P.target))&&(l==="content"&&R.handleExpansion(P),s||R.handleSelection(P))},te=K=>P=>{K.onMouseDown?.(P),!P.defaultMuiPrevented&&(P.shiftKey||P.ctrlKey||P.metaKey||I.disabled)&&P.preventDefault()},N=K=>P=>{K.onChange?.(P),!P.defaultMuiPrevented&&(a||I.disabled||R.handleCheckboxSelection(P))},oe=K=>P=>{K.onClick?.(P),!P.defaultMuiPrevented&&l==="iconContainer"&&R.handleExpansion(P)};return{getRootProps:(K={})=>{const P=at({},la(e),la(K));let ee;I.selected?ee=!0:a||I.disabled?ee=void 0:ee=!1;const ce=at({},P,{ref:j,role:"treeitem",tabIndex:$,id:M,"aria-expanded":I.expandable?I.expanded:void 0,"aria-selected":ee,"aria-disabled":I.disabled||void 0},K,{onFocus:q(P),onBlur:Y(P),onKeyDown:B(P)});o&&(ce.style={"--TreeView-itemDepth":typeof h=="function"?h(y):h});const re=w.root?.(at({},z,{externalEventHandlers:P}))??{};return at({},ce,re)},getContentProps:(K={})=>{const P=la(K),ee=at({},P,K,{ref:H,onClick:ae(P),onMouseDown:te(P),status:I});o&&(ee.indentationAtItemLevel=!0);const ce=w.content?.(at({},z,{externalEventHandlers:P}))??{};return at({},ee,ce)},getGroupTransitionProps:(K={})=>{const P=la(K),ee=at({},P,{unmountOnExit:!0,component:"ul",role:"group",in:I.expanded,children:x},K);return o&&(ee.indentationAtItemLevel=!0),ee},getIconContainerProps:(K={})=>{const P=la(K);return at({},P,K,{onClick:oe(P)})},getCheckboxProps:(K={})=>{const P=la(K);return at({},P,{visible:s,ref:C,checked:I.selected,disabled:a||I.disabled,tabIndex:-1},K,{onChange:N(P)})},getLabelProps:(K={})=>{const P=at({},la(K)),ee=at({},P,{children:b},K,{onDoubleClick:X(P)});return d.isTreeViewEditable&&(ee.editable=I.editable),ee},getLabelInputProps:(K={})=>{const P=la(K),ee=w.labelInput?.({rootRefObject:O,contentRefObject:F,externalEventHandlers:P,interactions:R})??{};return at({},K,ee)},getDragAndDropOverlayProps:(K={})=>{const P=la(K),ee=w.dragAndDropOverlay?.(at({},z,{externalEventHandlers:P}))??{};return at({},K,ee)},rootRef:j,status:I,publicAPI:p}},ble=yle;function $L(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:s}}=hc(),l=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=w=>{if(!h){d||t.focusItem(w,e);const R=r&&(w.shiftKey||w.ctrlKey||w.metaKey);l&&!(R&&t.isItemExpanded(e))&&t.toggleItemExpansion(w,e)}},x=w=>{h||(d||t.focusItem(w,e),r&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:!0}):t.selectItem({event:w,itemId:e,shouldBeSelected:!0}))},S=w=>{if(a||h)return;const R=w.nativeEvent.shiftKey;r&&R?t.expandSelectionRange(w,e):t.selectItem({event:w,itemId:e,keepExistingSelection:r,shouldBeSelected:w.target.checked})},T=w=>{(w.shiftKey||w.ctrlKey||w.metaKey||h)&&w.preventDefault()},D=()=>{Yl(t,xa)&&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:(w,R)=>{Yl(t,xa)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,R),D(),t.focusItem(w,e))},handleCancelItemLabelEditing:w=>{Yl(t,xa)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(w,e))}}}const vle=Un("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ug(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})`:It(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 Ele(e){return e.action==null?null:v.jsx(vle,at({},e))}const xle=Un("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}`}})),Tle=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],VL=k.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:s,label:l,itemId:u,onClick:d,onMouseDown:p,dragAndDropOverlayProps:h,labelInputProps:g}=e,y=Xi(e,Tle),{disabled:b,expanded:x,selected:S,focused:T,editing:D,editable:w,disableSelection:R,checkboxSelection:I,handleExpansion:O,handleSelection:F,handleCheckboxSelection:j,handleContentClick:H,preventSelection:C,expansionTrigger:M,toggleItemEditing:$}=$L(u),z=s||a||o,q=k.useRef(null),Y=ae=>{C(ae),p&&p(ae)},B=ae=>{H?.(ae,u),!q.current?.contains(ae.target)&&(M==="content"&&O(ae),I||F(ae),d&&d(ae))},X=ae=>{ae.defaultMuiPrevented||$()};return v.jsxs("div",at({},y,{className:cr(n.root,r,x&&n.expanded,S&&n.selected,T&&n.focused,b&&n.disabled,D&&n.editing,w&&n.editable),onClick:B,onMouseDown:Y,ref:t,children:[v.jsx("div",{className:n.iconContainer,children:z}),I&&v.jsx(PL,{className:n.checkbox,checked:S,onChange:j,disabled:b||R,ref:q,tabIndex:-1}),D?v.jsx(xle,at({},g,{className:n.labelInput})):v.jsx("div",at({className:n.label},w&&{onDoubleClick:X},{children:l})),h&&v.jsx(Ele,at({},h))]}))}),tO=e=>e,Sle=()=>{let e=tO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tO}}},Cle=Sle(),_le={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 BC(e,t,n="Mui"){const r=_le[t];return r?`${n}-${r}`:`${Cle.generate(e)}-${t}`}function GL(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=BC(e,o,n)}),r}function Ale(e){return BC("MuiTreeItem",e)}const Vi=GL("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),qL=Rn(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),WL=Rn(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function jC(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=hc();return r({children:t,itemId:n,instance:o})}jC.propTypes={children:iI.node,itemId:iI.string.isRequired};const kle=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],wle=["ownerState"],Dle=["ownerState"],Rle=["ownerState"],Ile=ML(),Ole=e=>{const{classes:t}=e;return LL({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"]},Ale,t)},Nle=Un("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Ple=Un(VL,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Vi.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Vi.label}`]:t.label}],shouldForwardProp:e=>Ks(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"}},[`&.${Vi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Vi.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(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}))`:It(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})`:It(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Vi.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Vi.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Vi.label}`]:at({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Vi.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Lle=Un(dh,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ks(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),Mle=k.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:s},expansion:{expansionTrigger:l},treeId:u,instance:d}=hc(),p=k.useContext(MC),h=Ile({props:e,name:"MuiTreeItem"}),{children:g,className:y,slots:b,slotProps:x,ContentComponent:S=VL,ContentProps:T,itemId:D,id:w,label:R,onClick:I,onMouseDown:O,onBlur:F,onKeyDown:j}=h,H=Xi(h,kle),{expanded:C,focused:M,selected:$,disabled:z,editing:q,handleExpansion:Y,handleCancelItemLabelEditing:B,handleSaveItemLabel:X}=$L(D),{contentRef:ae,rootRef:te,propsEnhancers:N}=r(h),oe=k.useRef(null),K=k.useRef(null),P=Xu(t,te,oe),ee=Xu(T?.ref,ae,K),ce={expandIcon:b?.expandIcon??n.slots.expandIcon??qL,collapseIcon:b?.collapseIcon??n.slots.collapseIcon??WL,endIcon:b?.endIcon??n.slots.endIcon,icon:b?.icon,groupTransition:b?.groupTransition},re=Se=>Array.isArray(Se)?Se.length>0&&Se.some(re):!!Se,be=re(g),ye=at({},h,{expanded:C,focused:M,selected:$,disabled:z,indentationAtItemLevel:a}),Ge=Ole(ye),Me=ce.groupTransition??void 0,Oe=zl({elementType:Me,ownerState:{},externalSlotProps:x?.groupTransition,additionalProps:at({unmountOnExit:!0,in:C,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:Ge.groupTransition}),Qe=Se=>{l==="iconContainer"&&Y(Se)},nt=C?ce.collapseIcon:ce.expandIcon,Re=zl({elementType:nt,ownerState:{},externalSlotProps:Se=>C?at({},Wi(n.slotProps.collapseIcon,Se),Wi(x?.collapseIcon,Se)):at({},Wi(n.slotProps.expandIcon,Se),Wi(x?.expandIcon,Se)),additionalProps:{onClick:Qe}}),gt=Xi(Re,wle),At=be&&nt?v.jsx(nt,at({},gt)):null,je=be?void 0:ce.endIcon,mt=zl({elementType:je,ownerState:{},externalSlotProps:Se=>be?{}:at({},Wi(n.slotProps.endIcon,Se),Wi(x?.endIcon,Se))}),lt=Xi(mt,Dle),ft=je?v.jsx(je,at({},lt)):null,Ue=ce.icon,Le=zl({elementType:Ue,ownerState:{},externalSlotProps:x?.icon}),Jt=Xi(Le,Rle),Ut=Ue?v.jsx(Ue,at({},Jt)):null;let kt;$?kt=!0:s||z?kt=void 0:kt=!1;function de(Se){!M&&(!z||o)&&Se.currentTarget===Se.target&&d.focusItem(Se,D)}function ge(Se){F?.(Se),!(q||Se.relatedTarget&&ph(Se.relatedTarget,oe.current)&&(Se.target&&Se.target?.dataset?.element==="labelInput"&&ph(Se.target,oe.current)||Se.relatedTarget?.dataset?.element==="labelInput"))&&d.removeFocusedItem()}const ze=Se=>{j?.(Se),Se.target?.dataset?.element!=="labelInput"&&d.handleItemKeyDown(Se,D)},Xe=FC({itemId:D,treeId:u,id:w}),Et=d.canItemBeTabbed(D)?0:-1,Je={rootRefObject:oe,contentRefObject:K,interactions:{handleSaveItemLabel:X,handleCancelItemLabelEditing:B}},en=N.root?.(at({},Je,{externalEventHandlers:la(H)}))??{},zt=N.content?.(at({},Je,{externalEventHandlers:la(T)}))??{},Ke=N.dragAndDropOverlay?.(at({},Je,{externalEventHandlers:{}}))??{},Ee=N.labelInput?.(at({},Je,{externalEventHandlers:{}}))??{};return v.jsx(jC,{itemId:D,children:v.jsxs(Nle,at({className:cr(Ge.root,y),role:"treeitem","aria-expanded":be?C:void 0,"aria-selected":kt,"aria-disabled":z||void 0,id:Xe,tabIndex:Et},H,{ownerState:ye,onFocus:de,onBlur:ge,onKeyDown:ze,ref:P,style:a?at({},H.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):H.style},en,{children:[v.jsx(Ple,at({as:S,classes:{root:Ge.content,expanded:Ge.expanded,selected:Ge.selected,focused:Ge.focused,disabled:Ge.disabled,editable:Ge.editable,editing:Ge.editing,iconContainer:Ge.iconContainer,label:Ge.label,labelInput:Ge.labelInput,checkbox:Ge.checkbox},label:R,itemId:D,onClick:I,onMouseDown:O,icon:Ut,expansionIcon:At,displayIcon:ft,ownerState:ye},T,zt,Ke.action==null?{}:{dragAndDropOverlayProps:Ke},Ee.value==null?{}:{labelInputProps:Ee},{ref:ee})),g&&v.jsx(Lle,at({as:Me},Oe,{children:g}))]}))})});function Fle(e){const{slots:t,slotProps:n,status:r}=e,o=hc(),a=at({},o.icons.slots,{expandIcon:o.icons.slots.expandIcon??qL,collapseIcon:o.icons.slots.collapseIcon??WL}),s=o.icons.slotProps;let l;t?.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const u=t?.[l]??a[l],d=zl({elementType:u,externalSlotProps:p=>at({},Wi(s[l],p),Wi(n?.[l],p)),ownerState:{}});return u?v.jsx(u,at({},d)):null}const Ble=["visible"],jle=Un("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Ule=Un("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Ks(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})`:It(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}))`:It(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})`:It(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}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),Hle=Un("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Ks(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"}}]})),zle=Un("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});Un(dh,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ks(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Un(k.forwardRef((e,t)=>{const{visible:n}=e,r=Xi(e,Ble);return n?v.jsx(PL,at({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function $le(e){return BC("MuiRichTreeView",e)}GL("MuiRichTreeView",["root"]);const Vle=(e,t)=>{const n=k.useRef({}),[r,o]=k.useState(()=>{const a={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([l,u])=>{n.current[l]={isControlled:t[l]!==void 0,getDefaultValue:u.getDefaultValue},a[l]=u.getDefaultValue(t)})}),a});return Object.fromEntries(Object.entries(n.current).map(([a,s])=>{const l=t[a]??r[a];return[a,{value:l,setControlledValue:u=>{s.isControlled||o(d=>at({},d,{[a]:u}))}}]}))};class Gle{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 l=o[s];r.highPriority.has(l)&&l.apply(this,n)}for(let s=0;s<a.length;s+=1){const l=a[s];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...a){r.removeListener(t,o),n.apply(r,a)})}}const qle=e=>e.isPropagationStopped!==void 0,YL=()=>{const[e]=k.useState(()=>new Gle),t=k.useCallback((...r)=>{const[o,a,s={}]=r;s.defaultMuiPrevented=!1,!(qle(s)&&s.isPropagationStopped())&&e.emit(o,a,s)},[e]),n=k.useCallback((r,o)=>(e.on(r,o),()=>{e.removeListener(r,o)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};YL.params={};const KL=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};KL.params={};const UC=({params:e,state:t,setState:n})=>{k.useEffect(()=>{n(o=>o.id.treeId===e.id&&o.id.treeId!==void 0?o:at({},o,{id:at({},o.id,{treeId:e.id??gle()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};UC.params={id:!0};UC.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const Wle=[YL,KL,UC],Yle=["slots","slotProps","apiRef","experimentalFeatures"],Kle=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,s=Xi(e.props,Yle);const l={};a.forEach(g=>{Object.assign(l,g.params)});const u={},d={};Object.keys(s).forEach(g=>{const y=s[g];l[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}},Qle=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:o=>{let a=null,s=null;const l=[],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&&(l.push(g.propsEnhancers),Object.keys(g.propsEnhancers).forEach(y=>{u[y]=!0}))});const d=h=>g=>{const y={};return l.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 l=e.length-1;l>=0;l-=1){const u=e[l];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 l=e[s];l.wrapRoot&&(a=l.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});function Xle(e){const t=k.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Zle=({plugins:e,rootRef:t,props:n})=>{const r=[...Wle,...e],{pluginParams:o,forwardedProps:a,apiRef:s,experimentalFeatures:l,slots:u,slotProps:d}=Kle({plugins:r,props:n}),p=Vle(r,o),h=k.useRef({}).current,g=Xle(s),y=k.useRef(null),b=Xu(y,t),x=Qle({plugins:r,instance:h,publicAPI:g,rootRef:y}),[S,T]=k.useState(()=>{const R={};return r.forEach(I=>{I.getInitialState&&Object.assign(R,I.getInitialState(o))}),R}),D=[],w=R=>{const I=R({instance:h,params:o,slots:u,slotProps:d,experimentalFeatures:l,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(w),{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}},Jle=(e,t,n)=>{e.$$publishEvent(t,n)},Tu="__TREE_VIEW_ROOT_PARENT_ID__",ece=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},tce=["children"],QL=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},s={[Tu]:[]},l=(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??Tu;s[b]||(s[b]=[]),s[b].push(g),d.children?.forEach(x=>l(x,p+1,g))};e.forEach(d=>l(d,0,null));const u={};return Object.keys(s).forEach(d=>{u[d]=ece(s[d])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:s,itemChildrenIndexes:u}},Vh=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=k.useCallback(S=>n.items.itemMetaMap[S],[n.items.itemMetaMap]),s=k.useCallback(S=>n.items.itemMap[S],[n.items.itemMap]),l=k.useCallback(()=>{const S=T=>{const D=n.items.itemMap[T],w=Xi(D,tce),R=n.items.itemOrderedChildrenIds[T];return R&&(w.children=R.map(S)),w};return n.items.itemOrderedChildrenIds[Tu].map(S)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),u=k.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=k.useCallback(S=>{const T=e.getItemMeta(S).parentId??Tu;return n.items.itemChildrenIndexes[T][S]},[e,n.items.itemChildrenIndexes]),p=k.useCallback(S=>n.items.itemOrderedChildrenIds[S??Tu]??[],[n.items.itemOrderedChildrenIds]),h=S=>{const T=e.getItemMeta(S);return T==null?null:document.getElementById(FC({treeId:n.id.treeId,itemId:S,id:T.idAttribute}))},g=S=>t.disabledItemsFocusable?!0:!e.isItemDisabled(S),y=k.useRef(!1),b=k.useCallback(()=>{y.current=!0},[]),x=k.useCallback(()=>y.current,[]);return k.useEffect(()=>{e.areItemUpdatesPrevented()||r(S=>{const T=QL({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(S.items.itemMetaMap).forEach(D=>{T.itemMetaMap[D.id]||Jle(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:l,getItemOrderedChildrenIds:p},instance:{getItemMeta:a,getItem:s,getItemTree:l,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[Tu].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}}}};Vh.getInitialState=e=>({items:QL({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Vh.getDefaultizedParams=({params:e})=>at({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Vh.wrapRoot=({children:e,instance:t})=>v.jsx(MC.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Vh.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const nce=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Pu(e){const t=k.useRef(e);return nce(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}const gb=({instance:e,params:t,models:n})=>{const r=k.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=k.useCallback(h=>r.has(h),[r]),s=k.useCallback(h=>!!e.getItemMeta(h)?.expandable,[e]),l=Pu((h,g)=>{const y=e.isItemExpanded(g);e.setItemExpansion(h,g,!y)}),u=Pu((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=k.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:l,expandAllSiblings:d},contextValue:{expansion:{expansionTrigger:p}}}};gb.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const rce=[];gb.getDefaultizedParams=({params:e})=>at({},e,{defaultExpandedItems:e.defaultExpandedItems??rce});gb.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const ty=e=>Array.isArray(e)?e:e!=null?[e]:[],IE=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},yb=({instance:e,params:t,models:n})=>{const r=k.useRef(null),o=k.useRef({}),a=k.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)},l=p=>a.has(p),u=({event:p,itemId:h,keepExistingSelection:g=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let b;if(g){const x=ty(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=ty(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(y=y.filter(T=>!o.current[T]));const b=IE(y),x=hle(e,h,g),S=x.filter(T=>!b[T]);y=y.concat(S),s(p,y),o.current=IE(x)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:u},instance:{isItemSelected:l,selectItem:u,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const h=mle(e);s(p,h),o.current=IE(h)},expandSelectionRange:(p,h)=>{if(r.current!=null){const[g,y]=zL(e,h,r.current);d(p,[g,y])}},selectRangeFromStartToItem:(p,h)=>{d(p,[fh(e),h])},selectRangeFromItemToEnd:(p,h)=>{d(p,[h,HL(e)])},selectItemFromArrowNavigation:(p,h,g)=>{if(t.disableSelection||!t.multiSelect)return;let y=ty(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}}}};yb.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const oce=[];yb.getDefaultizedParams=({params:e})=>at({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?oce:null)});yb.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};function ace(e){return e&&e.ownerDocument||document}const nO=1e3;class ice{constructor(t=nO){this.timeouts=new Map,this.cleanupTimeout=nO,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 sce{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 lce{}function cce(e){let t=0;return function(n,r,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new sce:new ice);const[a]=k.useState(new lce),s=k.useRef(null),l=k.useRef(void 0);l.current=o;const u=k.useRef(null);if(!s.current&&l.current){const d=(p,h)=>{h.defaultMuiPrevented||l.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!l.current&&s.current&&(s.current(),s.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));k.useEffect(()=>{if(!s.current&&l.current){const d=(p,h)=>{h.defaultMuiPrevented||l.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 uce={registry:null},dce=cce(uce),XL=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?XL(t.shadowRoot):t:null},fce=(e,t)=>{let n=ty(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=fh(e)),n},HC=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const s=fce(e,o.selectedItems.value),l=Pu(S=>{const T=typeof S=="function"?S(n.focusedItemId):S;n.focusedItemId!==T&&r(D=>at({},D,{focusedItemId:T}))}),u=k.useCallback(()=>!!a.current&&a.current.contains(XL(ace(a.current))),[a]),d=k.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(),l(T),t.onItemFocus&&t.onItemFocus(S,T)},g=Pu((S,T)=>{p(T)&&h(S,T)}),y=Pu(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const S=e.getItemDOMElement(n.focusedItemId);S&&S.blur()}l(null)}}),b=S=>S===s;dce(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}}};HC.getInitialState=()=>({focusedItemId:null});HC.params={onItemFocus:!0};function pce(e){return!!e&&e.length===1&&!!e.match(/\S/)}const ZL=({instance:e,params:t,state:n})=>{const r=hne(),o=k.useRef({}),a=Pu(d=>{o.current=d(o.current)});k.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=ey(e,S);return T===null?fh(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},l=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||ph(d.target,d.currentTarget))return;const h=d.ctrlKey||d.metaKey,g=d.key;switch(!0){case(g===" "&&l(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":{Yl(e,xa)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):u(p)?(e.toggleItemExpansion(d,p),d.preventDefault()):l(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=ey(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&l(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case g==="ArrowUp":{const y=UL(e,p);y&&(d.preventDefault(),e.focusItem(d,y),t.multiSelect&&d.shiftKey&&l(y)&&e.selectItemFromArrowNavigation(d,p,y));break}case(g==="ArrowRight"&&!r||g==="ArrowLeft"&&r):{if(h)return;if(e.isItemExpanded(p)){const y=ey(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":{l(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromStartToItem(d,p):e.focusItem(d,fh(e)),d.preventDefault();break}case g==="End":{l(p)&&t.multiSelect&&h&&d.shiftKey?e.selectRangeFromItemToEnd(d,p):e.focusItem(d,HL(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&&pce(g)):{const y=s(p,g);y!=null&&(e.focusItem(d,y),d.preventDefault());break}}}}}};ZL.params={};const JL=({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}}}});JL.params={};const hce=[Vh,gb,yb,HC,ZL,JL,xa],mce=["ownerState"];function gce({slots:e,slotProps:t,label:n,id:r,itemId:o,itemsToRender:a}){const s=e?.item??Mle,l=zl({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:o,id:r,label:n},ownerState:{itemId:o,label:n}}),u=Xi(l,mce),d=k.useMemo(()=>a?v.jsx(eM,{itemsToRender:a,slots:e,slotProps:t}):null,[a,e,t]);return v.jsx(s,at({},u,{children:d}))}function eM(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return v.jsx(k.Fragment,{children:t.map(o=>v.jsx(gce,{slots:n,slotProps:r,label:o.label,id:o.id,itemId:o.itemId,itemsToRender:o.children},o.itemId))})}const yce=ML(),bce=e=>{const{classes:t}=e;return LL({root:["root"]},$le,t)},vce=Un("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Ece=k.forwardRef(function(e,t){const n=yce({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:o,instance:a}=Zle({plugins:hce,rootRef:t,props:n}),{slots:s,slotProps:l}=n,u=bce(n),d=s?.root??vce,p=zl({elementType:d,externalSlotProps:l?.root,className:u.root,getSlotProps:r,ownerState:n});return v.jsx(dle,{value:o,children:v.jsx(d,at({},p,{children:v.jsx(eM,{slots:s,slotProps:l,itemsToRender:a.getItemsToRender()})}))})}),xce=Rn(v.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"})),Tce=Rn([v.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"),v.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Sce=Rn(v.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"})),Cce=Rn(v.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function tM({items:e,defaultExpandedItems:t,navigate:n}){return v.jsx(Ece,{items:Dce(e,n),defaultExpandedItems:t,slots:{item:wce}})}const _ce=Hee(dh);function Ace(e){const t=kee({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return v.jsx(_ce,{style:t,...e})}function kce({item:e,...t}){const n=v.jsxs(Hle,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&v.jsx(xce,{})||e.fileType==="notebook"&&v.jsx(Tce,{})||e.fileType==="model"&&v.jsx(Cce,{})||e.fileType=="database"&&v.jsx(Sce,{})||v.jsx(kL,{}),v.jsx(He,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?v.jsx(lr,{title:e.error,placement:"right",children:n}):n}const wce=k.forwardRef(function(e,t){const{id:n,itemId:r,label:o,children:a,disabled:s,...l}=e,{getRootProps:u,getContentProps:d,getLabelProps:p,getIconContainerProps:h,getGroupTransitionProps:g,status:y,publicAPI:b}=ble({id:n,itemId:r,children:a,label:o,disabled:s,rootRef:t}),x=b.getItem(r);return y.selected=!1,y.focused=!1,v.jsx(jC,{itemId:r,children:v.jsxs(jle,{...u(l),children:[v.jsxs(Ule,{...d(),...x.link&&{onClick:S=>x.link(S)},sx:{pointerEvents:!x.selectable&&"none"},children:[v.jsx(zle,{...h(),children:v.jsx(Fle,{status:y})}),v.jsx(kce,{...p({item:x})})]}),a&&v.jsx(Ace,{...g()})]})})});function Dce(e,t){const n=new Map;return e.map(r=>{let o=n;const a=r.path.split("/");a.forEach((s,l)=>{l===a.length-1?o.set(s,r):(o.has(s)||o.set(s,new Map),o=o.get(s))})}),nM(n,"",t)}function nM(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 l=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 l?l.error:void 0})}else t+=`${a}/`,r.push({id:t,label:a,fileType:"directory",selectable:!0,link:void 0,children:nM(o,t,n)})}),r}const Rce=new mb(new Vr),Ice=["notebooks/","models/"];function Oce({navigate:e}){const{projectName:t,packageName:n,versionId:r}=uo(),{data:o,isError:a,error:s,isSuccess:l}=Jr({queryKey:["models",t,n,r],queryFn:u=>Rce.listModels(t,n,r,u)});return v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),v.jsx(Er,{}),v.jsxs(Nt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!l&&!a&&v.jsx(Zr,{text:"Fetching Models..."}),a&&v.jsx($r,{error:s,context:`${t} > ${n} > Models`}),l&&o.data.length>0&&v.jsx(tM,{items:o.data.sort((u,d)=>u.path.localeCompare(d.path)),navigate:e,defaultExpandedItems:Ice}),l&&o.data.length===0&&v.jsx(He,{variant:"body2",children:"No models found"})]})]})})}const Nce=new bL(new Vr),Pce=["notebooks/"];function Lce({navigate:e}){const{projectName:t,packageName:n,versionId:r}=uo(),{data:o,isError:a,error:s,isSuccess:l}=Jr({queryKey:["notebooks",t,n,r],queryFn:u=>Nce.listNotebooks(t,n,r,u)});return v.jsx(Ar,{variant:"outlined",sx:{width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),v.jsx(Er,{}),v.jsxs(Nt,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!l&&!a&&v.jsx(Zr,{text:"Fetching Notebooks..."}),a&&v.jsx($r,{error:s,context:`${t} > ${n} > Notebooks`}),l&&o.data.length>0&&v.jsx(tM,{items:o.data.sort((u,d)=>u.path.localeCompare(d.path)),defaultExpandedItems:Pce,navigate:e}),l&&o.data.length===0&&v.jsx(He,{variant:"body2",children:"No notebooks found"})]})]})})}const Mce=new Nie(new Vr);function Fce(){const{projectName:e,packageName:t,versionId:n}=uo(),{data:r,isError:o,isLoading:a,error:s}=Jr({queryKey:["schedules",e,t,n],queryFn:l=>Mce.listSchedules(e,t,n,l)});return a?v.jsx(Zr,{text:"Fetching Schedules..."}):o?v.jsx($r,{error:s,context:`${e} > ${t} > Schedules`}):r.data.length?v.jsx(Ar,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:v.jsxs(Ko,{children:[v.jsx(He,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),v.jsx(Er,{}),v.jsx(Nt,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:v.jsx(FS,{component:Ji,children:v.jsxs(Gp,{sx:{minWidth:300},size:"small",children:[v.jsx(_y,{children:v.jsxs(ui,{children:[v.jsx(xn,{align:"left",children:"Resource"}),v.jsx(xn,{align:"left",children:"Schedule"}),v.jsx(xn,{align:"left",children:"Action"}),v.jsx(xn,{align:"left",children:"Connection"}),v.jsx(xn,{align:"left",children:"Last Run"}),v.jsx(xn,{align:"left",children:"Status"})]})}),v.jsx(qp,{children:r.data.map(l=>v.jsxs(ui,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[v.jsx(xn,{align:"left",children:l.resource}),v.jsx(xn,{align:"left",children:l.schedule}),v.jsx(xn,{align:"left",children:l.action}),v.jsx(xn,{align:"left",children:l.connection}),v.jsx(xn,{align:"left",children:l.lastRunTime?new Date(l.lastRunTime).toLocaleString():"n/a"}),v.jsx(xn,{align:"left",children:l.lastRunStatus})]},l.resource))})]})})})]})}):null}const Bce="README.malloynb";function jce({navigate:e}){return e||(e=t=>{window.location.href=t}),v.jsxs(Kn,{container:!0,spacing:2,columns:12,children:[v.jsx(Kn,{size:{xs:12,md:4},children:v.jsx(Vie,{})}),v.jsx(Kn,{size:{xs:12,md:4},children:v.jsx(Lce,{navigate:e})}),v.jsx(Kn,{size:{xs:12,md:4},children:v.jsx(Oce,{navigate:e})}),v.jsx(Kn,{size:{xs:12,md:6},children:v.jsx(ose,{})}),v.jsx(Kn,{size:{xs:12,md:6},children:v.jsx(nse,{})}),v.jsx(Kn,{size:{xs:12,md:12},children:v.jsx(Fce,{})}),v.jsx(Kn,{size:{xs:12,md:12},children:v.jsx(AL,{notebookPath:Bce,hideEmbeddingIcons:!0})})]})}const Uce=ke(bu)({display:"flex",flexDirection:"column",height:"100%"});function Hce({modelPath:e,sourceName:t,queryName:n,expandResult:r,hideResultIcon:o,expandEmbedding:a,hideEmbeddingIcon:s,noView:l,annotations:u}){const[d,p]=Fe.useState(r),[h,g]=Fe.useState(a),[y,b]=Fe.useState(),[x,S]=Fe.useState(),{packageName:T,projectName:D}=uo(),w=SL({modelPath:e,sourceName:t,queryName:n,optionalPackageName:T,optionalProjectName:D});return k.useEffect(()=>{ac(w,"typescript").then(R=>{b(R)})},[h,w]),k.useEffect(()=>{if(u&&u.length>0){const R=u.map(I=>`// ${I}`).join(`
353
- `);ac(R,"typescript").then(I=>{S(I)})}},[u]),v.jsx(v.Fragment,{children:v.jsxs(Uce,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[v.jsxs(fn,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[v.jsx(He,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${l?"":"View >"} ${n}`}),v.jsxs(N0,{sx:{padding:"0px"},children:[!o&&v.jsx(lr,{title:d?"Hide Results":"Show Results",children:v.jsx(or,{size:"small",onClick:()=>{p(!d)},children:v.jsx(vie,{})})}),!s&&v.jsx(lr,{title:h?"Hide Sharing":"Show Sharing",children:v.jsx(or,{size:"small",onClick:()=>{g(!h)},children:v.jsx(Fh,{})})})]})]}),v.jsxs(Ma,{in:h,timeout:"auto",unmountOnExit:!0,children:[v.jsx(Er,{}),v.jsxs(fn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:y}})}),v.jsx(lr,{title:"Copy Embeddable Code",children:v.jsx(or,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(w)},children:v.jsx(lb,{})})})]})]}),v.jsxs(Ma,{in:d,timeout:"auto",unmountOnExit:!0,children:[v.jsx(Er,{sx:{mb:"4px"}}),x&&v.jsxs(v.Fragment,{children:[v.jsx(fn,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx(He,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:x}})})}),v.jsx(Er,{sx:{mb:"4px"}})]}),v.jsx(vu,{children:v.jsx(Fie,{modelPath:e,sourceName:t,queryName:n})})]})]})})}const zce=new RC(new Vr),$ce=Un(O3)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),Vce=Un(Hr)(({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 rM({sourceAndPaths:e,existingQuery:t,existingSourceName:n,onQueryChange:r,onSourceChange:o}){const[a,s]=Fe.useState(n?e.findIndex(d=>d.sourceInfo.name===n):0),[l,u]=Fe.useState(t||Sp());return Fe.useEffect(()=>{o&&o(a)},[a,o]),v.jsxs(Ar,{variant:"outlined",children:[v.jsx(Ko,{children:v.jsx(tD,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&v.jsx($ce,{children:e.map((d,p)=>v.jsx(Vce,{selected:a===p,onClick:()=>s(p),children:d.sourceInfo.name||`Source ${p+1}`},d.sourceInfo.name||p))})})}),v.jsx(DC,{children:v.jsxs(tD,{spacing:2,component:"section",children:[v.jsx(oM,{sourceAndPath:e[a],existingQuery:l,onChange:d=>{u(d),r&&r(d)}}),v.jsx(O3,{height:"5px"})]})})]})}function Sp(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Gce({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:o}){const[a,s]=Fe.useState(n||Sp()),[l,u]=Fe.useState([]),{MalloyExplorerProvider:d,QueryPanel:p,ResizableCollapsiblePanel:h,ResultPanel:g,SourcePanel:y}=r;Fe.useEffect(()=>{t&&t(a)},[t,a]);const{projectName:b,packageName:x,versionId:S}=uo(),T=Pie({mutationFn:(I,O)=>{const F=new o.ASTQuery({source:e.sourceInfo,query:a?.malloyQuery}).toMalloy();return s({...a,query:F}),zce.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,w]=Fe.useState(e.sourceInfo.name);Fe.useEffect(()=>{D!==e.sourceInfo.name&&(w(e.sourceInfo.name),s(Sp()))},[e,D]);const R=Fe.useCallback(I=>{s({...a,malloyQuery:I,malloyResult:void 0})},[a]);return D!==e.sourceInfo.name?v.jsx("div",{children:"Loading..."}):v.jsx(gL,{children:v.jsx(d,{source:e.sourceInfo,query:a?.malloyQuery,onQueryChange:R,focusedNestViewPath:l,onFocusedNestViewPathChange:u,onDrill:I=>{console.info(I)},children:v.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[v.jsx(h,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:v.jsx(y,{onRefresh:()=>s(Sp())})}),v.jsx(h,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:v.jsx(p,{runQuery:()=>{T.mutate()}})}),v.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 oM(e){const[t,n]=k.useState(null),[r,o]=k.useState(null),[a,s]=k.useState(!0);return k.useEffect(()=>{let l=!0;return Promise.all([G(()=>import("./index-CIfV3yj1.js"),__vite__mapDeps([93,94,95])),G(()=>import("./index-BbW5TZg_.js").then(u=>u.i),[])]).then(([u,d])=>{l&&(n(u),o(d),s(!1))}).catch(u=>{console.error("Failed to load Malloy components:",u),l&&s(!1)}),()=>{l=!1}},[]),a||!t||!r?v.jsx(bie,{children:v.jsx(gL,{children:v.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):v.jsx(Gce,{...e,explorerComponents:t,QueryBuilder:r})}const qce=new mb(new Vr);function aM(e,t){const{projectName:n,packageName:r,versionId:o}=uo(),a=t||o;return Jr({queryKey:["package",n,r,e,a],queryFn:async s=>(await qce.getModel(n,r,e,a,s)).data})}function Wce({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s}){const[l,u]=Fe.useState(0),{data:d,isError:p,isLoading:h,error:g}=aM(e,t);return h?v.jsx(Zr,{text:"Fetching Model..."}):p?(console.log("error",g),v.jsx($r,{error:g,context:`ModelExplorer > ${e}`})):v.jsxs(fn,{spacing:2,component:"section",children:[Array.isArray(d.sourceInfos)&&d.sourceInfos.length>0&&v.jsx(fn,{sx:{flexDirection:"row",justifyContent:"flex-start"},children:v.jsx(YK,{value:l,onChange:(y,b)=>u(b),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:d.sourceInfos.map((y,b)=>{let x;try{x=JSON.parse(y)}catch{x={name:String(b)}}return v.jsx(oK,{label:x.name||`Source ${b+1}`,sx:{minHeight:36}},x.name||b)})})}),Array.isArray(d.sourceInfos)&&d.sourceInfos.length>0&&v.jsx(oM,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(d.sourceInfos[l])},onChange:s}),d.queries?.length>0&&v.jsxs(Ar,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[v.jsx(Ko,{sx:{p:"10px"},children:v.jsx(He,{variant:"subtitle1",children:"Named Queries"})}),v.jsx(fn,{spacing:1,component:"section",children:d.queries.map(y=>v.jsx(Hce,{modelPath:e,queryName:y.name,expandResult:n,hideResultIcon:r,expandEmbedding:o,hideEmbeddingIcon:a,noView:!0,annotations:y.annotations},y.name))}),v.jsx(Nt,{height:"10px"})]}),v.jsx(Nt,{height:"5px"})]})}function Yce({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s}){const[l,u]=Fe.useState(!1),[d,p]=Fe.useState(),{isError:h,isLoading:g,error:y}=aM(e,t),b=Kce(e);return k.useEffect(()=>{ac(b,"typescript").then(x=>{p(x)})},[l,b]),g?v.jsx(Zr,{text:"Fetching Model..."}):h?(console.log("error",y),v.jsx($r,{error:y,context:`Model > ${e}`})):v.jsxs(Ar,{variant:"outlined",children:[v.jsxs(Ko,{children:[v.jsx(fn,{sx:{flexDirection:"row",justifyContent:"flex-end"},children:!a&&v.jsx(N0,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:v.jsx(lr,{title:l?"Hide Embedding":"View Embedding",children:v.jsx(or,{size:"small",onClick:()=>{u(!l)},children:v.jsx(Fh,{})})})})}),v.jsxs(Ma,{in:l,timeout:"auto",unmountOnExit:!0,children:[v.jsx(Er,{}),v.jsxs(fn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[v.jsx(He,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:v.jsx("div",{dangerouslySetInnerHTML:{__html:d}})}),v.jsx(lr,{title:"Copy Embeddable Code",children:v.jsx(or,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(b)},children:v.jsx(lb,{})})})]})]}),v.jsx(Er,{})]}),v.jsx(Wce,{modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:o,hideEmbeddingIcons:a,onChange:s})]})}function Kce(e){return`<Model
354
- modelPath="${e}"
355
- accessToken={accessToken}
356
- />`}const Qce=Rn(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),cu=hS({createStyledComponent:Un("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>pd({props:e,name:"MuiStack"})});function bd(){const e=VT();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 Cp{constructor(t,n,r){this.workbookData=r,this.workbookStorage=t,this.packageContext=n,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;packageContext;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.packageContext,this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.packageContext,this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Cp(this.workbookStorage,this.packageContext,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
357
- `+t.value:`>>>malloy
358
- import {${t.sourceName}}" from '${t.modelPath}'"
359
- `+t.value+`
360
- `).join(`
361
- `)}static newWorkbook(t,n){return new Cp(t,n,void 0)}static async loadWorkbook(t,n,r){let o;console.log("loadWorkbook",r);try{const a=await t.getWorkbook(n,r);a&&(o=JSON.parse(a))}catch{o={models:[],cells:[],workbookPath:r}}return new Cp(t,n,o)}}const iM=k.createContext(void 0),Xce=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return v.jsx(iM.Provider,{value:r,children:n})},zC=()=>{const e=k.useContext(iM);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},_g=Rn(v.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),rO=Rn(v.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 Zy(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 Zi(){return Zi=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},Zi.apply(null,arguments)}function Zce(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 Jce=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eue=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tue={};function oO(e,t){return(tue.jsx?eue:Jce).test(e)}var uu={},OE,aO;function nue(){if(aO)return OE;aO=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
362
- `,d="/",p="*",h="",g="comment",y="declaration";OE=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 w(z){var q=z.match(t);q&&(T+=q.length);var Y=z.lastIndexOf(u);D=~Y?z.length-Y:D+z.length}function R(){var z={line:T,column:D};return function(q){return q.position=new I(z),j(),q}}function I(z){this.start=z,this.end={line:T,column:D},this.source=S.source}I.prototype.content=x;function O(z){var q=new Error(S.source+":"+T+":"+D+": "+z);if(q.reason=z,q.filename=S.source,q.line=T,q.column=D,q.source=x,!S.silent)throw q}function F(z){var q=z.exec(x);if(q){var Y=q[0];return w(Y),x=x.slice(Y.length),q}}function j(){F(n)}function H(z){var q;for(z=z||[];q=C();)q!==!1&&z.push(q);return z}function C(){var z=R();if(!(d!=x.charAt(0)||p!=x.charAt(1))){for(var q=2;h!=x.charAt(q)&&(p!=x.charAt(q)||d!=x.charAt(q+1));)++q;if(q+=2,h===x.charAt(q-1))return O("End of comment missing");var Y=x.slice(2,q-2);return D+=2,w(Y),x=x.slice(q),D+=2,z({type:g,comment:Y})}}function M(){var z=R(),q=F(r);if(q){if(C(),!F(o))return O("property missing ':'");var Y=F(a),B=z({type:y,property:b(q[0].replace(e,h)),value:Y?b(Y[0].replace(e,h)):h});return F(s),B}}function $(){var z=[];H(z);for(var q;q=M();)q!==!1&&(z.push(q),H(z));return z}return j(),$()};function b(x){return x?x.replace(l,h):h}return OE}var iO;function rue(){if(iO)return uu;iO=1;var e=uu&&uu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=n;var t=e(nue());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),l=typeof o=="function";return s.forEach(function(u){if(u.type==="declaration"){var d=u.property,p=u.value;l?o(d,p,u):p&&(a=a||{},a[d]=p)}}),a}return uu}var Gf={},sO;function oue(){if(sO)return Gf;sO=1,Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.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()},l=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,l):d=d.replace(r,l),d.replace(t,s))};return Gf.camelCase=u,Gf}var qf,lO;function aue(){if(lO)return qf;lO=1;var e=qf&&qf.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(rue()),n=oue();function r(o,a){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(l,u){l&&u&&(s[(0,n.camelCase)(l,a)]=u)}),s}return r.default=r,qf=r,qf}var iue=aue();const sue=Z0(iue),bb=sM("end"),Ei=sM("start");function sM(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 lue(e){const t=Ei(e),n=bb(e);if(t&&n)return{start:t,end:n}}function _p(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cO(e.position):"start"in e||"end"in e?cO(e):"line"in e||"column"in e?vT(e):""}function vT(e){return uO(e&&e.line)+":"+uO(e&&e.column)}function cO(e){return vT(e&&e.start)+"-"+vT(e&&e.end)}function uO(e){return e&&typeof e=="number"?e:1}class eo 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 l=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=l?l.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=l?l.line:void 0,this.name=_p(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}}eo.prototype.file="";eo.prototype.name="";eo.prototype.reason="";eo.prototype.message="";eo.prototype.stack="";eo.prototype.column=void 0;eo.prototype.line=void 0;eo.prototype.ancestors=void 0;eo.prototype.cause=void 0;eo.prototype.fatal=void 0;eo.prototype.place=void 0;eo.prototype.ruleId=void 0;eo.prototype.source=void 0;const $C={}.hasOwnProperty,cue=new Map,uue=/[A-Z]/g,due=new Set(["table","tbody","thead","tfoot","tr"]),fue=new Set(["td","th"]),lM="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pue(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=xue(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=Eue(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"?as:gd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=cM(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function cM(e,t,n){if(t.type==="element")return hue(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mue(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yue(e,t,n);if(t.type==="mdxjsEsm")return gue(e,t);if(t.type==="root")return bue(e,t,n);if(t.type==="text")return vue(e,t)}function hue(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=as,e.schema=o),e.ancestors.push(t);const a=dM(e,t.tagName,!1),s=Tue(e,t);let l=GC(e,t);return due.has(t.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!zh(u):!0})),uM(e,s,a,t),VC(s,l),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function mue(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)}hh(e,t.position)}function gue(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);hh(e,t.position)}function yue(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=as,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:dM(e,t.name,!0),s=Sue(e,t),l=GC(e,t);return uM(e,s,a,t),VC(s,l),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function bue(e,t,n){const r={};return VC(r,GC(e,t)),e.create(t,e.Fragment,r,n)}function vue(e,t){return t.value}function uM(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function VC(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Eue(e,t,n){return r;function r(o,a,s,l){const u=Array.isArray(s.children)?n:t;return l?u(a,s,l):u(a,s)}}function xue(e,t){return n;function n(r,o,a,s){const l=Array.isArray(a.children),u=Ei(r);return t(o,a,s,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Tue(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&$C.call(t.properties,o)){const a=Cue(e,o,t.properties[o]);if(a){const[s,l]=a;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&fue.has(t.tagName)?r=l:n[s]=l}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Sue(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 hh(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 hh(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function GC(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:cue;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 l=cM(e,a,s);l!==void 0&&n.push(l)}return n}function Cue(e,t,n){const r=Hh(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?db(n):fb(n)),r.property==="style"){let o=typeof n=="object"?n:_ue(e,String(n));return e.stylePropertyNameCase==="css"&&(o=Aue(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Aoe[r.property]||r.property:r.attribute,n]}}function _ue(e,t){try{return sue(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new eo("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=lM+"#cannot-parse-style-attribute",o}}function dM(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 l=oO(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=s}else r=oO(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return $C.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);hh(e)}function hh(e,t){const n=new eo("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=lM+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Aue(e){const t={};let n;for(n in e)$C.call(e,n)&&(t[kue(n)]=e[n]);return t}function kue(e){let t=e.replace(uue,wue);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function wue(e){return"-"+e.toLowerCase()}const NE={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"]},Due={};function qC(e,t){const n=Due,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return fM(e,r,o)}function fM(e,t,n){if(Rue(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 dO(e.children,t,n)}return Array.isArray(e)?dO(e,t,n):""}function dO(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=fM(e[o],t,n);return r.join("")}function Rue(e){return!!(e&&typeof e=="object")}const fO=document.createElement("i");function WC(e){const t="&"+e+";";fO.innerHTML=t;const n=fO.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function qo(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 ga(e,t){return e.length>0?(qo(e,e.length,0,t),e):t}const pO={}.hasOwnProperty;function pM(e){const t={};let n=-1;for(;++n<e.length;)Iue(t,e[n]);return t}function Iue(e,t){let n;for(n in t){const r=(pO.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){pO.call(r,a)||(r[a]=[]);const s=o[a];Oue(r[a],Array.isArray(s)?s:s?[s]:[])}}}function Oue(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);qo(e,0,0,r)}function hM(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 Ba(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const io=il(/[A-Za-z]/),Xr=il(/[\dA-Za-z]/),Nue=il(/[#-'*+\--9=?A-Z^-~]/);function Jy(e){return e!==null&&(e<32||e===127)}const ET=il(/\d/),Pue=il(/[\dA-Fa-f]/),Lue=il(/[!-/:-@[-`{-~]/);function vt(e){return e!==null&&e<-2}function Dn(e){return e!==null&&(e<0||e===32)}function Qt(e){return e===-2||e===-1||e===32}const vb=il(/\p{P}|\p{S}/u),ic=il(/\s/);function il(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function vd(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&Xr(e.charCodeAt(n+1))&&Xr(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 l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(s=String.fromCharCode(a,l),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 Qt(u)?(e.enter(n),l(u)):t(u)}function l(u){return Qt(u)&&a++<o?(e.consume(u),l):(e.exit(n),t(u))}}const Mue={tokenize:Fue};function Fue(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),nn(e,t,"linePrefix")}function o(l){return e.enter("paragraph"),a(l)}function a(l){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return vt(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),s)}}const Bue={tokenize:jue},hO={tokenize:Uue};function jue(e){const t=this,n=[];let r=0,o,a,s;return l;function l(w){if(r<n.length){const R=n[r];return t.containerState=R[1],e.attempt(R[0].continuation,u,d)(w)}return d(w)}function u(w){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 qo(t.events,I+1,0,t.events.slice(R)),t.events.length=F,d(w)}return l(w)}function d(w){if(r===n.length){if(!o)return g(w);if(o.currentConstruct&&o.currentConstruct.concrete)return b(w);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(hO,p,h)(w)}function p(w){return o&&D(),T(r),g(w)}function h(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(w)}function g(w){return t.containerState={},e.attempt(hO,y,b)(w)}function y(w){return r++,n.push([t.currentConstruct,t.containerState]),g(w)}function b(w){if(w===null){o&&D(),T(0),e.consume(w);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),x(w)}function x(w){if(w===null){S(e.exit("chunkFlow"),!0),T(0),e.consume(w);return}return vt(w)?(e.consume(w),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(w),x)}function S(w,R){const I=t.sliceStream(w);if(R&&I.push(null),w.previous=a,a&&(a.next=w),a=w,o.defineSkip(w.start),o.write(I),t.parser.lazy[w.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 j=F,H,C;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(H){C=t.events[j][1].end;break}H=!0}for(T(r),O=F;O<t.events.length;)t.events[O][1].end={...C},O++;qo(t.events,j+1,0,t.events.slice(F)),t.events.length=O}}function T(w){let R=n.length;for(;R-- >w;){const I=n[R];t.containerState=I[1],I[0].exit.call(t,e)}n.length=w}function D(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function Uue(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 Zu(e){if(e===null||Dn(e)||ic(e))return 1;if(vb(e))return 2}function Eb(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 xT={name:"attention",resolveAll:Hue,tokenize:zue};function Hue(e,t){let n=-1,r,o,a,s,l,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};mO(h,-u),mO(g,u),s={type:u>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},l={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:{...l.end}},e[r][1].end={...s.start},e[n][1].start={...l.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=ga(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=ga(d,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",a,t]]),d=ga(d,Eb(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=ga(d,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=ga(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,qo(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 zue(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Zu(r);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===a)return e.consume(u),l;const d=e.exit("attentionSequence"),p=Zu(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 mO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $ue={name:"autolink",tokenize:Vue};function Vue(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 io(y)?(e.consume(y),s):y===64?n(y):d(y)}function s(y){return y===43||y===45||y===46||Xr(y)?(r=1,l(y)):d(y)}function l(y){return y===58?(e.consume(y),r=0,u):(y===43||y===45||y===46||Xr(y))&&r++<32?(e.consume(y),l):(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||Jy(y)?n(y):(e.consume(y),u)}function d(y){return y===64?(e.consume(y),p):Nue(y)?(e.consume(y),d):n(y)}function p(y){return Xr(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||Xr(y))&&r++<63){const b=y===45?g:h;return e.consume(y),b}return n(y)}}const Gh={partial:!0,tokenize:Gue};function Gue(e,t,n){return r;function r(a){return Qt(a)?nn(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||vt(a)?t(a):n(a)}}const mM={continuation:{tokenize:Wue},exit:Yue,name:"blockQuote",tokenize:que};function que(e,t,n){const r=this;return o;function o(s){if(s===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return Qt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Wue(e,t,n){const r=this;return o;function o(s){return Qt(s)?nn(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(mM,t,n)(s)}}function Yue(e){e.exit("blockQuote")}const gM={name:"characterEscape",tokenize:Kue};function Kue(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 Lue(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const yM={name:"characterReference",tokenize:Que};function Que(e,t,n){const r=this;let o=0,a,s;return l;function l(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=Xr,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=Pue,p):(e.enter("characterReferenceValue"),a=7,s=ET,p(h))}function p(h){if(h===59&&o){const g=e.exit("characterReferenceValue");return s===Xr&&!WC(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 gO={partial:!0,tokenize:Zue},yO={concrete:!0,name:"codeFenced",tokenize:Xue};function Xue(e,t,n){const r=this,o={partial:!0,tokenize:I};let a=0,s=0,l;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,l=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(O)}function p(O){return O===l?(s++,e.consume(O),p):s<3?n(O):(e.exit("codeFencedFenceSequence"),Qt(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(gO,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)):Qt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nn(e,y,"whitespace")(O)):O===96&&O===l?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===l?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&&Qt(O)?nn(e,D,"linePrefix",a+1)(O):D(O)}function D(O){return O===null||vt(O)?e.check(gO,x,R)(O):(e.enter("codeFlowValue"),w(O))}function w(O){return O===null||vt(O)?(e.exit("codeFlowValue"),D(O)):(e.consume(O),w)}function R(O){return e.exit("codeFenced"),t(O)}function I(O,F,j){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"),Qt(Y)?nn(O,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):$(Y)}function $(Y){return Y===l?(O.enter("codeFencedFenceSequence"),z(Y)):j(Y)}function z(Y){return Y===l?(H++,O.consume(Y),z):H>=s?(O.exit("codeFencedFenceSequence"),Qt(Y)?nn(O,q,"whitespace")(Y):q(Y)):j(Y)}function q(Y){return Y===null||vt(Y)?(O.exit("codeFencedFence"),F(Y)):j(Y)}}}function Zue(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 PE={name:"codeIndented",tokenize:ede},Jue={partial:!0,tokenize:tde};function ede(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(Jue,s,u)(d):(e.enter("codeFlowValue"),l(d))}function l(d){return d===null||vt(d)?(e.exit("codeFlowValue"),s(d)):(e.consume(d),l)}function u(d){return e.exit("codeIndented"),t(d)}}function tde(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 l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):vt(s)?o(s):n(s)}}const nde={name:"codeText",previous:ode,resolve:rde,tokenize:ade};function rde(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 ode(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ade(e,t,n){let r=0,o,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,l):(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 ide{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&&Wf(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),Wf(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Wf(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);Wf(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Wf(this.left,n.reverse())}}}function Wf(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 bM(e){const t={};let n=-1,r,o,a,s,l,u,d;const p=new ide(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,sde(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},l=p.slice(o,n),l.unshift(r),p.splice(o,n-o+1,l))}}return qo(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function sde(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 l=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<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[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=l.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 lde={resolve:ude,tokenize:dde},cde={partial:!0,tokenize:fde};function ude(e){return bM(e),e}function dde(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?a(l):vt(l)?e.check(cde,s,a)(l):(e.consume(l),o)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function fde(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 l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function vM(e,t,n,r,o,a,s,l,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||Jy(T)?n(T):(e.enter(r),e.enter(s),e.enter(l),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(l),e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===62?(e.exit("chunkString"),e.exit(l),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||Dn(T))?(e.exit("chunkString"),e.exit(l),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||Jy(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 EM(e,t,n,r,o,a){const s=this;let l=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 l>999||y===null||y===91||y===93&&!u||y===94&&!l&&"_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)||l++>999?(e.exit("chunkString"),p(y)):(e.consume(y),u||(u=!Qt(y)),y===92?g:h)}function g(y){return y===91||y===92||y===93?(e.consume(y),l++,h):h(y)}}function xM(e,t,n,r,o,a){let s;return l;function l(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 Ap(e,t){let n;return r;function r(o){return vt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Qt(o)?nn(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const pde={name:"definition",tokenize:mde},hde={partial:!0,tokenize:gde};function mde(e,t,n){const r=this;let o;return a;function a(y){return e.enter("definition"),s(y)}function s(y){return EM.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function l(y){return o=Ba(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 Dn(y)?Ap(e,d)(y):d(y)}function d(y){return vM(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(hde,h,h)(y)}function h(y){return Qt(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 gde(e,t,n){return r;function r(l){return Dn(l)?Ap(e,o)(l):n(l)}function o(l){return xM(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Qt(l)?nn(e,s,"whitespace")(l):s(l)}function s(l){return l===null||vt(l)?t(l):n(l)}}const yde={name:"hardBreakEscape",tokenize:bde};function bde(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 vde={name:"headingAtx",resolve:Ede,tokenize:xde};function Ede(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"},qo(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function xde(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||Dn(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||vt(p)?(e.exit("atxHeading"),t(p)):Qt(p)?nn(e,l,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),l(p))}function d(p){return p===null||p===35||Dn(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),d)}}const Tde=["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"],bO=["pre","script","style","textarea"],Sde={concrete:!0,name:"htmlFlow",resolveTo:Ade,tokenize:kde},Cde={partial:!0,tokenize:Dde},_de={partial:!0,tokenize:wde};function Ade(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 kde(e,t,n){const r=this;let o,a,s,l,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):io(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,l=0,b):io(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 ee="CDATA[";return P===ee.charCodeAt(l++)?(e.consume(P),l===ee.length?r.interrupt?t:$:b):n(P)}function x(P){return io(P)?(e.consume(P),s=String.fromCharCode(P),S):n(P)}function S(P){if(P===null||P===47||P===62||Dn(P)){const ee=P===47,ce=s.toLowerCase();return!ee&&!a&&bO.includes(ce)?(o=1,r.interrupt?t(P):$(P)):Tde.includes(s.toLowerCase())?(o=6,ee?(e.consume(P),T):r.interrupt?t(P):$(P)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(P):a?D(P):w(P))}return P===45||Xr(P)?(e.consume(P),s+=String.fromCharCode(P),S):n(P)}function T(P){return P===62?(e.consume(P),r.interrupt?t:$):n(P)}function D(P){return Qt(P)?(e.consume(P),D):C(P)}function w(P){return P===47?(e.consume(P),C):P===58||P===95||io(P)?(e.consume(P),R):Qt(P)?(e.consume(P),w):C(P)}function R(P){return P===45||P===46||P===58||P===95||Xr(P)?(e.consume(P),R):I(P)}function I(P){return P===61?(e.consume(P),O):Qt(P)?(e.consume(P),I):w(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):Qt(P)?(e.consume(P),O):j(P)}function F(P){return P===u?(e.consume(P),u=null,H):P===null||vt(P)?n(P):(e.consume(P),F)}function j(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||Dn(P)?I(P):(e.consume(P),j)}function H(P){return P===47||P===62||Qt(P)?w(P):n(P)}function C(P){return P===62?(e.consume(P),M):n(P)}function M(P){return P===null||vt(P)?$(P):Qt(P)?(e.consume(P),M):n(P)}function $(P){return P===45&&o===2?(e.consume(P),B):P===60&&o===1?(e.consume(P),X):P===62&&o===4?(e.consume(P),oe):P===63&&o===3?(e.consume(P),N):P===93&&o===5?(e.consume(P),te):vt(P)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Cde,K,z)(P)):P===null||vt(P)?(e.exit("htmlFlowData"),z(P)):(e.consume(P),$)}function z(P){return e.check(_de,q,K)(P)}function q(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"),$(P))}function B(P){return P===45?(e.consume(P),N):$(P)}function X(P){return P===47?(e.consume(P),s="",ae):$(P)}function ae(P){if(P===62){const ee=s.toLowerCase();return bO.includes(ee)?(e.consume(P),oe):$(P)}return io(P)&&s.length<8?(e.consume(P),s+=String.fromCharCode(P),ae):$(P)}function te(P){return P===93?(e.consume(P),N):$(P)}function N(P){return P===62?(e.consume(P),oe):P===45&&o===2?(e.consume(P),N):$(P)}function oe(P){return P===null||vt(P)?(e.exit("htmlFlowData"),K(P)):(e.consume(P),oe)}function K(P){return e.exit("htmlFlow"),t(P)}}function wde(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 Dde(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Gh,t,n)}}const Rde={name:"htmlText",tokenize:Ide};function Ide(e,t,n){const r=this;let o,a,s;return l;function l(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),w):io(N)?(e.consume(N),j):n(N)}function d(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,b):io(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,X(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 oe="CDATA[";return N===oe.charCodeAt(a++)?(e.consume(N),a===oe.length?x:b):n(N)}function x(N){return N===null?n(N):N===93?(e.consume(N),S):vt(N)?(s=x,X(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,X(N)):(e.consume(N),D)}function w(N){return N===null?n(N):N===63?(e.consume(N),R):vt(N)?(s=w,X(N)):(e.consume(N),w)}function R(N){return N===62?B(N):w(N)}function I(N){return io(N)?(e.consume(N),O):n(N)}function O(N){return N===45||Xr(N)?(e.consume(N),O):F(N)}function F(N){return vt(N)?(s=F,X(N)):Qt(N)?(e.consume(N),F):B(N)}function j(N){return N===45||Xr(N)?(e.consume(N),j):N===47||N===62||Dn(N)?H(N):n(N)}function H(N){return N===47?(e.consume(N),B):N===58||N===95||io(N)?(e.consume(N),C):vt(N)?(s=H,X(N)):Qt(N)?(e.consume(N),H):B(N)}function C(N){return N===45||N===46||N===58||N===95||Xr(N)?(e.consume(N),C):M(N)}function M(N){return N===61?(e.consume(N),$):vt(N)?(s=M,X(N)):Qt(N)?(e.consume(N),M):H(N)}function $(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=$,X(N)):Qt(N)?(e.consume(N),$):(e.consume(N),q)}function z(N){return N===o?(e.consume(N),o=void 0,Y):N===null?n(N):vt(N)?(s=z,X(N)):(e.consume(N),z)}function q(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Dn(N)?H(N):(e.consume(N),q)}function Y(N){return N===47||N===62||Dn(N)?H(N):n(N)}function B(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function X(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),ae}function ae(N){return Qt(N)?nn(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):te(N)}function te(N){return e.enter("htmlTextData"),s(N)}}const YC={name:"labelEnd",resolveAll:Lde,resolveTo:Mde,tokenize:Fde},Ode={tokenize:Bde},Nde={tokenize:jde},Pde={tokenize:Ude};function Lde(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&&qo(e,0,e.length,n),e}function Mde(e,t){let n=e.length,r=0,o,a,s,l;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 l=[["enter",u,t],["enter",d,t]],l=ga(l,e.slice(a+1,a+r+3)),l=ga(l,[["enter",p,t]]),l=ga(l,Eb(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),l=ga(l,[["exit",p,t],e[s-2],e[s-1],["exit",d,t]]),l=ga(l,e.slice(s+1)),l=ga(l,[["exit",u,t]]),qo(e,a,e.length,l),e}function Fde(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 l;function l(g){return a?a._inactive?h(g):(s=r.parser.defined.includes(Ba(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(Ode,p,s?p:h)(g):g===91?e.attempt(Nde,p,s?d:h)(g):s?p(g):h(g)}function d(g){return e.attempt(Pde,p,h)(g)}function p(g){return t(g)}function h(g){return a._balanced=!0,n(g)}}function Bde(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 Dn(h)?Ap(e,a)(h):a(h)}function a(h){return h===41?p(h):vM(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return Dn(h)?Ap(e,u)(h):p(h)}function l(h){return n(h)}function u(h){return h===34||h===39||h===40?xM(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function d(h){return Dn(h)?Ap(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 jde(e,t,n){const r=this;return o;function o(l){return EM.call(r,e,a,s,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(Ba(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function Ude(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 Hde={name:"labelStartImage",resolveAll:YC.resolveAll,tokenize:zde};function zde(e,t,n){const r=this;return o;function o(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const $de={name:"labelStartLink",resolveAll:YC.resolveAll,tokenize:Vde};function Vde(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 LE={name:"lineEnding",tokenize:Gde};function Gde(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),nn(e,t,"linePrefix")}}const ny={name:"thematicBreak",tokenize:qde};function qde(e,t,n){let r=0,o;return a;function a(d){return e.enter("thematicBreak"),s(d)}function s(d){return o=d,l(d)}function l(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"),Qt(d)?nn(e,l,"whitespace")(d):l(d))}}const Eo={continuation:{tokenize:Qde},exit:Zde,name:"list",tokenize:Kde},Wde={partial:!0,tokenize:Jde},Yde={partial:!0,tokenize:Xde};function Kde(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 l;function l(y){const b=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:ET(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(ny,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 ET(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(Gh,r.interrupt?n:p,e.attempt(Wde,g,h))}function p(y){return r.containerState.initialBlankLine=!0,a++,g(y)}function h(y){return Qt(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 Qde(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Gh,o,a);function o(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nn(e,t,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!Qt(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Yde,t,s)(l))}function s(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,nn(e,e.attempt(Eo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Xde(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 Zde(e){e.exit(this.containerState.type)}function Jde(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!Qt(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const vO={name:"setextUnderline",resolveTo:efe,tokenize:tfe};function efe(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 tfe(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"),l(d)}function l(d){return d===o?(e.consume(d),l):(e.exit("setextHeadingLineSequence"),Qt(d)?nn(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||vt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const nfe={tokenize:rfe};function rfe(e){const t=this,n=e.attempt(Gh,r,e.attempt(this.parser.constructs.flowInitial,o,nn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(lde,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 ofe={resolveAll:SM()},afe=TM("string"),ife=TM("text");function TM(e){return{resolveAll:SM(e==="text"?sfe:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,s,l);return s;function s(p){return d(p)?a(p):l(p)}function l(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 SM(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 sfe(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,l=0,u;for(;a--;){const d=o[a];if(typeof d=="string"){for(s=d.length;d.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(d===-2)u=!0,l++;else if(d!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const d={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},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 lfe={42:Eo,43:Eo,45:Eo,48:Eo,49:Eo,50:Eo,51:Eo,52:Eo,53:Eo,54:Eo,55:Eo,56:Eo,57:Eo,62:mM},cfe={91:pde},ufe={[-2]:PE,[-1]:PE,32:PE},dfe={35:vde,42:ny,45:[vO,ny],60:Sde,61:vO,95:ny,96:yO,126:yO},ffe={38:yM,92:gM},pfe={[-5]:LE,[-4]:LE,[-3]:LE,33:Hde,38:yM,42:xT,60:[$ue,Rde],91:$de,92:[yde,gM],93:YC,95:xT,96:nde},hfe={null:[xT,ofe]},mfe={null:[42,95]},gfe={null:[]},yfe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:mfe,contentInitial:cfe,disable:gfe,document:lfe,flow:dfe,flowInitial:ufe,insideSpan:hfe,string:ffe,text:pfe},Symbol.toStringTag,{value:"Module"}));function bfe(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=[],l=[];const u={attempt:F(I),check:F(O),consume:D,enter:w,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=ga(s,M),S(),s[s.length-1]!==null?[]:(j(t,0),d.events=Eb(a,d.events,d),d.events)}function g(M,$){return Efe(y(M),$)}function y(M){return vfe(s,M)}function b(){const{_bufferIndex:M,_index:$,line:z,column:q,offset:Y}=r;return{_bufferIndex:M,_index:$,line:z,column:q,offset:Y}}function x(M){o[M.line]=M.column,C()}function S(){let M;for(;r._index<s.length;){const $=s[r._index];if(typeof $=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<$.length;)T($.charCodeAt(r._bufferIndex));else T($)}}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 w(M,$){const z=$||{};return z.type=M,z.start=b(),d.events.push(["enter",z,d]),l.push(z),z}function R(M){const $=l.pop();return $.end=b(),d.events.push(["exit",$,d]),$}function I(M,$){j(M,$.from)}function O(M,$){$.restore()}function F(M,$){return z;function z(q,Y,B){let X,ae,te,N;return Array.isArray(q)?K(q):"tokenize"in q?K([q]):oe(q);function oe(re){return be;function be(ye){const Ge=ye!==null&&re[ye],Me=ye!==null&&re.null,Oe=[...Array.isArray(Ge)?Ge:Ge?[Ge]:[],...Array.isArray(Me)?Me:Me?[Me]:[]];return K(Oe)(ye)}}function K(re){return X=re,ae=0,re.length===0?B:P(re[ae])}function P(re){return be;function be(ye){return N=H(),te=re,re.partial||(d.currentConstruct=re),re.name&&d.parser.constructs.disable.null.includes(re.name)?ce():re.tokenize.call($?Object.assign(Object.create(d),$):d,u,ee,ce)(ye)}}function ee(re){return M(te,N),Y}function ce(re){return N.restore(),++ae<X.length?P(X[ae]):B}}}function j(M,$){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&qo(d.events,$,d.events.length-$,M.resolve(d.events.slice($),d)),M.resolveTo&&(d.events=M.resolveTo(d.events,d))}function H(){const M=b(),$=d.previous,z=d.currentConstruct,q=d.events.length,Y=Array.from(l);return{from:q,restore:B};function B(){r=M,d.previous=$,d.currentConstruct=z,d.events.length=q,l=Y,C()}}function C(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function vfe(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 l=s[0];typeof l=="string"?s[0]=l.slice(r):s.shift()}a>0&&s.push(e[o].slice(0,a))}return s}function Efe(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 xfe(e){const t={constructs:pM([yfe,...(e||{}).extensions||[]]),content:n(Mue),defined:[],document:n(Bue),flow:n(nfe),lazy:{},string:n(afe),text:n(ife)};return t;function n(r){return o;function o(a){return bfe(t,r,a)}}}function Tfe(e){for(;!bM(e););return e}const EO=/[\0\t\n\r]/g;function Sfe(){let e=1,t="",n=!0,r;return o;function o(a,s,l){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(EO.lastIndex=h,d=EO.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 l&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Cfe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _fe(e){return e.replace(Cfe,Afe)}function Afe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return hM(n.slice(o?2:1),o?16:10)}return WC(n)||e}const CM={}.hasOwnProperty;function kfe(e,t,n){return typeof t!="string"&&(n=t,t=void 0),wfe(n)(Tfe(xfe(n).document().write(Sfe()(e,t,!0))))}function wfe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(lt),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(gt),blockQuote:a(Me),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(Re),hardBreakEscape:a(At),hardBreakTrailing:a(At),htmlFlow:a(je,s),htmlFlowData:H,htmlText:a(je,s),htmlTextData:H,image:a(mt),label:s,link:a(lt),listItem:a(Ue),listItemValue:g,listOrdered:a(ft,h),listUnordered:a(ft),paragraph:a(Le),reference:P,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(gt),strong:a(Jt),thematicBreak:a(kt)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:Ge,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:re,characterReference:be,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:w,emphasis:u(),hardBreakEscape:u($),hardBreakTrailing:u($),htmlFlow:u(z),htmlFlowData:C,htmlText:u(q),htmlTextData:C,image:u(X),label:te,labelText:ae,lineEnding:M,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ee,resourceDestinationString:N,resourceTitleString:oe,resource:K,setextHeading:u(j),setextHeadingLineSequence:F,setextHeadingText:O,strong:u(),thematicBreak:u()}};_M(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(de){let ge={type:"root",children:[]};const ze={stack:[ge],tokenStack:[],config:t,enter:l,exit:d,buffer:s,resume:p,data:n},Xe=[];let Et=-1;for(;++Et<de.length;)if(de[Et][1].type==="listOrdered"||de[Et][1].type==="listUnordered")if(de[Et][0]==="enter")Xe.push(Et);else{const Je=Xe.pop();Et=o(de,Je,Et)}for(Et=-1;++Et<de.length;){const Je=t[de[Et][0]];CM.call(Je,de[Et][1].type)&&Je[de[Et][1].type].call(Object.assign({sliceSerialize:de[Et][2].sliceSerialize},ze),de[Et][1])}if(ze.tokenStack.length>0){const Je=ze.tokenStack[ze.tokenStack.length-1];(Je[1]||xO).call(ze,void 0,Je[0])}for(ge.position={start:Bs(de.length>0?de[0][1].start:{line:1,column:1,offset:0}),end:Bs(de.length>0?de[de.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(de,ge,ze){let Xe=ge-1,Et=-1,Je=!1,en,zt,Ke,Ee;for(;++Xe<=ze;){const Se=de[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(zt=void 0;ht--;){const rt=de[ht];if(rt[1].type==="lineEnding"||rt[1].type==="lineEndingBlank"){if(rt[0]==="exit")continue;zt&&(de[zt][1].type="lineEndingBlank",Je=!0),rt[1].type="lineEnding",zt=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&&(!zt||Ke<zt)&&(en._spread=!0),en.end=Object.assign({},zt?de[zt][1].start:Se[1].end),de.splice(zt||Xe,0,["exit",en,Se[2]]),Xe++,ze++}if(Se[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};en=ht,de.splice(Xe,0,["enter",ht,Se[2]]),Xe++,ze++,Ke=void 0,Ee=!0}}}return de[ge][1]._spread=Je,ze}function a(de,ge){return ze;function ze(Xe){l.call(this,de(Xe),Xe),ge&&ge.call(this,Xe)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(de,ge,ze){this.stack[this.stack.length-1].children.push(de),this.stack.push(de),this.tokenStack.push([ge,ze||void 0]),de.position={start:Bs(ge.start),end:void 0}}function u(de){return ge;function ge(ze){de&&de.call(this,ze),d.call(this,ze)}}function d(de,ge){const ze=this.stack.pop(),Xe=this.tokenStack.pop();if(Xe)Xe[0].type!==de.type&&(ge?ge.call(this,de,Xe[0]):(Xe[1]||xO).call(this,de,Xe[0]));else throw new Error("Cannot close `"+de.type+"` ("+_p({start:de.start,end:de.end})+"): it’s not open");ze.position.end=Bs(de.end)}function p(){return qC(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(de){if(this.data.expectingFirstListItemValue){const ge=this.stack[this.stack.length-2];ge.start=Number.parseInt(this.sliceSerialize(de),10),this.data.expectingFirstListItemValue=void 0}}function y(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.lang=de}function b(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.meta=de}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de.replace(/(\r?\n|\r)$/g,"")}function D(de){const ge=this.resume(),ze=this.stack[this.stack.length-1];ze.label=ge,ze.identifier=Ba(this.sliceSerialize(de)).toLowerCase()}function w(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.title=de}function R(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.url=de}function I(de){const ge=this.stack[this.stack.length-1];if(!ge.depth){const ze=this.sliceSerialize(de).length;ge.depth=ze}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function F(de){const ge=this.stack[this.stack.length-1];ge.depth=this.sliceSerialize(de).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function H(de){const ge=this.stack[this.stack.length-1].children;let ze=ge[ge.length-1];(!ze||ze.type!=="text")&&(ze=Ut(),ze.position={start:Bs(de.start),end:void 0},ge.push(ze)),this.stack.push(ze)}function C(de){const ge=this.stack.pop();ge.value+=this.sliceSerialize(de),ge.position.end=Bs(de.end)}function M(de){const ge=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ze=ge.children[ge.children.length-1];ze.position.end=Bs(de.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ge.type)&&(H.call(this,de),C.call(this,de))}function $(){this.data.atHardBreak=!0}function z(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de}function q(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de}function Y(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.value=de}function B(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ge,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function X(){const de=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";de.type+="Reference",de.referenceType=ge,delete de.url,delete de.title}else delete de.identifier,delete de.label;this.data.referenceType=void 0}function ae(de){const ge=this.sliceSerialize(de),ze=this.stack[this.stack.length-2];ze.label=_fe(ge),ze.identifier=Ba(ge).toLowerCase()}function te(){const de=this.stack[this.stack.length-1],ge=this.resume(),ze=this.stack[this.stack.length-1];if(this.data.inReference=!0,ze.type==="link"){const Xe=de.children;ze.children=Xe}else ze.alt=ge}function N(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.url=de}function oe(){const de=this.resume(),ge=this.stack[this.stack.length-1];ge.title=de}function K(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function ee(de){const ge=this.resume(),ze=this.stack[this.stack.length-1];ze.label=ge,ze.identifier=Ba(this.sliceSerialize(de)).toLowerCase(),this.data.referenceType="full"}function ce(de){this.data.characterReferenceType=de.type}function re(de){const ge=this.sliceSerialize(de),ze=this.data.characterReferenceType;let Xe;ze?(Xe=hM(ge,ze==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Xe=WC(ge);const Et=this.stack[this.stack.length-1];Et.value+=Xe}function be(de){const ge=this.stack.pop();ge.position.end=Bs(de.end)}function ye(de){C.call(this,de);const ge=this.stack[this.stack.length-1];ge.url=this.sliceSerialize(de)}function Ge(de){C.call(this,de);const ge=this.stack[this.stack.length-1];ge.url="mailto:"+this.sliceSerialize(de)}function Me(){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 Re(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:0,children:[]}}function At(){return{type:"break"}}function je(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function lt(){return{type:"link",title:null,url:"",children:[]}}function ft(de){return{type:"list",ordered:de.type==="listOrdered",start:null,spread:de._spread,children:[]}}function Ue(de){return{type:"listItem",spread:de._spread,checked:null,children:[]}}function Le(){return{type:"paragraph",children:[]}}function Jt(){return{type:"strong",children:[]}}function Ut(){return{type:"text",value:""}}function kt(){return{type:"thematicBreak"}}}function Bs(e){return{line:e.line,column:e.column,offset:e.offset}}function _M(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?_M(e,r):Dfe(e,r)}}function Dfe(e,t){let n;for(n in t)if(CM.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 xO(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+_p({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_p({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_p({start:t.start,end:t.end})+") is still open")}function Rfe(e){const t=this;t.parser=n;function n(r){return kfe(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ife(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 Ofe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
365
- `}]}function Nfe(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 Pfe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lfe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Mfe(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=vd(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,l+=1,e.footnoteCounts.set(r,l);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),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 Ffe(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 Bfe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function AM(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 jfe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return AM(e,t);const o={src:vd(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 Ufe(e,t){const n={src:vd(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 Hfe(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 zfe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return AM(e,t);const o={href:vd(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 $fe(e,t){const n={href:vd(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 Vfe(e,t,n){const r=e.all(t),o=n?Gfe(n):kM(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 l=-1;for(;++l<r.length;){const p=r[l];(o||l!==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 Gfe(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=kM(n[r])}return t}function kM(e){return e.spread??e.children.length>1}function qfe(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 Wfe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yfe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Kfe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qfe(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)},l=Ei(t.children[1]),u=bb(t.children[t.children.length-1]);l&&u&&(s.position={start:l,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 Xfe(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 l=-1;const u=[];for(;++l<s;){const p=t.children[l],h={},g=a?a[l]: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 Zfe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const TO=9,SO=32;function Jfe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(CO(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(CO(t.slice(o),o>0,!1)),a.join("")}function CO(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===TO||a===SO;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===TO||a===SO;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function epe(e,t){const n={type:"text",value:Jfe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function tpe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const npe={blockquote:Ife,break:Ofe,code:Nfe,delete:Pfe,emphasis:Lfe,footnoteReference:Mfe,heading:Ffe,html:Bfe,imageReference:jfe,image:Ufe,inlineCode:Hfe,linkReference:zfe,link:$fe,listItem:Vfe,list:qfe,paragraph:Wfe,root:Yfe,strong:Kfe,table:Qfe,tableCell:Zfe,tableRow:Xfe,text:epe,thematicBreak:tpe,toml:Ag,yaml:Ag,definition:Ag,footnoteDefinition:Ag};function Ag(){}const wM=-1,xb=0,kp=1,e0=2,KC=3,QC=4,XC=5,ZC=6,DM=7,RM=8,_O=typeof self=="object"?self:globalThis,rpe=(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 xb:case wM:return n(s,o);case kp:{const l=n([],o);for(const u of s)l.push(r(u));return l}case e0:{const l=n({},o);for(const[u,d]of s)l[r(u)]=r(d);return l}case KC:return n(new Date(s),o);case QC:{const{source:l,flags:u}=s;return n(new RegExp(l,u),o)}case XC:{const l=n(new Map,o);for(const[u,d]of s)l.set(r(u),r(d));return l}case ZC:{const l=n(new Set,o);for(const u of s)l.add(r(u));return l}case DM:{const{name:l,message:u}=s;return n(new _O[l](u),o)}case RM: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:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new _O[a](s),o)};return r},AO=e=>rpe(new Map,e)(0),du="",{toString:ope}={},{keys:ape}=Object,Yf=e=>{const t=typeof e;if(t!=="object"||!e)return[xb,t];const n=ope.call(e).slice(8,-1);switch(n){case"Array":return[kp,du];case"Object":return[e0,du];case"Date":return[KC,du];case"RegExp":return[QC,du];case"Map":return[XC,du];case"Set":return[ZC,du];case"DataView":return[kp,n]}return n.includes("Array")?[kp,n]:n.includes("Error")?[DM,n]:[e0,n]},kg=([e,t])=>e===xb&&(t==="function"||t==="symbol"),ipe=(e,t,n,r)=>{const o=(s,l)=>{const u=r.push(s)-1;return n.set(l,u),u},a=s=>{if(n.has(s))return n.get(s);let[l,u]=Yf(s);switch(l){case xb:{let p=s;switch(u){case"bigint":l=RM,p=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);p=null;break;case"undefined":return o([wM],s)}return o([l,p],s)}case kp:{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([l,p],s);for(const g of s)p.push(a(g));return h}case e0:{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([l,p],s);for(const g of ape(s))(e||!kg(Yf(s[g])))&&p.push([a(g),a(s[g])]);return h}case KC:return o([l,s.toISOString()],s);case QC:{const{source:p,flags:h}=s;return o([l,{source:p,flags:h}],s)}case XC:{const p=[],h=o([l,p],s);for(const[g,y]of s)(e||!(kg(Yf(g))||kg(Yf(y))))&&p.push([a(g),a(y)]);return h}case ZC:{const p=[],h=o([l,p],s);for(const g of s)(e||!kg(Yf(g)))&&p.push(a(g));return h}}const{message:d}=s;return o([l,{name:u,message:d}],s)};return a},kO=(e,{json:t,lossy:n}={})=>{const r=[];return ipe(!(t||n),!!t,new Map,r)(e),r},sc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?AO(kO(e,t)):structuredClone(e):(e,t)=>AO(kO(e,t));function spe(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 lpe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function cpe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||spe,r=e.options.footnoteBackLabel||lpe,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];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=vd(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),l.push(T)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...sc(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
369
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
370
- `}]}}const Tb=function(e){if(e==null)return ppe;if(typeof e=="function")return Sb(e);if(typeof e=="object")return Array.isArray(e)?upe(e):dpe(e);if(typeof e=="string")return fpe(e);throw new Error("Expected function, string, or object as test")};function upe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Tb(e[n]);return Sb(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function dpe(e){const t=e;return Sb(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function fpe(e){return Sb(t);function t(n){return n&&n.type===e}}function Sb(e){return t;function t(n,r,o){return!!(hpe(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function ppe(){return!0}function hpe(e){return e!==null&&typeof e=="object"&&"type"in e}const IM=[],mpe=!0,t0=!1,wp="skip";function OM(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=Tb(o),s=r?-1:1;l(e,void 0,[])();function l(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=IM,b,x,S;if((!t||a(u,d,p[p.length-1]||void 0))&&(y=gpe(n(u,p)),y[0]===t0))return y;if("children"in u&&u.children){const T=u;if(T.children&&y[0]!==wp)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=l(D,x,S)(),b[0]===t0)return b;x=typeof b[1]=="number"?b[1]:x+s}}return y}}}function gpe(e){return Array.isArray(e)?e:typeof e=="number"?[mpe,e]:e==null?IM:[e]}function wo(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),OM(e,a,l,o);function l(u,d){const p=d[d.length-1],h=p?p.children.indexOf(u):void 0;return s(u,h,p)}}const TT={}.hasOwnProperty,ype={};function bpe(e,t){const n=t||ype,r=new Map,o=new Map,a=new Map,s={...npe,...n.handlers},l={all:d,applyData:Epe,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:vpe,wrap:Tpe};return wo(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)}}),l;function u(p,h){const g=p.type,y=l.handlers[g];if(TT.call(l.handlers,g)&&y)return y(l,p,h);if(l.options.passThrough&&l.options.passThrough.includes(g)){if("children"in p){const{children:b,...x}=p,S=sc(x);return S.children=l.all(p),S}return sc(p)}return(l.options.unknownHandler||xpe)(l,p,h)}function d(p){const h=[];if("children"in p){const g=p.children;let y=-1;for(;++y<g.length;){const b=l.one(g[y],p);if(b){if(y&&g[y-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=wO(b.value)),!Array.isArray(b)&&b.type==="element")){const x=b.children[0];x&&x.type==="text"&&(x.value=wO(x.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function vpe(e,t){e.position&&(t.position=lue(e))}function Epe(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,sc(a)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function xpe(e,t){const n=t.data||{},r="value"in t&&!(TT.call(n,"hProperties")||TT.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 Tpe(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 wO(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function DO(e,t){const n=bpe(e,t),r=n.one(e,void 0),o=cpe(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 Spe(e,t){return e&&"run"in e?async function(n,r){const o=DO(n,{file:r,...t});await e.run(o,r)}:function(n,r){return DO(n,{file:r,...e||t})}}function RO(e){if(e)throw e}var ME,IO;function Cpe(){if(IO)return ME;IO=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},l=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return ME=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=l(x,p),g=l(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},ME}var _pe=Cpe();const FE=Z0(_pe);function ST(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 Ape(){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);l(null,...o);function l(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?kpe(p,l)(...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 kpe(e,t){let n;return r;function r(...s){const l=e.length>s.length;let u;l&&s.push(o);try{u=e.apply(this,s)}catch(d){const p=d;if(l&&n)throw p;return o(p)}l||(u&&u.then&&typeof u.then=="function"?u.then(a,o):u instanceof Error?o(u):a(u))}function o(s,...l){n||(n=!0,t(s,...l))}function a(s){o(null,s)}}const oi={basename:wpe,dirname:Dpe,extname:Rpe,join:Ipe,sep:"/"};function wpe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');qh(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,l=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else s<0&&(a=!0,s=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(r=o):(l=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Dpe(e){if(qh(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 Rpe(e){qh(e);let t=e.length,n=-1,r=0,o=-1,a=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),l===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 Ipe(...e){let t=-1,n;for(;++t<e.length;)qh(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ope(n)}function Ope(e){qh(e);const t=e.codePointAt(0)===47;let n=Npe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Npe(e,t){let n="",r=0,o=-1,a=0,s=-1,l,u;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===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 l===46&&a>-1?a++:a=-1}return n}function qh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ppe={cwd:Lpe};function Lpe(){return"/"}function CT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Mpe(e){if(typeof e=="string")e=new URL(e);else if(!CT(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 Fpe(e)}function Fpe(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 BE=["history","path","basename","stem","extname","dirname"];class NM{constructor(t){let n;t?CT(t)?n={path:t}:typeof t=="string"||Bpe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Ppe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<BE.length;){const a=BE[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)BE.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?oi.basename(this.path):void 0}set basename(t){UE(t,"basename"),jE(t,"basename"),this.path=oi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?oi.dirname(this.path):void 0}set dirname(t){OO(this.basename,"dirname"),this.path=oi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?oi.extname(this.path):void 0}set extname(t){if(jE(t,"extname"),OO(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=oi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){CT(t)&&(t=Mpe(t)),UE(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?oi.basename(this.path,this.extname):void 0}set stem(t){UE(t,"stem"),jE(t,"stem"),this.path=oi.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 eo(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 jE(e,t){if(e&&e.includes(oi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+oi.sep+"`")}function UE(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function OO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Bpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jpe=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Upe={}.hasOwnProperty;class JC extends jpe{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=Ape()}copy(){const t=new JC;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(FE(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?($E("data",this.frozen),this.namespace[t]=n,this):Upe.call(this.namespace,t)&&this.namespace[t]||void 0:t?($E("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=wg(t),r=this.parser||this.Parser;return HE("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),HE("process",this.parser||this.Parser),zE("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,s){const l=wg(t),u=r.parse(l);r.run(u,l,function(p,h,g){if(p||!h||!g)return d(p);const y=h,b=r.stringify(y,g);$pe(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(),HE("processSync",this.parser||this.Parser),zE("processSync",this.compiler||this.Compiler),this.process(t,o),PO("processSync","process",n),r;function o(a,s){n=!0,RO(a),r=s}}run(t,n,r){NO(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,l){const u=wg(n);o.run(t,u,d);function d(p,h,g){const y=h||t;p?l(p):s?s(y):r(void 0,y,g)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),PO("runSync","run",r),o;function a(s,l){RO(s),o=l,r=!0}}stringify(t,n){this.freeze();const r=wg(n),o=this.compiler||this.Compiler;return zE("stringify",o),NO(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if($E("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?l(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");l(d.plugins),d.settings&&(o.settings=FE(!0,o.settings,d.settings))}function l(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];ST(x)&&ST(y)&&(y=FE(!0,x,y)),r[g]=[d,y,...b]}}}}const Hpe=new JC().freeze();function HE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zE(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $E(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 NO(e){if(!ST(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function PO(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function wg(e){return zpe(e)?e:new NM(e)}function zpe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $pe(e){return typeof e=="string"||Vpe(e)}function Vpe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Gpe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",LO=[],MO={allowDangerousHtml:!0},qpe=/^(https?|ircs?|mailto|xmpp)$/i,Wpe=[{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 Ype(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,s=e.disallowedElements,l=e.rehypePlugins||LO,u=e.remarkPlugins||LO,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...MO}:MO,p=e.skipHtml,h=e.unwrapDisallowed,g=e.urlTransform||Kpe,y=Hpe().use(Rfe).use(u).use(Spe,d).use(l),b=new NM;typeof r=="string"&&(b.value=r);for(const D of Wpe)Object.hasOwn(e,D.from)&&""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+Gpe+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]}),wo(S,T),pue(S,{Fragment:v.Fragment,components:a,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function T(D,w,R){if(D.type==="raw"&&R&&typeof w=="number")return p?R.children.splice(w,1):R.children[w]={type:"text",value:D.value},w;if(D.type==="element"){let I;for(I in NE)if(Object.hasOwn(NE,I)&&Object.hasOwn(D.properties,I)){const O=D.properties[I],F=NE[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 w=="number"&&(I=!n(D,w,R)),I&&R&&typeof w=="number")return h&&D.children?R.children.splice(w,1,...D.children):R.children.splice(w,1),w}}}function Kpe(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||qpe.test(e.slice(0,t))?e:""}function Qpe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xpe(e,t,n){const r=Tb((n||{}).ignore||[]),o=Zpe(t);let a=-1;for(;++a<o.length;)OM(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 l(u,d)}function l(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,w={index:T.index,input:T.input,stack:[...d,u]};let R=g(...T,w);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 Zpe(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([Jpe(o[0]),ehe(o[1])])}return t}function Jpe(e){return typeof e=="string"?new RegExp(Qpe(e),"g"):e}function ehe(e){return typeof e=="function"?e:function(){return e}}const VE="phrasing",GE=["autolink","link","image","label"];function the(){return{transforms:[lhe],enter:{literalAutolink:rhe,literalAutolinkEmail:qE,literalAutolinkHttp:qE,literalAutolinkWww:qE},exit:{literalAutolink:she,literalAutolinkEmail:ihe,literalAutolinkHttp:ohe,literalAutolinkWww:ahe}}}function nhe(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:VE,notInConstruct:GE},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:VE,notInConstruct:GE},{character:":",before:"[ps]",after:"\\/",inConstruct:VE,notInConstruct:GE}]}}function rhe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qE(e){this.config.enter.autolinkProtocol.call(this,e)}function ohe(e){this.config.exit.autolinkProtocol.call(this,e)}function ahe(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 ihe(e){this.config.exit.autolinkEmail.call(this,e)}function she(e){this.exit(e)}function lhe(e){Xpe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,che],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,uhe]],{ignore:["link","linkReference"]})}function che(e,t,n,r,o){let a="";if(!PM(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!dhe(n)))return!1;const s=fhe(n+r);if(!s[0])return!1;const l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function uhe(e,t,n,r){return!PM(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function dhe(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 fhe(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=$y(e,"(");let a=$y(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 PM(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ic(n)||vb(n))&&(!t||n!==47)}LM.peek=xhe;function phe(){this.buffer()}function hhe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function mhe(){this.buffer()}function ghe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function yhe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ba(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bhe(e){this.exit(e)}function vhe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ba(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ehe(e){this.exit(e)}function xhe(){return"["}function LM(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),s(),a+=o.move("]"),a}function The(){return{enter:{gfmFootnoteCallString:phe,gfmFootnoteCall:hhe,gfmFootnoteDefinitionLabelString:mhe,gfmFootnoteDefinition:ghe},exit:{gfmFootnoteCallString:yhe,gfmFootnoteCall:bhe,gfmFootnoteDefinitionLabelString:vhe,gfmFootnoteDefinition:Ehe}}}function She(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:LM},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,s){const l=a.createTracker(s);let u=l.move("[^");const d=a.enter("footnoteDefinition"),p=a.enter("label");return u+=l.move(a.safe(a.associationId(r),{before:u,after:"]"})),p(),u+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),u+=l.move((t?`
375
- `:" ")+a.indentLines(a.containerFlow(r,l.current()),t?MM:Che))),d(),u}}function Che(e,t,n){return t===0?e:MM(e,t,n)}function MM(e,t,n){return(n?"":" ")+e}const _he=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];FM.peek=Rhe;function Ahe(){return{canContainEols:["delete"],enter:{strikethrough:whe},exit:{strikethrough:Dhe}}}function khe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_he}],handlers:{delete:FM}}}function whe(e){this.enter({type:"delete",children:[]},e)}function Dhe(e){this.exit(e)}function FM(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 Rhe(){return"~"}function Ihe(e){return e.length}function Ohe(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Ihe,a=[],s=[],l=[],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=Nhe(e[p][T]);if(n.alignDelimiters!==!1){const w=o(D);S[T]=w,(u[T]===void 0||w>u[T])&&(u[T]=w)}x.push(D)}s[p]=x,l[p]=S}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<d;)a[h]=FO(r[h]);else{const x=FO(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 w=S+"-".repeat(D)+T;n.alignDelimiters!==!1&&(D=S.length+D+T.length,D>u[h]&&(u[h]=D),y[h]=D),g[h]=w}s.splice(1,0,g),l.splice(1,0,y),p=-1;const b=[];for(;++p<s.length;){const x=s[p],S=l[p];h=-1;const T=[];for(;++h<d;){const D=x[h]||"";let w="",R="";if(n.alignDelimiters!==!1){const I=u[h]-(S[h]||0),O=a[h];O===114?w=" ".repeat(I):O===99?I%2?(w=" ".repeat(I/2+.5),R=" ".repeat(I/2-.5)):(w=" ".repeat(I/2),R=w):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(w),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 Nhe(e){return e==null?"":String(e)}function FO(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 Phe(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()),Lhe);return o(),s}function Lhe(e,t,n){return">"+(n?"":" ")+e}function Mhe(e,t){return BO(e,t.inConstruct,!0)&&!BO(e,t.notInConstruct,!1)}function BO(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 jO(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
377
- `&&Mhe(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
378
- `}function Fhe(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 Bhe(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 jhe(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 Uhe(e,t,n,r){const o=jhe(n),a=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(Bhe(e,n)){const h=n.enter("codeIndented"),g=n.indentLines(a,Hhe);return h(),g}const l=n.createTracker(r),u=o.repeat(Math.max(Fhe(a,o)+1,3)),d=n.enter("codeFenced");let p=l.move(u);if(e.lang){const h=n.enter(`codeFencedLang${s}`);p+=l.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);p+=l.move(" "),p+=l.move(n.safe(e.meta,{before:p,after:`
379
- `,encode:["`"],...l.current()})),h()}return p+=l.move(`
380
- `),a&&(p+=l.move(a+`
381
- `)),p+=l.move(u),d(),p}function Hhe(e,t,n){return(n?"":" ")+e}function e_(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 zhe(e,t,n,r){const o=e_(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=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("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(l=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":`
382
- `,...u.current()}))),l(),e.title&&(l=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),l()),s(),d}function $he(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 mh(e){return"&#x"+e.toString(16).toUpperCase()+";"}function n0(e,t,n){const r=Zu(e),o=Zu(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}}BM.peek=Vhe;function BM(e,t,n,r){const o=$he(n),a=n.enter("emphasis"),s=n.createTracker(r),l=s.move(o);let u=s.move(n.containerPhrasing(e,{after:o,before:l,...s.current()}));const d=u.charCodeAt(0),p=n0(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=mh(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=n0(r.after.charCodeAt(0),h,o);g.inside&&(u=u.slice(0,-1)+mh(h));const y=s.move(o);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},l+u+y}function Vhe(e,t,n){return n.options.emphasis||"*"}function Ghe(e,t){let n=!1;return wo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,t0}),!!((!e.depth||e.depth<3)&&qC(e)&&(t.options.setext||n))}function qhe(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Ghe(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),l=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=mh(d.charCodeAt(0))+d.slice(1)),d=d?s+" "+d:s,n.options.closeAtx&&(d+=" "+s),u(),l(),d}jM.peek=Whe;function jM(e){return e.value||""}function Whe(){return"<"}UM.peek=Yhe;function UM(e,t,n,r){const o=e_(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("image");let l=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("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(l=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=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),l()),d+=u.move(")"),s(),d}function Yhe(){return"!"}HM.peek=Khe;function HM(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");const d=n.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return s(),n.stack=p,a(),o==="full"||!d||d!==h?u+=l.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Khe(){return"!"}zM.peek=Qhe;function zM(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],l=n.compilePattern(s);let u;if(s.atBreak)for(;u=l.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 Qhe(){return"`"}function $M(e,t){const n=qC(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))}VM.peek=Xhe;function VM(e,t,n,r){const o=e_(n),a=o==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let l,u;if($M(e,n)){const p=n.stack;n.stack=[],l=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),l(),n.stack=p,h}l=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(")"),l(),d}function Xhe(e,t,n){return $M(e,n)?"<":"["}GM.peek=Zhe;function GM(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");const d=n.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(d+"]["),s();const p=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:u,after:"]",...l.current()});return s(),n.stack=p,a(),o==="full"||!d||d!==h?u+=l.move(h+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Zhe(){return"["}function t_(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 Jhe(e){const t=t_(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 eme(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 qM(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 tme(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?eme(n):t_(n);const l=e.ordered?s==="."?")":".":Jhe(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),qM(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=l),n.bulletCurrent=s;const d=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,o(),d}function nme(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 rme(e,t,n,r){const o=nme(n);let a=n.bulletCurrent||t_(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 l=n.createTracker(r);l.move(a+" ".repeat(s-a.length)),l.shift(s);const u=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,l.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 ome(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),o(),s}const ame=Tb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ime(e,t,n,r){return(e.children.some(function(o){return ame(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function sme(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}WM.peek=lme;function WM(e,t,n,r){const o=sme(n),a=n.enter("strong"),s=n.createTracker(r),l=s.move(o+o);let u=s.move(n.containerPhrasing(e,{after:o,before:l,...s.current()}));const d=u.charCodeAt(0),p=n0(r.before.charCodeAt(r.before.length-1),d,o);p.inside&&(u=mh(d)+u.slice(1));const h=u.charCodeAt(u.length-1),g=n0(r.after.charCodeAt(0),h,o);g.inside&&(u=u.slice(0,-1)+mh(h));const y=s.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:g.outside,before:p.outside},l+u+y}function lme(e,t,n){return n.options.strong||"*"}function cme(e,t,n,r){return n.safe(e.value,r)}function ume(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 dme(e,t,n){const r=(qM(n)+(n.options.ruleSpaces?" ":"")).repeat(ume(n));return n.options.ruleSpaces?r.slice(0,-1):r}const YM={blockquote:Phe,break:jO,code:Uhe,definition:zhe,emphasis:BM,hardBreak:jO,heading:qhe,html:jM,image:UM,imageReference:HM,inlineCode:zM,link:VM,linkReference:GM,list:tme,listItem:rme,paragraph:ome,root:ime,strong:WM,text:cme,thematicBreak:dme};function fme(){return{enter:{table:pme,tableData:UO,tableHeader:UO,tableRow:mme},exit:{codeText:gme,table:hme,tableData:WE,tableHeader:WE,tableRow:WE}}}function pme(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 hme(e){this.exit(e),this.data.inTable=void 0}function mme(e){this.enter({type:"tableRow",children:[]},e)}function WE(e){this.exit(e)}function UO(e){this.enter({type:"tableCell",children:[]},e)}function gme(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,yme));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function yme(e,t){return t==="|"?t:e}function bme(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:l}};function s(y,b,x,S){return d(p(y,x,S),y.align)}function l(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"),w=x.containerPhrasing(y,{...S,before:a,after:a});return D(),T(),w}function d(y,b){return Ohe(y,{align:b,alignDelimiters:r,padding:n,stringLength:o})}function p(y,b,x){const S=y.children;let T=-1;const D=[],w=b.enter("table");for(;++T<S.length;)D[T]=h(S[T],b,x);return w(),D}function h(y,b,x){const S=y.children;let T=-1;const D=[],w=b.enter("tableRow");for(;++T<S.length;)D[T]=u(S[T],y,b,x);return w(),D}function g(y,b,x){let S=YM.inlineCode(y,b,x);return x.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function vme(){return{exit:{taskListCheckValueChecked:HO,taskListCheckValueUnchecked:HO,paragraph:xme}}}function Eme(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Tme}}}function HO(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function xme(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 l=o[a];if(l.type==="paragraph"){s=l;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 Tme(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(s);let u=YM.listItem(e,t,n,{...r,...l.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),u;function d(p){return p+s}}function Sme(){return[the(),The(),Ahe(),fme(),vme()]}function Cme(e){return{extensions:[nhe(),She(e),khe(),bme(e),Eme()]}}const _me={tokenize:Ime,partial:!0},KM={tokenize:Ome,partial:!0},QM={tokenize:Nme,partial:!0},XM={tokenize:Pme,partial:!0},Ame={tokenize:Lme,partial:!0},ZM={name:"wwwAutolink",tokenize:Dme,previous:e6},JM={name:"protocolAutolink",tokenize:Rme,previous:t6},ss={name:"emailAutolink",tokenize:wme,previous:n6},xi={};function kme(){return{text:xi}}let Al=48;for(;Al<123;)xi[Al]=ss,Al++,Al===58?Al=65:Al===91&&(Al=97);xi[43]=ss;xi[45]=ss;xi[46]=ss;xi[95]=ss;xi[72]=[ss,JM];xi[104]=[ss,JM];xi[87]=[ss,ZM];xi[119]=[ss,ZM];function wme(e,t,n){const r=this;let o,a;return s;function s(h){return!_T(h)||!n6.call(r,r.previous)||n_(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return _T(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(Ame,p,d)(h):h===45||h===95||Xr(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&&io(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Dme(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!e6.call(r,r.previous)||n_(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_me,e.attempt(KM,e.attempt(QM,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Rme(e,t,n){const r=this;let o="",a=!1;return s;function s(h){return(h===72||h===104)&&t6.call(r,r.previous)&&!n_(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(io(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),l;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||Jy(h)||Dn(h)||ic(h)||vb(h)?n(h):e.attempt(KM,e.attempt(QM,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Ime(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 Ome(e,t,n){let r,o,a;return s;function s(d){return d===46||d===95?e.check(XM,u,l)(d):d===null||Dn(d)||ic(d)||d!==45&&vb(d)?u(d):(a=!0,e.consume(d),s)}function l(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 Nme(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(XM,t,a)(s):s===null||Dn(s)||ic(s)?t(s):(e.consume(s),o)}function a(s){return s===41&&r++,e.consume(s),o}}function Pme(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),o):l===60||l===null||Dn(l)||ic(l)?t(l):n(l)}function o(l){return l===null||l===40||l===91||Dn(l)||ic(l)?t(l):r(l)}function a(l){return io(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),r):io(l)?(e.consume(l),s):n(l)}}function Lme(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return Xr(a)?n(a):t(a)}}function e6(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Dn(e)}function t6(e){return!io(e)}function n6(e){return!(e===47||_T(e))}function _T(e){return e===43||e===45||e===46||e===95||Xr(e)}function n_(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 Mme={tokenize:Vme,partial:!0};function Fme(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Hme,continuation:{tokenize:zme},exit:$me}},text:{91:{name:"gfmFootnoteCall",tokenize:Ume},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Bme,resolveTo:jme}}}}function Bme(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 l;function l(u){if(!s||!s._balanced)return n(u);const d=Ba(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 jme(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)},l=[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,...l),e}function Ume(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return l;function l(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||Dn(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return o.includes(Ba(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Dn(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 Hme(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,l;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&&!l||b===null||b===91||Dn(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=Ba(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return Dn(b)||(l=!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 zme(e,t,n){return e.check(Gh,t,e.attempt(Mme,t,n))}function $me(e){e.exit("gfmFootnoteDefinition")}function Vme(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 Gme(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 l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},p={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][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&&qo(h,h.length,0,Eb(g,a.slice(u+1,l),s)),qo(h,h.length,0,[["exit",p,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",d,s]]),qo(a,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){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"?l(y):(a.enter("strikethroughSequenceTemporary"),g(y))}function g(y){const b=Zu(u);if(y===126)return p>1?l(y):(a.consume(y),p++,g);if(p<2&&!t)return l(y);const x=a.exit("strikethroughSequenceTemporary"),S=Zu(y);return x._open=!S||S===2&&!!b,x._close=!b||b===2&&!!S,s(y)}}}class qme{constructor(){this.map=[]}add(t,n,r){Wme(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 Wme(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 Yme(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 Kme(){return{flow:{null:{name:"table",tokenize:Qme,resolveAll:Xme}}}}function Qme(e,t,n){const r=this;let o=0,a=0,s;return l;function l(C){let M=r.events.length-1;for(;M>-1;){const q=r.events[M][1].type;if(q==="lineEnding"||q==="linePrefix")M--;else break}const $=M>-1?r.events[M][1].type:null,z=$==="tableHead"||$==="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):Qt(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||Dn(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,Qt(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 Qt(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"),w):(e.exit("tableDelimiterFiller"),w(C))}function w(C){return Qt(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)):Qt(C)?nn(e,F,"whitespace")(C):(e.enter("data"),j(C))}function j(C){return C===null||C===124||Dn(C)?(e.exit("data"),F(C)):(e.consume(C),C===92?H:j)}function H(C){return C===92||C===124?(e.consume(C),j):j(C)}}function Xme(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],s=[0,0,0,0],l=!1,u=0,d,p,h;const g=new qme;for(;++n<e.length;){const y=e[n],b=y[1];y[0]==="enter"?b.type==="tableHead"?(l=!1,u!==0&&(zO(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],l&&(l=!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=Dg(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=Dg(g,t,a,o,void 0,h)),a=s,s=[a[1],n,0,0])):b.type==="tableHead"?(l=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],h=Dg(g,t,a,o,n,h)):s[1]!==0&&(h=Dg(g,t,s,o,n,h)),o=0):o&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&zO(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=Yme(t.events,n))}return e}function Dg(e,t,n,r,o,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({},yu(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=yu(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=yu(t.events,n[2]),p=yu(t.events,n[3]),h={type:l,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({},yu(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function zO(e,t,n,r,o){const a=[],s=yu(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 yu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Zme={name:"tasklistCheck",tokenize:ege};function Jme(){return{text:{91:Zme}}}function ege(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 Dn(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"),l):n(u)}function l(u){return vt(u)?t(u):Qt(u)?e.check({tokenize:tge},t,n)(u):n(u)}}function tge(e,t,n){return nn(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function nge(e){return pM([kme(),Fme(),Gme(e),Kme(),Jme()])}const rge={};function oge(e){const t=this,n=e||rge,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(nge(n)),a.push(Sme()),s.push(Cme(n))}const $O=/[#.]/g;function age(e,t){const n=e||"",r={};let o=0,a,s;for(;o<n.length;){$O.lastIndex=o;const l=$O.exec(n),u=n.slice(o,l?l.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),l&&(a=l[0],o++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function r6(e,t,n){const r=n?cge(n):void 0;function o(a,s,...l){let u;if(a==null){u={type:"root",children:[]};const d=s;l.unshift(d)}else{u=age(a,t);const d=u.tagName.toLowerCase(),p=r?r.get(d):void 0;if(u.tagName=p||d,ige(s))l.unshift(s);else for(const[h,g]of Object.entries(s))sge(e,u.properties,h,g)}for(const d of l)AT(u.children,d);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return o}function ige(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 sge(e,t,n,r){const o=Hh(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=fT(r):o.commaSeparated?a=dT(r):o.commaOrSpaceSeparated?a=fT(dT(r).join(" ")):a=VO(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?lge(r):String(r);if(Array.isArray(a)){const s=[];for(const l of a)s.push(VO(o,o.property,l));a=s}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function AT(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)AT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?AT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function VO(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||lh(n)===lh(t)))return!0}return n}function lge(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function cge(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const uge=["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"],dge=r6(gd,"div"),fge=r6(as,"g",uge);function pge(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 l=n[s];if(l===void 0){const u=GO(t,n[s-1]);l=u===-1?t.length+1:u+1,n[s]=l}if(l>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 l=n[n.length-1],u=GO(t,l),d=u===-1?t.length+1:u+1;if(l===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 GO(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 $l={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/"},o6={}.hasOwnProperty,hge=Object.prototype;function mge(e,t){const n=t||{};return r_({file:n.file||void 0,location:!1,schema:n.space==="svg"?as:gd,verbose:n.verbose||!1},e)}function r_(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ry(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:a6(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),s=pge(a),l=s.toPoint(0),u=s.toPoint(a.length);n.position={start:l,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ry(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ry(e,r,n),n}default:return n=gge(e,t),n}}function a6(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=r_(e,t[n]);r.push(o)}return r}function gge(e,t){const n=e.schema;e.schema=t.namespaceURI===$l.svg?as:gd;let r=-1;const o={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;o6.call(hge,l)||(o[l]=s.value)}const a=(e.schema.space==="svg"?fge:dge)(t.tagName,o,a6(e,t.childNodes));if(ry(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,u=l&&l.startTag&&Su(l.startTag),d=l&&l.endTag&&Su(l.endTag),p=r_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),a.content=p}return e.schema=n,a}function ry(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=yge(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function yge(e,t,n){const r=Su(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)o6.call(n.attrs,s)&&(a[Hh(e.schema,s).property]=Su(n.attrs[s]));n.startTag;const l=Su(n.startTag),u=n.endTag?Su(n.endTag):void 0,d={opening:l};u&&(d.closing=u),d.properties=a,t.data={position:d}}}return r}function Su(e){const t=qO({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=qO({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function qO(e){return e.line&&e.column?e:void 0}class Wh{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Wh.prototype.property={};Wh.prototype.normal={};Wh.prototype.space=null;function i6(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 Wh(n,r,t)}function kT(e){return e.toLowerCase()}class ka{constructor(t,n){this.property=t,this.attribute=n}}ka.prototype.space=null;ka.prototype.boolean=!1;ka.prototype.booleanish=!1;ka.prototype.overloadedBoolean=!1;ka.prototype.number=!1;ka.prototype.commaSeparated=!1;ka.prototype.spaceSeparated=!1;ka.prototype.commaOrSpaceSeparated=!1;ka.prototype.mustUseProperty=!1;ka.prototype.defined=!1;let bge=0;const Mt=mc(),yr=mc(),s6=mc(),Ve=mc(),Nn=mc(),Lu=mc(),Bo=mc();function mc(){return 2**++bge}const wT=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mt,booleanish:yr,commaOrSpaceSeparated:Bo,commaSeparated:Lu,number:Ve,overloadedBoolean:s6,spaceSeparated:Nn},Symbol.toStringTag,{value:"Module"})),YE=Object.keys(wT);class o_ extends ka{constructor(t,n,r,o){let a=-1;if(super(t,n),WO(this,"space",o),typeof r=="number")for(;++a<YE.length;){const s=YE[a];WO(this,YE[a],(r&wT[s])===wT[s])}}}o_.prototype.defined=!0;function WO(e,t,n){n&&(e[t]=n)}const vge={}.hasOwnProperty;function Ed(e){const t={},n={};let r;for(r in e.properties)if(vge.call(e.properties,r)){const o=e.properties[r],a=new o_(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[kT(r)]=r,n[kT(a.attribute)]=r}return new Wh(t,n,e.space)}const l6=Ed({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}}),c6=Ed({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function u6(e,t){return t in e?e[t]:t}function d6(e,t){return u6(e,t.toLowerCase())}const f6=Ed({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:d6,properties:{xmlns:null,xmlnsXLink:null}}),p6=Ed({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:yr,ariaAutoComplete:null,ariaBusy:yr,ariaChecked:yr,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:Nn,ariaCurrent:null,ariaDescribedBy:Nn,ariaDetails:null,ariaDisabled:yr,ariaDropEffect:Nn,ariaErrorMessage:null,ariaExpanded:yr,ariaFlowTo:Nn,ariaGrabbed:yr,ariaHasPopup:null,ariaHidden:yr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nn,ariaLevel:Ve,ariaLive:null,ariaModal:yr,ariaMultiLine:yr,ariaMultiSelectable:yr,ariaOrientation:null,ariaOwns:Nn,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:yr,ariaReadOnly:yr,ariaRelevant:null,ariaRequired:yr,ariaRoleDescription:Nn,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:yr,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null}}),Ege=Ed({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:d6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Lu,acceptCharset:Nn,accessKey:Nn,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:Nn,autoFocus:Mt,autoPlay:Mt,blocking:Nn,capture:null,charSet:null,checked:Mt,cite:null,className:Nn,cols:Ve,colSpan:null,content:null,contentEditable:yr,controls:Mt,controlsList:Nn,coords:Ve|Lu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:s6,draggable:yr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:Nn,height:Ve,hidden:Mt,high:Ve,href:null,hrefLang:null,htmlFor:Nn,httpEquiv:Nn,id:null,imageSizes:null,imageSrcSet:null,inert:Mt,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:Nn,itemRef:Nn,itemScope:Mt,itemType:Nn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,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:Mt,optimum:Ve,pattern:null,ping:Nn,placeholder:null,playsInline:Mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:Nn,required:Mt,reversed:Mt,rows:Ve,rowSpan:Ve,sandbox:Nn,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shadowRootClonable:Mt,shadowRootDelegatesFocus:Mt,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:yr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:Mt,useMap:null,value:yr,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nn,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:yr,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:Ve,security:null,unselectable:null}}),xge=Ed({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:u6,properties:{about:Bo,accentHeight:Ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ve,amplitude:Ve,arabicForm:null,ascent:Ve,attributeName:null,attributeType:null,azimuth:Ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ve,by:null,calcMode:null,capHeight:Ve,className:Nn,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:Ve,diffuseConstant:Ve,direction:null,display:null,dur:null,divisor:Ve,dominantBaseline:null,download:Mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ve,enableBackground:null,end:null,event:null,exponent:Ve,externalResourcesRequired:null,fill:null,fillOpacity:Ve,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:Lu,g2:Lu,glyphName:Lu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ve,horizOriginX:Ve,horizOriginY:Ve,id:null,ideographic:Ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ve,k:Ve,k1:Ve,k2:Ve,k3:Ve,k4:Ve,kernelMatrix:Bo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ve,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:Ve,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:Ve,overlineThickness:Ve,paintOrder:null,panose1:null,path:null,pathLength:Ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bo,rev:Bo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bo,requiredFeatures:Bo,requiredFonts:Bo,requiredFormats:Bo,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:Ve,specularExponent:Ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ve,strikethroughThickness:Ve,string:null,stroke:null,strokeDashArray:Bo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ve,strokeOpacity:Ve,strokeWidth:null,style:null,surfaceScale:Ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bo,tabIndex:Ve,tableValues:null,target:null,targetX:Ve,targetY:Ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ve,underlineThickness:Ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ve,values:null,vAlphabetic:Ve,vMathematical:Ve,vectorEffect:null,vHanging:Ve,vIdeographic:Ve,version:null,vertAdvY:Ve,vertOriginX:Ve,vertOriginY:Ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Tge=/^data[-\w.:]+$/i,YO=/-[a-z]/g,Sge=/[A-Z]/g;function Cge(e,t){const n=kT(t);let r=t,o=ka;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Tge.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(YO,Age);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!YO.test(a)){let s=a.replace(Sge,_ge);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=o_}return new o(r,t)}function _ge(e){return"-"+e.toLowerCase()}function Age(e){return e.charAt(1).toUpperCase()}const kge=i6([c6,l6,f6,p6,Ege],"html"),h6=i6([c6,l6,f6,p6,xge],"svg"),wge={},Dge={}.hasOwnProperty,m6=ub("type",{handlers:{root:Ige,element:Mge,text:Pge,comment:Lge,doctype:Nge}});function Rge(e,t){const n=(t||wge).space;return m6(e,n==="svg"?h6:kge)}function Ige(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=a_(e.children,n,t),xd(e,n),n}function Oge(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=a_(e.children,n,t),xd(e,n),n}function Nge(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return xd(e,t),t}function Pge(e){const t={nodeName:"#text",value:e.value,parentNode:null};return xd(e,t),t}function Lge(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return xd(e,t),t}function Mge(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=h6);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Dge.call(e.properties,a)){const u=Fge(r,a,e.properties[a]);u&&o.push(u)}}const s=r.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:$l[s],childNodes:[],parentNode:null};return l.childNodes=a_(e.children,l,r),xd(e,l),e.tagName==="template"&&e.content&&(l.content=Oge(e.content,r)),l}function Fge(e,t,n){const r=Cge(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?db(n):fb(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=$l[r.space]}return o}function a_(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=m6(e[r],n);a.parentNode=t,o.push(a)}return o}function xd(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 Bge=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]),qn="�";var V;(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"})(V||(V={}));const vo={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function g6(e){return e>=55296&&e<=57343}function jge(e){return e>=56320&&e<=57343}function Uge(e,t){return(e-55296)*1024+9216+t}function y6(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function b6(e){return e>=64976&&e<=65007||Bge.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 Hge=65536;class zge{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=Hge,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,l=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:l,endOffset:l}}_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(jge(n))return this.pos++,this._addGap(),Uge(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,V.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,V.EOF;const r=this.html.charCodeAt(n);return r===V.CARRIAGE_RETURN?V.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,V.EOF;let t=this.html.charCodeAt(this.pos);return t===V.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,V.LINE_FEED):t===V.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,g6(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===V.LINE_FEED||t===V.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){y6(t)?this._err(Te.controlCharacterInInputStream):b6(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 Gt;(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"})(Gt||(Gt={}));function v6(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 E6=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),$ge=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var KE;const Vge=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]]),Gge=(KE=String.fromCodePoint)!==null&&KE!==void 0?KE: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 qge(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Vge.get(e))!==null&&t!==void 0?t:e}var Nr;(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"})(Nr||(Nr={}));const Wge=32;var Ws;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ws||(Ws={}));function DT(e){return e>=Nr.ZERO&&e<=Nr.NINE}function Yge(e){return e>=Nr.UPPER_A&&e<=Nr.UPPER_F||e>=Nr.LOWER_A&&e<=Nr.LOWER_F}function Kge(e){return e>=Nr.UPPER_A&&e<=Nr.UPPER_Z||e>=Nr.LOWER_A&&e<=Nr.LOWER_Z||DT(e)}function Qge(e){return e===Nr.EQUALS||Kge(e)}var Ir;(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"})(Ir||(Ir={}));var Ki;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ki||(Ki={}));class x6{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ir.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ki.Strict}startEntity(t){this.decodeMode=t,this.state=Ir.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ir.EntityStart:return t.charCodeAt(n)===Nr.NUM?(this.state=Ir.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ir.NamedEntity,this.stateNamedEntity(t,n));case Ir.NumericStart:return this.stateNumericStart(t,n);case Ir.NumericDecimal:return this.stateNumericDecimal(t,n);case Ir.NumericHex:return this.stateNumericHex(t,n);case Ir.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Wge)===Nr.LOWER_X?(this.state=Ir.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ir.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(DT(o)||Yge(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(DT(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===Nr.SEMI)this.consumed+=1;else if(this.decodeMode===Ki.Strict)return 0;return this.emitCodePoint(qge(this.result),this.consumed),this.errors&&(t!==Nr.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&Ws.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Xge(r,o,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ki.Attribute&&(a===0||Qge(s))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&Ws.VALUE_LENGTH)>>14,a!==0){if(s===Nr.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Ki.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]&Ws.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]&~Ws.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Ir.NamedEntity:return this.result!==0&&(this.decodeMode!==Ki.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ir.NumericDecimal:return this.emitNumericEntity(0,2);case Ir.NumericHex:return this.emitNumericEntity(0,3);case Ir.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ir.EntityStart:return 0}}}function T6(e){let t="";const n=new x6(e,r=>t+=Gge(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 l=t+r.slice(a);return t="",l}}function Xge(e,t,n,r){const o=(t&Ws.BRANCH_LENGTH)>>7,a=t&Ws.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,l=s+o-1;for(;s<=l;){const u=s+l>>>1,d=e[u];if(d<r)s=u+1;else if(d>r)l=u-1;else return e[u+o]}return-1}T6(E6);T6($ge);var Pe;(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/"})(Pe||(Pe={}));var Kl;(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"})(Kl||(Kl={}));var ya;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ya||(ya={}));var fe;(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"})(fe||(fe={}));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 Zge=new Map([[fe.A,A.A],[fe.ADDRESS,A.ADDRESS],[fe.ANNOTATION_XML,A.ANNOTATION_XML],[fe.APPLET,A.APPLET],[fe.AREA,A.AREA],[fe.ARTICLE,A.ARTICLE],[fe.ASIDE,A.ASIDE],[fe.B,A.B],[fe.BASE,A.BASE],[fe.BASEFONT,A.BASEFONT],[fe.BGSOUND,A.BGSOUND],[fe.BIG,A.BIG],[fe.BLOCKQUOTE,A.BLOCKQUOTE],[fe.BODY,A.BODY],[fe.BR,A.BR],[fe.BUTTON,A.BUTTON],[fe.CAPTION,A.CAPTION],[fe.CENTER,A.CENTER],[fe.CODE,A.CODE],[fe.COL,A.COL],[fe.COLGROUP,A.COLGROUP],[fe.DD,A.DD],[fe.DESC,A.DESC],[fe.DETAILS,A.DETAILS],[fe.DIALOG,A.DIALOG],[fe.DIR,A.DIR],[fe.DIV,A.DIV],[fe.DL,A.DL],[fe.DT,A.DT],[fe.EM,A.EM],[fe.EMBED,A.EMBED],[fe.FIELDSET,A.FIELDSET],[fe.FIGCAPTION,A.FIGCAPTION],[fe.FIGURE,A.FIGURE],[fe.FONT,A.FONT],[fe.FOOTER,A.FOOTER],[fe.FOREIGN_OBJECT,A.FOREIGN_OBJECT],[fe.FORM,A.FORM],[fe.FRAME,A.FRAME],[fe.FRAMESET,A.FRAMESET],[fe.H1,A.H1],[fe.H2,A.H2],[fe.H3,A.H3],[fe.H4,A.H4],[fe.H5,A.H5],[fe.H6,A.H6],[fe.HEAD,A.HEAD],[fe.HEADER,A.HEADER],[fe.HGROUP,A.HGROUP],[fe.HR,A.HR],[fe.HTML,A.HTML],[fe.I,A.I],[fe.IMG,A.IMG],[fe.IMAGE,A.IMAGE],[fe.INPUT,A.INPUT],[fe.IFRAME,A.IFRAME],[fe.KEYGEN,A.KEYGEN],[fe.LABEL,A.LABEL],[fe.LI,A.LI],[fe.LINK,A.LINK],[fe.LISTING,A.LISTING],[fe.MAIN,A.MAIN],[fe.MALIGNMARK,A.MALIGNMARK],[fe.MARQUEE,A.MARQUEE],[fe.MATH,A.MATH],[fe.MENU,A.MENU],[fe.META,A.META],[fe.MGLYPH,A.MGLYPH],[fe.MI,A.MI],[fe.MO,A.MO],[fe.MN,A.MN],[fe.MS,A.MS],[fe.MTEXT,A.MTEXT],[fe.NAV,A.NAV],[fe.NOBR,A.NOBR],[fe.NOFRAMES,A.NOFRAMES],[fe.NOEMBED,A.NOEMBED],[fe.NOSCRIPT,A.NOSCRIPT],[fe.OBJECT,A.OBJECT],[fe.OL,A.OL],[fe.OPTGROUP,A.OPTGROUP],[fe.OPTION,A.OPTION],[fe.P,A.P],[fe.PARAM,A.PARAM],[fe.PLAINTEXT,A.PLAINTEXT],[fe.PRE,A.PRE],[fe.RB,A.RB],[fe.RP,A.RP],[fe.RT,A.RT],[fe.RTC,A.RTC],[fe.RUBY,A.RUBY],[fe.S,A.S],[fe.SCRIPT,A.SCRIPT],[fe.SEARCH,A.SEARCH],[fe.SECTION,A.SECTION],[fe.SELECT,A.SELECT],[fe.SOURCE,A.SOURCE],[fe.SMALL,A.SMALL],[fe.SPAN,A.SPAN],[fe.STRIKE,A.STRIKE],[fe.STRONG,A.STRONG],[fe.STYLE,A.STYLE],[fe.SUB,A.SUB],[fe.SUMMARY,A.SUMMARY],[fe.SUP,A.SUP],[fe.TABLE,A.TABLE],[fe.TBODY,A.TBODY],[fe.TEMPLATE,A.TEMPLATE],[fe.TEXTAREA,A.TEXTAREA],[fe.TFOOT,A.TFOOT],[fe.TD,A.TD],[fe.TH,A.TH],[fe.THEAD,A.THEAD],[fe.TITLE,A.TITLE],[fe.TR,A.TR],[fe.TRACK,A.TRACK],[fe.TT,A.TT],[fe.U,A.U],[fe.UL,A.UL],[fe.SVG,A.SVG],[fe.VAR,A.VAR],[fe.WBR,A.WBR],[fe.XMP,A.XMP]]);function Td(e){var t;return(t=Zge.get(e))!==null&&t!==void 0?t:A.UNKNOWN}const Be=A,Jge={[Pe.HTML]:new Set([Be.ADDRESS,Be.APPLET,Be.AREA,Be.ARTICLE,Be.ASIDE,Be.BASE,Be.BASEFONT,Be.BGSOUND,Be.BLOCKQUOTE,Be.BODY,Be.BR,Be.BUTTON,Be.CAPTION,Be.CENTER,Be.COL,Be.COLGROUP,Be.DD,Be.DETAILS,Be.DIR,Be.DIV,Be.DL,Be.DT,Be.EMBED,Be.FIELDSET,Be.FIGCAPTION,Be.FIGURE,Be.FOOTER,Be.FORM,Be.FRAME,Be.FRAMESET,Be.H1,Be.H2,Be.H3,Be.H4,Be.H5,Be.H6,Be.HEAD,Be.HEADER,Be.HGROUP,Be.HR,Be.HTML,Be.IFRAME,Be.IMG,Be.INPUT,Be.LI,Be.LINK,Be.LISTING,Be.MAIN,Be.MARQUEE,Be.MENU,Be.META,Be.NAV,Be.NOEMBED,Be.NOFRAMES,Be.NOSCRIPT,Be.OBJECT,Be.OL,Be.P,Be.PARAM,Be.PLAINTEXT,Be.PRE,Be.SCRIPT,Be.SECTION,Be.SELECT,Be.SOURCE,Be.STYLE,Be.SUMMARY,Be.TABLE,Be.TBODY,Be.TD,Be.TEMPLATE,Be.TEXTAREA,Be.TFOOT,Be.TH,Be.THEAD,Be.TITLE,Be.TR,Be.TRACK,Be.UL,Be.WBR,Be.XMP]),[Pe.MATHML]:new Set([Be.MI,Be.MO,Be.MN,Be.MS,Be.MTEXT,Be.ANNOTATION_XML]),[Pe.SVG]:new Set([Be.TITLE,Be.FOREIGN_OBJECT,Be.DESC]),[Pe.XLINK]:new Set,[Pe.XML]:new Set,[Pe.XMLNS]:new Set},RT=new Set([Be.H1,Be.H2,Be.H3,Be.H4,Be.H5,Be.H6]);fe.STYLE,fe.SCRIPT,fe.XMP,fe.IFRAME,fe.NOEMBED,fe.NOFRAMES,fe.PLAINTEXT;var W;(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"})(W||(W={}));const ur={DATA:W.DATA,RCDATA:W.RCDATA,RAWTEXT:W.RAWTEXT,SCRIPT_DATA:W.SCRIPT_DATA,PLAINTEXT:W.PLAINTEXT,CDATA_SECTION:W.CDATA_SECTION};function eye(e){return e>=V.DIGIT_0&&e<=V.DIGIT_9}function up(e){return e>=V.LATIN_CAPITAL_A&&e<=V.LATIN_CAPITAL_Z}function tye(e){return e>=V.LATIN_SMALL_A&&e<=V.LATIN_SMALL_Z}function Us(e){return tye(e)||up(e)}function KO(e){return Us(e)||eye(e)}function Rg(e){return e+32}function S6(e){return e===V.SPACE||e===V.LINE_FEED||e===V.TABULATION||e===V.FORM_FEED}function QO(e){return S6(e)||e===V.SOLIDUS||e===V.GREATER_THAN_SIGN}function nye(e){return e===V.NULL?Te.nullCharacterReference:e>1114111?Te.characterReferenceOutsideUnicodeRange:g6(e)?Te.surrogateCharacterReference:b6(e)?Te.noncharacterCharacterReference:y6(e)||e===V.CARRIAGE_RETURN?Te.controlCharacterReference:null}class rye{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=W.DATA,this.returnState=W.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new zge(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new x6(E6,(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=nye(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:Gt.START_TAG,tagName:"",tagID:A.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Gt.END_TAG,tagName:"",tagID:A.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Gt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Gt.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(v6(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=Td(t.tagName),t.type===Gt.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 Gt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Gt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Gt.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:Gt.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=S6(t)?Gt.WHITESPACE_CHARACTER:t===V.NULL?Gt.NULL_CHARACTER:Gt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Gt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=W.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ki.Attribute:Ki.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===W.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===W.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===W.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case W.DATA:{this._stateData(t);break}case W.RCDATA:{this._stateRcdata(t);break}case W.RAWTEXT:{this._stateRawtext(t);break}case W.SCRIPT_DATA:{this._stateScriptData(t);break}case W.PLAINTEXT:{this._statePlaintext(t);break}case W.TAG_OPEN:{this._stateTagOpen(t);break}case W.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case W.TAG_NAME:{this._stateTagName(t);break}case W.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case W.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case W.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case W.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case W.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case W.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case W.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case W.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case W.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case W.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case W.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case W.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case W.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case W.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case W.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case W.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case W.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case W.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case W.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case W.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case W.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case W.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case W.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case W.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case W.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case W.BOGUS_COMMENT:{this._stateBogusComment(t);break}case W.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case W.COMMENT_START:{this._stateCommentStart(t);break}case W.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case W.COMMENT:{this._stateComment(t);break}case W.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case W.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case W.COMMENT_END:{this._stateCommentEnd(t);break}case W.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case W.DOCTYPE:{this._stateDoctype(t);break}case W.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case W.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case W.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case W.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case W.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case W.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case W.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case W.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case W.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case W.CDATA_SECTION:{this._stateCdataSection(t);break}case W.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case W.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case W.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case W.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case V.LESS_THAN_SIGN:{this.state=W.TAG_OPEN;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitCodePoint(t);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case V.AMPERSAND:{this._startCharacterReference();break}case V.LESS_THAN_SIGN:{this.state=W.RCDATA_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(qn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case V.LESS_THAN_SIGN:{this.state=W.RAWTEXT_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(qn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(qn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(qn);break}case V.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Us(t))this._createStartTagToken(),this.state=W.TAG_NAME,this._stateTagName(t);else switch(t){case V.EXCLAMATION_MARK:{this.state=W.MARKUP_DECLARATION_OPEN;break}case V.SOLIDUS:{this.state=W.END_TAG_OPEN;break}case V.QUESTION_MARK:{this._err(Te.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t);break}case V.EOF:{this._err(Te.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Te.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=W.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Us(t))this._createEndTagToken(),this.state=W.TAG_NAME,this._stateTagName(t);else switch(t){case V.GREATER_THAN_SIGN:{this._err(Te.missingEndTagName),this.state=W.DATA;break}case V.EOF:{this._err(Te.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Te.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BEFORE_ATTRIBUTE_NAME;break}case V.SOLIDUS:{this.state=W.SELF_CLOSING_START_TAG;break}case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentTagToken();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.tagName+=qn;break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(up(t)?Rg(t):t)}}_stateRcdataLessThanSign(t){t===V.SOLIDUS?this.state=W.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=W.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Us(t)?(this.state=W.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=W.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 V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=W.BEFORE_ATTRIBUTE_NAME,!1;case V.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=W.SELF_CLOSING_START_TAG,!1;case V.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=W.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===V.SOLIDUS?this.state=W.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Us(t)?(this.state=W.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case V.SOLIDUS:{this.state=W.SCRIPT_DATA_END_TAG_OPEN;break}case V.EXCLAMATION_MARK:{this.state=W.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=W.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Us(t)?(this.state=W.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===V.HYPHEN_MINUS?(this.state=W.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===V.HYPHEN_MINUS?(this.state=W.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(qn);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_ESCAPED,this._emitChars(qn);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case V.HYPHEN_MINUS:{this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case V.GREATER_THAN_SIGN:{this.state=W.SCRIPT_DATA,this._emitChars(">");break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_ESCAPED,this._emitChars(qn);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===V.SOLIDUS?this.state=W.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Us(t)?(this._emitChars("<"),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Us(t)?(this.state=W.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(vo.SCRIPT,!1)&&QO(this.preprocessor.peek(vo.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<vo.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this._emitChars(qn);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qn);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case V.HYPHEN_MINUS:{this._emitChars("-");break}case V.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case V.GREATER_THAN_SIGN:{this.state=W.SCRIPT_DATA,this._emitChars(">");break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qn);break}case V.EOF:{this._err(Te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===V.SOLIDUS?(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(vo.SCRIPT,!1)&&QO(this.preprocessor.peek(vo.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<vo.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=W.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.SOLIDUS:case V.GREATER_THAN_SIGN:case V.EOF:{this.state=W.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case V.EQUALS_SIGN:{this._err(Te.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=W.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=W.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:case V.SOLIDUS:case V.GREATER_THAN_SIGN:case V.EOF:{this._leaveAttrName(),this.state=W.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case V.EQUALS_SIGN:{this._leaveAttrName(),this.state=W.BEFORE_ATTRIBUTE_VALUE;break}case V.QUOTATION_MARK:case V.APOSTROPHE:case V.LESS_THAN_SIGN:{this._err(Te.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.name+=qn;break}default:this.currentAttr.name+=String.fromCodePoint(up(t)?Rg(t):t)}}_stateAfterAttributeName(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.SOLIDUS:{this.state=W.SELF_CLOSING_START_TAG;break}case V.EQUALS_SIGN:{this.state=W.BEFORE_ATTRIBUTE_VALUE;break}case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=W.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{this.state=W.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this.state=W.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingAttributeValue),this.state=W.DATA,this.emitCurrentTagToken();break}default:this.state=W.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case V.QUOTATION_MARK:{this.state=W.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=qn;break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case V.APOSTROPHE:{this.state=W.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=qn;break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this._leaveAttrValue(),this.state=W.BEFORE_ATTRIBUTE_NAME;break}case V.AMPERSAND:{this._startCharacterReference();break}case V.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=W.DATA,this.emitCurrentTagToken();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),this.currentAttr.value+=qn;break}case V.QUOTATION_MARK:case V.APOSTROPHE:case V.LESS_THAN_SIGN:case V.EQUALS_SIGN:case V.GRAVE_ACCENT:{this._err(Te.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this._leaveAttrValue(),this.state=W.BEFORE_ATTRIBUTE_NAME;break}case V.SOLIDUS:{this._leaveAttrValue(),this.state=W.SELF_CLOSING_START_TAG;break}case V.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=W.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._err(Te.missingWhitespaceBetweenAttributes),this.state=W.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case V.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=W.DATA,this.emitCurrentTagToken();break}case V.EOF:{this._err(Te.eofInTag),this._emitEOFToken();break}default:this._err(Te.unexpectedSolidusInTag),this.state=W.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentComment(n);break}case V.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.data+=qn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(vo.DASH_DASH,!0)?(this._createCommentToken(vo.DASH_DASH.length+1),this.state=W.COMMENT_START):this._consumeSequenceIfMatch(vo.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(vo.DOCTYPE.length+1),this.state=W.DOCTYPE):this._consumeSequenceIfMatch(vo.CDATA_START,!0)?this.inForeignNode?this.state=W.CDATA_SECTION:(this._err(Te.cdataInHtmlContent),this._createCommentToken(vo.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=W.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Te.incorrectlyOpenedComment),this._createCommentToken(2),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case V.HYPHEN_MINUS:{this.state=W.COMMENT_START_DASH;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptClosingOfEmptyComment),this.state=W.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=W.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=W.COMMENT_END;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptClosingOfEmptyComment),this.state=W.DATA,this.emitCurrentComment(n);break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=W.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=W.COMMENT_END_DASH;break}case V.LESS_THAN_SIGN:{n.data+="<",this.state=W.COMMENT_LESS_THAN_SIGN;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.data+=qn;break}case V.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 V.EXCLAMATION_MARK:{n.data+="!",this.state=W.COMMENT_LESS_THAN_SIGN_BANG;break}case V.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=W.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===V.HYPHEN_MINUS?this.state=W.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=W.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===V.HYPHEN_MINUS?this.state=W.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=W.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==V.GREATER_THAN_SIGN&&t!==V.EOF&&this._err(Te.nestedComment),this.state=W.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{this.state=W.COMMENT_END;break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=W.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentComment(n);break}case V.EXCLAMATION_MARK:{this.state=W.COMMENT_END_BANG;break}case V.HYPHEN_MINUS:{n.data+="-";break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=W.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case V.HYPHEN_MINUS:{n.data+="--!",this.state=W.COMMENT_END_DASH;break}case V.GREATER_THAN_SIGN:{this._err(Te.incorrectlyClosedComment),this.state=W.DATA,this.emitCurrentComment(n);break}case V.EOF:{this._err(Te.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=W.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this.state=W.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case V.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=W.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(up(t))this._createDoctypeToken(String.fromCharCode(Rg(t))),this.state=W.DOCTYPE_NAME;else switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.NULL:{this._err(Te.unexpectedNullCharacter),this._createDoctypeToken(qn),this.state=W.DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.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=W.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.AFTER_DOCTYPE_NAME;break}case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.name+=qn;break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(up(t)?Rg(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(vo.PUBLIC,!1)?this.state=W.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(vo.SYSTEM,!1)?this.state=W.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Te.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.QUOTATION_MARK:{this._err(Te.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Te.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case V.QUOTATION_MARK:{this.state=W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.publicId+=qn;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.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 V.APOSTROPHE:{this.state=W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.publicId+=qn;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.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 V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case V.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.QUOTATION_MARK:{this._err(Te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.QUOTATION_MARK:{n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.QUOTATION_MARK:{this._err(Te.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{this._err(Te.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.QUOTATION_MARK:{n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case V.APOSTROPHE:{n.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case V.GREATER_THAN_SIGN:{this._err(Te.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(n);break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case V.QUOTATION_MARK:{this.state=W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.systemId+=qn;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.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 V.APOSTROPHE:{this.state=W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case V.NULL:{this._err(Te.unexpectedNullCharacter),n.systemId+=qn;break}case V.GREATER_THAN_SIGN:{this._err(Te.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.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 V.SPACE:case V.LINE_FEED:case V.TABULATION:case V.FORM_FEED:break;case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.EOF:{this._err(Te.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Te.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case V.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=W.DATA;break}case V.NULL:{this._err(Te.unexpectedNullCharacter);break}case V.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case V.RIGHT_SQUARE_BRACKET:{this.state=W.CDATA_SECTION_BRACKET;break}case V.EOF:{this._err(Te.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===V.RIGHT_SQUARE_BRACKET?this.state=W.CDATA_SECTION_END:(this._emitChars("]"),this.state=W.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case V.GREATER_THAN_SIGN:{this.state=W.DATA;break}case V.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=W.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(V.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&KO(this.preprocessor.peek(1))?W.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){KO(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===V.SEMICOLON&&this._err(Te.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const C6=new Set([A.DD,A.DT,A.LI,A.OPTGROUP,A.OPTION,A.P,A.RB,A.RP,A.RT,A.RTC]),XO=new Set([...C6,A.CAPTION,A.COLGROUP,A.TBODY,A.TD,A.TFOOT,A.TH,A.THEAD,A.TR]),r0=new Set([A.APPLET,A.CAPTION,A.HTML,A.MARQUEE,A.OBJECT,A.TABLE,A.TD,A.TEMPLATE,A.TH]),oye=new Set([...r0,A.OL,A.UL]),aye=new Set([...r0,A.BUTTON]),ZO=new Set([A.ANNOTATION_XML,A.MI,A.MN,A.MO,A.MS,A.MTEXT]),JO=new Set([A.DESC,A.FOREIGN_OBJECT,A.TITLE]),iye=new Set([A.TR,A.TEMPLATE,A.HTML]),sye=new Set([A.TBODY,A.TFOOT,A.THEAD,A.TEMPLATE,A.HTML]),lye=new Set([A.TABLE,A.TEMPLATE,A.HTML]),cye=new Set([A.TD,A.TH]);class uye{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)===Pe.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])!==Pe.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(RT,Pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(cye,Pe.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(lye,Pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(sye,Pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(iye,Pe.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 Pe.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case Pe.SVG:{if(JO.has(o))return!1;break}case Pe.MATHML:{if(ZO.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,r0)}hasInListItemScope(t){return this.hasInDynamicScope(t,oye)}hasInButtonScope(t){return this.hasInDynamicScope(t,aye)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Pe.HTML:{if(RT.has(n))return!0;if(r0.has(n))return!1;break}case Pe.SVG:{if(JO.has(n))return!1;break}case Pe.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])===Pe.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])===Pe.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])===Pe.HTML)switch(this.tagIDs[n]){case t:return!0;case A.OPTION:case A.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;C6.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;XO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&XO.has(this.currentTagId);)this.pop()}}const QE=3;var li;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(li||(li={}));const eN={type:li.Marker};class dye{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 l=0;l<this.entries.length;l++){const u=this.entries[l];if(u.type===li.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:l,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<QE)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<QE)return;const o=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const l=r[s];l.attrs.every(u=>o.get(u.name)===u.value)&&(a+=1,a>=QE&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(eN)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:li.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:li.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(eN);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===li.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===li.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===li.Element&&n.element===t)}}const Hs={createDocument(){return{nodeName:"#document",mode:ya.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};Hs.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(Hs.isTextNode(n)){n.value+=t;return}}Hs.appendChild(e,Hs.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Hs.isTextNode(r)?r.value+=t:Hs.insertBefore(e,Hs.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}}},_6="html",fye="about:legacy-compat",pye="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",A6=["+//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//"],hye=[...A6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],mye=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),k6=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],gye=[...k6,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function tN(e,t){return t.some(n=>e.startsWith(n))}function yye(e){return e.name===_6&&e.publicId===null&&(e.systemId===null||e.systemId===fye)}function bye(e){if(e.name!==_6)return ya.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===pye)return ya.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),mye.has(n))return ya.QUIRKS;let r=t===null?hye:A6;if(tN(n,r))return ya.QUIRKS;if(r=t===null?k6:gye,tN(n,r))return ya.LIMITED_QUIRKS}return ya.NO_QUIRKS}const nN={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},vye="definitionurl",Eye="definitionURL",xye=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])),Tye=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Pe.XMLNS}]]),Sye=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])),Cye=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 _ye(e){const t=e.tagID;return t===A.FONT&&e.attrs.some(({name:n})=>n===Kl.COLOR||n===Kl.SIZE||n===Kl.FACE)||Cye.has(t)}function w6(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===vye){e.attrs[t].name=Eye;break}}function D6(e){for(let t=0;t<e.attrs.length;t++){const n=xye.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function i_(e){for(let t=0;t<e.attrs.length;t++){const n=Tye.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 Aye(e){const t=Sye.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Td(e.tagName))}function kye(e,t){return t===Pe.MATHML&&(e===A.MI||e===A.MO||e===A.MN||e===A.MS||e===A.MTEXT)}function wye(e,t,n){if(t===Pe.MATHML&&e===A.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Kl.ENCODING){const o=n[r].value.toLowerCase();return o===nN.TEXT_HTML||o===nN.APPLICATION_XML}}return t===Pe.SVG&&(e===A.FOREIGN_OBJECT||e===A.DESC||e===A.TITLE)}function Dye(e,t,n,r){return(!r||r===Pe.HTML)&&wye(e,t,n)||(!r||r===Pe.MATHML)&&kye(e,t)}const Rye="hidden",Iye=8,Oye=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 Nye={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},R6=new Set([A.TABLE,A.TBODY,A.TFOOT,A.THEAD,A.TR]),rN={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hs,onParseError:null};class oN{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={...rN,...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 rye(this.options,this),this.activeFormattingElements=new dye(this.treeAdapter),this.fragmentContextID=r?Td(this.treeAdapter.getTagName(r)):A.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new uye(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={...rN,...n};t??(t=r.treeAdapter.createElement(fe.TEMPLATE,Pe.HTML,[]));const o=r.treeAdapter.createElement("documentmock",Pe.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:Nye,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)===Pe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Pe.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=ur.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)===fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Pe.HTML))switch(this.fragmentContextID){case A.TITLE:case A.TEXTAREA:{this.tokenizer.state=ur.RCDATA;break}case A.STYLE:case A.XMP:case A.IFRAME:case A.NOEMBED:case A.NOFRAMES:case A.NOSCRIPT:{this.tokenizer.state=ur.RAWTEXT;break}case A.SCRIPT:{this.tokenizer.state=ur.SCRIPT_DATA;break}case A.PLAINTEXT:{this.tokenizer.state=ur.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,Pe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Pe.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(fe.HTML,Pe.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:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,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===Gt.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)===fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===A.MGLYPH||t.tagID===A.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Pe.HTML)}_processToken(t){switch(t.type){case Gt.CHARACTER:{this.onCharacter(t);break}case Gt.NULL_CHARACTER:{this.onNullCharacter(t);break}case Gt.COMMENT:{this.onComment(t);break}case Gt.DOCTYPE:{this.onDoctype(t);break}case Gt.START_TAG:{this._processStartTag(t);break}case Gt.END_TAG:{this.onEndTag(t);break}case Gt.EOF:{this.onEof(t);break}case Gt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Dye(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===li.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 R6.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)===Pe.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 Jge[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){cbe(this,t);return}switch(this.insertionMode){case Q.INITIAL:{Kf(this,t);break}case Q.BEFORE_HTML:{Dp(this,t);break}case Q.BEFORE_HEAD:{Rp(this,t);break}case Q.IN_HEAD:{Ip(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Op(this,t);break}case Q.AFTER_HEAD:{Np(this,t);break}case Q.IN_BODY:case Q.IN_CAPTION:case Q.IN_CELL:case Q.IN_TEMPLATE:{O6(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:{XE(this,t);break}case Q.IN_TABLE_TEXT:{B6(this,t);break}case Q.IN_COLUMN_GROUP:{o0(this,t);break}case Q.AFTER_BODY:{a0(this,t);break}case Q.AFTER_AFTER_BODY:{oy(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){lbe(this,t);return}switch(this.insertionMode){case Q.INITIAL:{Kf(this,t);break}case Q.BEFORE_HTML:{Dp(this,t);break}case Q.BEFORE_HEAD:{Rp(this,t);break}case Q.IN_HEAD:{Ip(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Op(this,t);break}case Q.AFTER_HEAD:{Np(this,t);break}case Q.TEXT:{this._insertCharacters(t);break}case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:{XE(this,t);break}case Q.IN_COLUMN_GROUP:{o0(this,t);break}case Q.AFTER_BODY:{a0(this,t);break}case Q.AFTER_AFTER_BODY:{oy(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){IT(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:{IT(this,t);break}case Q.IN_TABLE_TEXT:{Qf(this,t);break}case Q.AFTER_BODY:{Uye(this,t);break}case Q.AFTER_AFTER_BODY:case Q.AFTER_AFTER_FRAMESET:{Hye(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Q.INITIAL:{zye(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:{Qf(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)?ube(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Q.INITIAL:{Kf(this,t);break}case Q.BEFORE_HTML:{$ye(this,t);break}case Q.BEFORE_HEAD:{Gye(this,t);break}case Q.IN_HEAD:{qa(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Yye(this,t);break}case Q.AFTER_HEAD:{Qye(this,t);break}case Q.IN_BODY:{to(this,t);break}case Q.IN_TABLE:{Ju(this,t);break}case Q.IN_TABLE_TEXT:{Qf(this,t);break}case Q.IN_CAPTION:{q0e(this,t);break}case Q.IN_COLUMN_GROUP:{c_(this,t);break}case Q.IN_TABLE_BODY:{Ab(this,t);break}case Q.IN_ROW:{kb(this,t);break}case Q.IN_CELL:{K0e(this,t);break}case Q.IN_SELECT:{H6(this,t);break}case Q.IN_SELECT_IN_TABLE:{X0e(this,t);break}case Q.IN_TEMPLATE:{J0e(this,t);break}case Q.AFTER_BODY:{tbe(this,t);break}case Q.IN_FRAMESET:{nbe(this,t);break}case Q.AFTER_FRAMESET:{obe(this,t);break}case Q.AFTER_AFTER_BODY:{ibe(this,t);break}case Q.AFTER_AFTER_FRAMESET:{sbe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?dbe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Q.INITIAL:{Kf(this,t);break}case Q.BEFORE_HTML:{Vye(this,t);break}case Q.BEFORE_HEAD:{qye(this,t);break}case Q.IN_HEAD:{Wye(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Kye(this,t);break}case Q.AFTER_HEAD:{Xye(this,t);break}case Q.IN_BODY:{_b(this,t);break}case Q.TEXT:{M0e(this,t);break}case Q.IN_TABLE:{gh(this,t);break}case Q.IN_TABLE_TEXT:{Qf(this,t);break}case Q.IN_CAPTION:{W0e(this,t);break}case Q.IN_COLUMN_GROUP:{Y0e(this,t);break}case Q.IN_TABLE_BODY:{OT(this,t);break}case Q.IN_ROW:{U6(this,t);break}case Q.IN_CELL:{Q0e(this,t);break}case Q.IN_SELECT:{z6(this,t);break}case Q.IN_SELECT_IN_TABLE:{Z0e(this,t);break}case Q.IN_TEMPLATE:{ebe(this,t);break}case Q.AFTER_BODY:{V6(this,t);break}case Q.IN_FRAMESET:{rbe(this,t);break}case Q.AFTER_FRAMESET:{abe(this,t);break}case Q.AFTER_AFTER_BODY:{oy(this,t);break}}}onEof(t){switch(this.insertionMode){case Q.INITIAL:{Kf(this,t);break}case Q.BEFORE_HTML:{Dp(this,t);break}case Q.BEFORE_HEAD:{Rp(this,t);break}case Q.IN_HEAD:{Ip(this,t);break}case Q.IN_HEAD_NO_SCRIPT:{Op(this,t);break}case Q.AFTER_HEAD:{Np(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:{M6(this,t);break}case Q.TEXT:{F0e(this,t);break}case Q.IN_TABLE_TEXT:{Qf(this,t);break}case Q.IN_TEMPLATE:{$6(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:{l_(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===V.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:{I6(this,t);break}case Q.IN_TABLE:case Q.IN_TABLE_BODY:case Q.IN_ROW:{XE(this,t);break}case Q.IN_TABLE_TEXT:{F6(this,t);break}}}}function Pye(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):L6(e,t),n}function Lye(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 Mye(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 l=e.activeFormattingElements.getElementEntry(s),u=l&&a>=Oye;!l||u?(u&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(s)):(s=Fye(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Fye(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 Bye(e,t,n){const r=e.treeAdapter.getTagName(t),o=Td(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===A.TEMPLATE&&a===Pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function jye(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 s_(e,t){for(let n=0;n<Iye;n++){const r=Pye(e,t);if(!r)break;const o=Lye(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=Mye(e,o,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&Bye(e,s,a),jye(e,o,r)}}function IT(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Uye(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Hye(e,t){e._appendCommentNode(t,e.document)}function l_(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 zye(e,t){e._setDocumentType(t);const n=t.forceQuirks?ya.QUIRKS:bye(t);yye(t)||e._err(t,Te.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Q.BEFORE_HTML}function Kf(e,t){e._err(t,Te.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ya.QUIRKS),e.insertionMode=Q.BEFORE_HTML,e._processToken(t)}function $ye(e,t){t.tagID===A.HTML?(e._insertElement(t,Pe.HTML),e.insertionMode=Q.BEFORE_HEAD):Dp(e,t)}function Vye(e,t){const n=t.tagID;(n===A.HTML||n===A.HEAD||n===A.BODY||n===A.BR)&&Dp(e,t)}function Dp(e,t){e._insertFakeRootElement(),e.insertionMode=Q.BEFORE_HEAD,e._processToken(t)}function Gye(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.HEAD:{e._insertElement(t,Pe.HTML),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD;break}default:Rp(e,t)}}function qye(e,t){const n=t.tagID;n===A.HEAD||n===A.BODY||n===A.HTML||n===A.BR?Rp(e,t):e._err(t,Te.endTagWithoutMatchingOpenElement)}function Rp(e,t){e._insertFakeElement(fe.HEAD,A.HEAD),e.headElement=e.openElements.current,e.insertionMode=Q.IN_HEAD,e._processToken(t)}function qa(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.BASE:case A.BASEFONT:case A.BGSOUND:case A.LINK:case A.META:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case A.TITLE:{e._switchToTextParsing(t,ur.RCDATA);break}case A.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ur.RAWTEXT):(e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_HEAD_NO_SCRIPT);break}case A.NOFRAMES:case A.STYLE:{e._switchToTextParsing(t,ur.RAWTEXT);break}case A.SCRIPT:{e._switchToTextParsing(t,ur.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:Ip(e,t)}}function Wye(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:{Ip(e,t);break}case A.TEMPLATE:{gc(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function gc(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 Ip(e,t){e.openElements.pop(),e.insertionMode=Q.AFTER_HEAD,e._processToken(t)}function Yye(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.BASEFONT:case A.BGSOUND:case A.HEAD:case A.LINK:case A.META:case A.NOFRAMES:case A.STYLE:{qa(e,t);break}case A.NOSCRIPT:{e._err(t,Te.nestedNoscriptInHead);break}default:Op(e,t)}}function Kye(e,t){switch(t.tagID){case A.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Q.IN_HEAD;break}case A.BR:{Op(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function Op(e,t){const n=t.type===Gt.EOF?Te.openElementsLeftAfterEof:Te.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Q.IN_HEAD,e._processToken(t)}function Qye(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.BODY:{e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_BODY;break}case A.FRAMESET:{e._insertElement(t,Pe.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),qa(e,t),e.openElements.remove(e.headElement);break}case A.HEAD:{e._err(t,Te.misplacedStartTagForHeadElement);break}default:Np(e,t)}}function Xye(e,t){switch(t.tagID){case A.BODY:case A.HTML:case A.BR:{Np(e,t);break}case A.TEMPLATE:{gc(e,t);break}default:e._err(t,Te.endTagWithoutMatchingOpenElement)}}function Np(e,t){e._insertFakeElement(fe.BODY,A.BODY),e.insertionMode=Q.IN_BODY,Cb(e,t)}function Cb(e,t){switch(t.type){case Gt.CHARACTER:{O6(e,t);break}case Gt.WHITESPACE_CHARACTER:{I6(e,t);break}case Gt.COMMENT:{IT(e,t);break}case Gt.START_TAG:{to(e,t);break}case Gt.END_TAG:{_b(e,t);break}case Gt.EOF:{M6(e,t);break}}}function I6(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function O6(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Zye(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Jye(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function e0e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_FRAMESET)}function t0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function n0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),RT.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Pe.HTML)}function r0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function o0e(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),n||(e.formElement=e.openElements.current))}function a0e(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,Pe.HTML)}function i0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.tokenizer.state=ur.PLAINTEXT}function s0e(e,t){e.openElements.hasInScope(A.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1}function l0e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(fe.A);n&&(s_(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function c0e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function u0e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(A.NOBR)&&(s_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function d0e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function f0e(e,t){e.treeAdapter.getDocumentMode(e.document)!==ya.QUIRKS&&e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=Q.IN_TABLE}function N6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function P6(e){const t=v6(e,Kl.TYPE);return t!=null&&t.toLowerCase()===Rye}function p0e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),P6(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function h0e(e,t){e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0}function m0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function g0e(e,t){t.tagName=fe.IMG,t.tagID=A.IMG,N6(e,t)}function y0e(e,t){e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ur.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Q.TEXT}function b0e(e,t){e.openElements.hasInButtonScope(A.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ur.RAWTEXT)}function v0e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ur.RAWTEXT)}function aN(e,t){e._switchToTextParsing(t,ur.RAWTEXT)}function E0e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.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 x0e(e,t){e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function T0e(e,t){e.openElements.hasInScope(A.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Pe.HTML)}function S0e(e,t){e.openElements.hasInScope(A.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(A.RTC),e._insertElement(t,Pe.HTML)}function C0e(e,t){e._reconstructActiveFormattingElements(),w6(t),i_(t),t.selfClosing?e._appendElement(t,Pe.MATHML):e._insertElement(t,Pe.MATHML),t.ackSelfClosing=!0}function _0e(e,t){e._reconstructActiveFormattingElements(),D6(t),i_(t),t.selfClosing?e._appendElement(t,Pe.SVG):e._insertElement(t,Pe.SVG),t.ackSelfClosing=!0}function iN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function to(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:{c0e(e,t);break}case A.A:{l0e(e,t);break}case A.H1:case A.H2:case A.H3:case A.H4:case A.H5:case A.H6:{n0e(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:{t0e(e,t);break}case A.LI:case A.DD:case A.DT:{a0e(e,t);break}case A.BR:case A.IMG:case A.WBR:case A.AREA:case A.EMBED:case A.KEYGEN:{N6(e,t);break}case A.HR:{m0e(e,t);break}case A.RB:case A.RTC:{T0e(e,t);break}case A.RT:case A.RP:{S0e(e,t);break}case A.PRE:case A.LISTING:{r0e(e,t);break}case A.XMP:{b0e(e,t);break}case A.SVG:{_0e(e,t);break}case A.HTML:{Zye(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:{qa(e,t);break}case A.BODY:{Jye(e,t);break}case A.FORM:{o0e(e,t);break}case A.NOBR:{u0e(e,t);break}case A.MATH:{C0e(e,t);break}case A.TABLE:{f0e(e,t);break}case A.INPUT:{p0e(e,t);break}case A.PARAM:case A.TRACK:case A.SOURCE:{h0e(e,t);break}case A.IMAGE:{g0e(e,t);break}case A.BUTTON:{s0e(e,t);break}case A.APPLET:case A.OBJECT:case A.MARQUEE:{d0e(e,t);break}case A.IFRAME:{v0e(e,t);break}case A.SELECT:{E0e(e,t);break}case A.OPTION:case A.OPTGROUP:{x0e(e,t);break}case A.NOEMBED:case A.NOFRAMES:{aN(e,t);break}case A.FRAMESET:{e0e(e,t);break}case A.TEXTAREA:{y0e(e,t);break}case A.NOSCRIPT:{e.options.scriptingEnabled?aN(e,t):iN(e,t);break}case A.PLAINTEXT:{i0e(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:iN(e,t)}}function A0e(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 k0e(e,t){e.openElements.hasInScope(A.BODY)&&(e.insertionMode=Q.AFTER_BODY,V6(e,t))}function w0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function D0e(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 R0e(e){e.openElements.hasInButtonScope(A.P)||e._insertFakeElement(fe.P,A.P),e._closePElement()}function I0e(e){e.openElements.hasInListItemScope(A.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(A.LI),e.openElements.popUntilTagNamePopped(A.LI))}function O0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function N0e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function P0e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function L0e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(fe.BR,A.BR),e.openElements.pop(),e.framesetOk=!1}function L6(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 _b(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:{s_(e,t);break}case A.P:{R0e(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:{w0e(e,t);break}case A.LI:{I0e(e);break}case A.DD:case A.DT:{O0e(e,t);break}case A.H1:case A.H2:case A.H3:case A.H4:case A.H5:case A.H6:{N0e(e);break}case A.BR:{L0e(e);break}case A.BODY:{A0e(e,t);break}case A.HTML:{k0e(e,t);break}case A.FORM:{D0e(e);break}case A.APPLET:case A.OBJECT:case A.MARQUEE:{P0e(e,t);break}case A.TEMPLATE:{gc(e,t);break}default:L6(e,t)}}function M6(e,t){e.tmplInsertionModeStack.length>0?$6(e,t):l_(e,t)}function M0e(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 F0e(e,t){e._err(t,Te.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function XE(e,t){if(R6.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 Gt.CHARACTER:{B6(e,t);break}case Gt.WHITESPACE_CHARACTER:{F6(e,t);break}}else Yh(e,t)}function B0e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_CAPTION}function j0e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_COLUMN_GROUP}function U0e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.COLGROUP,A.COLGROUP),e.insertionMode=Q.IN_COLUMN_GROUP,c_(e,t)}function H0e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_TABLE_BODY}function z0e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.TBODY,A.TBODY),e.insertionMode=Q.IN_TABLE_BODY,Ab(e,t)}function $0e(e,t){e.openElements.hasInTableScope(A.TABLE)&&(e.openElements.popUntilTagNamePopped(A.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function V0e(e,t){P6(t)?e._appendElement(t,Pe.HTML):Yh(e,t),t.ackSelfClosing=!0}function G0e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ju(e,t){switch(t.tagID){case A.TD:case A.TH:case A.TR:{z0e(e,t);break}case A.STYLE:case A.SCRIPT:case A.TEMPLATE:{qa(e,t);break}case A.COL:{U0e(e,t);break}case A.FORM:{G0e(e,t);break}case A.TABLE:{$0e(e,t);break}case A.TBODY:case A.TFOOT:case A.THEAD:{H0e(e,t);break}case A.INPUT:{V0e(e,t);break}case A.CAPTION:{B0e(e,t);break}case A.COLGROUP:{j0e(e,t);break}default:Yh(e,t)}}function gh(e,t){switch(t.tagID){case A.TABLE:{e.openElements.hasInTableScope(A.TABLE)&&(e.openElements.popUntilTagNamePopped(A.TABLE),e._resetInsertionMode());break}case A.TEMPLATE:{gc(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:Yh(e,t)}}function Yh(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Cb(e,t),e.fosterParentingEnabled=n}function F6(e,t){e.pendingCharacterTokens.push(t)}function B6(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Qf(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Yh(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const j6=new Set([A.CAPTION,A.COL,A.COLGROUP,A.TBODY,A.TD,A.TFOOT,A.TH,A.THEAD,A.TR]);function q0e(e,t){const n=t.tagID;j6.has(n)?e.openElements.hasInTableScope(A.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Q.IN_TABLE,Ju(e,t)):to(e,t)}function W0e(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&&gh(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:_b(e,t)}}function c_(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.COL:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case A.TEMPLATE:{qa(e,t);break}default:o0(e,t)}}function Y0e(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:{gc(e,t);break}case A.COL:break;default:o0(e,t)}}function o0(e,t){e.openElements.currentTagId===A.COLGROUP&&(e.openElements.pop(),e.insertionMode=Q.IN_TABLE,e._processToken(t))}function Ab(e,t){switch(t.tagID){case A.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Pe.HTML),e.insertionMode=Q.IN_ROW;break}case A.TH:case A.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(fe.TR,A.TR),e.insertionMode=Q.IN_ROW,kb(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,Ju(e,t));break}default:Ju(e,t)}}function OT(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,gh(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:gh(e,t)}}function kb(e,t){switch(t.tagID){case A.TH:case A.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Pe.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,Ab(e,t));break}default:Ju(e,t)}}function U6(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,OT(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,OT(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:gh(e,t)}}function K0e(e,t){const n=t.tagID;j6.has(n)?(e.openElements.hasInTableScope(A.TD)||e.openElements.hasInTableScope(A.TH))&&(e._closeTableCell(),kb(e,t)):to(e,t)}function Q0e(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(),U6(e,t));break}case A.BODY:case A.CAPTION:case A.COL:case A.COLGROUP:case A.HTML:break;default:_b(e,t)}}function H6(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.OPTION:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case A.OPTGROUP:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case A.HR:{e.openElements.currentTagId===A.OPTION&&e.openElements.pop(),e.openElements.currentTagId===A.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Pe.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:{qa(e,t);break}}}function z6(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:{gc(e,t);break}}}function X0e(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)):H6(e,t)}function Z0e(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)):z6(e,t)}function J0e(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:{qa(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,Ju(e,t);break}case A.COL:{e.tmplInsertionModeStack[0]=Q.IN_COLUMN_GROUP,e.insertionMode=Q.IN_COLUMN_GROUP,c_(e,t);break}case A.TR:{e.tmplInsertionModeStack[0]=Q.IN_TABLE_BODY,e.insertionMode=Q.IN_TABLE_BODY,Ab(e,t);break}case A.TD:case A.TH:{e.tmplInsertionModeStack[0]=Q.IN_ROW,e.insertionMode=Q.IN_ROW,kb(e,t);break}default:e.tmplInsertionModeStack[0]=Q.IN_BODY,e.insertionMode=Q.IN_BODY,to(e,t)}}function ebe(e,t){t.tagID===A.TEMPLATE&&gc(e,t)}function $6(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(A.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):l_(e,t)}function tbe(e,t){t.tagID===A.HTML?to(e,t):a0(e,t)}function V6(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 a0(e,t)}function a0(e,t){e.insertionMode=Q.IN_BODY,Cb(e,t)}function nbe(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.FRAMESET:{e._insertElement(t,Pe.HTML);break}case A.FRAME:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case A.NOFRAMES:{qa(e,t);break}}}function rbe(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 obe(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.NOFRAMES:{qa(e,t);break}}}function abe(e,t){t.tagID===A.HTML&&(e.insertionMode=Q.AFTER_AFTER_FRAMESET)}function ibe(e,t){t.tagID===A.HTML?to(e,t):oy(e,t)}function oy(e,t){e.insertionMode=Q.IN_BODY,Cb(e,t)}function sbe(e,t){switch(t.tagID){case A.HTML:{to(e,t);break}case A.NOFRAMES:{qa(e,t);break}}}function lbe(e,t){t.chars=qn,e._insertCharacters(t)}function cbe(e,t){e._insertCharacters(t),e.framesetOk=!1}function G6(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Pe.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ube(e,t){if(_ye(t))G6(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Pe.MATHML?w6(t):r===Pe.SVG&&(Aye(t),D6(t)),i_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function dbe(e,t){if(t.tagID===A.P||t.tagID===A.BR){G6(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)===Pe.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}fe.AREA,fe.BASE,fe.BASEFONT,fe.BGSOUND,fe.BR,fe.COL,fe.EMBED,fe.FRAME,fe.HR,fe.IMG,fe.INPUT,fe.KEYGEN,fe.LINK,fe.META,fe.PARAM,fe.SOURCE,fe.TRACK,fe.WBR;const fbe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,pbe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),sN={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function q6(e,t){const n=Sbe(e),r=ub("type",{handlers:{root:hbe,element:mbe,text:gbe,comment:Y6,doctype:ybe,raw:vbe},unknown:Ebe}),o={parser:n?new oN(sN):oN.getFragmentParser(void 0,sN),handle(l){r(l,o)},stitches:!1,options:t||{}};r(e,o),Sd(o,Ei());const a=n?o.parser.document:o.parser.getFragment(),s=mge(a,{file:o.options.file});return o.stitches&&wo(s,"comment",function(l,u,d){const p=l;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 W6(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function hbe(e,t){W6(e.children,t)}function mbe(e,t){xbe(e,t),W6(e.children,t),Tbe(e,t)}function gbe(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Gt.CHARACTER,chars:e.value,location:Kh(e)};Sd(t,Ei(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ybe(e,t){const n={type:Gt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Kh(e)};Sd(t,Ei(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function bbe(e,t){t.stitches=!0;const n=Cbe(e);if("children"in e&&"children"in n){const r=q6({type:"root",children:e.children},t.options);n.children=r.children}Y6({type:"comment",value:{stitch:n}},t)}function Y6(e,t){const n=e.value,r={type:Gt.COMMENT,data:n,location:Kh(e)};Sd(t,Ei(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function vbe(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,K6(t,Ei(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(fbe,"&lt;$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 Ebe(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))bbe(n,t);else{let r="";throw pbe.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 Sd(e,t){K6(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=ur.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 K6(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 xbe(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ur.PLAINTEXT)return;Sd(t,Ei(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:$l.html;o===$l.html&&n==="svg"&&(o=$l.svg);const a=Rge({...e,children:[]},{space:o===$l.svg?"svg":"html"}),s={type:Gt.START_TAG,tagName:n,tagID:Td(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Kh(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Tbe(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&G4.includes(n)||t.parser.tokenizer.state===ur.PLAINTEXT)return;Sd(t,bb(e));const r={type:Gt.END_TAG,tagName:n,tagID:Td(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Kh(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ur.RCDATA||t.parser.tokenizer.state===ur.RAWTEXT||t.parser.tokenizer.state===ur.SCRIPT_DATA)&&(t.parser.tokenizer.state=ur.DATA)}function Sbe(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Kh(e){const t=Ei(e)||{line:void 0,column:void 0,offset:void 0},n=bb(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 Cbe(e){return"children"in e?sc({...e,children:[]}):sc(e)}function Q6(e){return function(t,n){return q6(t,{...e,file:n})}}const _be=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Abe=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,kbe=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{wo(n,"blockquote",(r,o,a)=>{let s="",l="",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?Abe:_be,b=g.match(y);if(b&&(u=!1,s=b[1].toLocaleLowerCase(),l=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:[wbe(s),{type:"text",value:l.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function wbe(e){let t=Dbe[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 Dbe={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 Rbe(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 X6(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?X6(t.parentElement):null}function Ibe(e){var t=n=>{var r=X6(n.target);r&&(r.classList.add("active"),Rbe(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};k.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 Obe=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Nbe=e=>e;const Pbe=Fe.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:o,style:a,disableCopy:s=!1,skipHtml:l=!0,onScroll:u,onMouseOver:d,pluginsFilter:p,wrapperElement:h={},warpperElement:g={},urlTransform:y}=e,b=Zce(e,Obe),x=Fe.useRef(null);k.useImperativeHandle(t,()=>Zi({},e,{mdp:x}),[x,e]);var S=(n||"")+" "+(r||"");Ibe(x);var T=[...b.rehypePlugins||[]],D={allowElement:(I,O,F)=>b.allowElement?b.allowElement(I,O,F):/^[A-Za-z0-9]+$/.test(I.tagName)};l&&T.push(Q6);var w=[kbe,...b.remarkPlugins||[],oge],R=Zi({},g,h);return v.jsx("div",Zi({ref:x,onScroll:u,onMouseOver:d},R,{className:S,style:a,children:v.jsx(Ype,Zi({},D,b,{skipHtml:l,urlTransform:y||Nbe,rehypePlugins:p?p("rehype",T):T,remarkPlugins:p?p("remark",w):w,children:o||""}))}))});var ay={},NT={};function Lbe(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 lN(e){if(e.length===0)return ay;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];Lbe(o,t)}return t}function Mbe(e){if(e.length===0)return NT;for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];t[o]=!0}return t}var Ig={},cN={type:"String",optional:!0};function Fbe(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 Bbe(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,l=a;s<l.length;s++){var u=l[s];(t[u]||(t[u]=[])).push(o)}}return t}function uN(e){for(var t=Bbe(e),n={},r=0,o=Object.keys(t);r<o.length;r++){var a=o[r],s=t[a];s&&(n[a]=Fbe(s))}return n}var ed=function(){return ed=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},ed.apply(this,arguments)},jbe={},PT={wildcard:!0};function Ube(e){return e?typeof e=="boolean"?PT:e:jbe}function Hbe(e,t){return function(n,r){return t(e(n),e(r))}}function zbe(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 dN(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function fu(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=ed({},t),o=0,a=Object.entries(n);o<a.length;o++){var s=a[o],l=s[0],u=s[1];if(l!=="latest"){var d=e[l];r[l]=d(t[l],u)}}return r}}function Gi(e,t){return t!==void 0?t:e}function Og(e,t){return t?e?e.concat(t):t:e}function fN(e,t){if(!t)return e;if(!e)return t;for(var n=ed({},e),r=0,o=Object.entries(t);r<o.length;r++){var a=o[r],s=a[0],l=a[1];if(!l){delete n[s];continue}var u=e[s];if(!u){n[s]=l;continue}n[s]=u.concat(l)}return n}var Ql=zbe(fu({baseSyntax:Gi,modules:Og,tag:dN(PT,fu({wildcard:Gi})),ids:Gi,classNames:Gi,namespace:dN(PT,fu({wildcard:Gi})),combinators:Og,attributes:fu({operators:Og,caseSensitivityModifiers:Og,unknownCaseSensitivityModifiers:Gi}),pseudoClasses:fu({unknown:Gi,definitions:fN}),pseudoElements:fu({unknown:Gi,notation:Gi,definitions:Hbe(function(e){return Array.isArray(e)?{NoArgument:e}:e},fN)})})),Z6={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},J6=Ql(Z6,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),LT=Ql(J6,{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"]}}}),e8=Ql(LT,{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"]}}}),i0={"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"]}}}},t8=ed(ed({},e8),{modules:Object.entries(i0).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),$be=Ql(t8,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),MT={css1:Z6,css2:J6,css3:LT,"selectors-3":LT,"selectors-4":e8,latest:t8,progressive:$be};function Vbe(){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=MT[o];if(a.pseudoClasses&&typeof a.pseudoClasses=="object"){var s=a.pseudoClasses.definitions;if(s)for(var l=0,u=Object.entries(s);l<u.length;l++)for(var d=u[l],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],w=0,R=p;w<R.length;w++){var I=R[w];e.pseudoElements[I]||(e.pseudoElements[I]=[]),e.pseudoElements[I].includes(o)||e.pseudoElements[I].push(o)}}}for(var O=0,F=Object.entries(i0);O<F.length;O++){var j=F[O],H=j[0],C=j[1];if(C.pseudoClasses&&typeof C.pseudoClasses=="object"){var s=C.pseudoClasses.definitions;if(s)for(var M=0,$=Object.values(s);M<$.length;M++)for(var p=$[M],z=0,q=p;z<q.length;z++){var Y=q[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,X=s;B<X.length;B++){var ae=X[B];e.pseudoElements[ae]||(e.pseudoElements[ae]=[]),e.pseudoElements[ae].includes(H)||e.pseudoElements[ae].push(H)}else for(var te=0,N=Object.values(s);te<N.length;te++)for(var p=N[te],oe=0,K=p;oe<K.length;oe++){var P=K[oe];e.pseudoElements[P]||(e.pseudoElements[P]=[]),e.pseudoElements[P].includes(H)||e.pseudoElements[P].push(H)}}}return e}var pN=Vbe();function Xf(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function hN(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Zf(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Gbe={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},qbe={'"':!0,"'":!0},ZE={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Wbe=6,JE="css-selector-parser parse error: ";function Ybe(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,l=typeof n=="object"?n:MT[n];if(l.baseSyntax&&(l=Ql(MT[l.baseSyntax],l)),l.modules&&l.modules.length>0)for(var u=0,d=l.modules;u<d.length;u++){var p=d[u],h=i0[p];h&&(l=Ql(h,l))}if(s&&s.length>0)for(var g=0,y=s;g<y.length;g++){var b=y[g],h=i0[b];h&&(l=Ql(h,l))}var x=l.tag?[!0,!!Ube(l.tag).wildcard]:[!1,!1],S=x[0],T=x[1],D=!!l.ids,w=!!l.classNames,R=!!l.namespace,I=l.namespace&&(l.namespace===!0||l.namespace.wildcard===!0);if(R&&!S)throw new Error("".concat(JE,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,F=l.combinators?lN(l.combinators):ay,j=l.attributes?[!0,l.attributes.operators?lN(l.attributes.operators):ay,l.attributes.caseSensitivityModifiers?Mbe(l.attributes.caseSensitivityModifiers):NT,l.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,ay,NT,!1],H=j[0],C=j[1],M=j[2],$=j[3],z=$||Object.keys(M).length>0,q=l.pseudoClasses?[!0,l.pseudoClasses.definitions?uN(l.pseudoClasses.definitions):Ig,l.pseudoClasses.unknown==="accept"]:[!1,Ig,!1],Y=q[0],B=q[1],X=q[2],ae=l.pseudoElements?[!0,l.pseudoElements.notation==="singleColon"||l.pseudoElements.notation==="both",!l.pseudoElements.notation||l.pseudoElements.notation==="doubleColon"||l.pseudoElements.notation==="both",l.pseudoElements.definitions?uN(Array.isArray(l.pseudoElements.definitions)?{NoArgument:l.pseudoElements.definitions}:l.pseudoElements.definitions):Ig,l.pseudoElements.unknown==="accept"]:[!1,!1,!1,Ig,!1],te=ae[0],N=ae[1],oe=ae[2],K=ae[3],P=ae[4],ee="",ce=ee.length,re=0,be="",ye=function(Ee){return be===Ee},Ge=function(){return ye("*")||Xf(be)},Me=function(Ee){re=Ee,be=ee.charAt(re)},Oe=function(){re++,be=ee.charAt(re)},Qe=function(){var Ee=be;return re++,be=ee.charAt(re),Ee};function nt(Ee){var Se=Math.min(ce-1,re),ht=new Error("".concat(JE).concat(Ee," Pos: ").concat(Se,"."));throw ht.position=Se,ht.name="ParserError",ht}function Re(Ee,Se){if(!Ee)return nt(Se)}var gt=function(){Re(re<ce,"Unexpected end of input.")},At=function(){return re>=ce},je=function(Ee){Re(re<ce,'Expected "'.concat(Ee,'" but end of input reached.')),Re(be===Ee,'Expected "'.concat(Ee,'" but "').concat(be,'" found.')),re++,be=ee.charAt(re)};function mt(Ee){var Se=lt(Ee,re);if(Se)return re+=Se.length,be=ee.charAt(re),Se}function lt(Ee,Se){var ht=ee.charAt(Se),rt=Ee[ht];if(rt){var mn=lt(rt.chars,Se+1);if(mn)return mn;if(rt.self)return rt.self}}function ft(){for(var Ee=Qe(),Se=1;Zf(be)&&Se<Wbe;)Ee+=Qe(),Se++;return Ut(),String.fromCharCode(parseInt(Ee,16))}function Ue(Ee){var Se="";for(je(Ee);re<ce;){if(ye(Ee))return Oe(),Se;ye("\\")?(Oe(),ye(Ee)?(Se+=Ee,Oe()):be===`
393
- `||be==="\f"?Oe():be==="\r"?(Oe(),ye(`
394
- `)&&Oe()):Zf(be)?Se+=ft():(Se+=be,Oe())):(Se+=be,Oe())}return Se}function Le(){if(!Xf(be))return null;for(var Ee="";ye("-");)Ee+=be,Oe();for(Ee==="-"&&!hN(be)&&!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[be]&&nt("Identifiers cannot start with hyphens followed by digits.");re<ce;)if(hN(be))Ee+=Qe();else if(ye("\\"))Oe(),gt(),Zf(be)?Ee+=ft():Ee+=Qe();else break;return Ee}function Jt(){for(var Ee="";re<ce&&!ye(")");)if(ye("\\")){if(Oe(),At()&&!a)return(Ee+"\\").trim();gt(),Zf(be)?Ee+=ft():Ee+=Qe()}else Ee+=Qe();return Ee.trim()}function Ut(){if(be===" "||be===" "||be==="\f"||be===`
395
- `){Oe();return}be==="\r"&&Oe(),be===`
396
- `&&Oe()}function kt(){for(;Gbe[be];)Oe()}function de(Ee){Ee===void 0&&(Ee=!1),kt();for(var Se=[Ke(Ee)];ye(",");)Oe(),kt(),Se.push(Ke(Ee));return{type:"Selector",rules:Se}}function ge(){je("["),kt();var Ee;if(ye("|")){Re(R,"Namespaces are not enabled."),Oe();var Se=Le();Re(Se,"Expected attribute name."),Ee={type:"Attribute",name:Se,namespace:{type:"NoNamespace"}}}else if(ye("*")){Re(R,"Namespaces are not enabled."),Re(I,"Wildcard namespace is not enabled."),Oe(),je("|");var ht=Le();Re(ht,"Expected attribute name."),Ee={type:"Attribute",name:ht,namespace:{type:"WildcardNamespace"}}}else{var rt=Le();if(Re(rt,"Expected attribute name."),Ee={type:"Attribute",name:rt},ye("|")){var mn=re;if(Oe(),Xf(be)){Re(R,"Namespaces are not enabled.");var Lr=Le();Re(Lr,"Expected attribute name."),Ee={type:"Attribute",name:Lr,namespace:{type:"NamespaceName",name:rt}}}else Me(mn)}}if(Re(Ee.name,"Expected attribute name."),kt(),At()&&!a)return Ee;if(ye("]"))Oe();else{if(Ee.operator=mt(C),Re(Ee.operator,"Expected a valid attribute selector operator."),kt(),gt(),qbe[be])Ee.value={type:"String",value:Ue(be)};else if(O&&ye("$")){Oe();var xr=Le();Re(xr,"Expected substitute name."),Ee.value={type:"Substitution",name:xr}}else{var Qn=Le();Re(Qn,"Expected attribute value."),Ee.value={type:"String",value:Qn}}if(kt(),At()&&!a)return Ee;if(!ye("]")){var pr=Le();if(Re(pr,"Expected end of attribute selector."),Ee.caseSensitivityModifier=pr,Re(z,"Attribute case sensitivity modifiers are not enabled."),Re($||M[Ee.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),kt(),At()&&!a)return Ee}je("]")}return Ee}function ze(){for(var Ee="";ZE[be];)Ee+=Qe();return Re(Ee!=="","Formula parse error."),parseInt(Ee)}var Xe=function(){return ye("-")||ye("+")||ZE[be]};function Et(){if(ye("e")||ye("o")){var Ee=Le();if(Ee==="even")return kt(),[2,0];if(Ee==="odd")return kt(),[2,1]}var Se=null,ht=1;if(ye("-")&&(Oe(),ht=-1),Xe()&&(ye("+")&&Oe(),Se=ze(),!ye("\\")&&!ye("n")))return[0,Se*ht];Se===null&&(Se=1),Se*=ht;var rt;if(ye("\\")?(Oe(),Zf(be)?rt=ft():rt=Qe()):rt=Qe(),Re(rt==="n",'Formula parse error: expected "n".'),kt(),ye("+")||ye("-")){var mn=ye("+")?1:-1;return Oe(),kt(),[Se,mn*ze()]}else return[Se,0]}function Je(Ee,Se,ht){var rt;if(ye("(")){if(Oe(),kt(),O&&ye("$")){Oe();var mn=Le();Re(mn,"Expected substitute name."),rt={type:"Substitution",name:mn}}else if(ht.type==="String")rt={type:"String",value:Jt()},Re(rt.value,"Expected ".concat(Se," argument value."));else if(ht.type==="Selector")rt=de(!0);else if(ht.type==="Formula"){var Lr=Et(),xr=Lr[0],Qn=Lr[1];if(rt={type:"Formula",a:xr,b:Qn},ht.ofSelector&&(kt(),ye("o")||ye("\\"))){var pr=Le();Re(pr==="of","Formula of selector parse error."),kt(),rt={type:"FormulaOfSelector",a:xr,b:Qn,selector:Ke()}}}else return nt("Invalid ".concat(Se," signature."));if(kt(),At()&&!a)return rt;je(")")}else Re(ht.optional,"Argument is required for ".concat(Se,' "').concat(Ee,'".'));return rt}function en(){if(ye("*"))return Re(T,"Wildcard tag name is not enabled."),Oe(),{type:"WildcardTag"};if(Xf(be)){Re(S,"Tag names are not enabled.");var Ee=Le();return Re(Ee,"Expected tag name."),{type:"TagName",name:Ee}}else return nt("Expected tag name.")}function zt(){if(ye("*")){var Ee=re;if(Oe(),!ye("|")||(Oe(),!Ge()))return Me(Ee),en();Re(R,"Namespaces are not enabled."),Re(I,"Wildcard namespace is not enabled.");var Se=en();return Se.namespace={type:"WildcardNamespace"},Se}else if(ye("|")){Re(R,"Namespaces are not enabled."),Oe();var Se=en();return Se.namespace={type:"NoNamespace"},Se}else if(Xf(be)){var ht=Le();if(Re(ht,"Expected tag name."),!ye("|"))return Re(S,"Tag names are not enabled."),{type:"TagName",name:ht};var Ee=re;if(Oe(),!Ge())return Me(Ee),{type:"TagName",name:ht};Re(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,kt())}for(;re<ce;)if(Ge())Re(rt.items.length===0,"Unexpected tag/namespace start."),rt.items.push(zt());else if(ye("|")){var Lr=re;if(Oe(),Ge())Re(rt.items.length===0,"Unexpected tag/namespace start."),Me(Lr),rt.items.push(zt());else{Me(Lr);break}}else if(ye(".")){Re(w,"Class names are not enabled."),Oe();var xr=Le();Re(xr,"Expected class name."),rt.items.push({type:"ClassName",name:xr})}else if(ye("#")){Re(D,"IDs are not enabled."),Oe();var Qn=Le();Re(Qn,"Expected ID name."),rt.items.push({type:"Id",name:Qn})}else if(ye("["))Re(H,"Attributes are not enabled."),rt.items.push(ge());else if(ye(":")){var pr=!1,fo=!1;Oe(),ye(":")&&(Re(te,"Pseudo elements are not enabled."),Re(oe,"Pseudo elements double colon notation is not enabled."),pr=!0,Oe());var Tn=Le();if(Re(pr||Tn,"Expected pseudo-class name."),Re(!pr||Tn,"Expected pseudo-element name."),Re(Tn,"Expected pseudo-class name."),!(!pr||P||Object.prototype.hasOwnProperty.call(K,Tn))){var Mr=pN.pseudoElements[Tn],yt='Unknown pseudo-element "'.concat(Tn,'"');Mr&&Mr.length>0&&(yt+=". It is defined in: ".concat(Mr.join(", "))),nt(yt+".")}if(fo=te&&(pr||!pr&&N&&Object.prototype.hasOwnProperty.call(K,Tn)),fo){var ne=(Se=K[Tn])!==null&&Se!==void 0?Se:P&&cN,J={type:"PseudoElement",name:Tn},ie=Je(Tn,"pseudo-element",ne);ie&&(Re(ie.type!=="Formula"&&ie.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),J.argument=ie),rt.items.push(J)}else{Re(Y,"Pseudo-classes are not enabled.");var ne=(ht=B[Tn])!==null&&ht!==void 0?ht:X&&cN;if(!ne){var Mr=pN.pseudoClasses[Tn],yt='Unknown pseudo-class: "'.concat(Tn,'"');Mr&&Mr.length>0&&(yt+=". It is defined in: ".concat(Mr.join(", "))),nt(yt+".")}var ie=Je(Tn,"pseudo-class",ne),ve={type:"PseudoClass",name:Tn};ie&&(ve.argument=ie),rt.items.push(ve)}}else break;if(rt.items.length===0)return At()?nt("Expected rule but end of input reached."):nt('Expected rule but "'.concat(be,'" found.'));if(kt(),!At()&&!ye(",")&&!ye(")")){var mn=mt(F);kt(),rt.nestedRule=Ke(),rt.nestedRule.combinator=mn}return rt}return function(Ee){if(typeof Ee!="string")throw new Error("".concat(JE,"Expected string input."));return ee=Ee,ce=ee.length,re=0,be=ee.charAt(0),de()}}const Kbe=Ybe({syntax:"selectors-4"});function Qbe(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return Kbe(e)}const n8="֑-߿יִ-﷽ﹰ-ﻼ",r8="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Xbe=new RegExp("^[^"+r8+"]*["+n8+"]"),Zbe=new RegExp("^[^"+n8+"]*["+r8+"]");function Jbe(e){const t=String(e||"");return Xbe.test(t)?"rtl":Zbe.test(t)?"ltr":"neutral"}function o8(e){return"children"in e?a8(e):"value"in e?e.value:""}function eve(e){return e.type==="text"?e.value:"children"in e?a8(e):""}function a8(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=eve(e.children[t]);return n.join("")}function tve(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=mN(t);d!=null&&(e.language=String(d)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=as),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=ex(o8(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?s=t.properties.value?ex(String(t.properties.value)):"ltr":wo(t,u)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return l;function l(){e.schema=n,e.language=r,e.direction=o,e.editableOrEditingHost=a}function u(d){if(d.type==="text")return s=ex(d.value),s?t0:void 0;if(d!==t&&d.type==="element"&&(d.tagName==="bdi"||d.tagName==="script"||d.tagName==="style"||d.tagName==="textare"||mN(d)))return wp}}function ex(e){const t=Jbe(e);return t==="neutral"?void 0:t}function mN(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 nve(e,t,n){const r=Hh(n,e.name),o=t.properties[r.property];let a=rve(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||fT(a).includes(s)}return!1}function rve(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?db:fb)(e)}else return String(e)}const ove=[];function ave(e,t){return(t.properties.className||ove).includes(e.name)}function ive(e,t){return t.properties.id===e.name}function sve(e,t){return e.name===t.tagName}function lve(e,t){return function(n,r){let o=gN(n,"tag");const a=gN(r??"*","range"),s=[];let l=-1;for(;++l<a.length;){const u=a[l].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 cve=lve(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 gN(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 uve={}.hasOwnProperty;function lc(e,t){const n=e.type==="element"&&uve.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const dve=new Set([9,10,12,13,32]),yN=48,fve=57;function pve(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),l(),t<e.length?(r=a(),l(),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)>=yN&&e.charCodeAt(t)<=fve;)d=d*10+(e.charCodeAt(t)-yN),t++;return t===u?null:d}function l(){for(;t<e.length&&dve.has(e.charCodeAt(t));)t++}}var bN,vN;function hve(){return vN||(vN=1,bN={trueFunc:function(){return!0},falseFunc:function(){return!1}}),bN}var mve=hve();const EN=Z0(mve);function gve(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return EN.falseFunc;if(t===-1)return a=>a<=n;if(t===0)return a=>a===n;if(t===1)return n<0?EN.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 xN(e){return gve(pve(e))}const yve=xN.default||xN,bve=ub("name",{handlers:{"any-link":vve,blank:Eve,checked:xve,dir:Tve,disabled:i8,empty:Sve,enabled:Cve,"first-child":_ve,"first-of-type":Ave,has:kve,is:s8,lang:Dve,"last-child":Rve,"last-of-type":Ive,not:Ove,"nth-child":Nve,"nth-last-child":Pve,"nth-last-of-type":Lve,"nth-of-type":Mve,"only-child":Fve,"only-of-type":Bve,optional:jve,"read-only":Uve,"read-write":l8,required:c8,root:Hve,scope:zve},invalid:wve,unknown:$ve});function vve(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&lc(t,"href")}function Ti(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Eve(e,t){return!u8(t,n);function n(r){return r.type==="element"||r.type==="text"&&!zh(r)}}function xve(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&lc(t,"checked")):t.tagName==="option"?lc(t,"selected"):!1}function Tve(e,t,n,r,o){return e.argument,e.argument.type,o.direction===e.argument.value}function i8(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")&&lc(t,"disabled")}function Sve(e,t){return!u8(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Cve(e,t){return!i8(e,t)}function _ve(e,t,n,r,o){return Ti(o,e),o.elementIndex===0}function Ave(e,t,n,r,o){return Ti(o,e),o.typeIndex===0}function wb(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=yve(n.a+"n+"+n.b),e._cachedFn=t}return t}function kve(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 u_(a,{type:"root",children:t.children}),a.results.length>0}function wve(){}function s8(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 u_(a,t),a.results[0]===t}function Dve(e,t,n,r,o){return e.argument,e.argument.type,o.language!==""&&o.language!==void 0&&cve(o.language,dT(e.argument.value)).length>0}function Rve(e,t,n,r,o){return Ti(o,e),!!(o.elementCount&&o.elementIndex===o.elementCount-1)}function Ive(e,t,n,r,o){return Ti(o,e),typeof o.typeIndex=="number"&&typeof o.typeCount=="number"&&o.typeIndex===o.typeCount-1}function Ove(e,t,n,r,o){return!s8(e,t,n,r,o)}function Nve(e,t,n,r,o){const a=wb(e);return Ti(o,e),typeof o.elementIndex=="number"&&a(o.elementIndex)}function Pve(e,t,n,r,o){const a=wb(e);return Ti(o,e),!!(typeof o.elementCount=="number"&&typeof o.elementIndex=="number"&&a(o.elementCount-o.elementIndex-1))}function Lve(e,t,n,r,o){const a=wb(e);return Ti(o,e),typeof o.typeCount=="number"&&typeof o.typeIndex=="number"&&a(o.typeCount-1-o.typeIndex)}function Mve(e,t,n,r,o){const a=wb(e);return Ti(o,e),typeof o.typeIndex=="number"&&a(o.typeIndex)}function Fve(e,t,n,r,o){return Ti(o,e),o.elementCount===1}function Bve(e,t,n,r,o){return Ti(o,e),o.typeCount===1}function jve(e,t){return!c8(e,t)}function Uve(e,t,n,r,o){return!l8(e,t,n,r,o)}function l8(e,t,n,r,o){return t.tagName==="input"||t.tagName==="textarea"?!lc(t,"readOnly")&&!lc(t,"disabled"):!!o.editableOrEditingHost}function c8(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&lc(t,"required")}function Hve(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 zve(e,t,n,r,o){return o.scopeElements.includes(t)}function u8(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function $ve(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function Vve(e,t,n,r,o){for(const a of e.items)if(a.type==="Attribute"){if(!nve(a,t,o.schema))return!1}else if(a.type==="Id"){if(!ive(a,t))return!1}else if(a.type==="ClassName"){if(!ave(a,t))return!1}else if(a.type==="PseudoClass"){if(!bve(a,t,n,r,o))return!1}else{if(a.type==="PseudoElement")throw new Error("Invalid selector: `::"+a.name+"`");if(a.type==="TagName"&&!sve(a,t))return!1}return!0}const Gve=[];function u_(e,t){t&&d8(e,[],t,void 0,void 0,t)}function tx(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function qve(e,t,n,r){const o=iy(t.descendant,t.directChild);let a,s=-1;const l={count:0,types:new Map},u={count:0,types:new Map};for(;++s<n.children.length;)TN(l,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=l.count,e.typeCount=p?l.types.get(p):0,"children"in d){const h=iy(o,a),g=d8(e,h,n.children[s],s,n,r);a=iy(g.generalSibling,g.adjacentSibling)}if(e.one&&e.found)break;TN(u,n.children[s])}}function Wve(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 l=t[s];if(e.one&&e.found)break;if(e.shallow&&l.nestedRule)throw new Error("Expected selector without nesting");if(Vve(l,n,r,o,e)){const u=l.nestedRule;if(u){const d=u.combinator==="+"?"adjacentSibling":u.combinator==="~"?"generalSibling":u.combinator===">"?"directChild":"descendant";tx(a,d,u)}else e.found=!0,e.results.includes(n)||e.results.push(n)}l.combinator===void 0?tx(a,"descendant",l):l.combinator==="~"&&tx(a,"generalSibling",l)}return a}function iy(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Gve}function TN(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 d8(e,t,n,r,o,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const l=tve(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=Wve(e,iy(t,u),n,r,o)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&qve(e,s,n,a),l(),s}function Yve(e,t,n){const r=Kve(e,t);return u_(r,t||void 0),r.results}function Kve(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Qbe(e),schema:gd,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const f8=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=f8(n.children))}),t),Qve=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const o=Yve(t,r);o&&o.length>0&&wo(r,o,(a,s,l)=>{n(a,s,l)});return}wo(r,(o,a,s)=>{n(o,a,s)})}}},Xve=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Zve=(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]}},p8=(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?p8(e,o,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},SN=({value:e=""})=>{const t=Xve(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},CN=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Jve=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{wo(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 l=o.children[0];if(l&&l.tagName==="code"&&typeof a=="number"){const u=Zve(s.children,a);if(u){const d=SN(u);Object.keys(d).length>0&&(o.properties={...o.properties,"data-type":"rehyp"},l.properties=CN(l.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 l=p8(s.children,a,"",n);if(l){const u=SN(l);Object.keys(u).length>0&&(o.properties=CN(o.properties,u,t))}}})}};var e1e=function(e){return t=>{wo(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Zi({},n.properties,{"data-meta":String(n.data.meta)}))})}},t1e=function(e){return t=>{wo(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 n1e=/[\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,r1e=Object.hasOwnProperty;class o1e{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let o=a1e(t,n===!0);const a=o;for(;r1e.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 a1e(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(n1e,"").replace(/ /g,"-"))}function h8(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 i1e={},_N=new o1e;function s1e(e){const t=(e||i1e).prefix||"";return function(n){_N.reset(),wo(n,"element",function(r){h8(r)&&!r.properties.id&&(r.properties.id=t+_N.slug(o8(r)))})}}const m8=function(e){if(e==null)return u1e;if(typeof e=="string")return c1e(e);if(typeof e=="object")return l1e(e);if(typeof e=="function")return d_(e);throw new Error("Expected function, string, or array as `test`")};function l1e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=m8(e[n]);return d_(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function c1e(e){return d_(t);function t(n){return n.tagName===e}}function d_(e){return t;function t(n,r,o){return!!(d1e(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function u1e(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function d1e(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const AN={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},f1e={};function p1e(e){const t=e||f1e;let n=t.properties;const r=t.headingProperties,o=t.behavior||"prepend",a=t.content,s=t.group,l=m8(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){wo(g,"element",function(y,b,x){if(h8(y)&&y.properties.id&&l(y,b,x))return Object.assign(y.properties,Ng(r,y)),u(y,b,x)})};function d(g){const y=kN(a||AN,g);return g.children[o==="prepend"?"unshift":"push"](nx(g,Ng(n,g),y)),[wp]}function p(g,y,b){if(typeof y!="number"||!b)return;const x=kN(a||AN,g),S=nx(g,Ng(n,g),x);let T=o==="before"?[S,g]:[g,S];if(s){const D=g8(s,g);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=T,T=[D])}return b.children.splice(y,1,...T),[wp,y+T.length]}function h(g){let y=g.children,b=[];return typeof a=="function"?(y=[],b=a(g)):a&&(b=f_(a)),g.children=[nx(g,Ng(n,g),Array.isArray(b)?[...y,...b]:[...y,b])],[wp]}}function f_(e){return sc(e)}function nx(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function kN(e,t){const n=g8(e,t);return Array.isArray(n)?n:[n]}function g8(e,t){return typeof e=="function"?e(t):f_(e)}function Ng(e,t){return typeof e=="function"?e(t):e?f_(e):{}}const h1e=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{wo(r,(o,a,s)=>{if(o.type==="element"||o.type==="root"){let l=!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 l=!0,!1;if(d===n)return l=!1,!1}return!l})}})}};var m1e={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 g1e(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 y1e=(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=Zi({class:"anchor"},a.properties),a.children=[m1e])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=f8(n.children);n.children.push(g1e(s))}t&&t(n,r===null?void 0:r,o===null?void 0:o)},b1e=[s1e,p1e,h1e];const y8=Fe.forwardRef((e,t)=>{var n,r=[e1e,Q6,t1e,...b1e,[Qve,{rewrite:y1e((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Jve,{properties:"attr"}],...e.rehypePlugins||[]];return v.jsx(Pbe,Zi({},e,{rehypePlugins:r,ref:t}))});function v1e(e,t){return dn({},e,t)}var Cd=Fe.createContext({markdown:""});function b8(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=dn({},t,b8(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function v8(e,t,n,r,o){t===void 0&&(t=[]);var a=b8(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 l=!!a[s.join("+")],u=l?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 rx;function wN(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof rx>"u"){var t=document.createElement("textarea");t.value="1",rx=!!t.firstChild}return rx}function Mu(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(),l=document.createTextNode(t);if(wN(e)){var u=e.firstChild;if(!u)e.appendChild(l);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(wN(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(l);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 lo(e){var{text:t,selection:n,prefix:r,suffix:o=r}=e,a=n;if(t&&t.length&&n.start===n.end&&(a=E1e(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 Pp(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 E8(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 x8(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 E1e(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=l=>l===" "||l.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 p_(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 l=t(a,s);return r+=l.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 x1e={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:v.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:v.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=lo({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})}},T8={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:v.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:v.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=lo({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=lo({text:e.text,selection:e.selection,prefix:o,suffix:a}),l=t.setSelectionRange(s);zr({api:t,selectedText:l.selectedText,selection:e.selection,prefix:o,suffix:a})}},T1e={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:v.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:v.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=lo({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 T8.execute(e,t)}},S1e={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:v.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:v.jsxs("g",{fill:"none",fillRule:"evenodd",children:[v.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),v.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"}),v.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=lo({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})}},sy={keyCommand:"divider"},C1e={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.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 _1e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var A1e=(e,t)=>{var n=dn({children:e,icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.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({},(_1e(r),r));return o.parent=n,dn({},o)})),n},k1e={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:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:v.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=lo({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}))}},w1e={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"![image](",suffix:")",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:v.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:v.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=lo({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=lo({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:"![image",suffix:"](url)"}):zr({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},D1e={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:v.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:v.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=lo({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})}},R1e={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:v.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:v.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=lo({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=lo({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})}},h_=(e,t,n)=>{var r=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),o=t.setSelectionRange(r),a=E8(o.text,o.selection.start),s=Array(a+1).join(`
406
- `),l=x8(o.text,o.selection.end),u=Array(l+1).join(`
407
- `),{modifiedText:d,insertionLength:p}=p_(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})}},I1e={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:v.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:v.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)=>{h_(e,t,"- ")}},O1e={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:v.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.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)=>{h_(e,t,(n,r)=>r+1+". ")}},N1e={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:v.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.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)=>{h_(e,t,(n,r)=>"- [ ] ")}},P1e={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.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"}),v.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"})}},L1e={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.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"}),v.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"})}},M1e={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[v.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"}),v.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"})}},F1e={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.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=lo({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),o=E8(r.text,r.selection.start),a=Array(o+1).join(`
410
- `),s=x8(r.text,r.selection.end),l=Array(s+1).join(`
411
- `),u=p_(r.selectedText,e.command.prefix);t.replaceSelection(""+a+u.modifiedText+l);var d=r.selection.start+o,p=d+u.modifiedText.length;t.setSelectionRange({start:d,end:p})}},B1e={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:v.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:v.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=lo({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})}},S8={name:"title1",keyCommand:"title1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert title1 (ctrl + 1)",title:"Insert title1 (ctrl + 1)"},icon:v.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Title 1"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}};function _d(e){var{state:t,api:n,prefix:r,suffix:o=r}=e,a=Pp({text:t.text,selection:t.selection}),s=n.setSelectionRange(a);zr({api:n,selectedText:s.selectedText,selection:t.selection,prefix:r,suffix:o})}dn({},S8,{icon:v.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:v.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 j1e={name:"title2",keyCommand:"title2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert title2 (ctrl + 2)",title:"Insert title2 (ctrl + 2)"},icon:v.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Title 2"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},U1e={name:"title3",keyCommand:"title3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert title3 (ctrl + 3)",title:"Insert title3 (ctrl + 3)"},icon:v.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Title 3"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},H1e={name:"title4",keyCommand:"title4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert title4 (ctrl + 4)",title:"Insert title4 (ctrl + 4)"},icon:v.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Title 4"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},z1e={name:"title5",keyCommand:"title5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert title5 (ctrl + 5)",title:"Insert title5 (ctrl + 5)"},icon:v.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Title 5"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},$1e={name:"title6",keyCommand:"title6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert title6 (ctrl + 6)",title:"Insert title6 (ctrl + 6)"},icon:v.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Title 6"}),execute:(e,t)=>{_d({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},V1e={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:v.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:v.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=lo({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}))}},G1e={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:v.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:v.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")}},q1e=()=>[x1e,D1e,B1e,k1e,A1e([S8,j1e,U1e,H1e,z1e,$1e],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),sy,R1e,F1e,T1e,T8,S1e,w1e,V1e,sy,I1e,O1e,N1e,sy,G1e],W1e=()=>[L1e,M1e,P1e,sy,C1e];function s0(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 m_{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return Mu(this.textArea,t),s0(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,s0(this.textArea)}}class g_{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new m_(t)}getState(){return this.textArea?s0(this.textArea):!1}executeCommand(t,n,r,o){t.execute&&t.execute(dn({command:t},s0(this.textArea)),this.textApi,n,r,o)}}function ly(e){e.stopPropagation(),e.preventDefault()}function DN(e,t){ly(e);var n=e.target,r=new m_(n),o={start:n.selectionStart,end:n.selectionEnd};if(o=Pp({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=Pp({text:n.value,selection:{start:o.start-1,end:o.start-1}}),l=n.value.slice(s.start,s.end);r.setSelectionRange({start:s.start,end:o.end}),Mu(n,a+`
419
- `+l),r.setSelectionRange({start:s.start,end:s.start+a.length})}else{var u=Pp({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}),Mu(n,d+`
420
- `+a),r.setSelectionRange({start:u.end-a.length,end:u.end})}}}function Y1e(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],l=new m_(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){ly(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,j)=>{F!==d[j]&&h.push(F)});var g=h.join(`
424
- `),y=r.value.substring(r.selectionStart,r.selectionEnd),b=r.value.substring(0,r.selectionStart).length;l.setSelectionRange({start:r.value.indexOf(g),end:r.selectionEnd});var x=p_(g,e.shiftKey?"":u),S=x.modifiedText;e.shiftKey&&(S=S.split(`
425
- `).map(F=>F.replace(new RegExp("^"+u),"")).join(`
426
- `)),l.replaceSelection(S);var T=e.shiftKey?-t:t,D=e.shiftKey?-h.length*t:h.length*t;l.setSelectionRange({start:b+T,end:b+y.length+D})}else return Mu(r,u)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){ly(e);var w=`
427
- - `;return s.startsWith("*")&&(w=`
428
- * `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(w=`
429
- - [ ] `),/^\d+.\s/.test(s)&&(w=`
430
- `+(parseInt(s)+1)+". "),Mu(r,w)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){ly(e);var R={start:r.selectionStart,end:r.selectionEnd},I=R;R=Pp({text:r.value,selection:R});var O=r.value.slice(R.start,R.end);l.setSelectionRange({start:R.end,end:R.end}),Mu(r,`
431
- `+O),l.setSelectionRange({start:I.start,end:I.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?DN(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&DN(e,1)}var K1e=["prefixCls","onChange"],Q1e=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function X1e(e){var{prefixCls:t,onChange:n}=e,r=Zy(e,K1e),o=k.useContext(Cd),{markdown:a,commands:s,fullscreen:l,preview:u,highlightEnable:d,extraCommands:p,tabSize:h,defaultTabEnable:g,autoFocusEnd:y,textareaWarp:b,dispatch:x}=o;Zy(o,Q1e);var S=Fe.useRef(null),T=Fe.useRef(),D=Fe.useRef({fullscreen:l,preview:u});k.useEffect(()=>{D.current={fullscreen:l,preview:u,highlightEnable:d}},[l,u,d]),k.useEffect(()=>{if(S.current&&x){var R=new g_(S.current);T.current=R,x({textarea:S.current,commandOrchestrator:R})}},[]),k.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 w=R=>{Y1e(R,h,g),v8(R,[...s||[],...p||[]],T.current,x,D.current)};return k.useEffect(()=>(S.current&&S.current.addEventListener("keydown",w),()=>{S.current&&S.current.removeEventListener("keydown",w)}),[]),v.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 Z1e=["prefixCls","className","onScroll","renderTextarea"];function J1e(e){var t=e||{},{prefixCls:n,className:r,onScroll:o,renderTextarea:a}=t,s=Zy(t,Z1e),{markdown:l,scrollTop:u,commands:d,extraCommands:p,dispatch:h}=k.useContext(Cd),g=Fe.useRef(null),y=Fe.useRef(),b=Fe.createRef();k.useEffect(()=>{var S={};b.current&&(S.textareaWarp=b.current||void 0,b.current.scrollTop=u||0),h&&h(dn({},S))},[]),k.useEffect(()=>{if(g.current&&h){var S=new g_(g.current);y.current=S,h({textarea:g.current,commandOrchestrator:S})}},[]);var x={WebkitTextFillColor:"initial",overflow:"auto"};return v.jsx("div",{ref:b,className:n+"-area "+(r||""),onScroll:o,children:v.jsx("div",{className:n+"-text",children:a?Fe.cloneElement(a(dn({},s,{value:l,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:h,onChange:s.onChange,shortcuts:v8,useContext:{commands:d,extraCommands:p,commandOrchestrator:y.current}}),{ref:g}):v.jsx(k.Fragment,{children:v.jsx(X1e,dn({prefixCls:n},s,{style:x}))})})})}function eEe(e){var{prefixCls:t,groupName:n,commands:r,children:o}=e||{},{barPopup:a={}}=k.useContext(Cd);return k.useMemo(()=>v.jsx("div",{className:t+"-toolbar-child "+(n&&a[n]?"active":""),onClick:s=>s.stopPropagation(),children:Array.isArray(r)?v.jsx(C8,dn({commands:r},e,{isChild:!0})):o}),[r,a,n,t])}function RN(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:o,barPopup:a={},components:s,commandOrchestrator:l,dispatch:u}=k.useContext(Cd),d=k.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)),l&&l.executeCommand(h)}}return k.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]),v.jsx("ul",{children:(e.commands||[]).map((h,g)=>{if(h.keyCommand==="divider")return v.jsx("li",dn({},h.liProps,{className:t+"-toolbar-divider"}),g);if(!h.keyCommand)return v.jsx(k.Fragment,{},g);var y=r&&h.keyCommand==="fullscreen"||h.keyCommand==="preview"&&o===h.value,b=h.children&&typeof h.children=="function"?h.children({getState:()=>l.getState(),textApi:l?l.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 v.jsxs("li",dn({},h.liProps,{className:y?"active":"",children:[T&&Fe.isValidElement(T)&&T,!T&&!h.buttonProps&&h.icon,!T&&h.buttonProps&&Fe.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&&v.jsx(eEe,{overflow:n,groupName:h.groupName,prefixCls:t,children:b,commands:Array.isArray(h.children)?h.children:void 0})]}),g)})})}function C8(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:o,extraCommands:a}=k.useContext(Cd);return v.jsxs("div",{className:t+"-toolbar "+r,children:[v.jsx(RN,dn({},e,{commands:e.commands||o||[]})),!n&&v.jsx(RN,dn({},e,{commands:a||[]}))]})}function IN(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 v.jsx(C8,{prefixCls:a,overflow:o,className:s})}var tEe=e=>{var{prefixCls:t,onChange:n}=e||{},r=k.useRef(null),o=k.useRef(),a=k.useRef(e.height);k.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 l(){var p,h;o.current=void 0,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l),(p=r.current)==null||p.removeEventListener("touchmove",s),(h=r.current)==null||h.removeEventListener("touchend",l)}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",l),(g=r.current)==null||g.addEventListener("touchmove",s,{passive:!1}),(y=r.current)==null||y.addEventListener("touchend",l,{passive:!1})}k.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=k.useMemo(()=>v.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:v.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 v.jsx("div",{className:t+"-bar",ref:r,children:d})},nEe=["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 rEe(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var oEe=Fe.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:o,value:a,commands:s=q1e(),commandsFilter:l,direction:u,extraCommands:d=W1e(),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:w=1200,minHeight:R=100,autoFocus:I,autoFocusEnd:O=!1,tabSize:F=2,defaultTabEnable:j=!1,onChange:H,onStatistics:C,onHeightChange:M,hideToolbar:$,toolbarBottom:z=!1,components:q,renderTextarea:Y}=n,B=Zy(n,nEe),X=s.map(je=>l?l(je,!1):je).filter(Boolean),ae=d.map(je=>l?l(je,!0):je).filter(Boolean),[te,N]=k.useReducer(v1e,{markdown:a,preview:b,components:q,height:p,minHeight:R,highlightEnable:y,tabSize:F,defaultTabEnable:j,scrollTop:0,scrollTopPreview:0,commands:X,extraCommands:ae,fullscreen:x,barPopup:{}}),oe=k.useRef(null),K=k.useRef(null),P=k.useRef(h);k.useImperativeHandle(t,()=>dn({},te,{container:oe.current,dispatch:N})),k.useMemo(()=>P.current=h,[h]),k.useEffect(()=>{var je={};oe.current&&(je.container=oe.current||void 0),je.markdown=a||"",je.barPopup={},N&&N(dn({},te,je))},[]);var ee=[o,"wmde-markdown-var",u?r+"-"+u:null,r,te.preview?r+"-show-"+te.preview:null,te.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();k.useMemo(()=>a!==te.markdown&&N({markdown:a||""}),[a,te.markdown]),k.useMemo(()=>b!==te.preview&&N({preview:b}),[b]),k.useMemo(()=>F!==te.tabSize&&N({tabSize:F}),[F]),k.useMemo(()=>y!==te.highlightEnable&&N({highlightEnable:y}),[y]),k.useMemo(()=>I!==te.autoFocus&&N({autoFocus:I}),[I]),k.useMemo(()=>O!==te.autoFocusEnd&&N({autoFocusEnd:O}),[O]),k.useMemo(()=>x!==te.fullscreen&&N({fullscreen:x}),[x]),k.useMemo(()=>p!==te.height&&N({height:p}),[p]),k.useMemo(()=>p!==te.height&&M&&M(te.height,p,te),[p,M,te]),k.useMemo(()=>s!==te.commands&&N({commands:X}),[e.commands]),k.useMemo(()=>d!==te.extraCommands&&N({extraCommands:ae}),[e.extraCommands]);var ce=k.useRef(),re=k.useRef("preview"),be=k.useRef(!1);k.useMemo(()=>{ce.current=te.textareaWarp,te.textareaWarp&&(te.textareaWarp.addEventListener("mouseover",()=>{re.current="text"}),te.textareaWarp.addEventListener("mouseleave",()=>{re.current="preview"}))},[te.textareaWarp]);var ye=(je,mt)=>{if(P.current){var lt=ce.current,ft=K.current?K.current:void 0;if(be.current||(re.current=mt,be.current=!0),lt&&ft){var Ue=(lt.scrollHeight-lt.offsetHeight)/(ft.scrollHeight-ft.offsetHeight);je.target===lt&&re.current==="text"&&(ft.scrollTop=lt.scrollTop/Ue),je.target===ft&&re.current==="preview"&&(lt.scrollTop=ft.scrollTop*Ue);var Le=0;re.current==="text"?Le=lt.scrollTop||0:re.current==="preview"&&(Le=ft.scrollTop||0),N({scrollTop:Le})}}},Ge=r+"-preview "+(T.className||""),Me=je=>ye(je,"preview"),Oe=k.useMemo(()=>v.jsx("div",{ref:K,className:Ge,children:v.jsx(y8,dn({},T,{onScroll:Me,source:te.markdown||""}))}),[Ge,T,te.markdown]),Qe=q?.preview&&q?.preview(te.markdown||"",te,N);Qe&&Fe.isValidElement(Qe)&&(Oe=v.jsx("div",{className:Ge,ref:K,onScroll:Me,children:Qe}));var nt=dn({},B.style,{height:te.height||"100%"}),Re=()=>N({barPopup:dn({},rEe(te.barPopup))}),gt=je=>N({height:je}),At=je=>{if(H&&H(je.target.value,je,te),D&&D.onChange&&D.onChange(je),te.textarea&&te.textarea instanceof HTMLTextAreaElement&&C){var mt=new g_(te.textarea),lt=mt.getState()||{};C(dn({},lt,{lineCount:je.target.value.split(`
432
- `).length,length:je.target.value.length}))}};return v.jsx(Cd.Provider,{value:dn({},te,{dispatch:N}),children:v.jsxs("div",dn({ref:oe,className:ee},B,{onClick:Re,style:nt,children:[v.jsx(IN,{hideToolbar:$,toolbarBottom:z,prefixCls:r,overflow:S,placement:"top"}),v.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(te.preview||"")&&v.jsx(J1e,dn({className:r+"-input",prefixCls:r,autoFocus:I},D,{onChange:At,renderTextarea:q?.textarea||Y,onScroll:je=>ye(je,"text")})),/(live|preview)/.test(te.preview||"")&&Oe]}),g&&!te.fullscreen&&v.jsx(tEe,{prefixCls:r,height:te.height,maxHeight:w,minHeight:R,onChange:gt}),v.jsx(IN,{hideToolbar:$,toolbarBottom:z,prefixCls:r,overflow:S,placement:"bottom"})]}))})}),_8=oEe;_8.Markdown=y8;function aEe({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 v.jsx(rM,{sourceAndPaths:t,existingQuery:o,existingSourceName:e.sourceName,onQueryChange:n,onSourceChange:r})}function iEe({cell:e,expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMalloy:o,editingMarkdown:a,sourceAndPaths:s,onCellChange:l,onClose:u,onEdit:d,onDelete:p,addButtonCallback:h}){const[g,y]=Fe.useState(t),[b,x]=Fe.useState(n),[S,T]=Fe.useState(),[D]=Fe.useState(),[w,R]=Fe.useState(Sp()),[I,O]=Fe.useState(!1),[F,j]=Fe.useState(e.sourceName?s.findIndex(P=>P.sourceInfo.name===e.sourceName):0);k.useEffect(()=>{e.isMarkdown||ac(e.value,"malloy").then(P=>{T(P)})},[e]);const[H,C]=k.useState(e.value);Fe.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const M=sEe(P=>{l({...e,value:P})}),[$,z]=k.useState(!1),q=()=>{p(),z(!1)},Y=s.length===0,B=()=>{const P=s[F],ee=P?.modelPath||e.modelPath||"",ce=P?.sourceInfo.name||e.sourceName||"";l({...e,value:w.query,result:w.malloyResult?JSON.stringify(w.malloyResult):void 0,queryInfo:w.malloyQuery?JSON.stringify(w.malloyQuery):void 0,sourceName:ce,modelPath:ee})},X=v.jsx(lr,{title:"Delete Cell",children:v.jsx(or,{size:"small",onClick:()=>z(!0),children:v.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.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=v.jsxs(Vu,{open:$,onClose:()=>z(!1),children:[v.jsx(qu,{children:"Confirm Delete"}),v.jsx(Gu,{children:v.jsx(He,{children:"Are you sure you want to delete this cell?"})}),v.jsxs(S5,{children:[v.jsx(Hr,{onClick:()=>z(!1),children:"Cancel"}),v.jsx(Hr,{onClick:q,color:"error",children:"Delete"})]})]}),te=e.isMarkdown?v.jsxs(v.Fragment,{children:[a?v.jsx(lr,{title:"Save",children:v.jsx(or,{size:"small",onClick:u,children:v.jsx(_g,{})})}):v.jsx(lr,{title:"Edit",children:v.jsx(or,{size:"small",onClick:d,children:v.jsx(rO,{})})}),!a&&X]}):v.jsxs(v.Fragment,{children:[!o&&v.jsx(lr,{title:g?"Hide Code":"View Code",children:v.jsx(or,{size:"small",onClick:()=>{y(!g)},children:v.jsx(CL,{})})}),!r&&!o&&e.result&&v.jsx(lr,{title:b?"Hide Embedding":"View Embedding",children:v.jsx(or,{size:"small",onClick:()=>{x(!b)},children:v.jsx(Fh,{})})}),o&&v.jsx(lr,{title:"Save",children:v.jsx(or,{size:"small",onClick:()=>{B(),u()},children:v.jsx(_g,{})})}),!o&&v.jsx(lr,{title:"Edit",children:v.jsx(or,{size:"small",onClick:d,children:v.jsx(rO,{})})}),!o&&X]}),N=o||a,oe=a?v.jsx(lr,{title:"Save",children:v.jsx(or,{size:"small",onClick:u,children:v.jsx(_g,{})})}):o?v.jsx(lr,{title:"Save",children:v.jsx(or,{size:"small",onClick:()=>{B(),u()},children:v.jsx(_g,{})})}):null,K=I&&v.jsx(Nt,{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&&v.jsxs(v.Fragment,{children:[h(!0),h(!1),te]})||oe});return v.jsxs(Ar,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>O(!0),onMouseLeave:()=>{O(!1)},children:[K,e.isMarkdown?v.jsx(v.Fragment,{children:a?v.jsx(_8,{value:H,preview:"edit",autoFocus:!0,onChange:P=>{C(P),M(P)},onBlur:()=>{B(),I||u()}}):v.jsx(Nt,{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?v.jsx(Nt,{onClick:d,sx:{cursor:"pointer"},children:v.jsx(WS,{children:H})}):v.jsxs(Nt,{onClick:d,sx:{cursor:"pointer"},children:[v.jsx(He,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),v.jsx(He,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):v.jsxs(v.Fragment,{children:[v.jsx(Ma,{in:b,timeout:"auto",unmountOnExit:!0,children:v.jsx(fn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx(He,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:D}})})}),v.jsx(Ma,{in:g,timeout:"auto",unmountOnExit:!0,children:v.jsx(fn,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:v.jsx(He,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:S}})})}),o&&(Y?v.jsxs(v.Fragment,{children:[v.jsx(He,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),v.jsx(He,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):v.jsx(aEe,{sourceAndPaths:s,onQueryChange:P=>{R(P)},cell:e,onSourceChange:j})),!o&&e.result&&v.jsx(Ar,{variant:"outlined",sx:{borderRadius:0},children:v.jsx(_L,{result:e.result,minHeight:300,maxHeight:800})}),!o&&!e.result&&v.jsxs(Nt,{onClick:d,sx:{cursor:"pointer"},children:[v.jsx(He,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),v.jsx(He,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),$&&ae]})}function sEe(e,t=2e3){const n=Fe.useRef(void 0);return Fe.useCallback(r=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(r)},t)},[e,t])}const A8=k.createContext(void 0);function lEe({children:e,workbookStorage:t}){const n=k.useMemo(()=>({workbookStorage:t}),[t]);return v.jsx(A8.Provider,{value:n,children:e})}function y_(){const e=k.useContext(A8);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const cEe=Rn(v.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"})),uEe=Rn(v.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"})),dEe=new mb(new Vr);function fEe({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:o}=uo(),{data:a,isLoading:s,isSuccess:l,isError:u,error:d}=Jr({queryKey:["models",n,r,o],queryFn:T=>dEe.listModels(n,r,o,T)}),[p,h]=Fe.useState(e||[]),[g,y]=Fe.useState(null);Fe.useEffect(()=>{h(e||[])},[e]);const b=T=>{const D=p.filter(w=>w!==T);h(D),t(D)},x=T=>{const D=[...p,T];h(D),t(D),y(null)};let S=[];return l&&a?.data&&(S=a.data.filter(T=>!p.includes(T.path)).map(T=>T.path)),u?v.jsx($r,{error:d,context:`${n} > ${r} > Model Picker`}):v.jsxs(v.Fragment,{children:[v.jsxs(Sy,{fullWidth:!0,children:[s&&v.jsx(He,{children:"Loading..."}),v.jsxs(fn,{direction:"row",spacing:1,children:[p.map(T=>v.jsx(Gl,{label:T,onDelete:()=>b(T),deleteIcon:v.jsx(cEe,{}),sx:{marginBottom:"5px"}},T)),v.jsx(Hr,{size:"small",startIcon:v.jsx(uEe,{}),onClick:T=>y(T.currentTarget),disabled:s||u||S.length===0,children:"Add Model"})]})]}),v.jsxs(P0,{anchorEl:g,open:!!g,onClose:()=>y(null),children:[v.jsx(He,{variant:"subtitle2",sx:{ml:1},children:"Models"}),v.jsx(Er,{}),S.length===0?v.jsx(ql,{disabled:!0,children:"No models available"}):S.map(T=>v.jsx(ql,{onClick:()=>x(T),children:v.jsx(He,{variant:"body2",children:T})},T))]})]})}const pEe=new mb(new Vr);function hEe({workbookPath:e,expandCodeCells:t,expandEmbeddings:n,hideEmbeddingIcons:r}){const o=bd(),a=uo(),{projectName:s,packageName:l,versionId:u}=a,{server:d,getAccessToken:p}=zC(),{workbookStorage:h}=y_(),[g,y]=Fe.useState(void 0);if(!s||!l)throw new Error("Project and package must be provided via PubliserPackageProvider");if(!h)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[b,x]=Fe.useState(),[S,T]=Fe.useState(),[D,w]=Fe.useState(),[R,I]=Fe.useState([]),[O,F]=Fe.useState(null),[j,H]=Fe.useState(null),C=!!O,M=()=>{F(null),H(null)},$=(K,P)=>{b.insertCell(P,{isMarkdown:K,value:""}),ae(),K?w(P):T(P),M()},[z,q]=Fe.useState(!1),Y=()=>{q(!0)},B=async K=>{e&&h&&a&&await h.deleteWorkbook(a,e).then(()=>{y(void 0)}).catch(P=>{y(`Error deleting workbook: ${P.message}`)}),q(!1),o(`/${s}/${l}`,K)},X=()=>{q(!1)},ae=Fe.useCallback(async()=>{try{x(await b.saveWorkbook()),y(void 0)}catch(K){y(`Error saving workbook: ${K.message}`)}},[b]);if(Fe.useEffect(()=>{b&&(async()=>{const K=new Map(R.map(({modelPath:ce,sourceInfos:re})=>[ce,re])),P=[],ee=[];for(const ce of b.getModels())K.has(ce)?P.push({modelPath:ce,sourceInfos:K.get(ce)}):(console.log("Fetching model from Publisher",ce),ee.push(pEe.getModel(s,l,ce,u,await IC(d,p)).then(re=>({modelPath:ce,sourceInfos:re.data.sourceInfos.map(be=>JSON.parse(be))}))));if(ee.length>0){const ce=await Promise.all(ee);I([...P,...ce])}else I(P)})()},[p,b,l,s,d,u]),Fe.useEffect(()=>{e&&Cp.loadWorkbook(h,a,e).then(K=>{x(K)})},[e,h,a]),!b)return v.jsx("div",{children:"Loading..."});const te=K=>{const P=[];for(const ee of K)for(const ce of ee.sourceInfos)P.push({modelPath:ee.modelPath,sourceInfo:ce});return P},N=(K,P)=>v.jsx(Hr,{size:"small",startIcon:v.jsx(Qce,{}),onClick:()=>$(K,P),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:K?"Markdown":"Explore"}),oe=v.jsxs(Nt,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[N(!1,b.getCells().length),N(!0,b.getCells().length)]});return v.jsxs(Ar,{variant:"outlined",children:[v.jsxs(Ko,{children:[g&&v.jsx(Nt,{sx:{mb:2},children:v.jsx(He,{color:"error",variant:"body2",children:g})}),v.jsxs(cu,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[v.jsxs(cu,{direction:"row",spacing:1,alignItems:"center",children:[v.jsx(He,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),v.jsx(He,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${s} > ${l} > ${e.path}`})]}),v.jsxs(cu,{sx:{display:"flex",flexDirection:"row",gap:1},children:[v.jsx(Nt,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:v.jsx(mEe,{workbookData:b})}),v.jsxs(Nt,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[v.jsx(Hr,{color:"error",onClick:Y,size:"small",children:"Delete"}),v.jsxs(Vu,{open:z,onClose:X,children:[v.jsx(qu,{children:"Delete Workbook"}),v.jsx(Gu,{children:v.jsxs(rW,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),v.jsxs(S5,{children:[v.jsx(Hr,{onClick:X,color:"primary",size:"small",children:"Cancel"}),v.jsx(Hr,{onClick:K=>B(K),color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),v.jsx(Er,{}),v.jsxs(cu,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[v.jsx(Nt,{sx:{flex:1},children:v.jsx(fEe,{initialSelectedModels:b.getModels(),onModelChange:K=>{x(b.setModels(K)),ae()}})}),v.jsx(Nt,{sx:{flex:1}})]})]}),v.jsx(DC,{children:v.jsxs(cu,{children:[b.getCells().length===0&&v.jsxs(v.Fragment,{children:[v.jsx(He,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),v.jsx(He,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),b.getCells().map((K,P)=>v.jsx(Fe.Fragment,{children:v.jsx(iEe,{cell:K,addButtonCallback:ee=>N(ee,P),sourceAndPaths:te(R),expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMarkdown:D===P,editingMalloy:S===P,onDelete:()=>{x(b.deleteCell(P)),ae()},onCellChange:ee=>{x(b.setCell(P,ee)),ae()},onEdit:()=>{K.isMarkdown?w(P):T(P)},onClose:()=>{K.isMarkdown?w(void 0):T(void 0)}},`${P}-${K.isMarkdown}-${e}-${s}-${l}`)},`${P}-${b.getCells().length}`)),oe,v.jsxs(P0,{anchorEl:O,open:C,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[v.jsx(ql,{onClick:()=>$(!0,j??0),children:"Add Markdown"}),v.jsx(ql,{onClick:()=>$(!1,j??0),children:"Add Malloy"})]}),v.jsx(cu,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function mEe({workbookData:e}){const[t,n]=Fe.useState(!1);return v.jsx(Hr,{color:"primary",onClick:async()=>{if(!e)return;const r=e.toMalloyWorkbook();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 gEe({onWorkbookClick:e}){const{workbookStorage:t}=y_(),n=uo(),[r,o]=Fe.useState([]),[a,s]=Fe.useState(void 0);return Fe.useEffect(()=>{t&&t.listWorkspaces(n,!1).then(l=>{const u=[];Promise.all(l.map(async d=>{await t.listWorkbooks(d,n).then(p=>{u.push(...p)}).catch(p=>{s(`Error listing workbooks: ${p.message}`)})})).then(()=>{o(u),s(void 0)})})},[t,n]),v.jsxs(v.Fragment,{children:[a&&v.jsx(Nt,{sx:{mb:2},children:v.jsx(He,{color:"error",variant:"body2",children:a})}),v.jsx(Er,{}),v.jsx(Nt,{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:v.jsxs(Dh,{dense:!0,children:[r.length===0&&v.jsx(Eu,{children:v.jsx(es,{primary:"No workbooks found.",sx:{textAlign:"center"}})}),r.map(l=>v.jsx(Eu,{onClick:u=>e(l,u),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:v.jsx(es,{primary:l.path})},l.path))]})})]})}const ON="Local";class yEe{makeKey(t,n){let r=`BROWSER_NOTEBOOK_STORAGE/${t.projectName}/${t.packageName}`;return n&&(r+=`/${n}`),r}async listWorkspaces(t,n){return[{name:ON,description:"Stored locally- only accessible to this browser",writeable:!0}]}async listWorkbooks(t,n){const r=this.makeKey(n),o=[];for(let a=0;a<localStorage.length;a++){const s=localStorage.key(a);if(s&&s.startsWith(r+"/")){const l=s.substring(r.length+1);o.push({path:l,workspace:ON})}}return o}async getWorkbook(t,n){const r=this.makeKey(t,n.path),o=localStorage.getItem(r);if(o===null)throw new Error(`Notebook not found at path: ${n}`);return o}async deleteWorkbook(t,n){const r=this.makeKey(t,n.path);if(localStorage.getItem(r)===null)throw new Error(`Notebook not found at path: ${n}`);localStorage.removeItem(r)}async saveWorkbook(t,n,r){console.log("saveWorkbook",t,n,r);const o=this.makeKey(t,n.path);console.log("saveWorkbook",o),localStorage.setItem(o,r)}async moveWorkbook(t,n,r){const o=this.makeKey(t,n.path),a=this.makeKey(t,r.path),s=localStorage.getItem(o);if(s===null)throw new Error(`Notebook not found at path: ${n.path}`);localStorage.setItem(a,s),localStorage.removeItem(o)}}const bEe=Rn(v.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"})),vEe=Rn(v.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"})),NN=Rn(v.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"})),EEe=Rn(v.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"})),xEe=Rn(v.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"})),TEe=Rn([v.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"),v.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")]),PN=Rn(v.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"})),SEe=new EL(new Vr),CEe=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 _Ee({navigate:e}){const{data:t,isSuccess:n,isError:r,error:o}=Jr({queryKey:["projects"],queryFn:a=>SEe.listProjects(a)});return r?v.jsx($r,{error:o,context:"Projects List"}):n?v.jsxs(RS,{maxWidth:"lg",sx:{py:4},children:[v.jsxs(Nt,{sx:{textAlign:"center",mb:6},children:[v.jsxs(fn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(NN,{sx:{fontSize:32,color:"primary.main"}}),v.jsx(He,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),v.jsx(He,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),v.jsx(He,{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."})]}),v.jsxs(Kn,{container:!0,spacing:3,sx:{mb:6},children:[v.jsx(Kn,{size:{xs:12,md:4},children:v.jsx(bu,{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:v.jsxs(vu,{sx:{p:3},children:[v.jsxs(fn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(bEe,{sx:{color:"info.main",fontSize:28}}),v.jsx(He,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),v.jsx(He,{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."}),v.jsx(Gl,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),v.jsx(Kn,{size:{xs:12,md:4},children:v.jsx(bu,{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:v.jsxs(vu,{sx:{p:3},children:[v.jsxs(fn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(EEe,{sx:{color:"warning.main",fontSize:28}}),v.jsx(He,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),v.jsx(He,{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."}),v.jsx(Gl,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),v.jsx(Kn,{size:{xs:12,md:4},children:v.jsx(bu,{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:v.jsxs(vu,{sx:{p:3},children:[v.jsxs(fn,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(TEe,{sx:{color:"success.main",fontSize:28}}),v.jsx(He,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),v.jsx(He,{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."}),v.jsx(Gl,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),v.jsx(Er,{sx:{my:4}}),t.data.length>0?v.jsxs(v.Fragment,{children:[v.jsxs(Nt,{sx:{textAlign:"center",mb:4},children:[v.jsxs(fn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(PN,{sx:{color:"primary.main",fontSize:24}}),v.jsx(He,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),v.jsx(He,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),v.jsx(Kn,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(a=>v.jsx(Kn,{size:{xs:12,sm:6,md:4},children:v.jsx(bu,{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:v.jsxs(vu,{sx:{p:3,textAlign:"center"},children:[v.jsx(xEe,{sx:{fontSize:48,color:"primary.main",mb:2}}),v.jsx(He,{variant:"h6",fontWeight:600,gutterBottom:!0,children:a.name}),v.jsx(He,{variant:"body2",color:"text.secondary",sx:{mb:2},children:CEe(a.readme)}),v.jsx(Hr,{variant:"contained",color:"secondary",endIcon:v.jsx(vEe,{}),fullWidth:!0,children:"Open Project"})]})})},a.name))})]}):v.jsxs(Nt,{sx:{textAlign:"center",mb:4},children:[v.jsxs(fn,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[v.jsx(PN,{sx:{color:"primary.main",fontSize:24}}),v.jsx(He,{variant:"h4",fontWeight:600,children:"Get Started"})]}),v.jsx(He,{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."}),v.jsx(Hr,{variant:"contained",size:"large",color:"primary",startIcon:v.jsx(NN,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),v.jsx(Nt,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:v.jsxs(He,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",v.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."]})})]}):v.jsx(Zr,{text:"Loading projects..."})}function AEe(){const e=dc(),{packageName:t,projectName:n}=e,{workbookStorage:r}=y_(),[o,a]=Fe.useState(""),[s,l]=Fe.useState(""),[u,d]=Fe.useState([]),[p,h]=Fe.useState(null),[g,y]=Fe.useState(!1),[b,x]=Fe.useState(!1),S=bd(),T=!!p,D=j=>{h(j.currentTarget)},w=()=>{h(null)},R=()=>{x(!1)},I=()=>{y(!1),a(""),l("")};Fe.useEffect(()=>{g&&r&&e&&r.listWorkspaces(e,!0).then(j=>{d(j),j.length===1&&l(j[0].name)}).catch(j=>{console.error("Error fetching workspaces:",j),d([])})},[g,r,e]);const O=(j,H)=>{x(!1),S(`/${n}/${t}/workbook/${encodeURIComponent(j.workspace)}/${encodeURIComponent(j.path)}`,H)},F=j=>{y(!1);const H=`${encodeURIComponent(s)}/${encodeURIComponent(o)}`;S(`/${n}/${t}/workbook/${H}`,j),a(""),l("")};return!n||!t?null:v.jsxs(v.Fragment,{children:[v.jsx(Hr,{"aria-controls":T?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":T?"true":void 0,onClick:D,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),v.jsxs(P0,{id:"basic-menu",anchorEl:p,open:T,onClose:w,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[v.jsxs(ql,{onClick:()=>{y(!0),w()},sx:{py:1,px:2},children:[v.jsx(HD,{children:v.jsx(gJ,{fontSize:"small"})}),v.jsxs(es,{children:[v.jsx(He,{variant:"body2",fontWeight:500,children:"New Workbook"}),v.jsx(He,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),v.jsxs(ql,{onClick:()=>{x(!0),w()},sx:{py:1,px:2},children:[v.jsx(HD,{children:v.jsx(EJ,{fontSize:"small"})}),v.jsxs(es,{children:[v.jsx(He,{variant:"body2",fontWeight:500,children:"Open Workbook"}),v.jsx(He,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),v.jsxs(Vu,{open:g,onClose:I,maxWidth:"sm",fullWidth:!0,children:[v.jsxs(qu,{sx:{pb:1,pt:2,px:2},children:[v.jsx(He,{fontWeight:600,sx:{fontSize:"1.5rem",mb:.5},children:"Create New Workbook"}),v.jsx(He,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),v.jsx(Gu,{sx:{px:2,pb:2},children:v.jsxs(fn,{spacing:2,sx:{mt:1},children:[u.length>1?v.jsxs(Sy,{fullWidth:!0,size:"small",children:[v.jsx(C5,{children:"Workspace"}),v.jsx(MS,{value:s,label:"Workspace",onChange:j=>l(j.target.value),children:u.map(j=>v.jsx(ql,{value:j.name,children:v.jsxs(Nt,{children:[v.jsx(He,{variant:"body2",fontWeight:500,children:j.name}),v.jsx(He,{variant:"caption",color:"text.secondary",children:j.description})]})},j.name))})]}):u.length===1?v.jsxs(Nt,{sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"grey.50"},children:[v.jsxs(He,{variant:"body2",fontWeight:500,gutterBottom:!0,children:["Workspace: ",u[0].name]}),v.jsx(He,{variant:"caption",color:"text.secondary",children:u[0].description})]}):null,v.jsx(Sy,{fullWidth:!0,children:v.jsx(JK,{label:"Workbook Name",value:o,onChange:j=>a(j.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),v.jsxs(fn,{direction:"row",spacing:1,justifyContent:"flex-end",children:[v.jsx(Hr,{onClick:I,variant:"outlined",size:"small",children:"Cancel"}),v.jsx(Hr,{onClick:j=>F(j),variant:"contained",disabled:!o.trim()||u.length>1&&!s,size:"small",children:"Create Workbook"})]})]})})]}),v.jsxs(Vu,{open:b,onClose:R,maxWidth:"md",fullWidth:!0,children:[v.jsxs(qu,{sx:{pb:1,pt:2,px:2},children:[v.jsx(He,{fontWeight:600,sx:{mb:.5,fontSize:"1.5rem"},children:"Open Workbook"}),v.jsx(He,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),v.jsx(Gu,{sx:{px:2,pb:2},children:v.jsx(uh,{projectName:n,packageName:t,children:v.jsx(gEe,{onWorkbookClick:O})})})]})]})}new RC(new Vr);Rt.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function kEe(){const e=bd();return v.jsx(_Ee,{navigate:e})}function wEe(){const e=dc(),t=e["*"],n=bd();return v.jsx(Nt,{sx:{display:"flex",alignItems:"center"},children:v.jsxs(HG,{"aria-label":"breadcrumb",separator:v.jsx(yJ,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&v.jsx(Gl,{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&&v.jsx(Gl,{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&&v.jsx(Gl,{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 DEe({logoHeader:e,endCap:t}){const n=VT(),{projectName:r,packageName:o}=dc();return v.jsx(W$,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:v.jsxs(AK,{sx:{justifyContent:"space-between"},children:[v.jsxs(fn,{direction:"row",spacing:2,alignItems:"center",children:[e||v.jsxs(Nt,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx(Nt,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),v.jsx(He,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),v.jsx(wEe,{})]}),v.jsxs(fn,{direction:"row",spacing:2,alignItems:"center",children:[!r||!o?!e&&v.jsxs(v.Fragment,{children:[v.jsx(Hr,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),v.jsx(Hr,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),v.jsx(Hr,{href:"/api-doc.html",children:"Publisher API"})]}):v.jsx(v.Fragment,{children:v.jsx(AEe,{})}),t]})]})})}function REe({headerProps:e}){return v.jsxs(Nt,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[v.jsx(DEe,{...e}),v.jsx(RS,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:v.jsx(Nt,{sx:{flex:1},children:v.jsx(d9,{})})})]})}function IEe(){const e=dc(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?v.jsx(uh,{projectName:e.projectName,packageName:e.packageName,children:v.jsx(Yce,{modelPath:t,hideEmbeddingIcons:!1})}):t?.endsWith(".malloynb")?v.jsx(uh,{projectName:e.projectName,packageName:e.packageName,children:v.jsx(AL,{notebookPath:t,hideEmbeddingIcons:!1,expandResults:!1})}):v.jsx("div",{children:v.jsxs("h2",{children:["Unrecognized file type: ",t]})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function OEe(){const{projectName:e,packageName:t}=dc(),n=bd();return e?t?v.jsx(uh,{projectName:e,packageName:t,children:v.jsx(jce,{navigate:n})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function NEe(){const e=bd(),{projectName:t}=dc();return t?v.jsx(DL,{projectName:t,children:v.jsx(Qie,{navigate:e})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}function PEe(){const e=t3();return console.error(e),v.jsx(RS,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:v.jsxs(fn,{sx:{m:"auto",flexDirection:"column"},children:[v.jsx(Nt,{sx:{height:"300px"}}),v.jsx("img",{src:"/error.png"}),v.jsx(He,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function LEe(){const{projectName:e,packageName:t,workspace:n,workbookPath:r}=dc();return e?t?n?r?v.jsx(uh,{projectName:e,packageName:t,children:v.jsx(hEe,{workbookPath:{path:r,workspace:n},hideEmbeddingIcons:!0},`${r}-${e}-${t}`)}):v.jsx("div",{children:v.jsx("h2",{children:"Missing workbook path"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing workspace"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing package name"})}):v.jsx("div",{children:v.jsx("h2",{children:"Missing project name"})})}const Gn={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"}},MEe=_0({palette:{mode:"light",primary:Gn.primary,secondary:Gn.secondary,grey:Gn.grey,success:Gn.success,warning:Gn.warning,error:Gn.error,info:Gn.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:Gn.grey[900],secondary:Gn.grey[600]},divider:Gn.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:`${Gn.grey[300]} ${Gn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Gn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Gn.grey[300],borderRadius:"4px","&:hover":{background:Gn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Gn.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${Gn.grey[300]} ${Gn.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:Gn.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:Gn.grey[300],borderRadius:"4px","&:hover":{background:Gn.grey[400]}},"&::-webkit-scrollbar-corner":{background:Gn.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:Gn.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:Gn.grey[200]}},defaultProps:{sx:{my:1}}}}}),FEe=(e="/",t,n,r,o)=>M9([{path:e,element:v.jsx(Xce,{server:r,getAccessToken:o,children:v.jsx(lEe,{workbookStorage:t,children:v.jsxs(Bz,{theme:MEe,children:[v.jsx(Eq,{}),v.jsx(REe,{headerProps:n})]})})}),errorElement:v.jsx(PEe,{}),children:[{path:"",element:v.jsx(kEe,{})},{path:":projectName",element:v.jsx(NEe,{})},{path:":projectName/:packageName",element:v.jsx(OEe,{})},{path:":projectName/:packageName/*",element:v.jsx(IEe,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:v.jsx(LEe,{})}]}]),BEe=`${window.location.protocol}//${window.location.host}/api/v0`,jEe=FEe("/",new yEe,void 0,BEe);HF.createRoot(document.getElementById("root")).render(v.jsx(k.StrictMode,{children:v.jsx(Y9,{router:jEe})}));export{ox as R,G as _,$s as a,Fe as b,u0 as c,UEe as d,LN as g,v as j,k as r};