@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
@@ -0,0 +1,251 @@
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/RenderedResult-BAZuT25g-QakVAbYy.js","assets/mui-BEbinrI-.js","assets/vendor-c5ypKtDW.js","assets/index-TslDWlxH.js","assets/index-Bq29VQqL.js","assets/index.umd-BN4_E5KD.js"])))=>i.map(i=>d[i]);
2
+ import{r as N,a as $2,u as s4,s as Ms,C as Fl,b as jl,c as o4,R as Ne,d as gh,k as hE,e as l4,f as Bi,j as b,B as W2,g as rr,h as c4,T as Ie,i as Rn,l as u4,m as d4,n as f4,o as h4,p as pE,q as it,S as It,G as gn,t as vo,D as Zn,M as mE,v as To,L as jx,w as p4,x as Hi,y as m4,z as Kl,A as Xl,E as Zl,F as n1,I as g4,H as y4,J as E4,K as Yp,N as An,O as zi,P as b4,Q as K2,U as Qp,V as Bl,W as v4,X as od,Y as op,Z as ai,_ as zt,$ as ld,a0 as gE,a1 as Fh,a2 as T4,a3 as _4,a4 as x4,a5 as A4,a6 as X2,a7 as Bx,a8 as S4,a9 as C4,aa as D4,ab as k4,ac as R4,ad as w4,ae as I4,af as N4,ag as O4,ah as L4}from"./mui-BEbinrI-.js";import{r as M4,a as P4}from"./vendor-c5ypKtDW.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var q0={exports:{}},pu={},Y0={exports:{}},Q0={};/**
3
+ * @license React
4
+ * scheduler.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 Ux;function F4(){return Ux||(Ux=1,function(e){function t(V,le){var oe=V.length;V.push(le);e:for(;0<oe;){var ye=oe-1>>>1,P=V[ye];if(0<a(P,le))V[ye]=le,V[oe]=P,oe=ye;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var le=V[0],oe=V.pop();if(oe!==le){V[0]=oe;e:for(var ye=0,P=V.length,Le=P>>>1;ye<Le;){var ce=2*(ye+1)-1,I=V[ce],te=ce+1,Ce=V[te];if(0>a(I,oe))te<P&&0>a(Ce,I)?(V[ye]=Ce,V[te]=oe,ye=te):(V[ye]=I,V[ce]=oe,ye=ce);else if(te<P&&0>a(Ce,oe))V[ye]=Ce,V[te]=oe,ye=te;else break e}}return le}function a(V,le){var oe=V.sortIndex-le.sortIndex;return oe!==0?oe:V.id-le.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,m=null,E=3,y=!1,T=!1,A=!1,C=!1,x=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function L(V){for(var le=n(f);le!==null;){if(le.callback===null)r(f);else if(le.startTime<=V)r(f),le.sortIndex=le.expirationTime,t(d,le);else break;le=n(f)}}function M(V){if(A=!1,L(V),!T)if(n(d)!==null)T=!0,w||(w=!0,$());else{var le=n(f);le!==null&&me(M,le.startTime-V)}}var w=!1,q=-1,ne=5,W=-1;function k(){return C?!0:!(e.unstable_now()-W<ne)}function z(){if(C=!1,w){var V=e.unstable_now();W=V;var le=!0;try{e:{T=!1,A&&(A=!1,D(q),q=-1),y=!0;var oe=E;try{t:{for(L(V),m=n(d);m!==null&&!(m.expirationTime>V&&k());){var ye=m.callback;if(typeof ye=="function"){m.callback=null,E=m.priorityLevel;var P=ye(m.expirationTime<=V);if(V=e.unstable_now(),typeof P=="function"){m.callback=P,L(V),le=!0;break t}m===n(d)&&r(d),L(V)}else r(d);m=n(d)}if(m!==null)le=!0;else{var Le=n(f);Le!==null&&me(M,Le.startTime-V),le=!1}}break e}finally{m=null,E=oe,y=!1}le=void 0}}finally{le?$():w=!1}}}var $;if(typeof S=="function")$=function(){S(z)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,re=K.port2;K.port1.onmessage=z,$=function(){re.postMessage(null)}}else $=function(){x(z,0)};function me(V,le){q=x(function(){V(e.unstable_now())},le)}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(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(V){switch(E){case 1:case 2:case 3:var le=3;break;default:le=E}var oe=E;E=le;try{return V()}finally{E=oe}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(V,le){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var oe=E;E=V;try{return le()}finally{E=oe}},e.unstable_scheduleCallback=function(V,le,oe){var ye=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ye+oe:ye):oe=ye,V){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=oe+P,V={id:p++,callback:le,priorityLevel:V,startTime:oe,expirationTime:P,sortIndex:-1},oe>ye?(V.sortIndex=oe,t(f,V),n(d)===null&&V===n(f)&&(A?(D(q),q=-1):A=!0,me(M,oe-ye))):(V.sortIndex=P,t(d,V),T||y||(T=!0,w||(w=!0,$()))),V},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(V){var le=E;return function(){var oe=E;E=le;try{return V.apply(this,arguments)}finally{E=oe}}}}(Q0)),Q0}var Hx;function j4(){return Hx||(Hx=1,Y0.exports=F4()),Y0.exports}/**
11
+ * @license React
12
+ * react-dom-client.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 zx;function B4(){if(zx)return pu;zx=1;var e=j4(),t=M4(),n=P4();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function c(i){if(s(i)!==i)throw Error(r(188))}function d(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var u=i,h=o;;){var g=u.return;if(g===null)break;var v=g.alternate;if(v===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===u)return c(g),i;if(v===h)return c(g),o;v=v.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=v;else{for(var R=!1,O=g.child;O;){if(O===u){R=!0,u=g,h=v;break}if(O===h){R=!0,h=g,u=v;break}O=O.sibling}if(!R){for(O=v.child;O;){if(O===u){R=!0,u=v,h=g;break}if(O===h){R=!0,h=v,u=g;break}O=O.sibling}if(!R)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:o}function f(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=f(i),o!==null)return o;i=i.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),S=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function $(i){return i===null||typeof i!="object"?null:(i=z&&i[z]||i["@@iterator"],typeof i=="function"?i:null)}var K=Symbol.for("react.client.reference");function re(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===K?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case M:return"Suspense";case w:return"SuspenseList";case W:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case S:return(i.displayName||"Context")+".Provider";case D:return(i._context.displayName||"Context")+".Consumer";case L:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case q:return o=i.displayName||null,o!==null?o:re(i.type)||"Memo";case ne:o=i._payload,i=i._init;try{return re(i(o))}catch{}}return null}var me=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ye=[],P=-1;function Le(i){return{current:i}}function ce(i){0>P||(i.current=ye[P],ye[P]=null,P--)}function I(i,o){P++,ye[P]=i.current,i.current=o}var te=Le(null),Ce=Le(null),we=Le(null),Pe=Le(null);function Me(i,o){switch(I(we,o),I(Ce,i),I(te,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?fx(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=fx(o),i=hx(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ce(te),I(te,i)}function ot(){ce(te),ce(Ce),ce(we)}function dt(i){i.memoizedState!==null&&I(Pe,i);var o=te.current,u=hx(o,i.type);o!==u&&(I(Ce,i),I(te,u))}function He(i){Ce.current===i&&(ce(te),ce(Ce)),Pe.current===i&&(ce(Pe),cu._currentValue=oe)}var Wt=Object.prototype.hasOwnProperty,Nt=e.unstable_scheduleCallback,Fe=e.unstable_cancelCallback,or=e.unstable_shouldYield,fn=e.unstable_requestPaint,qe=e.unstable_now,Jn=e.unstable_getCurrentPriorityLevel,an=e.unstable_ImmediatePriority,on=e.unstable_UserBlockingPriority,Qe=e.unstable_NormalPriority,Ct=e.unstable_LowPriority,Cr=e.unstable_IdlePriority,Ha=e.log,Rt=e.unstable_setDisableYieldValue,ue=null,ve=null;function Be(i){if(typeof Ha=="function"&&Rt(i),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ue,i)}catch{}}var nt=Math.clz32?Math.clz32:qn,Dt=Math.log,Ot=Math.LN2;function qn(i){return i>>>=0,i===0?32:31-(Dt(i)/Ot|0)|0}var yn=256,Sn=4194304;function _e(i){var o=i&42;if(o!==0)return o;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 Te(i,o,u){var h=i.pendingLanes;if(h===0)return 0;var g=0,v=i.suspendedLanes,R=i.pingedLanes;i=i.warmLanes;var O=h&134217727;return O!==0?(h=O&~v,h!==0?g=_e(h):(R&=O,R!==0?g=_e(R):u||(u=O&~i,u!==0&&(g=_e(u))))):(O=h&~v,O!==0?g=_e(O):R!==0?g=_e(R):u||(u=h&~i,u!==0&&(g=_e(u)))),g===0?0:o!==0&&o!==g&&(o&v)===0&&(v=g&-g,u=o&-o,v>=u||v===32&&(u&4194048)!==0)?o:g}function st(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function Ke(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 Cn(){var i=yn;return yn<<=1,(yn&4194048)===0&&(yn=256),i}function Br(){var i=Sn;return Sn<<=1,(Sn&62914560)===0&&(Sn=4194304),i}function br(i){for(var o=[],u=0;31>u;u++)o.push(i);return o}function lr(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function cr(i,o,u,h,g,v){var R=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var O=i.entanglements,H=i.expirationTimes,ee=i.hiddenUpdates;for(u=R&~u;0<u;){var pe=31-nt(u),Ee=1<<pe;O[pe]=0,H[pe]=-1;var ae=ee[pe];if(ae!==null)for(ee[pe]=null,pe=0;pe<ae.length;pe++){var se=ae[pe];se!==null&&(se.lane&=-536870913)}u&=~Ee}h!==0&&za(i,h,0),v!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=v&~(R&~o))}function za(i,o,u){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-nt(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|u&4194090}function hn(i,o){var u=i.entangledLanes|=o;for(i=i.entanglements;u;){var h=31-nt(u),g=1<<h;g&o|i[h]&o&&(i[h]|=o),u&=~g}}function Ur(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 Ra(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function G(){var i=le.p;return i!==0?i:(i=window.event,i===void 0?32:Nx(i.type))}function X(i,o){var u=le.p;try{return le.p=i,o()}finally{le.p=u}}var ie=Math.random().toString(36).slice(2),be="__reactFiber$"+ie,De="__reactProps$"+ie,Ue="__reactContainer$"+ie,Ve="__reactEvents$"+ie,ze="__reactListeners$"+ie,We="__reactHandles$"+ie,Ze="__reactResources$"+ie,Ge="__reactMarker$"+ie;function Ye(i){delete i[be],delete i[De],delete i[Ve],delete i[ze],delete i[We]}function pt(i){var o=i[be];if(o)return o;for(var u=i.parentNode;u;){if(o=u[Ue]||u[be]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(i=yx(i);i!==null;){if(u=i[be])return u;i=yx(i)}return o}i=u,u=i.parentNode}return null}function Lt(i){if(i=i[be]||i[Ue]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function En(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function bn(i){var o=i[Ze];return o||(o=i[Ze]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function ft(i){i[Ge]=!0}var Ft=new Set,Ga={};function Hr(i,o){vr(i,o),vr(i+"Capture",o)}function vr(i,o){for(Ga[i]=o,i=0;i<o.length;i++)Ft.add(o[i])}var aa=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]*$"),Go={},$i={};function hi(i){return Wt.call($i,i)?!0:Wt.call(Go,i)?!1:aa.test(i)?$i[i]=!0:(Go[i]=!0,!1)}function pi(i,o,u){if(hi(o))if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+u)}}function mi(i,o,u){if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+u)}}function gt(i,o,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(o,u,""+h)}}var Nn,Hs;function ia(i){if(Nn===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);Nn=o&&o[1]||"",Hs=-1<u.stack.indexOf(`
19
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
20
+ `+Nn+i+Hs}var pn=!1;function Wi(i,o){if(!i||pn)return"";pn=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(se){var ae=se}Reflect.construct(i,[],Ee)}else{try{Ee.call()}catch(se){ae=se}i.call(Ee.prototype)}}else{try{throw Error()}catch(se){ae=se}(Ee=i())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(se){if(se&&ae&&typeof se.stack=="string")return[se.stack,ae.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=h.DetermineComponentFrameRoot(),R=v[0],O=v[1];if(R&&O){var H=R.split(`
21
+ `),ee=O.split(`
22
+ `);for(g=h=0;h<H.length&&!H[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===H.length||g===ee.length)for(h=H.length-1,g=ee.length-1;1<=h&&0<=g&&H[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(H[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||H[h]!==ee[g]){var pe=`
23
+ `+H[h].replace(" at new "," at ");return i.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",i.displayName)),pe}while(1<=h&&0<=g);break}}}finally{pn=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?ia(u):""}function sf(i){switch(i.tag){case 26:case 27:case 5:return ia(i.type);case 16:return ia("Lazy");case 13:return ia("Suspense");case 19:return ia("SuspenseList");case 0:case 15:return Wi(i.type,!1);case 11:return Wi(i.type.render,!1);case 1:return Wi(i.type,!0);case 31:return ia("Activity");default:return""}}function of(i){try{var o="";do o+=sf(i),i=i.return;while(i);return o}catch(u){return`
24
+ Error generating stack: `+u.message+`
25
+ `+u.stack}}function sa(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ov(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function tN(i){var o=ov(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,v=u.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return g.call(this)},set:function(R){h=""+R,v.call(this,R)}}),Object.defineProperty(i,o,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(R){h=""+R},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function lf(i){i._valueTracker||(i._valueTracker=tN(i))}function lv(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return i&&(h=ov(i)?i.checked?"true":"false":i.value),i=h,i!==u?(o.setValue(i),!0):!1}function cf(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 nN=/[\n"\\]/g;function oa(i){return i.replace(nN,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function zm(i,o,u,h,g,v,R,O){i.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.type=R:i.removeAttribute("type"),o!=null?R==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+sa(o)):i.value!==""+sa(o)&&(i.value=""+sa(o)):R!=="submit"&&R!=="reset"||i.removeAttribute("value"),o!=null?Gm(i,R,sa(o)):u!=null?Gm(i,R,sa(u)):h!=null&&i.removeAttribute("value"),g==null&&v!=null&&(i.defaultChecked=!!v),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?i.name=""+sa(O):i.removeAttribute("name")}function cv(i,o,u,h,g,v,R,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(i.type=v),o!=null||u!=null){if(!(v!=="submit"&&v!=="reset"||o!=null))return;u=u!=null?""+sa(u):"",o=o!=null?""+sa(o):u,O||o===i.value||(i.value=o),i.defaultValue=o}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=O?i.checked:!!h,i.defaultChecked=!!h,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(i.name=R)}function Gm(i,o,u){o==="number"&&cf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Vo(i,o,u,h){if(i=i.options,o){o={};for(var g=0;g<u.length;g++)o["$"+u[g]]=!0;for(u=0;u<i.length;u++)g=o.hasOwnProperty("$"+i[u].value),i[u].selected!==g&&(i[u].selected=g),g&&h&&(i[u].defaultSelected=!0)}else{for(u=""+sa(u),o=null,g=0;g<i.length;g++){if(i[g].value===u){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}o!==null||i[g].disabled||(o=i[g])}o!==null&&(o.selected=!0)}}function uv(i,o,u){if(o!=null&&(o=""+sa(o),o!==i.value&&(i.value=o),u==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=u!=null?""+sa(u):""}function dv(i,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(me(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=sa(o),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h)}function qo(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var rN=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 fv(i,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,u):typeof u!="number"||u===0||rN.has(o)?o==="float"?i.cssFloat=u:i[o]=(""+u).trim():i[o]=u+"px"}function hv(i,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in o)h=o[g],o.hasOwnProperty(g)&&u[g]!==h&&fv(i,g,h)}else for(var v in o)o.hasOwnProperty(v)&&fv(i,v,o[v])}function Vm(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 aN=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"]]),iN=/^[\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 uf(i){return iN.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var qm=null;function Ym(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Yo=null,Qo=null;function pv(i){var o=Lt(i);if(o&&(i=o.stateNode)){var u=i[De]||null;e:switch(i=o.stateNode,o.type){case"input":if(zm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+oa(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==i&&h.form===i.form){var g=h[De]||null;if(!g)throw Error(r(90));zm(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===i.form&&lv(h)}break e;case"textarea":uv(i,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Vo(i,!!u.multiple,o,!1)}}}var Qm=!1;function mv(i,o,u){if(Qm)return i(o,u);Qm=!0;try{var h=i(o);return h}finally{if(Qm=!1,(Yo!==null||Qo!==null)&&(Wf(),Yo&&(o=Yo,i=Qo,Qo=Yo=null,pv(o),i)))for(o=0;o<i.length;o++)pv(i[o])}}function _c(i,o){var u=i.stateNode;if(u===null)return null;var h=u[De]||null;if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$m=!1;if(gi)try{var xc={};Object.defineProperty(xc,"passive",{get:function(){$m=!0}}),window.addEventListener("test",xc,xc),window.removeEventListener("test",xc,xc)}catch{$m=!1}var Ki=null,Wm=null,df=null;function gv(){if(df)return df;var i,o=Wm,u=o.length,h,g="value"in Ki?Ki.value:Ki.textContent,v=g.length;for(i=0;i<u&&o[i]===g[i];i++);var R=u-i;for(h=1;h<=R&&o[u-h]===g[v-h];h++);return df=g.slice(i,1<h?1-h:void 0)}function ff(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function hf(){return!0}function yv(){return!1}function Dr(i){function o(u,h,g,v,R){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=v,this.target=R,this.currentTarget=null;for(var O in i)i.hasOwnProperty(O)&&(u=i[O],this[O]=u?u(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?hf:yv,this.isPropagationStopped=yv,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=hf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=hf)},persist:function(){},isPersistent:hf}),o}var zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pf=Dr(zs),Ac=p({},zs,{view:0,detail:0}),sN=Dr(Ac),Km,Xm,Sc,mf=p({},Ac,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jm,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!==Sc&&(Sc&&i.type==="mousemove"?(Km=i.screenX-Sc.screenX,Xm=i.screenY-Sc.screenY):Xm=Km=0,Sc=i),Km)},movementY:function(i){return"movementY"in i?i.movementY:Xm}}),Ev=Dr(mf),oN=p({},mf,{dataTransfer:0}),lN=Dr(oN),cN=p({},Ac,{relatedTarget:0}),Zm=Dr(cN),uN=p({},zs,{animationName:0,elapsedTime:0,pseudoElement:0}),dN=Dr(uN),fN=p({},zs,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),hN=Dr(fN),pN=p({},zs,{data:0}),bv=Dr(pN),mN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gN={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"},yN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function EN(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=yN[i])?!!o[i]:!1}function Jm(){return EN}var bN=p({},Ac,{key:function(i){if(i.key){var o=mN[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=ff(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?gN[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jm,charCode:function(i){return i.type==="keypress"?ff(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?ff(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),vN=Dr(bN),TN=p({},mf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vv=Dr(TN),_N=p({},Ac,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jm}),xN=Dr(_N),AN=p({},zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),SN=Dr(AN),CN=p({},mf,{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}),DN=Dr(CN),kN=p({},zs,{newState:0,oldState:0}),RN=Dr(kN),wN=[9,13,27,32],eg=gi&&"CompositionEvent"in window,Cc=null;gi&&"documentMode"in document&&(Cc=document.documentMode);var IN=gi&&"TextEvent"in window&&!Cc,Tv=gi&&(!eg||Cc&&8<Cc&&11>=Cc),_v=" ",xv=!1;function Av(i,o){switch(i){case"keyup":return wN.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var $o=!1;function NN(i,o){switch(i){case"compositionend":return Sv(o);case"keypress":return o.which!==32?null:(xv=!0,_v);case"textInput":return i=o.data,i===_v&&xv?null:i;default:return null}}function ON(i,o){if($o)return i==="compositionend"||!eg&&Av(i,o)?(i=gv(),df=Wm=Ki=null,$o=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Tv&&o.locale!=="ko"?null:o.data;default:return null}}var LN={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 Cv(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!LN[i.type]:o==="textarea"}function Dv(i,o,u,h){Yo?Qo?Qo.push(h):Qo=[h]:Yo=h,o=th(o,"onChange"),0<o.length&&(u=new pf("onChange","change",null,u,h),i.push({event:u,listeners:o}))}var Dc=null,kc=null;function MN(i){ox(i,0)}function gf(i){var o=En(i);if(lv(o))return i}function kv(i,o){if(i==="change")return o}var Rv=!1;if(gi){var tg;if(gi){var ng="oninput"in document;if(!ng){var wv=document.createElement("div");wv.setAttribute("oninput","return;"),ng=typeof wv.oninput=="function"}tg=ng}else tg=!1;Rv=tg&&(!document.documentMode||9<document.documentMode)}function Iv(){Dc&&(Dc.detachEvent("onpropertychange",Nv),kc=Dc=null)}function Nv(i){if(i.propertyName==="value"&&gf(kc)){var o=[];Dv(o,kc,i,Ym(i)),mv(MN,o)}}function PN(i,o,u){i==="focusin"?(Iv(),Dc=o,kc=u,Dc.attachEvent("onpropertychange",Nv)):i==="focusout"&&Iv()}function FN(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return gf(kc)}function jN(i,o){if(i==="click")return gf(o)}function BN(i,o){if(i==="input"||i==="change")return gf(o)}function UN(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var zr=typeof Object.is=="function"?Object.is:UN;function Rc(i,o){if(zr(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var u=Object.keys(i),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!Wt.call(o,g)||!zr(i[g],o[g]))return!1}return!0}function Ov(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Lv(i,o){var u=Ov(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=o&&h>=o)return{node:u,offset:o-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Ov(u)}}function Mv(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?Mv(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function Pv(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=cf(i.document);o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=cf(i.document)}return o}function rg(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var HN=gi&&"documentMode"in document&&11>=document.documentMode,Wo=null,ag=null,wc=null,ig=!1;function Fv(i,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;ig||Wo==null||Wo!==cf(h)||(h=Wo,"selectionStart"in h&&rg(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),wc&&Rc(wc,h)||(wc=h,h=th(ag,"onSelect"),0<h.length&&(o=new pf("onSelect","select",null,o,u),i.push({event:o,listeners:h}),o.target=Wo)))}function Gs(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}var Ko={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionrun:Gs("Transition","TransitionRun"),transitionstart:Gs("Transition","TransitionStart"),transitioncancel:Gs("Transition","TransitionCancel"),transitionend:Gs("Transition","TransitionEnd")},sg={},jv={};gi&&(jv=document.createElement("div").style,"AnimationEvent"in window||(delete Ko.animationend.animation,delete Ko.animationiteration.animation,delete Ko.animationstart.animation),"TransitionEvent"in window||delete Ko.transitionend.transition);function Vs(i){if(sg[i])return sg[i];if(!Ko[i])return i;var o=Ko[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in jv)return sg[i]=o[u];return i}var Bv=Vs("animationend"),Uv=Vs("animationiteration"),Hv=Vs("animationstart"),zN=Vs("transitionrun"),GN=Vs("transitionstart"),VN=Vs("transitioncancel"),zv=Vs("transitionend"),Gv=new Map,og="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(" ");og.push("scrollEnd");function wa(i,o){Gv.set(i,o),Hr(o,[i])}var Vv=new WeakMap;function la(i,o){if(typeof i=="object"&&i!==null){var u=Vv.get(i);return u!==void 0?u:(o={value:i,source:o,stack:of(o)},Vv.set(i,o),o)}return{value:i,source:o,stack:of(o)}}var ca=[],Xo=0,lg=0;function yf(){for(var i=Xo,o=lg=Xo=0;o<i;){var u=ca[o];ca[o++]=null;var h=ca[o];ca[o++]=null;var g=ca[o];ca[o++]=null;var v=ca[o];if(ca[o++]=null,h!==null&&g!==null){var R=h.pending;R===null?g.next=g:(g.next=R.next,R.next=g),h.pending=g}v!==0&&qv(u,g,v)}}function Ef(i,o,u,h){ca[Xo++]=i,ca[Xo++]=o,ca[Xo++]=u,ca[Xo++]=h,lg|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function cg(i,o,u,h){return Ef(i,o,u,h),bf(i)}function Zo(i,o){return Ef(i,null,null,o),bf(i)}function qv(i,o,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var g=!1,v=i.return;v!==null;)v.childLanes|=u,h=v.alternate,h!==null&&(h.childLanes|=u),v.tag===22&&(i=v.stateNode,i===null||i._visibility&1||(g=!0)),i=v,v=v.return;return i.tag===3?(v=i.stateNode,g&&o!==null&&(g=31-nt(u),i=v.hiddenUpdates,h=i[g],h===null?i[g]=[o]:h.push(o),o.lane=u|536870912),v):null}function bf(i){if(50<tu)throw tu=0,m0=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Jo={};function qN(i,o,u,h){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(i,o,u,h){return new qN(i,o,u,h)}function ug(i){return i=i.prototype,!(!i||!i.isReactComponent)}function yi(i,o){var u=i.alternate;return u===null?(u=Gr(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function Yv(i,o){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,o=u.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function vf(i,o,u,h,g,v){var R=0;if(h=i,typeof i=="function")ug(i)&&(R=1);else if(typeof i=="string")R=QO(i,u,te.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case W:return i=Gr(31,u,o,g),i.elementType=W,i.lanes=v,i;case T:return qs(u.children,g,v,o);case A:R=8,g|=24;break;case C:return i=Gr(12,u,o,g|2),i.elementType=C,i.lanes=v,i;case M:return i=Gr(13,u,o,g),i.elementType=M,i.lanes=v,i;case w:return i=Gr(19,u,o,g),i.elementType=w,i.lanes=v,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case x:case S:R=10;break e;case D:R=9;break e;case L:R=11;break e;case q:R=14;break e;case ne:R=16,h=null;break e}R=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=Gr(R,u,o,g),o.elementType=i,o.type=h,o.lanes=v,o}function qs(i,o,u,h){return i=Gr(7,i,h,o),i.lanes=u,i}function dg(i,o,u){return i=Gr(6,i,null,o),i.lanes=u,i}function fg(i,o,u){return o=Gr(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var el=[],tl=0,Tf=null,_f=0,ua=[],da=0,Ys=null,Ei=1,bi="";function Qs(i,o){el[tl++]=_f,el[tl++]=Tf,Tf=i,_f=o}function Qv(i,o,u){ua[da++]=Ei,ua[da++]=bi,ua[da++]=Ys,Ys=i;var h=Ei;i=bi;var g=32-nt(h)-1;h&=~(1<<g),u+=1;var v=32-nt(o)+g;if(30<v){var R=g-g%5;v=(h&(1<<R)-1).toString(32),h>>=R,g-=R,Ei=1<<32-nt(o)+g|u<<g|h,bi=v+i}else Ei=1<<v|u<<g|h,bi=i}function hg(i){i.return!==null&&(Qs(i,1),Qv(i,1,0))}function pg(i){for(;i===Tf;)Tf=el[--tl],el[tl]=null,_f=el[--tl],el[tl]=null;for(;i===Ys;)Ys=ua[--da],ua[da]=null,bi=ua[--da],ua[da]=null,Ei=ua[--da],ua[da]=null}var Tr=null,vn=null,wt=!1,$s=null,Va=!1,mg=Error(r(519));function Ws(i){var o=Error(r(418,""));throw Oc(la(o,i)),mg}function $v(i){var o=i.stateNode,u=i.type,h=i.memoizedProps;switch(o[be]=i,o[De]=h,u){case"dialog":vt("cancel",o),vt("close",o);break;case"iframe":case"object":case"embed":vt("load",o);break;case"video":case"audio":for(u=0;u<ru.length;u++)vt(ru[u],o);break;case"source":vt("error",o);break;case"img":case"image":case"link":vt("error",o),vt("load",o);break;case"details":vt("toggle",o);break;case"input":vt("invalid",o),cv(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),lf(o);break;case"select":vt("invalid",o);break;case"textarea":vt("invalid",o),dv(o,h.value,h.defaultValue,h.children),lf(o)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||h.suppressHydrationWarning===!0||dx(o.textContent,u)?(h.popover!=null&&(vt("beforetoggle",o),vt("toggle",o)),h.onScroll!=null&&vt("scroll",o),h.onScrollEnd!=null&&vt("scrollend",o),h.onClick!=null&&(o.onclick=nh),o=!0):o=!1,o||Ws(i)}function Wv(i){for(Tr=i.return;Tr;)switch(Tr.tag){case 5:case 13:Va=!1;return;case 27:case 3:Va=!0;return;default:Tr=Tr.return}}function Ic(i){if(i!==Tr)return!1;if(!wt)return Wv(i),wt=!0,!1;var o=i.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||I0(i.type,i.memoizedProps)),u=!u),u&&vn&&Ws(i),Wv(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(u=i.data,u==="/$"){if(o===0){vn=Na(i.nextSibling);break e}o--}else u!=="$"&&u!=="$!"&&u!=="$?"||o++;i=i.nextSibling}vn=null}}else o===27?(o=vn,fs(i.type)?(i=M0,M0=null,vn=i):vn=o):vn=Tr?Na(i.stateNode.nextSibling):null;return!0}function Nc(){vn=Tr=null,wt=!1}function Kv(){var i=$s;return i!==null&&(wr===null?wr=i:wr.push.apply(wr,i),$s=null),i}function Oc(i){$s===null?$s=[i]:$s.push(i)}var gg=Le(null),Ks=null,vi=null;function Xi(i,o,u){I(gg,o._currentValue),o._currentValue=u}function Ti(i){i._currentValue=gg.current,ce(gg)}function yg(i,o,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===u)break;i=i.return}}function Eg(i,o,u,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var v=g.dependencies;if(v!==null){var R=g.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=g;for(var H=0;H<o.length;H++)if(O.context===o[H]){v.lanes|=u,O=v.alternate,O!==null&&(O.lanes|=u),yg(v.return,u,i),h||(R=null);break e}v=O.next}}else if(g.tag===18){if(R=g.return,R===null)throw Error(r(341));R.lanes|=u,v=R.alternate,v!==null&&(v.lanes|=u),yg(R,u,i),R=null}else R=g.child;if(R!==null)R.return=g;else for(R=g;R!==null;){if(R===i){R=null;break}if(g=R.sibling,g!==null){g.return=R.return,R=g;break}R=R.return}g=R}}function Lc(i,o,u,h){i=null;for(var g=o,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var R=g.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var O=g.type;zr(g.pendingProps.value,R.value)||(i!==null?i.push(O):i=[O])}}else if(g===Pe.current){if(R=g.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(cu):i=[cu])}g=g.return}i!==null&&Eg(o,i,u,h),o.flags|=262144}function xf(i){for(i=i.firstContext;i!==null;){if(!zr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Xs(i){Ks=i,vi=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function ur(i){return Xv(Ks,i)}function Af(i,o){return Ks===null&&Xs(i),Xv(i,o)}function Xv(i,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},vi===null){if(i===null)throw Error(r(308));vi=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else vi=vi.next=o;return u}var YN=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(u){return u()})}},QN=e.unstable_scheduleCallback,$N=e.unstable_NormalPriority,Bn={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bg(){return{controller:new YN,data:new Map,refCount:0}}function Mc(i){i.refCount--,i.refCount===0&&QN($N,function(){i.controller.abort()})}var Pc=null,vg=0,nl=0,rl=null;function WN(i,o){if(Pc===null){var u=Pc=[];vg=0,nl=_0(),rl={status:"pending",value:void 0,then:function(h){u.push(h)}}}return vg++,o.then(Zv,Zv),o}function Zv(){if(--vg===0&&Pc!==null){rl!==null&&(rl.status="fulfilled");var i=Pc;Pc=null,nl=0,rl=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function KN(i,o){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<u.length;g++)(0,u[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var Jv=V.S;V.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&WN(i,o),Jv!==null&&Jv(i,o)};var Zs=Le(null);function Tg(){var i=Zs.current;return i!==null?i:Kt.pooledCache}function Sf(i,o){o===null?I(Zs,Zs.current):I(Zs,o.pool)}function eT(){var i=Tg();return i===null?null:{parent:Bn._currentValue,pool:i}}var Fc=Error(r(460)),tT=Error(r(474)),Cf=Error(r(542)),_g={then:function(){}};function nT(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Df(){}function rT(i,o,u){switch(u=i[u],u===void 0?i.push(o):u!==o&&(o.then(Df,Df),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,iT(i),i;default:if(typeof o.status=="string")o.then(Df,Df);else{if(i=Kt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,iT(i),i}throw jc=o,Fc}}var jc=null;function aT(){if(jc===null)throw Error(r(459));var i=jc;return jc=null,i}function iT(i){if(i===Fc||i===Cf)throw Error(r(483))}var Zi=!1;function xg(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ag(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Ji(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function es(i,o,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Mt&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=bf(i),qv(i,null,u),o}return Ef(i,h,o,u),bf(i)}function Bc(i,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,hn(i,u)}}function Sg(i,o){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,v=null;if(u=u.firstBaseUpdate,u!==null){do{var R={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};v===null?g=v=R:v=v.next=R,u=u.next}while(u!==null);v===null?g=v=o:v=v.next=o}else g=v=o;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}var Cg=!1;function Uc(){if(Cg){var i=rl;if(i!==null)throw i}}function Hc(i,o,u,h){Cg=!1;var g=i.updateQueue;Zi=!1;var v=g.firstBaseUpdate,R=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var H=O,ee=H.next;H.next=null,R===null?v=ee:R.next=ee,R=H;var pe=i.alternate;pe!==null&&(pe=pe.updateQueue,O=pe.lastBaseUpdate,O!==R&&(O===null?pe.firstBaseUpdate=ee:O.next=ee,pe.lastBaseUpdate=H))}if(v!==null){var Ee=g.baseState;R=0,pe=ee=H=null,O=v;do{var ae=O.lane&-536870913,se=ae!==O.lane;if(se?(At&ae)===ae:(h&ae)===ae){ae!==0&&ae===nl&&(Cg=!0),pe!==null&&(pe=pe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var rt=i,Je=O;ae=o;var Ut=u;switch(Je.tag){case 1:if(rt=Je.payload,typeof rt=="function"){Ee=rt.call(Ut,Ee,ae);break e}Ee=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=Je.payload,ae=typeof rt=="function"?rt.call(Ut,Ee,ae):rt,ae==null)break e;Ee=p({},Ee,ae);break e;case 2:Zi=!0}}ae=O.callback,ae!==null&&(i.flags|=64,se&&(i.flags|=8192),se=g.callbacks,se===null?g.callbacks=[ae]:se.push(ae))}else se={lane:ae,tag:O.tag,payload:O.payload,callback:O.callback,next:null},pe===null?(ee=pe=se,H=Ee):pe=pe.next=se,R|=ae;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;se=O,O=se.next,se.next=null,g.lastBaseUpdate=se,g.shared.pending=null}}while(!0);pe===null&&(H=Ee),g.baseState=H,g.firstBaseUpdate=ee,g.lastBaseUpdate=pe,v===null&&(g.shared.lanes=0),ls|=R,i.lanes=R,i.memoizedState=Ee}}function sT(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function oT(i,o){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)sT(u[i],o)}var al=Le(null),kf=Le(0);function lT(i,o){i=ki,I(kf,i),I(al,o),ki=i|o.baseLanes}function Dg(){I(kf,ki),I(al,al.current)}function kg(){ki=kf.current,ce(al),ce(kf)}var ts=0,mt=null,jt=null,On=null,Rf=!1,il=!1,Js=!1,wf=0,zc=0,sl=null,XN=0;function Dn(){throw Error(r(321))}function Rg(i,o){if(o===null)return!1;for(var u=0;u<o.length&&u<i.length;u++)if(!zr(i[u],o[u]))return!1;return!0}function wg(i,o,u,h,g,v){return ts=v,mt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,V.H=i===null||i.memoizedState===null?qT:YT,Js=!1,v=u(h,g),Js=!1,il&&(v=uT(o,u,h,g)),cT(i),v}function cT(i){V.H=Pf;var o=jt!==null&&jt.next!==null;if(ts=0,On=jt=mt=null,Rf=!1,zc=0,sl=null,o)throw Error(r(300));i===null||Yn||(i=i.dependencies,i!==null&&xf(i)&&(Yn=!0))}function uT(i,o,u,h){mt=i;var g=0;do{if(il&&(sl=null),zc=0,il=!1,25<=g)throw Error(r(301));if(g+=1,On=jt=null,i.updateQueue!=null){var v=i.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}V.H=aO,v=o(u,h)}while(il);return v}function ZN(){var i=V.H,o=i.useState()[0];return o=typeof o.then=="function"?Gc(o):o,i=i.useState()[0],(jt!==null?jt.memoizedState:null)!==i&&(mt.flags|=1024),o}function Ig(){var i=wf!==0;return wf=0,i}function Ng(i,o,u){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~u}function Og(i){if(Rf){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Rf=!1}ts=0,On=jt=mt=null,il=!1,zc=wf=0,sl=null}function kr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return On===null?mt.memoizedState=On=i:On=On.next=i,On}function Ln(){if(jt===null){var i=mt.alternate;i=i!==null?i.memoizedState:null}else i=jt.next;var o=On===null?mt.memoizedState:On.next;if(o!==null)On=o,jt=i;else{if(i===null)throw mt.alternate===null?Error(r(467)):Error(r(310));jt=i,i={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},On===null?mt.memoizedState=On=i:On=On.next=i}return On}function Lg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gc(i){var o=zc;return zc+=1,sl===null&&(sl=[]),i=rT(sl,i,o),o=mt,(On===null?o.memoizedState:On.next)===null&&(o=o.alternate,V.H=o===null||o.memoizedState===null?qT:YT),i}function If(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Gc(i);if(i.$$typeof===S)return ur(i)}throw Error(r(438,String(i)))}function Mg(i){var o=null,u=mt.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=mt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Lg(),mt.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(i),h=0;h<i;h++)u[h]=k;return o.index++,u}function _i(i,o){return typeof o=="function"?o(i):o}function Nf(i){var o=Ln();return Pg(o,jt,i)}function Pg(i,o,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=i.baseQueue,v=h.pending;if(v!==null){if(g!==null){var R=g.next;g.next=v.next,v.next=R}o.baseQueue=g=v,h.pending=null}if(v=i.baseState,g===null)i.memoizedState=v;else{o=g.next;var O=R=null,H=null,ee=o,pe=!1;do{var Ee=ee.lane&-536870913;if(Ee!==ee.lane?(At&Ee)===Ee:(ts&Ee)===Ee){var ae=ee.revertLane;if(ae===0)H!==null&&(H=H.next={lane:0,revertLane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),Ee===nl&&(pe=!0);else if((ts&ae)===ae){ee=ee.next,ae===nl&&(pe=!0);continue}else Ee={lane:0,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(O=H=Ee,R=v):H=H.next=Ee,mt.lanes|=ae,ls|=ae;Ee=ee.action,Js&&u(v,Ee),v=ee.hasEagerState?ee.eagerState:u(v,Ee)}else ae={lane:Ee,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(O=H=ae,R=v):H=H.next=ae,mt.lanes|=Ee,ls|=Ee;ee=ee.next}while(ee!==null&&ee!==o);if(H===null?R=v:H.next=O,!zr(v,i.memoizedState)&&(Yn=!0,pe&&(u=rl,u!==null)))throw u;i.memoizedState=v,i.baseState=R,i.baseQueue=H,h.lastRenderedState=v}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Fg(i){var o=Ln(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,g=u.pending,v=o.memoizedState;if(g!==null){u.pending=null;var R=g=g.next;do v=i(v,R.action),R=R.next;while(R!==g);zr(v,o.memoizedState)||(Yn=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),u.lastRenderedState=v}return[v,h]}function dT(i,o,u){var h=mt,g=Ln(),v=wt;if(v){if(u===void 0)throw Error(r(407));u=u()}else u=o();var R=!zr((jt||g).memoizedState,u);R&&(g.memoizedState=u,Yn=!0),g=g.queue;var O=pT.bind(null,h,g,i);if(Vc(2048,8,O,[i]),g.getSnapshot!==o||R||On!==null&&On.memoizedState.tag&1){if(h.flags|=2048,ol(9,Of(),hT.bind(null,h,g,u,o),null),Kt===null)throw Error(r(349));v||(ts&124)!==0||fT(h,o,u)}return u}function fT(i,o,u){i.flags|=16384,i={getSnapshot:o,value:u},o=mt.updateQueue,o===null?(o=Lg(),mt.updateQueue=o,o.stores=[i]):(u=o.stores,u===null?o.stores=[i]:u.push(i))}function hT(i,o,u,h){o.value=u,o.getSnapshot=h,mT(o)&&gT(i)}function pT(i,o,u){return u(function(){mT(o)&&gT(i)})}function mT(i){var o=i.getSnapshot;i=i.value;try{var u=o();return!zr(i,u)}catch{return!0}}function gT(i){var o=Zo(i,2);o!==null&&$r(o,i,2)}function jg(i){var o=kr();if(typeof i=="function"){var u=i;if(i=u(),Js){Be(!0);try{u()}finally{Be(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:i},o}function yT(i,o,u,h){return i.baseState=u,Pg(i,jt,typeof h=="function"?h:_i)}function JN(i,o,u,h,g){if(Mf(i))throw Error(r(485));if(i=o.action,i!==null){var v={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){v.listeners.push(R)}};V.T!==null?u(!0):v.isTransition=!1,h(v),u=o.pending,u===null?(v.next=o.pending=v,ET(o,v)):(v.next=u.next,o.pending=u.next=v)}}function ET(i,o){var u=o.action,h=o.payload,g=i.state;if(o.isTransition){var v=V.T,R={};V.T=R;try{var O=u(g,h),H=V.S;H!==null&&H(R,O),bT(i,o,O)}catch(ee){Bg(i,o,ee)}finally{V.T=v}}else try{v=u(g,h),bT(i,o,v)}catch(ee){Bg(i,o,ee)}}function bT(i,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){vT(i,o,h)},function(h){return Bg(i,o,h)}):vT(i,o,u)}function vT(i,o,u){o.status="fulfilled",o.value=u,TT(o),i.state=u,o=i.pending,o!==null&&(u=o.next,u===o?i.pending=null:(u=u.next,o.next=u,ET(i,u)))}function Bg(i,o,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,TT(o),o=o.next;while(o!==h)}i.action=null}function TT(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function _T(i,o){return o}function xT(i,o){if(wt){var u=Kt.formState;if(u!==null){e:{var h=mt;if(wt){if(vn){t:{for(var g=vn,v=Va;g.nodeType!==8;){if(!v){g=null;break t}if(g=Na(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){vn=Na(g.nextSibling),h=g.data==="F!";break e}}Ws(h)}h=!1}h&&(o=u[0])}}return u=kr(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_T,lastRenderedState:o},u.queue=h,u=zT.bind(null,mt,h),h.dispatch=u,h=jg(!1),v=Vg.bind(null,mt,!1,h.queue),h=kr(),g={state:o,dispatch:null,action:i,pending:null},h.queue=g,u=JN.bind(null,mt,g,v,u),g.dispatch=u,h.memoizedState=i,[o,u,!1]}function AT(i){var o=Ln();return ST(o,jt,i)}function ST(i,o,u){if(o=Pg(i,o,_T)[0],i=Nf(_i)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=Gc(o)}catch(R){throw R===Fc?Cf:R}else h=o;o=Ln();var g=o.queue,v=g.dispatch;return u!==o.memoizedState&&(mt.flags|=2048,ol(9,Of(),eO.bind(null,g,u),null)),[h,v,i]}function eO(i,o){i.action=o}function CT(i){var o=Ln(),u=jt;if(u!==null)return ST(o,u,i);Ln(),o=o.memoizedState,u=Ln();var h=u.queue.dispatch;return u.memoizedState=i,[o,h,!1]}function ol(i,o,u,h){return i={tag:i,create:u,deps:h,inst:o,next:null},o=mt.updateQueue,o===null&&(o=Lg(),mt.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,o.lastEffect=i),i}function Of(){return{destroy:void 0,resource:void 0}}function DT(){return Ln().memoizedState}function Lf(i,o,u,h){var g=kr();h=h===void 0?null:h,mt.flags|=i,g.memoizedState=ol(1|o,Of(),u,h)}function Vc(i,o,u,h){var g=Ln();h=h===void 0?null:h;var v=g.memoizedState.inst;jt!==null&&h!==null&&Rg(h,jt.memoizedState.deps)?g.memoizedState=ol(o,v,u,h):(mt.flags|=i,g.memoizedState=ol(1|o,v,u,h))}function kT(i,o){Lf(8390656,8,i,o)}function RT(i,o){Vc(2048,8,i,o)}function wT(i,o){return Vc(4,2,i,o)}function IT(i,o){return Vc(4,4,i,o)}function NT(i,o){if(typeof o=="function"){i=i();var u=o(i);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function OT(i,o,u){u=u!=null?u.concat([i]):null,Vc(4,4,NT.bind(null,o,i),u)}function Ug(){}function LT(i,o){var u=Ln();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&Rg(o,h[1])?h[0]:(u.memoizedState=[i,o],i)}function MT(i,o){var u=Ln();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&Rg(o,h[1]))return h[0];if(h=i(),Js){Be(!0);try{i()}finally{Be(!1)}}return u.memoizedState=[h,o],h}function Hg(i,o,u){return u===void 0||(ts&1073741824)!==0?i.memoizedState=o:(i.memoizedState=u,i=j_(),mt.lanes|=i,ls|=i,u)}function PT(i,o,u,h){return zr(u,o)?u:al.current!==null?(i=Hg(i,u,h),zr(i,o)||(Yn=!0),i):(ts&42)===0?(Yn=!0,i.memoizedState=u):(i=j_(),mt.lanes|=i,ls|=i,o)}function FT(i,o,u,h,g){var v=le.p;le.p=v!==0&&8>v?v:8;var R=V.T,O={};V.T=O,Vg(i,!1,o,u);try{var H=g(),ee=V.S;if(ee!==null&&ee(O,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var pe=KN(H,h);qc(i,o,pe,Qr(i))}else qc(i,o,h,Qr(i))}catch(Ee){qc(i,o,{then:function(){},status:"rejected",reason:Ee},Qr())}finally{le.p=v,V.T=R}}function tO(){}function zg(i,o,u,h){if(i.tag!==5)throw Error(r(476));var g=jT(i).queue;FT(i,g,o,oe,u===null?tO:function(){return BT(i),u(h)})}function jT(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:oe},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_i,lastRenderedState:u},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function BT(i){var o=jT(i).next.queue;qc(i,o,{},Qr())}function Gg(){return ur(cu)}function UT(){return Ln().memoizedState}function HT(){return Ln().memoizedState}function nO(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var u=Qr();i=Ji(u);var h=es(o,i,u);h!==null&&($r(h,o,u),Bc(h,o,u)),o={cache:bg()},i.payload=o;return}o=o.return}}function rO(i,o,u){var h=Qr();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Mf(i)?GT(o,u):(u=cg(i,o,u,h),u!==null&&($r(u,i,h),VT(u,o,h)))}function zT(i,o,u){var h=Qr();qc(i,o,u,h)}function qc(i,o,u,h){var g={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Mf(i))GT(o,g);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var R=o.lastRenderedState,O=v(R,u);if(g.hasEagerState=!0,g.eagerState=O,zr(O,R))return Ef(i,o,g,0),Kt===null&&yf(),!1}catch{}finally{}if(u=cg(i,o,g,h),u!==null)return $r(u,i,h),VT(u,o,h),!0}return!1}function Vg(i,o,u,h){if(h={lane:2,revertLane:_0(),action:h,hasEagerState:!1,eagerState:null,next:null},Mf(i)){if(o)throw Error(r(479))}else o=cg(i,u,h,2),o!==null&&$r(o,i,2)}function Mf(i){var o=i.alternate;return i===mt||o!==null&&o===mt}function GT(i,o){il=Rf=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function VT(i,o,u){if((u&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,hn(i,u)}}var Pf={readContext:ur,use:If,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useLayoutEffect:Dn,useInsertionEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useSyncExternalStore:Dn,useId:Dn,useHostTransitionStatus:Dn,useFormState:Dn,useActionState:Dn,useOptimistic:Dn,useMemoCache:Dn,useCacheRefresh:Dn},qT={readContext:ur,use:If,useCallback:function(i,o){return kr().memoizedState=[i,o===void 0?null:o],i},useContext:ur,useEffect:kT,useImperativeHandle:function(i,o,u){u=u!=null?u.concat([i]):null,Lf(4194308,4,NT.bind(null,o,i),u)},useLayoutEffect:function(i,o){return Lf(4194308,4,i,o)},useInsertionEffect:function(i,o){Lf(4,2,i,o)},useMemo:function(i,o){var u=kr();o=o===void 0?null:o;var h=i();if(Js){Be(!0);try{i()}finally{Be(!1)}}return u.memoizedState=[h,o],h},useReducer:function(i,o,u){var h=kr();if(u!==void 0){var g=u(o);if(Js){Be(!0);try{u(o)}finally{Be(!1)}}}else g=o;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=rO.bind(null,mt,i),[h.memoizedState,i]},useRef:function(i){var o=kr();return i={current:i},o.memoizedState=i},useState:function(i){i=jg(i);var o=i.queue,u=zT.bind(null,mt,o);return o.dispatch=u,[i.memoizedState,u]},useDebugValue:Ug,useDeferredValue:function(i,o){var u=kr();return Hg(u,i,o)},useTransition:function(){var i=jg(!1);return i=FT.bind(null,mt,i.queue,!0,!1),kr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,u){var h=mt,g=kr();if(wt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),Kt===null)throw Error(r(349));(At&124)!==0||fT(h,o,u)}g.memoizedState=u;var v={value:u,getSnapshot:o};return g.queue=v,kT(pT.bind(null,h,v,i),[i]),h.flags|=2048,ol(9,Of(),hT.bind(null,h,v,u,o),null),u},useId:function(){var i=kr(),o=Kt.identifierPrefix;if(wt){var u=bi,h=Ei;u=(h&~(1<<32-nt(h)-1)).toString(32)+u,o="«"+o+"R"+u,u=wf++,0<u&&(o+="H"+u.toString(32)),o+="»"}else u=XN++,o="«"+o+"r"+u.toString(32)+"»";return i.memoizedState=o},useHostTransitionStatus:Gg,useFormState:xT,useActionState:xT,useOptimistic:function(i){var o=kr();o.memoizedState=o.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=Vg.bind(null,mt,!0,u),u.dispatch=o,[i,o]},useMemoCache:Mg,useCacheRefresh:function(){return kr().memoizedState=nO.bind(null,mt)}},YT={readContext:ur,use:If,useCallback:LT,useContext:ur,useEffect:RT,useImperativeHandle:OT,useInsertionEffect:wT,useLayoutEffect:IT,useMemo:MT,useReducer:Nf,useRef:DT,useState:function(){return Nf(_i)},useDebugValue:Ug,useDeferredValue:function(i,o){var u=Ln();return PT(u,jt.memoizedState,i,o)},useTransition:function(){var i=Nf(_i)[0],o=Ln().memoizedState;return[typeof i=="boolean"?i:Gc(i),o]},useSyncExternalStore:dT,useId:UT,useHostTransitionStatus:Gg,useFormState:AT,useActionState:AT,useOptimistic:function(i,o){var u=Ln();return yT(u,jt,i,o)},useMemoCache:Mg,useCacheRefresh:HT},aO={readContext:ur,use:If,useCallback:LT,useContext:ur,useEffect:RT,useImperativeHandle:OT,useInsertionEffect:wT,useLayoutEffect:IT,useMemo:MT,useReducer:Fg,useRef:DT,useState:function(){return Fg(_i)},useDebugValue:Ug,useDeferredValue:function(i,o){var u=Ln();return jt===null?Hg(u,i,o):PT(u,jt.memoizedState,i,o)},useTransition:function(){var i=Fg(_i)[0],o=Ln().memoizedState;return[typeof i=="boolean"?i:Gc(i),o]},useSyncExternalStore:dT,useId:UT,useHostTransitionStatus:Gg,useFormState:CT,useActionState:CT,useOptimistic:function(i,o){var u=Ln();return jt!==null?yT(u,jt,i,o):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Mg,useCacheRefresh:HT},ll=null,Yc=0;function Ff(i){var o=Yc;return Yc+=1,ll===null&&(ll=[]),rT(ll,i,o)}function Qc(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function jf(i,o){throw o.$$typeof===m?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function QT(i){var o=i._init;return o(i._payload)}function $T(i){function o(Q,Y){if(i){var Z=Q.deletions;Z===null?(Q.deletions=[Y],Q.flags|=16):Z.push(Y)}}function u(Q,Y){if(!i)return null;for(;Y!==null;)o(Q,Y),Y=Y.sibling;return null}function h(Q){for(var Y=new Map;Q!==null;)Q.key!==null?Y.set(Q.key,Q):Y.set(Q.index,Q),Q=Q.sibling;return Y}function g(Q,Y){return Q=yi(Q,Y),Q.index=0,Q.sibling=null,Q}function v(Q,Y,Z){return Q.index=Z,i?(Z=Q.alternate,Z!==null?(Z=Z.index,Z<Y?(Q.flags|=67108866,Y):Z):(Q.flags|=67108866,Y)):(Q.flags|=1048576,Y)}function R(Q){return i&&Q.alternate===null&&(Q.flags|=67108866),Q}function O(Q,Y,Z,ge){return Y===null||Y.tag!==6?(Y=dg(Z,Q.mode,ge),Y.return=Q,Y):(Y=g(Y,Z),Y.return=Q,Y)}function H(Q,Y,Z,ge){var je=Z.type;return je===T?pe(Q,Y,Z.props.children,ge,Z.key):Y!==null&&(Y.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ne&&QT(je)===Y.type)?(Y=g(Y,Z.props),Qc(Y,Z),Y.return=Q,Y):(Y=vf(Z.type,Z.key,Z.props,null,Q.mode,ge),Qc(Y,Z),Y.return=Q,Y)}function ee(Q,Y,Z,ge){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==Z.containerInfo||Y.stateNode.implementation!==Z.implementation?(Y=fg(Z,Q.mode,ge),Y.return=Q,Y):(Y=g(Y,Z.children||[]),Y.return=Q,Y)}function pe(Q,Y,Z,ge,je){return Y===null||Y.tag!==7?(Y=qs(Z,Q.mode,ge,je),Y.return=Q,Y):(Y=g(Y,Z),Y.return=Q,Y)}function Ee(Q,Y,Z){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=dg(""+Y,Q.mode,Z),Y.return=Q,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case E:return Z=vf(Y.type,Y.key,Y.props,null,Q.mode,Z),Qc(Z,Y),Z.return=Q,Z;case y:return Y=fg(Y,Q.mode,Z),Y.return=Q,Y;case ne:var ge=Y._init;return Y=ge(Y._payload),Ee(Q,Y,Z)}if(me(Y)||$(Y))return Y=qs(Y,Q.mode,Z,null),Y.return=Q,Y;if(typeof Y.then=="function")return Ee(Q,Ff(Y),Z);if(Y.$$typeof===S)return Ee(Q,Af(Q,Y),Z);jf(Q,Y)}return null}function ae(Q,Y,Z,ge){var je=Y!==null?Y.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return je!==null?null:O(Q,Y,""+Z,ge);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case E:return Z.key===je?H(Q,Y,Z,ge):null;case y:return Z.key===je?ee(Q,Y,Z,ge):null;case ne:return je=Z._init,Z=je(Z._payload),ae(Q,Y,Z,ge)}if(me(Z)||$(Z))return je!==null?null:pe(Q,Y,Z,ge,null);if(typeof Z.then=="function")return ae(Q,Y,Ff(Z),ge);if(Z.$$typeof===S)return ae(Q,Y,Af(Q,Z),ge);jf(Q,Z)}return null}function se(Q,Y,Z,ge,je){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return Q=Q.get(Z)||null,O(Y,Q,""+ge,je);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case E:return Q=Q.get(ge.key===null?Z:ge.key)||null,H(Y,Q,ge,je);case y:return Q=Q.get(ge.key===null?Z:ge.key)||null,ee(Y,Q,ge,je);case ne:var yt=ge._init;return ge=yt(ge._payload),se(Q,Y,Z,ge,je)}if(me(ge)||$(ge))return Q=Q.get(Z)||null,pe(Y,Q,ge,je,null);if(typeof ge.then=="function")return se(Q,Y,Z,Ff(ge),je);if(ge.$$typeof===S)return se(Q,Y,Z,Af(Y,ge),je);jf(Y,ge)}return null}function rt(Q,Y,Z,ge){for(var je=null,yt=null,$e=Y,et=Y=0,$n=null;$e!==null&&et<Z.length;et++){$e.index>et?($n=$e,$e=null):$n=$e.sibling;var kt=ae(Q,$e,Z[et],ge);if(kt===null){$e===null&&($e=$n);break}i&&$e&&kt.alternate===null&&o(Q,$e),Y=v(kt,Y,et),yt===null?je=kt:yt.sibling=kt,yt=kt,$e=$n}if(et===Z.length)return u(Q,$e),wt&&Qs(Q,et),je;if($e===null){for(;et<Z.length;et++)$e=Ee(Q,Z[et],ge),$e!==null&&(Y=v($e,Y,et),yt===null?je=$e:yt.sibling=$e,yt=$e);return wt&&Qs(Q,et),je}for($e=h($e);et<Z.length;et++)$n=se($e,Q,et,Z[et],ge),$n!==null&&(i&&$n.alternate!==null&&$e.delete($n.key===null?et:$n.key),Y=v($n,Y,et),yt===null?je=$n:yt.sibling=$n,yt=$n);return i&&$e.forEach(function(ys){return o(Q,ys)}),wt&&Qs(Q,et),je}function Je(Q,Y,Z,ge){if(Z==null)throw Error(r(151));for(var je=null,yt=null,$e=Y,et=Y=0,$n=null,kt=Z.next();$e!==null&&!kt.done;et++,kt=Z.next()){$e.index>et?($n=$e,$e=null):$n=$e.sibling;var ys=ae(Q,$e,kt.value,ge);if(ys===null){$e===null&&($e=$n);break}i&&$e&&ys.alternate===null&&o(Q,$e),Y=v(ys,Y,et),yt===null?je=ys:yt.sibling=ys,yt=ys,$e=$n}if(kt.done)return u(Q,$e),wt&&Qs(Q,et),je;if($e===null){for(;!kt.done;et++,kt=Z.next())kt=Ee(Q,kt.value,ge),kt!==null&&(Y=v(kt,Y,et),yt===null?je=kt:yt.sibling=kt,yt=kt);return wt&&Qs(Q,et),je}for($e=h($e);!kt.done;et++,kt=Z.next())kt=se($e,Q,et,kt.value,ge),kt!==null&&(i&&kt.alternate!==null&&$e.delete(kt.key===null?et:kt.key),Y=v(kt,Y,et),yt===null?je=kt:yt.sibling=kt,yt=kt);return i&&$e.forEach(function(i4){return o(Q,i4)}),wt&&Qs(Q,et),je}function Ut(Q,Y,Z,ge){if(typeof Z=="object"&&Z!==null&&Z.type===T&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case E:e:{for(var je=Z.key;Y!==null;){if(Y.key===je){if(je=Z.type,je===T){if(Y.tag===7){u(Q,Y.sibling),ge=g(Y,Z.props.children),ge.return=Q,Q=ge;break e}}else if(Y.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===ne&&QT(je)===Y.type){u(Q,Y.sibling),ge=g(Y,Z.props),Qc(ge,Z),ge.return=Q,Q=ge;break e}u(Q,Y);break}else o(Q,Y);Y=Y.sibling}Z.type===T?(ge=qs(Z.props.children,Q.mode,ge,Z.key),ge.return=Q,Q=ge):(ge=vf(Z.type,Z.key,Z.props,null,Q.mode,ge),Qc(ge,Z),ge.return=Q,Q=ge)}return R(Q);case y:e:{for(je=Z.key;Y!==null;){if(Y.key===je)if(Y.tag===4&&Y.stateNode.containerInfo===Z.containerInfo&&Y.stateNode.implementation===Z.implementation){u(Q,Y.sibling),ge=g(Y,Z.children||[]),ge.return=Q,Q=ge;break e}else{u(Q,Y);break}else o(Q,Y);Y=Y.sibling}ge=fg(Z,Q.mode,ge),ge.return=Q,Q=ge}return R(Q);case ne:return je=Z._init,Z=je(Z._payload),Ut(Q,Y,Z,ge)}if(me(Z))return rt(Q,Y,Z,ge);if($(Z)){if(je=$(Z),typeof je!="function")throw Error(r(150));return Z=je.call(Z),Je(Q,Y,Z,ge)}if(typeof Z.then=="function")return Ut(Q,Y,Ff(Z),ge);if(Z.$$typeof===S)return Ut(Q,Y,Af(Q,Z),ge);jf(Q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,Y!==null&&Y.tag===6?(u(Q,Y.sibling),ge=g(Y,Z),ge.return=Q,Q=ge):(u(Q,Y),ge=dg(Z,Q.mode,ge),ge.return=Q,Q=ge),R(Q)):u(Q,Y)}return function(Q,Y,Z,ge){try{Yc=0;var je=Ut(Q,Y,Z,ge);return ll=null,je}catch($e){if($e===Fc||$e===Cf)throw $e;var yt=Gr(29,$e,null,Q.mode);return yt.lanes=ge,yt.return=Q,yt}finally{}}}var cl=$T(!0),WT=$T(!1),fa=Le(null),qa=null;function ns(i){var o=i.alternate;I(Un,Un.current&1),I(fa,i),qa===null&&(o===null||al.current!==null||o.memoizedState!==null)&&(qa=i)}function KT(i){if(i.tag===22){if(I(Un,Un.current),I(fa,i),qa===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(qa=i)}}else rs()}function rs(){I(Un,Un.current),I(fa,fa.current)}function xi(i){ce(fa),qa===i&&(qa=null),ce(Un)}var Un=Le(0);function Bf(i){for(var o=i;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||L0(u)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function qg(i,o,u,h){o=i.memoizedState,u=u(h,o),u=u==null?o:p({},o,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Yg={enqueueSetState:function(i,o,u){i=i._reactInternals;var h=Qr(),g=Ji(h);g.payload=o,u!=null&&(g.callback=u),o=es(i,g,h),o!==null&&($r(o,i,h),Bc(o,i,h))},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var h=Qr(),g=Ji(h);g.tag=1,g.payload=o,u!=null&&(g.callback=u),o=es(i,g,h),o!==null&&($r(o,i,h),Bc(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=Qr(),h=Ji(u);h.tag=2,o!=null&&(h.callback=o),o=es(i,h,u),o!==null&&($r(o,i,u),Bc(o,i,u))}};function XT(i,o,u,h,g,v,R){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,v,R):o.prototype&&o.prototype.isPureReactComponent?!Rc(u,h)||!Rc(g,v):!0}function ZT(i,o,u,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==i&&Yg.enqueueReplaceState(o,o.state,null)}function eo(i,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(i=i.defaultProps){u===o&&(u=p({},u));for(var g in i)u[g]===void 0&&(u[g]=i[g])}return u}var Uf=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=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(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function JT(i){Uf(i)}function e_(i){console.error(i)}function t_(i){Uf(i)}function Hf(i,o){try{var u=i.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function n_(i,o,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Qg(i,o,u){return u=Ji(u),u.tag=3,u.payload={element:null},u.callback=function(){Hf(i,o)},u}function r_(i){return i=Ji(i),i.tag=3,i}function a_(i,o,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var v=h.value;i.payload=function(){return g(v)},i.callback=function(){n_(o,u,h)}}var R=u.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(i.callback=function(){n_(o,u,h),typeof g!="function"&&(cs===null?cs=new Set([this]):cs.add(this));var O=h.stack;this.componentDidCatch(h.value,{componentStack:O!==null?O:""})})}function iO(i,o,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&Lc(o,u,g,!0),u=fa.current,u!==null){switch(u.tag){case 13:return qa===null?y0():u.alternate===null&&Tn===0&&(Tn=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===_g?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),b0(i,h,g)),!1;case 22:return u.flags|=65536,h===_g?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([h]):u.add(h)),b0(i,h,g)),!1}throw Error(r(435,u.tag))}return b0(i,h,g),y0(),!1}if(wt)return o=fa.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==mg&&(i=Error(r(422),{cause:h}),Oc(la(i,u)))):(h!==mg&&(o=Error(r(423),{cause:h}),Oc(la(o,u))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=la(h,u),g=Qg(i.stateNode,h,g),Sg(i,g),Tn!==4&&(Tn=2)),!1;var v=Error(r(520),{cause:h});if(v=la(v,u),eu===null?eu=[v]:eu.push(v),Tn!==4&&(Tn=2),o===null)return!0;h=la(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,i=g&-g,u.lanes|=i,i=Qg(u.stateNode,h,i),Sg(u,i),!1;case 1:if(o=u.type,v=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(cs===null||!cs.has(v))))return u.flags|=65536,g&=-g,u.lanes|=g,g=r_(g),a_(g,i,u,h),Sg(u,g),!1}u=u.return}while(u!==null);return!1}var i_=Error(r(461)),Yn=!1;function er(i,o,u,h){o.child=i===null?WT(o,null,u,h):cl(o,i.child,u,h)}function s_(i,o,u,h,g){u=u.render;var v=o.ref;if("ref"in h){var R={};for(var O in h)O!=="ref"&&(R[O]=h[O])}else R=h;return Xs(o),h=wg(i,o,u,R,v,g),O=Ig(),i!==null&&!Yn?(Ng(i,o,g),Ai(i,o,g)):(wt&&O&&hg(o),o.flags|=1,er(i,o,h,g),o.child)}function o_(i,o,u,h,g){if(i===null){var v=u.type;return typeof v=="function"&&!ug(v)&&v.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=v,l_(i,o,v,h,g)):(i=vf(u.type,null,h,o,o.mode,g),i.ref=o.ref,i.return=o,o.child=i)}if(v=i.child,!t0(i,g)){var R=v.memoizedProps;if(u=u.compare,u=u!==null?u:Rc,u(R,h)&&i.ref===o.ref)return Ai(i,o,g)}return o.flags|=1,i=yi(v,h),i.ref=o.ref,i.return=o,o.child=i}function l_(i,o,u,h,g){if(i!==null){var v=i.memoizedProps;if(Rc(v,h)&&i.ref===o.ref)if(Yn=!1,o.pendingProps=h=v,t0(i,g))(i.flags&131072)!==0&&(Yn=!0);else return o.lanes=i.lanes,Ai(i,o,g)}return $g(i,o,u,h,g)}function c_(i,o,u){var h=o.pendingProps,g=h.children,v=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((o.flags&128)!==0){if(h=v!==null?v.baseLanes|u:u,i!==null){for(g=o.child=i.child,v=0;g!==null;)v=v|g.lanes|g.childLanes,g=g.sibling;o.childLanes=v&~h}else o.childLanes=0,o.child=null;return u_(i,o,h,u)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Sf(o,v!==null?v.cachePool:null),v!==null?lT(o,v):Dg(),KT(o);else return o.lanes=o.childLanes=536870912,u_(i,o,v!==null?v.baseLanes|u:u,u)}else v!==null?(Sf(o,v.cachePool),lT(o,v),rs(),o.memoizedState=null):(i!==null&&Sf(o,null),Dg(),rs());return er(i,o,g,u),o.child}function u_(i,o,u,h){var g=Tg();return g=g===null?null:{parent:Bn._currentValue,pool:g},o.memoizedState={baseLanes:u,cachePool:g},i!==null&&Sf(o,null),Dg(),KT(o),i!==null&&Lc(i,o,h,!0),null}function zf(i,o){var u=o.ref;if(u===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(o.flags|=4194816)}}function $g(i,o,u,h,g){return Xs(o),u=wg(i,o,u,h,void 0,g),h=Ig(),i!==null&&!Yn?(Ng(i,o,g),Ai(i,o,g)):(wt&&h&&hg(o),o.flags|=1,er(i,o,u,g),o.child)}function d_(i,o,u,h,g,v){return Xs(o),o.updateQueue=null,u=uT(o,h,u,g),cT(i),h=Ig(),i!==null&&!Yn?(Ng(i,o,v),Ai(i,o,v)):(wt&&h&&hg(o),o.flags|=1,er(i,o,u,v),o.child)}function f_(i,o,u,h,g){if(Xs(o),o.stateNode===null){var v=Jo,R=u.contextType;typeof R=="object"&&R!==null&&(v=ur(R)),v=new u(h,v),o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Yg,o.stateNode=v,v._reactInternals=o,v=o.stateNode,v.props=h,v.state=o.memoizedState,v.refs={},xg(o),R=u.contextType,v.context=typeof R=="object"&&R!==null?ur(R):Jo,v.state=o.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&(qg(o,u,R,h),v.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(R=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),R!==v.state&&Yg.enqueueReplaceState(v,v.state,null),Hc(o,h,v,g),Uc(),v.state=o.memoizedState),typeof v.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){v=o.stateNode;var O=o.memoizedProps,H=eo(u,O);v.props=H;var ee=v.context,pe=u.contextType;R=Jo,typeof pe=="object"&&pe!==null&&(R=ur(pe));var Ee=u.getDerivedStateFromProps;pe=typeof Ee=="function"||typeof v.getSnapshotBeforeUpdate=="function",O=o.pendingProps!==O,pe||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(O||ee!==R)&&ZT(o,v,h,R),Zi=!1;var ae=o.memoizedState;v.state=ae,Hc(o,h,v,g),Uc(),ee=o.memoizedState,O||ae!==ee||Zi?(typeof Ee=="function"&&(qg(o,u,Ee,h),ee=o.memoizedState),(H=Zi||XT(o,u,H,h,ae,ee,R))?(pe||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(o.flags|=4194308)):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=ee),v.props=h,v.state=ee,v.context=R,h=H):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{v=o.stateNode,Ag(i,o),R=o.memoizedProps,pe=eo(u,R),v.props=pe,Ee=o.pendingProps,ae=v.context,ee=u.contextType,H=Jo,typeof ee=="object"&&ee!==null&&(H=ur(ee)),O=u.getDerivedStateFromProps,(ee=typeof O=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R!==Ee||ae!==H)&&ZT(o,v,h,H),Zi=!1,ae=o.memoizedState,v.state=ae,Hc(o,h,v,g),Uc();var se=o.memoizedState;R!==Ee||ae!==se||Zi||i!==null&&i.dependencies!==null&&xf(i.dependencies)?(typeof O=="function"&&(qg(o,u,O,h),se=o.memoizedState),(pe=Zi||XT(o,u,pe,h,ae,se,H)||i!==null&&i.dependencies!==null&&xf(i.dependencies))?(ee||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(h,se,H),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(h,se,H)),typeof v.componentDidUpdate=="function"&&(o.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof v.componentDidUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=se),v.props=h,v.state=se,v.context=H,h=pe):(typeof v.componentDidUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&ae===i.memoizedState||(o.flags|=1024),h=!1)}return v=h,zf(i,o),h=(o.flags&128)!==0,v||h?(v=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:v.render(),o.flags|=1,i!==null&&h?(o.child=cl(o,i.child,null,g),o.child=cl(o,null,u,g)):er(i,o,u,g),o.memoizedState=v.state,i=o.child):i=Ai(i,o,g),i}function h_(i,o,u,h){return Nc(),o.flags|=256,er(i,o,u,h),o.child}var Wg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kg(i){return{baseLanes:i,cachePool:eT()}}function Xg(i,o,u){return i=i!==null?i.childLanes&~u:0,o&&(i|=ha),i}function p_(i,o,u){var h=o.pendingProps,g=!1,v=(o.flags&128)!==0,R;if((R=v)||(R=i!==null&&i.memoizedState===null?!1:(Un.current&2)!==0),R&&(g=!0,o.flags&=-129),R=(o.flags&32)!==0,o.flags&=-33,i===null){if(wt){if(g?ns(o):rs(),wt){var O=vn,H;if(H=O){e:{for(H=O,O=Va;H.nodeType!==8;){if(!O){O=null;break e}if(H=Na(H.nextSibling),H===null){O=null;break e}}O=H}O!==null?(o.memoizedState={dehydrated:O,treeContext:Ys!==null?{id:Ei,overflow:bi}:null,retryLane:536870912,hydrationErrors:null},H=Gr(18,null,null,0),H.stateNode=O,H.return=o,o.child=H,Tr=o,vn=null,H=!0):H=!1}H||Ws(o)}if(O=o.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return L0(O)?o.lanes=32:o.lanes=536870912,null;xi(o)}return O=h.children,h=h.fallback,g?(rs(),g=o.mode,O=Gf({mode:"hidden",children:O},g),h=qs(h,g,u,null),O.return=o,h.return=o,O.sibling=h,o.child=O,g=o.child,g.memoizedState=Kg(u),g.childLanes=Xg(i,R,u),o.memoizedState=Wg,h):(ns(o),Zg(o,O))}if(H=i.memoizedState,H!==null&&(O=H.dehydrated,O!==null)){if(v)o.flags&256?(ns(o),o.flags&=-257,o=Jg(i,o,u)):o.memoizedState!==null?(rs(),o.child=i.child,o.flags|=128,o=null):(rs(),g=h.fallback,O=o.mode,h=Gf({mode:"visible",children:h.children},O),g=qs(g,O,u,null),g.flags|=2,h.return=o,g.return=o,h.sibling=g,o.child=h,cl(o,i.child,null,u),h=o.child,h.memoizedState=Kg(u),h.childLanes=Xg(i,R,u),o.memoizedState=Wg,o=g);else if(ns(o),L0(O)){if(R=O.nextSibling&&O.nextSibling.dataset,R)var ee=R.dgst;R=ee,h=Error(r(419)),h.stack="",h.digest=R,Oc({value:h,source:null,stack:null}),o=Jg(i,o,u)}else if(Yn||Lc(i,o,u,!1),R=(u&i.childLanes)!==0,Yn||R){if(R=Kt,R!==null&&(h=u&-u,h=(h&42)!==0?1:Ur(h),h=(h&(R.suspendedLanes|u))!==0?0:h,h!==0&&h!==H.retryLane))throw H.retryLane=h,Zo(i,h),$r(R,i,h),i_;O.data==="$?"||y0(),o=Jg(i,o,u)}else O.data==="$?"?(o.flags|=192,o.child=i.child,o=null):(i=H.treeContext,vn=Na(O.nextSibling),Tr=o,wt=!0,$s=null,Va=!1,i!==null&&(ua[da++]=Ei,ua[da++]=bi,ua[da++]=Ys,Ei=i.id,bi=i.overflow,Ys=o),o=Zg(o,h.children),o.flags|=4096);return o}return g?(rs(),g=h.fallback,O=o.mode,H=i.child,ee=H.sibling,h=yi(H,{mode:"hidden",children:h.children}),h.subtreeFlags=H.subtreeFlags&65011712,ee!==null?g=yi(ee,g):(g=qs(g,O,u,null),g.flags|=2),g.return=o,h.return=o,h.sibling=g,o.child=h,h=g,g=o.child,O=i.child.memoizedState,O===null?O=Kg(u):(H=O.cachePool,H!==null?(ee=Bn._currentValue,H=H.parent!==ee?{parent:ee,pool:ee}:H):H=eT(),O={baseLanes:O.baseLanes|u,cachePool:H}),g.memoizedState=O,g.childLanes=Xg(i,R,u),o.memoizedState=Wg,h):(ns(o),u=i.child,i=u.sibling,u=yi(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,i!==null&&(R=o.deletions,R===null?(o.deletions=[i],o.flags|=16):R.push(i)),o.child=u,o.memoizedState=null,u)}function Zg(i,o){return o=Gf({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function Gf(i,o){return i=Gr(22,i,null,o),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Jg(i,o,u){return cl(o,i.child,null,u),i=Zg(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function m_(i,o,u){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),yg(i.return,o,u)}function e0(i,o,u,h,g){var v=i.memoizedState;v===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=h,v.tail=u,v.tailMode=g)}function g_(i,o,u){var h=o.pendingProps,g=h.revealOrder,v=h.tail;if(er(i,o,h.children,u),h=Un.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&m_(i,u,o);else if(i.tag===19)m_(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(I(Un,h),g){case"forwards":for(u=o.child,g=null;u!==null;)i=u.alternate,i!==null&&Bf(i)===null&&(g=u),u=u.sibling;u=g,u===null?(g=o.child,o.child=null):(g=u.sibling,u.sibling=null),e0(o,!1,g,u,v);break;case"backwards":for(u=null,g=o.child,o.child=null;g!==null;){if(i=g.alternate,i!==null&&Bf(i)===null){o.child=g;break}i=g.sibling,g.sibling=u,u=g,g=i}e0(o,!0,u,null,v);break;case"together":e0(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Ai(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),ls|=o.lanes,(u&o.childLanes)===0)if(i!==null){if(Lc(i,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,u=yi(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=yi(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function t0(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&xf(i)))}function sO(i,o,u){switch(o.tag){case 3:Me(o,o.stateNode.containerInfo),Xi(o,Bn,i.memoizedState.cache),Nc();break;case 27:case 5:dt(o);break;case 4:Me(o,o.stateNode.containerInfo);break;case 10:Xi(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(ns(o),o.flags|=128,null):(u&o.child.childLanes)!==0?p_(i,o,u):(ns(o),i=Ai(i,o,u),i!==null?i.sibling:null);ns(o);break;case 19:var g=(i.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(Lc(i,o,u,!1),h=(u&o.childLanes)!==0),g){if(h)return g_(i,o,u);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),I(Un,Un.current),h)break;return null;case 22:case 23:return o.lanes=0,c_(i,o,u);case 24:Xi(o,Bn,i.memoizedState.cache)}return Ai(i,o,u)}function y_(i,o,u){if(i!==null)if(i.memoizedProps!==o.pendingProps)Yn=!0;else{if(!t0(i,u)&&(o.flags&128)===0)return Yn=!1,sO(i,o,u);Yn=(i.flags&131072)!==0}else Yn=!1,wt&&(o.flags&1048576)!==0&&Qv(o,_f,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,g=h._init;if(h=g(h._payload),o.type=h,typeof h=="function")ug(h)?(i=eo(h,i),o.tag=1,o=f_(null,o,h,i,u)):(o.tag=0,o=$g(null,o,h,i,u));else{if(h!=null){if(g=h.$$typeof,g===L){o.tag=11,o=s_(null,o,h,i,u);break e}else if(g===q){o.tag=14,o=o_(null,o,h,i,u);break e}}throw o=re(h)||h,Error(r(306,o,""))}}return o;case 0:return $g(i,o,o.type,o.pendingProps,u);case 1:return h=o.type,g=eo(h,o.pendingProps),f_(i,o,h,g,u);case 3:e:{if(Me(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var v=o.memoizedState;g=v.element,Ag(i,o),Hc(o,h,null,u);var R=o.memoizedState;if(h=R.cache,Xi(o,Bn,h),h!==v.cache&&Eg(o,[Bn],u,!0),Uc(),h=R.element,v.isDehydrated)if(v={element:h,isDehydrated:!1,cache:R.cache},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){o=h_(i,o,h,u);break e}else if(h!==g){g=la(Error(r(424)),o),Oc(g),o=h_(i,o,h,u);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(vn=Na(i.firstChild),Tr=o,wt=!0,$s=null,Va=!0,u=WT(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Nc(),h===g){o=Ai(i,o,u);break e}er(i,o,h,u)}o=o.child}return o;case 26:return zf(i,o),i===null?(u=Tx(o.type,null,o.pendingProps,null))?o.memoizedState=u:wt||(u=o.type,i=o.pendingProps,h=rh(we.current).createElement(u),h[be]=o,h[De]=i,nr(h,u,i),ft(h),o.stateNode=h):o.memoizedState=Tx(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return dt(o),i===null&&wt&&(h=o.stateNode=Ex(o.type,o.pendingProps,we.current),Tr=o,Va=!0,g=vn,fs(o.type)?(M0=g,vn=Na(h.firstChild)):vn=g),er(i,o,o.pendingProps.children,u),zf(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&wt&&((g=h=vn)&&(h=LO(h,o.type,o.pendingProps,Va),h!==null?(o.stateNode=h,Tr=o,vn=Na(h.firstChild),Va=!1,g=!0):g=!1),g||Ws(o)),dt(o),g=o.type,v=o.pendingProps,R=i!==null?i.memoizedProps:null,h=v.children,I0(g,v)?h=null:R!==null&&I0(g,R)&&(o.flags|=32),o.memoizedState!==null&&(g=wg(i,o,ZN,null,null,u),cu._currentValue=g),zf(i,o),er(i,o,h,u),o.child;case 6:return i===null&&wt&&((i=u=vn)&&(u=MO(u,o.pendingProps,Va),u!==null?(o.stateNode=u,Tr=o,vn=null,i=!0):i=!1),i||Ws(o)),null;case 13:return p_(i,o,u);case 4:return Me(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=cl(o,null,h,u):er(i,o,h,u),o.child;case 11:return s_(i,o,o.type,o.pendingProps,u);case 7:return er(i,o,o.pendingProps,u),o.child;case 8:return er(i,o,o.pendingProps.children,u),o.child;case 12:return er(i,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Xi(o,o.type,h.value),er(i,o,h.children,u),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,Xs(o),g=ur(g),h=h(g),o.flags|=1,er(i,o,h,u),o.child;case 14:return o_(i,o,o.type,o.pendingProps,u);case 15:return l_(i,o,o.type,o.pendingProps,u);case 19:return g_(i,o,u);case 31:return h=o.pendingProps,u=o.mode,h={mode:h.mode,children:h.children},i===null?(u=Gf(h,u),u.ref=o.ref,o.child=u,u.return=o,o=u):(u=yi(i.child,h),u.ref=o.ref,o.child=u,u.return=o,o=u),o;case 22:return c_(i,o,u);case 24:return Xs(o),h=ur(Bn),i===null?(g=Tg(),g===null&&(g=Kt,v=bg(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=u),g=v),o.memoizedState={parent:h,cache:g},xg(o),Xi(o,Bn,g)):((i.lanes&u)!==0&&(Ag(i,o),Hc(o,null,null,u),Uc()),g=i.memoizedState,v=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),Xi(o,Bn,h)):(h=v.cache,Xi(o,Bn,h),h!==g.cache&&Eg(o,[Bn],u,!0))),er(i,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Si(i){i.flags|=4}function E_(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Cx(o)){if(o=fa.current,o!==null&&((At&4194048)===At?qa!==null:(At&62914560)!==At&&(At&536870912)===0||o!==qa))throw jc=_g,tT;i.flags|=8192}}function Vf(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?Br():536870912,i.lanes|=o,hl|=o)}function $c(i,o){if(!wt)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function mn(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(o)for(var g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=u,o}function oO(i,o,u){var h=o.pendingProps;switch(pg(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mn(o),null;case 1:return mn(o),null;case 3:return u=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),Ti(Bn),ot(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Ic(o)?Si(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Kv())),mn(o),null;case 26:return u=o.memoizedState,i===null?(Si(o),u!==null?(mn(o),E_(o,u)):(mn(o),o.flags&=-16777217)):u?u!==i.memoizedState?(Si(o),mn(o),E_(o,u)):(mn(o),o.flags&=-16777217):(i.memoizedProps!==h&&Si(o),mn(o),o.flags&=-16777217),null;case 27:He(o),u=we.current;var g=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&Si(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mn(o),null}i=te.current,Ic(o)?$v(o):(i=Ex(g,h,u),o.stateNode=i,Si(o))}return mn(o),null;case 5:if(He(o),u=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&Si(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mn(o),null}if(i=te.current,Ic(o))$v(o);else{switch(g=rh(we.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(u,{is:h.is}):g.createElement(u)}}i[be]=o,i[De]=h;e:for(g=o.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===o)break e;for(;g.sibling===null;){if(g.return===null||g.return===o)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}o.stateNode=i;e:switch(nr(i,u,h),u){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Si(o)}}return mn(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&Si(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=we.current,Ic(o)){if(i=o.stateNode,u=o.memoizedProps,h=null,g=Tr,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[be]=o,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||dx(i.nodeValue,u)),i||Ws(o)}else i=rh(i).createTextNode(h),i[be]=o,o.stateNode=i}return mn(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=Ic(o),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[be]=o}else Nc(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mn(o),g=!1}else g=Kv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(xi(o),o):(xi(o),null)}if(xi(o),(o.flags&128)!==0)return o.lanes=u,o;if(u=h!==null,i=i!==null&&i.memoizedState!==null,u){h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var v=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==g&&(h.flags|=2048)}return u!==i&&u&&(o.child.flags|=8192),Vf(o,o.updateQueue),mn(o),null;case 4:return ot(),i===null&&C0(o.stateNode.containerInfo),mn(o),null;case 10:return Ti(o.type),mn(o),null;case 19:if(ce(Un),g=o.memoizedState,g===null)return mn(o),null;if(h=(o.flags&128)!==0,v=g.rendering,v===null)if(h)$c(g,!1);else{if(Tn!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(v=Bf(i),v!==null){for(o.flags|=128,$c(g,!1),i=v.updateQueue,o.updateQueue=i,Vf(o,i),o.subtreeFlags=0,i=u,u=o.child;u!==null;)Yv(u,i),u=u.sibling;return I(Un,Un.current&1|2),o.child}i=i.sibling}g.tail!==null&&qe()>Qf&&(o.flags|=128,h=!0,$c(g,!1),o.lanes=4194304)}else{if(!h)if(i=Bf(v),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,Vf(o,i),$c(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!wt)return mn(o),null}else 2*qe()-g.renderingStartTime>Qf&&u!==536870912&&(o.flags|=128,h=!0,$c(g,!1),o.lanes=4194304);g.isBackwards?(v.sibling=o.child,o.child=v):(i=g.last,i!==null?i.sibling=v:o.child=v,g.last=v)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=qe(),o.sibling=null,i=Un.current,I(Un,h?i&1|2:i&1),o):(mn(o),null);case 22:case 23:return xi(o),kg(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(mn(o),o.subtreeFlags&6&&(o.flags|=8192)):mn(o),u=o.updateQueue,u!==null&&Vf(o,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),i!==null&&ce(Zs),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),Ti(Bn),mn(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function lO(i,o){switch(pg(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return Ti(Bn),ot(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return He(o),null;case 13:if(xi(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Nc()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return ce(Un),null;case 4:return ot(),null;case 10:return Ti(o.type),null;case 22:case 23:return xi(o),kg(),i!==null&&ce(Zs),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return Ti(Bn),null;case 25:return null;default:return null}}function b_(i,o){switch(pg(o),o.tag){case 3:Ti(Bn),ot();break;case 26:case 27:case 5:He(o);break;case 4:ot();break;case 13:xi(o);break;case 19:ce(Un);break;case 10:Ti(o.type);break;case 22:case 23:xi(o),kg(),i!==null&&ce(Zs);break;case 24:Ti(Bn)}}function Wc(i,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&i)===i){h=void 0;var v=u.create,R=u.inst;h=v(),R.destroy=h}u=u.next}while(u!==g)}}catch(O){Gt(o,o.return,O)}}function as(i,o,u){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var v=g.next;h=v;do{if((h.tag&i)===i){var R=h.inst,O=R.destroy;if(O!==void 0){R.destroy=void 0,g=o;var H=u,ee=O;try{ee()}catch(pe){Gt(g,H,pe)}}}h=h.next}while(h!==v)}}catch(pe){Gt(o,o.return,pe)}}function v_(i){var o=i.updateQueue;if(o!==null){var u=i.stateNode;try{oT(o,u)}catch(h){Gt(i,i.return,h)}}}function T_(i,o,u){u.props=eo(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){Gt(i,o,h)}}function Kc(i,o){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(g){Gt(i,o,g)}}function Ya(i,o){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){Gt(i,o,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){Gt(i,o,g)}else u.current=null}function __(i){var o=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){Gt(i,i.return,g)}}function n0(i,o,u){try{var h=i.stateNode;RO(h,i.type,u,o),h[De]=o}catch(g){Gt(i,i.return,g)}}function x_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&fs(i.type)||i.tag===4}function r0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||x_(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&&fs(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 a0(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(i),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=nh));else if(h!==4&&(h===27&&fs(i.type)&&(u=i.stateNode,o=null),i=i.child,i!==null))for(a0(i,o,u),i=i.sibling;i!==null;)a0(i,o,u),i=i.sibling}function qf(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(h!==4&&(h===27&&fs(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(qf(i,o,u),i=i.sibling;i!==null;)qf(i,o,u),i=i.sibling}function A_(i){var o=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,g=o.attributes;g.length;)o.removeAttributeNode(g[0]);nr(o,h,u),o[be]=i,o[De]=u}catch(v){Gt(i,i.return,v)}}var Ci=!1,kn=!1,i0=!1,S_=typeof WeakSet=="function"?WeakSet:Set,Qn=null;function cO(i,o){if(i=i.containerInfo,R0=ch,i=Pv(i),rg(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,v=h.focusNode;h=h.focusOffset;try{u.nodeType,v.nodeType}catch{u=null;break e}var R=0,O=-1,H=-1,ee=0,pe=0,Ee=i,ae=null;t:for(;;){for(var se;Ee!==u||g!==0&&Ee.nodeType!==3||(O=R+g),Ee!==v||h!==0&&Ee.nodeType!==3||(H=R+h),Ee.nodeType===3&&(R+=Ee.nodeValue.length),(se=Ee.firstChild)!==null;)ae=Ee,Ee=se;for(;;){if(Ee===i)break t;if(ae===u&&++ee===g&&(O=R),ae===v&&++pe===h&&(H=R),(se=Ee.nextSibling)!==null)break;Ee=ae,ae=Ee.parentNode}Ee=se}u=O===-1||H===-1?null:{start:O,end:H}}else u=null}u=u||{start:0,end:0}}else u=null;for(w0={focusedElem:i,selectionRange:u},ch=!1,Qn=o;Qn!==null;)if(o=Qn,i=o.child,(o.subtreeFlags&1024)!==0&&i!==null)i.return=o,Qn=i;else for(;Qn!==null;){switch(o=Qn,v=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&v!==null){i=void 0,u=o,g=v.memoizedProps,v=v.memoizedState,h=u.stateNode;try{var rt=eo(u.type,g,u.elementType===u.type);i=h.getSnapshotBeforeUpdate(rt,v),h.__reactInternalSnapshotBeforeUpdate=i}catch(Je){Gt(u,u.return,Je)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,u=i.nodeType,u===9)O0(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":O0(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=o.sibling,i!==null){i.return=o.return,Qn=i;break}Qn=o.return}}function C_(i,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:is(i,u),h&4&&Wc(5,u);break;case 1:if(is(i,u),h&4)if(i=u.stateNode,o===null)try{i.componentDidMount()}catch(R){Gt(u,u.return,R)}else{var g=eo(u.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(g,o,i.__reactInternalSnapshotBeforeUpdate)}catch(R){Gt(u,u.return,R)}}h&64&&v_(u),h&512&&Kc(u,u.return);break;case 3:if(is(i,u),h&64&&(i=u.updateQueue,i!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{oT(i,o)}catch(R){Gt(u,u.return,R)}}break;case 27:o===null&&h&4&&A_(u);case 26:case 5:is(i,u),o===null&&h&4&&__(u),h&512&&Kc(u,u.return);break;case 12:is(i,u);break;case 13:is(i,u),h&4&&R_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=EO.bind(null,u),PO(i,u))));break;case 22:if(h=u.memoizedState!==null||Ci,!h){o=o!==null&&o.memoizedState!==null||kn,g=Ci;var v=kn;Ci=h,(kn=o)&&!v?ss(i,u,(u.subtreeFlags&8772)!==0):is(i,u),Ci=g,kn=v}break;case 30:break;default:is(i,u)}}function D_(i){var o=i.alternate;o!==null&&(i.alternate=null,D_(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&Ye(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var ln=null,Rr=!1;function Di(i,o,u){for(u=u.child;u!==null;)k_(i,o,u),u=u.sibling}function k_(i,o,u){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ue,u)}catch{}switch(u.tag){case 26:kn||Ya(u,o),Di(i,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:kn||Ya(u,o);var h=ln,g=Rr;fs(u.type)&&(ln=u.stateNode,Rr=!1),Di(i,o,u),iu(u.stateNode),ln=h,Rr=g;break;case 5:kn||Ya(u,o);case 6:if(h=ln,g=Rr,ln=null,Di(i,o,u),ln=h,Rr=g,ln!==null)if(Rr)try{(ln.nodeType===9?ln.body:ln.nodeName==="HTML"?ln.ownerDocument.body:ln).removeChild(u.stateNode)}catch(v){Gt(u,o,v)}else try{ln.removeChild(u.stateNode)}catch(v){Gt(u,o,v)}break;case 18:ln!==null&&(Rr?(i=ln,gx(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),hu(i)):gx(ln,u.stateNode));break;case 4:h=ln,g=Rr,ln=u.stateNode.containerInfo,Rr=!0,Di(i,o,u),ln=h,Rr=g;break;case 0:case 11:case 14:case 15:kn||as(2,u,o),kn||as(4,u,o),Di(i,o,u);break;case 1:kn||(Ya(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&T_(u,o,h)),Di(i,o,u);break;case 21:Di(i,o,u);break;case 22:kn=(h=kn)||u.memoizedState!==null,Di(i,o,u),kn=h;break;default:Di(i,o,u)}}function R_(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{hu(i)}catch(u){Gt(o,o.return,u)}}function uO(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new S_),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new S_),o;default:throw Error(r(435,i.tag))}}function s0(i,o){var u=uO(i);o.forEach(function(h){var g=bO.bind(null,i,h);u.has(h)||(u.add(h),h.then(g,g))})}function Vr(i,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],v=i,R=o,O=R;e:for(;O!==null;){switch(O.tag){case 27:if(fs(O.type)){ln=O.stateNode,Rr=!1;break e}break;case 5:ln=O.stateNode,Rr=!1;break e;case 3:case 4:ln=O.stateNode.containerInfo,Rr=!0;break e}O=O.return}if(ln===null)throw Error(r(160));k_(v,R,g),ln=null,Rr=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)w_(o,i),o=o.sibling}var Ia=null;function w_(i,o){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Vr(o,i),qr(i),h&4&&(as(3,i,i.return),Wc(3,i),as(5,i,i.return));break;case 1:Vr(o,i),qr(i),h&512&&(kn||u===null||Ya(u,u.return)),h&64&&Ci&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=Ia;if(Vr(o,i),qr(i),h&512&&(kn||u===null||Ya(u,u.return)),h&4){var v=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":v=g.getElementsByTagName("title")[0],(!v||v[Ge]||v[be]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(h),g.head.insertBefore(v,g.querySelector("head > title"))),nr(v,h,u),v[be]=i,ft(v),h=v;break e;case"link":var R=Ax("link","href",g).get(h+(u.href||""));if(R){for(var O=0;O<R.length;O++)if(v=R[O],v.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&v.getAttribute("rel")===(u.rel==null?null:u.rel)&&v.getAttribute("title")===(u.title==null?null:u.title)&&v.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){R.splice(O,1);break t}}v=g.createElement(h),nr(v,h,u),g.head.appendChild(v);break;case"meta":if(R=Ax("meta","content",g).get(h+(u.content||""))){for(O=0;O<R.length;O++)if(v=R[O],v.getAttribute("content")===(u.content==null?null:""+u.content)&&v.getAttribute("name")===(u.name==null?null:u.name)&&v.getAttribute("property")===(u.property==null?null:u.property)&&v.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&v.getAttribute("charset")===(u.charSet==null?null:u.charSet)){R.splice(O,1);break t}}v=g.createElement(h),nr(v,h,u),g.head.appendChild(v);break;default:throw Error(r(468,h))}v[be]=i,ft(v),h=v}i.stateNode=h}else Sx(g,i.type,i.stateNode);else i.stateNode=xx(g,h,i.memoizedProps);else v!==h?(v===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):v.count--,h===null?Sx(g,i.type,i.stateNode):xx(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&n0(i,i.memoizedProps,u.memoizedProps)}break;case 27:Vr(o,i),qr(i),h&512&&(kn||u===null||Ya(u,u.return)),u!==null&&h&4&&n0(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Vr(o,i),qr(i),h&512&&(kn||u===null||Ya(u,u.return)),i.flags&32){g=i.stateNode;try{qo(g,"")}catch(se){Gt(i,i.return,se)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,n0(i,g,u!==null?u.memoizedProps:g)),h&1024&&(i0=!0);break;case 6:if(Vr(o,i),qr(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(se){Gt(i,i.return,se)}}break;case 3:if(sh=null,g=Ia,Ia=ah(o.containerInfo),Vr(o,i),Ia=g,qr(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{hu(o.containerInfo)}catch(se){Gt(i,i.return,se)}i0&&(i0=!1,I_(i));break;case 4:h=Ia,Ia=ah(i.stateNode.containerInfo),Vr(o,i),qr(i),Ia=h;break;case 12:Vr(o,i),qr(i);break;case 13:Vr(o,i),qr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(f0=qe()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,s0(i,h)));break;case 22:g=i.memoizedState!==null;var H=u!==null&&u.memoizedState!==null,ee=Ci,pe=kn;if(Ci=ee||g,kn=pe||H,Vr(o,i),kn=pe,Ci=ee,qr(i),h&8192)e:for(o=i.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(u===null||H||Ci||kn||to(i)),u=null,o=i;;){if(o.tag===5||o.tag===26){if(u===null){H=u=o;try{if(v=H.stateNode,g)R=v.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{O=H.stateNode;var Ee=H.memoizedProps.style,ae=Ee!=null&&Ee.hasOwnProperty("display")?Ee.display:null;O.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(se){Gt(H,H.return,se)}}}else if(o.tag===6){if(u===null){H=o;try{H.stateNode.nodeValue=g?"":H.memoizedProps}catch(se){Gt(H,H.return,se)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,s0(i,u))));break;case 19:Vr(o,i),qr(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,s0(i,h)));break;case 30:break;case 21:break;default:Vr(o,i),qr(i)}}function qr(i){var o=i.flags;if(o&2){try{for(var u,h=i.return;h!==null;){if(x_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,v=r0(i);qf(i,v,g);break;case 5:var R=u.stateNode;u.flags&32&&(qo(R,""),u.flags&=-33);var O=r0(i);qf(i,O,R);break;case 3:case 4:var H=u.stateNode.containerInfo,ee=r0(i);a0(i,ee,H);break;default:throw Error(r(161))}}catch(pe){Gt(i,i.return,pe)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function I_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;I_(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function is(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)C_(i,o.alternate,o),o=o.sibling}function to(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:as(4,o,o.return),to(o);break;case 1:Ya(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&T_(o,o.return,u),to(o);break;case 27:iu(o.stateNode);case 26:case 5:Ya(o,o.return),to(o);break;case 22:o.memoizedState===null&&to(o);break;case 30:to(o);break;default:to(o)}i=i.sibling}}function ss(i,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=i,v=o,R=v.flags;switch(v.tag){case 0:case 11:case 15:ss(g,v,u),Wc(4,v);break;case 1:if(ss(g,v,u),h=v,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){Gt(h,h.return,ee)}if(h=v,g=h.updateQueue,g!==null){var O=h.stateNode;try{var H=g.shared.hiddenCallbacks;if(H!==null)for(g.shared.hiddenCallbacks=null,g=0;g<H.length;g++)sT(H[g],O)}catch(ee){Gt(h,h.return,ee)}}u&&R&64&&v_(v),Kc(v,v.return);break;case 27:A_(v);case 26:case 5:ss(g,v,u),u&&h===null&&R&4&&__(v),Kc(v,v.return);break;case 12:ss(g,v,u);break;case 13:ss(g,v,u),u&&R&4&&R_(g,v);break;case 22:v.memoizedState===null&&ss(g,v,u),Kc(v,v.return);break;case 30:break;default:ss(g,v,u)}o=o.sibling}}function o0(i,o){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Mc(u))}function l0(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Mc(i))}function Qa(i,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)N_(i,o,u,h),o=o.sibling}function N_(i,o,u,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Qa(i,o,u,h),g&2048&&Wc(9,o);break;case 1:Qa(i,o,u,h);break;case 3:Qa(i,o,u,h),g&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Mc(i)));break;case 12:if(g&2048){Qa(i,o,u,h),i=o.stateNode;try{var v=o.memoizedProps,R=v.id,O=v.onPostCommit;typeof O=="function"&&O(R,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(H){Gt(o,o.return,H)}}else Qa(i,o,u,h);break;case 13:Qa(i,o,u,h);break;case 23:break;case 22:v=o.stateNode,R=o.alternate,o.memoizedState!==null?v._visibility&2?Qa(i,o,u,h):Xc(i,o):v._visibility&2?Qa(i,o,u,h):(v._visibility|=2,ul(i,o,u,h,(o.subtreeFlags&10256)!==0)),g&2048&&o0(R,o);break;case 24:Qa(i,o,u,h),g&2048&&l0(o.alternate,o);break;default:Qa(i,o,u,h)}}function ul(i,o,u,h,g){for(g=g&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var v=i,R=o,O=u,H=h,ee=R.flags;switch(R.tag){case 0:case 11:case 15:ul(v,R,O,H,g),Wc(8,R);break;case 23:break;case 22:var pe=R.stateNode;R.memoizedState!==null?pe._visibility&2?ul(v,R,O,H,g):Xc(v,R):(pe._visibility|=2,ul(v,R,O,H,g)),g&&ee&2048&&o0(R.alternate,R);break;case 24:ul(v,R,O,H,g),g&&ee&2048&&l0(R.alternate,R);break;default:ul(v,R,O,H,g)}o=o.sibling}}function Xc(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=i,h=o,g=h.flags;switch(h.tag){case 22:Xc(u,h),g&2048&&o0(h.alternate,h);break;case 24:Xc(u,h),g&2048&&l0(h.alternate,h);break;default:Xc(u,h)}o=o.sibling}}var Zc=8192;function dl(i){if(i.subtreeFlags&Zc)for(i=i.child;i!==null;)O_(i),i=i.sibling}function O_(i){switch(i.tag){case 26:dl(i),i.flags&Zc&&i.memoizedState!==null&&WO(Ia,i.memoizedState,i.memoizedProps);break;case 5:dl(i);break;case 3:case 4:var o=Ia;Ia=ah(i.stateNode.containerInfo),dl(i),Ia=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Zc,Zc=16777216,dl(i),Zc=o):dl(i));break;default:dl(i)}}function L_(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Jc(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Qn=h,P_(h,i)}L_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)M_(i),i=i.sibling}function M_(i){switch(i.tag){case 0:case 11:case 15:Jc(i),i.flags&2048&&as(9,i,i.return);break;case 3:Jc(i);break;case 12:Jc(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,Yf(i)):Jc(i);break;default:Jc(i)}}function Yf(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Qn=h,P_(h,i)}L_(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:as(8,o,o.return),Yf(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,Yf(o));break;default:Yf(o)}i=i.sibling}}function P_(i,o){for(;Qn!==null;){var u=Qn;switch(u.tag){case 0:case 11:case 15:as(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Mc(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Qn=h;else e:for(u=i;Qn!==null;){h=Qn;var g=h.sibling,v=h.return;if(D_(h),h===u){Qn=null;break e}if(g!==null){g.return=v,Qn=g;break e}Qn=v}}}var dO={getCacheForType:function(i){var o=ur(Bn),u=o.data.get(i);return u===void 0&&(u=i(),o.data.set(i,u)),u}},fO=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Kt=null,bt=null,At=0,Pt=0,Yr=null,os=!1,fl=!1,c0=!1,ki=0,Tn=0,ls=0,no=0,u0=0,ha=0,hl=0,eu=null,wr=null,d0=!1,f0=0,Qf=1/0,$f=null,cs=null,tr=0,us=null,pl=null,ml=0,h0=0,p0=null,F_=null,tu=0,m0=null;function Qr(){if((Mt&2)!==0&&At!==0)return At&-At;if(V.T!==null){var i=nl;return i!==0?i:_0()}return G()}function j_(){ha===0&&(ha=(At&536870912)===0||wt?Cn():536870912);var i=fa.current;return i!==null&&(i.flags|=32),ha}function $r(i,o,u){(i===Kt&&(Pt===2||Pt===9)||i.cancelPendingCommit!==null)&&(gl(i,0),ds(i,At,ha,!1)),lr(i,u),((Mt&2)===0||i!==Kt)&&(i===Kt&&((Mt&2)===0&&(no|=u),Tn===4&&ds(i,At,ha,!1)),$a(i))}function B_(i,o,u){if((Mt&6)!==0)throw Error(r(327));var h=!u&&(o&124)===0&&(o&i.expiredLanes)===0||st(i,o),g=h?mO(i,o):E0(i,o,!0),v=h;do{if(g===0){fl&&!h&&ds(i,o,0,!1);break}else{if(u=i.current.alternate,v&&!hO(u)){g=E0(i,o,!1),v=!1;continue}if(g===2){if(v=o,i.errorRecoveryDisabledLanes&v)var R=0;else R=i.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){o=R;e:{var O=i;g=eu;var H=O.current.memoizedState.isDehydrated;if(H&&(gl(O,R).flags|=256),R=E0(O,R,!1),R!==2){if(c0&&!H){O.errorRecoveryDisabledLanes|=v,no|=v,g=4;break e}v=wr,wr=g,v!==null&&(wr===null?wr=v:wr.push.apply(wr,v))}g=R}if(v=!1,g!==2)continue}}if(g===1){gl(i,0),ds(i,o,0,!0);break}e:{switch(h=i,v=g,v){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ds(h,o,ha,!os);break e;case 2:wr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(g=f0+300-qe(),10<g)){if(ds(h,o,ha,!os),Te(h,0,!0)!==0)break e;h.timeoutHandle=px(U_.bind(null,h,u,wr,$f,d0,o,ha,no,hl,os,v,2,-0,0),g);break e}U_(h,u,wr,$f,d0,o,ha,no,hl,os,v,0,-0,0)}}break}while(!0);$a(i)}function U_(i,o,u,h,g,v,R,O,H,ee,pe,Ee,ae,se){if(i.timeoutHandle=-1,Ee=o.subtreeFlags,(Ee&8192||(Ee&16785408)===16785408)&&(lu={stylesheets:null,count:0,unsuspend:$O},O_(o),Ee=KO(),Ee!==null)){i.cancelPendingCommit=Ee(Q_.bind(null,i,o,v,u,h,g,R,O,H,pe,1,ae,se)),ds(i,v,R,!ee);return}Q_(i,o,v,u,h,g,R,O,H)}function hO(i){for(var o=i;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],v=g.getSnapshot;g=g.value;try{if(!zr(v(),g))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ds(i,o,u,h){o&=~u0,o&=~no,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var g=o;0<g;){var v=31-nt(g),R=1<<v;h[v]=-1,g&=~R}u!==0&&za(i,u,o)}function Wf(){return(Mt&6)===0?(nu(0),!1):!0}function g0(){if(bt!==null){if(Pt===0)var i=bt.return;else i=bt,vi=Ks=null,Og(i),ll=null,Yc=0,i=bt;for(;i!==null;)b_(i.alternate,i),i=i.return;bt=null}}function gl(i,o){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,IO(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),g0(),Kt=i,bt=u=yi(i.current,null),At=o,Pt=0,Yr=null,os=!1,fl=st(i,o),c0=!1,hl=ha=u0=no=ls=Tn=0,wr=eu=null,d0=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var g=31-nt(h),v=1<<g;o|=i[g],h&=~v}return ki=o,yf(),u}function H_(i,o){mt=null,V.H=Pf,o===Fc||o===Cf?(o=aT(),Pt=3):o===tT?(o=aT(),Pt=4):Pt=o===i_?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Yr=o,bt===null&&(Tn=1,Hf(i,la(o,i.current)))}function z_(){var i=V.H;return V.H=Pf,i===null?Pf:i}function G_(){var i=V.A;return V.A=dO,i}function y0(){Tn=4,os||(At&4194048)!==At&&fa.current!==null||(fl=!0),(ls&134217727)===0&&(no&134217727)===0||Kt===null||ds(Kt,At,ha,!1)}function E0(i,o,u){var h=Mt;Mt|=2;var g=z_(),v=G_();(Kt!==i||At!==o)&&($f=null,gl(i,o)),o=!1;var R=Tn;e:do try{if(Pt!==0&&bt!==null){var O=bt,H=Yr;switch(Pt){case 8:g0(),R=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(o=!0);var ee=Pt;if(Pt=0,Yr=null,yl(i,O,H,ee),u&&fl){R=0;break e}break;default:ee=Pt,Pt=0,Yr=null,yl(i,O,H,ee)}}pO(),R=Tn;break}catch(pe){H_(i,pe)}while(!0);return o&&i.shellSuspendCounter++,vi=Ks=null,Mt=h,V.H=g,V.A=v,bt===null&&(Kt=null,At=0,yf()),R}function pO(){for(;bt!==null;)V_(bt)}function mO(i,o){var u=Mt;Mt|=2;var h=z_(),g=G_();Kt!==i||At!==o?($f=null,Qf=qe()+500,gl(i,o)):fl=st(i,o);e:do try{if(Pt!==0&&bt!==null){o=bt;var v=Yr;t:switch(Pt){case 1:Pt=0,Yr=null,yl(i,o,v,1);break;case 2:case 9:if(nT(v)){Pt=0,Yr=null,q_(o);break}o=function(){Pt!==2&&Pt!==9||Kt!==i||(Pt=7),$a(i)},v.then(o,o);break e;case 3:Pt=7;break e;case 4:Pt=5;break e;case 7:nT(v)?(Pt=0,Yr=null,q_(o)):(Pt=0,Yr=null,yl(i,o,v,7));break;case 5:var R=null;switch(bt.tag){case 26:R=bt.memoizedState;case 5:case 27:var O=bt;if(!R||Cx(R)){Pt=0,Yr=null;var H=O.sibling;if(H!==null)bt=H;else{var ee=O.return;ee!==null?(bt=ee,Kf(ee)):bt=null}break t}}Pt=0,Yr=null,yl(i,o,v,5);break;case 6:Pt=0,Yr=null,yl(i,o,v,6);break;case 8:g0(),Tn=6;break e;default:throw Error(r(462))}}gO();break}catch(pe){H_(i,pe)}while(!0);return vi=Ks=null,V.H=h,V.A=g,Mt=u,bt!==null?0:(Kt=null,At=0,yf(),Tn)}function gO(){for(;bt!==null&&!or();)V_(bt)}function V_(i){var o=y_(i.alternate,i,ki);i.memoizedProps=i.pendingProps,o===null?Kf(i):bt=o}function q_(i){var o=i,u=o.alternate;switch(o.tag){case 15:case 0:o=d_(u,o,o.pendingProps,o.type,void 0,At);break;case 11:o=d_(u,o,o.pendingProps,o.type.render,o.ref,At);break;case 5:Og(o);default:b_(u,o),o=bt=Yv(o,ki),o=y_(u,o,ki)}i.memoizedProps=i.pendingProps,o===null?Kf(i):bt=o}function yl(i,o,u,h){vi=Ks=null,Og(o),ll=null,Yc=0;var g=o.return;try{if(iO(i,g,o,u,At)){Tn=1,Hf(i,la(u,i.current)),bt=null;return}}catch(v){if(g!==null)throw bt=g,v;Tn=1,Hf(i,la(u,i.current)),bt=null;return}o.flags&32768?(wt||h===1?i=!0:fl||(At&536870912)!==0?i=!1:(os=i=!0,(h===2||h===9||h===3||h===6)&&(h=fa.current,h!==null&&h.tag===13&&(h.flags|=16384))),Y_(o,i)):Kf(o)}function Kf(i){var o=i;do{if((o.flags&32768)!==0){Y_(o,os);return}i=o.return;var u=oO(o.alternate,o,ki);if(u!==null){bt=u;return}if(o=o.sibling,o!==null){bt=o;return}bt=o=i}while(o!==null);Tn===0&&(Tn=5)}function Y_(i,o){do{var u=lO(i.alternate,i);if(u!==null){u.flags&=32767,bt=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(i=i.sibling,i!==null)){bt=i;return}bt=i=u}while(i!==null);Tn=6,bt=null}function Q_(i,o,u,h,g,v,R,O,H){i.cancelPendingCommit=null;do Xf();while(tr!==0);if((Mt&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(v=o.lanes|o.childLanes,v|=lg,cr(i,u,v,R,O,H),i===Kt&&(bt=Kt=null,At=0),pl=o,us=i,ml=u,h0=v,p0=g,F_=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,vO(Qe,function(){return Z_(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=V.T,V.T=null,g=le.p,le.p=2,R=Mt,Mt|=4;try{cO(i,o,u)}finally{Mt=R,le.p=g,V.T=h}}tr=1,$_(),W_(),K_()}}function $_(){if(tr===1){tr=0;var i=us,o=pl,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=V.T,V.T=null;var h=le.p;le.p=2;var g=Mt;Mt|=4;try{w_(o,i);var v=w0,R=Pv(i.containerInfo),O=v.focusedElem,H=v.selectionRange;if(R!==O&&O&&O.ownerDocument&&Mv(O.ownerDocument.documentElement,O)){if(H!==null&&rg(O)){var ee=H.start,pe=H.end;if(pe===void 0&&(pe=ee),"selectionStart"in O)O.selectionStart=ee,O.selectionEnd=Math.min(pe,O.value.length);else{var Ee=O.ownerDocument||document,ae=Ee&&Ee.defaultView||window;if(ae.getSelection){var se=ae.getSelection(),rt=O.textContent.length,Je=Math.min(H.start,rt),Ut=H.end===void 0?Je:Math.min(H.end,rt);!se.extend&&Je>Ut&&(R=Ut,Ut=Je,Je=R);var Q=Lv(O,Je),Y=Lv(O,Ut);if(Q&&Y&&(se.rangeCount!==1||se.anchorNode!==Q.node||se.anchorOffset!==Q.offset||se.focusNode!==Y.node||se.focusOffset!==Y.offset)){var Z=Ee.createRange();Z.setStart(Q.node,Q.offset),se.removeAllRanges(),Je>Ut?(se.addRange(Z),se.extend(Y.node,Y.offset)):(Z.setEnd(Y.node,Y.offset),se.addRange(Z))}}}}for(Ee=[],se=O;se=se.parentNode;)se.nodeType===1&&Ee.push({element:se,left:se.scrollLeft,top:se.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<Ee.length;O++){var ge=Ee[O];ge.element.scrollLeft=ge.left,ge.element.scrollTop=ge.top}}ch=!!R0,w0=R0=null}finally{Mt=g,le.p=h,V.T=u}}i.current=o,tr=2}}function W_(){if(tr===2){tr=0;var i=us,o=pl,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=V.T,V.T=null;var h=le.p;le.p=2;var g=Mt;Mt|=4;try{C_(i,o.alternate,o)}finally{Mt=g,le.p=h,V.T=u}}tr=3}}function K_(){if(tr===4||tr===3){tr=0,fn();var i=us,o=pl,u=ml,h=F_;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?tr=5:(tr=0,pl=us=null,X_(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&(cs=null),Ra(u),o=o.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ue,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=V.T,g=le.p,le.p=2,V.T=null;try{for(var v=i.onRecoverableError,R=0;R<h.length;R++){var O=h[R];v(O.value,{componentStack:O.stack})}}finally{V.T=o,le.p=g}}(ml&3)!==0&&Xf(),$a(i),g=i.pendingLanes,(u&4194090)!==0&&(g&42)!==0?i===m0?tu++:(tu=0,m0=i):tu=0,nu(0)}}function X_(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,Mc(o)))}function Xf(i){return $_(),W_(),K_(),Z_()}function Z_(){if(tr!==5)return!1;var i=us,o=h0;h0=0;var u=Ra(ml),h=V.T,g=le.p;try{le.p=32>u?32:u,V.T=null,u=p0,p0=null;var v=us,R=ml;if(tr=0,pl=us=null,ml=0,(Mt&6)!==0)throw Error(r(331));var O=Mt;if(Mt|=4,M_(v.current),N_(v,v.current,R,u),Mt=O,nu(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ue,v)}catch{}return!0}finally{le.p=g,V.T=h,X_(i,o)}}function J_(i,o,u){o=la(u,o),o=Qg(i.stateNode,o,2),i=es(i,o,2),i!==null&&(lr(i,2),$a(i))}function Gt(i,o,u){if(i.tag===3)J_(i,i,u);else for(;o!==null;){if(o.tag===3){J_(o,i,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(cs===null||!cs.has(h))){i=la(u,i),u=r_(2),h=es(o,u,2),h!==null&&(a_(u,h,o,i),lr(h,2),$a(h));break}}o=o.return}}function b0(i,o,u){var h=i.pingCache;if(h===null){h=i.pingCache=new fO;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(u)||(c0=!0,g.add(u),i=yO.bind(null,i,o,u),o.then(i,i))}function yO(i,o,u){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,Kt===i&&(At&u)===u&&(Tn===4||Tn===3&&(At&62914560)===At&&300>qe()-f0?(Mt&2)===0&&gl(i,0):u0|=u,hl===At&&(hl=0)),$a(i)}function ex(i,o){o===0&&(o=Br()),i=Zo(i,o),i!==null&&(lr(i,o),$a(i))}function EO(i){var o=i.memoizedState,u=0;o!==null&&(u=o.retryLane),ex(i,u)}function bO(i,o){var u=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),ex(i,u)}function vO(i,o){return Nt(i,o)}var Zf=null,El=null,v0=!1,Jf=!1,T0=!1,ro=0;function $a(i){i!==El&&i.next===null&&(El===null?Zf=El=i:El=El.next=i),Jf=!0,v0||(v0=!0,_O())}function nu(i,o){if(!T0&&Jf){T0=!0;do for(var u=!1,h=Zf;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var v=0;else{var R=h.suspendedLanes,O=h.pingedLanes;v=(1<<31-nt(42|i)+1)-1,v&=g&~(R&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(u=!0,ax(h,v))}else v=At,v=Te(h,h===Kt?v:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(v&3)===0||st(h,v)||(u=!0,ax(h,v));h=h.next}while(u);T0=!1}}function TO(){tx()}function tx(){Jf=v0=!1;var i=0;ro!==0&&(wO()&&(i=ro),ro=0);for(var o=qe(),u=null,h=Zf;h!==null;){var g=h.next,v=nx(h,o);v===0?(h.next=null,u===null?Zf=g:u.next=g,g===null&&(El=u)):(u=h,(i!==0||(v&3)!==0)&&(Jf=!0)),h=g}nu(i)}function nx(i,o){for(var u=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,v=i.pendingLanes&-62914561;0<v;){var R=31-nt(v),O=1<<R,H=g[R];H===-1?((O&u)===0||(O&h)!==0)&&(g[R]=Ke(O,o)):H<=o&&(i.expiredLanes|=O),v&=~O}if(o=Kt,u=At,u=Te(i,i===o?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===o&&(Pt===2||Pt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&Fe(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||st(i,u)){if(o=u&-u,o===i.callbackPriority)return o;switch(h!==null&&Fe(h),Ra(u)){case 2:case 8:u=on;break;case 32:u=Qe;break;case 268435456:u=Cr;break;default:u=Qe}return h=rx.bind(null,i),u=Nt(u,h),i.callbackPriority=o,i.callbackNode=u,o}return h!==null&&h!==null&&Fe(h),i.callbackPriority=2,i.callbackNode=null,2}function rx(i,o){if(tr!==0&&tr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Xf()&&i.callbackNode!==u)return null;var h=At;return h=Te(i,i===Kt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(B_(i,h,o),nx(i,qe()),i.callbackNode!=null&&i.callbackNode===u?rx.bind(null,i):null)}function ax(i,o){if(Xf())return null;B_(i,o,!0)}function _O(){NO(function(){(Mt&6)!==0?Nt(an,TO):tx()})}function _0(){return ro===0&&(ro=Cn()),ro}function ix(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:uf(""+i)}function sx(i,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,i.id&&u.setAttribute("form",i.id),o.parentNode.insertBefore(u,o),i=new FormData(i),u.parentNode.removeChild(u),i}function xO(i,o,u,h,g){if(o==="submit"&&u&&u.stateNode===g){var v=ix((g[De]||null).action),R=h.submitter;R&&(o=(o=R[De]||null)?ix(o.formAction):R.getAttribute("formAction"),o!==null&&(v=o,R=null));var O=new pf("action","action",null,h,g);i.push({event:O,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ro!==0){var H=R?sx(g,R):new FormData(g);zg(u,{pending:!0,data:H,method:g.method,action:v},null,H)}}else typeof v=="function"&&(O.preventDefault(),H=R?sx(g,R):new FormData(g),zg(u,{pending:!0,data:H,method:g.method,action:v},v,H))},currentTarget:g}]})}}for(var x0=0;x0<og.length;x0++){var A0=og[x0],AO=A0.toLowerCase(),SO=A0[0].toUpperCase()+A0.slice(1);wa(AO,"on"+SO)}wa(Bv,"onAnimationEnd"),wa(Uv,"onAnimationIteration"),wa(Hv,"onAnimationStart"),wa("dblclick","onDoubleClick"),wa("focusin","onFocus"),wa("focusout","onBlur"),wa(zN,"onTransitionRun"),wa(GN,"onTransitionStart"),wa(VN,"onTransitionCancel"),wa(zv,"onTransitionEnd"),vr("onMouseEnter",["mouseout","mouseover"]),vr("onMouseLeave",["mouseout","mouseover"]),vr("onPointerEnter",["pointerout","pointerover"]),vr("onPointerLeave",["pointerout","pointerover"]),Hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ru="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(" "),CO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ru));function ox(i,o){o=(o&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],g=h.event;h=h.listeners;e:{var v=void 0;if(o)for(var R=h.length-1;0<=R;R--){var O=h[R],H=O.instance,ee=O.currentTarget;if(O=O.listener,H!==v&&g.isPropagationStopped())break e;v=O,g.currentTarget=ee;try{v(g)}catch(pe){Uf(pe)}g.currentTarget=null,v=H}else for(R=0;R<h.length;R++){if(O=h[R],H=O.instance,ee=O.currentTarget,O=O.listener,H!==v&&g.isPropagationStopped())break e;v=O,g.currentTarget=ee;try{v(g)}catch(pe){Uf(pe)}g.currentTarget=null,v=H}}}}function vt(i,o){var u=o[Ve];u===void 0&&(u=o[Ve]=new Set);var h=i+"__bubble";u.has(h)||(lx(o,i,2,!1),u.add(h))}function S0(i,o,u){var h=0;o&&(h|=4),lx(u,i,h,o)}var eh="_reactListening"+Math.random().toString(36).slice(2);function C0(i){if(!i[eh]){i[eh]=!0,Ft.forEach(function(u){u!=="selectionchange"&&(CO.has(u)||S0(u,!1,i),S0(u,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[eh]||(o[eh]=!0,S0("selectionchange",!1,o))}}function lx(i,o,u,h){switch(Nx(o)){case 2:var g=JO;break;case 8:g=e4;break;default:g=U0}u=g.bind(null,o,u,i),g=void 0,!$m||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(o,u,{capture:!0,passive:g}):i.addEventListener(o,u,!0):g!==void 0?i.addEventListener(o,u,{passive:g}):i.addEventListener(o,u,!1)}function D0(i,o,u,h,g){var v=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var R=h.tag;if(R===3||R===4){var O=h.stateNode.containerInfo;if(O===g)break;if(R===4)for(R=h.return;R!==null;){var H=R.tag;if((H===3||H===4)&&R.stateNode.containerInfo===g)return;R=R.return}for(;O!==null;){if(R=pt(O),R===null)return;if(H=R.tag,H===5||H===6||H===26||H===27){h=v=R;continue e}O=O.parentNode}}h=h.return}mv(function(){var ee=v,pe=Ym(u),Ee=[];e:{var ae=Gv.get(i);if(ae!==void 0){var se=pf,rt=i;switch(i){case"keypress":if(ff(u)===0)break e;case"keydown":case"keyup":se=vN;break;case"focusin":rt="focus",se=Zm;break;case"focusout":rt="blur",se=Zm;break;case"beforeblur":case"afterblur":se=Zm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=Ev;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=lN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=xN;break;case Bv:case Uv:case Hv:se=dN;break;case zv:se=SN;break;case"scroll":case"scrollend":se=sN;break;case"wheel":se=DN;break;case"copy":case"cut":case"paste":se=hN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=vv;break;case"toggle":case"beforetoggle":se=RN}var Je=(o&4)!==0,Ut=!Je&&(i==="scroll"||i==="scrollend"),Q=Je?ae!==null?ae+"Capture":null:ae;Je=[];for(var Y=ee,Z;Y!==null;){var ge=Y;if(Z=ge.stateNode,ge=ge.tag,ge!==5&&ge!==26&&ge!==27||Z===null||Q===null||(ge=_c(Y,Q),ge!=null&&Je.push(au(Y,ge,Z))),Ut)break;Y=Y.return}0<Je.length&&(ae=new se(ae,rt,null,u,pe),Ee.push({event:ae,listeners:Je}))}}if((o&7)===0){e:{if(ae=i==="mouseover"||i==="pointerover",se=i==="mouseout"||i==="pointerout",ae&&u!==qm&&(rt=u.relatedTarget||u.fromElement)&&(pt(rt)||rt[Ue]))break e;if((se||ae)&&(ae=pe.window===pe?pe:(ae=pe.ownerDocument)?ae.defaultView||ae.parentWindow:window,se?(rt=u.relatedTarget||u.toElement,se=ee,rt=rt?pt(rt):null,rt!==null&&(Ut=s(rt),Je=rt.tag,rt!==Ut||Je!==5&&Je!==27&&Je!==6)&&(rt=null)):(se=null,rt=ee),se!==rt)){if(Je=Ev,ge="onMouseLeave",Q="onMouseEnter",Y="mouse",(i==="pointerout"||i==="pointerover")&&(Je=vv,ge="onPointerLeave",Q="onPointerEnter",Y="pointer"),Ut=se==null?ae:En(se),Z=rt==null?ae:En(rt),ae=new Je(ge,Y+"leave",se,u,pe),ae.target=Ut,ae.relatedTarget=Z,ge=null,pt(pe)===ee&&(Je=new Je(Q,Y+"enter",rt,u,pe),Je.target=Z,Je.relatedTarget=Ut,ge=Je),Ut=ge,se&&rt)t:{for(Je=se,Q=rt,Y=0,Z=Je;Z;Z=bl(Z))Y++;for(Z=0,ge=Q;ge;ge=bl(ge))Z++;for(;0<Y-Z;)Je=bl(Je),Y--;for(;0<Z-Y;)Q=bl(Q),Z--;for(;Y--;){if(Je===Q||Q!==null&&Je===Q.alternate)break t;Je=bl(Je),Q=bl(Q)}Je=null}else Je=null;se!==null&&cx(Ee,ae,se,Je,!1),rt!==null&&Ut!==null&&cx(Ee,Ut,rt,Je,!0)}}e:{if(ae=ee?En(ee):window,se=ae.nodeName&&ae.nodeName.toLowerCase(),se==="select"||se==="input"&&ae.type==="file")var je=kv;else if(Cv(ae))if(Rv)je=BN;else{je=FN;var yt=PN}else se=ae.nodeName,!se||se.toLowerCase()!=="input"||ae.type!=="checkbox"&&ae.type!=="radio"?ee&&Vm(ee.elementType)&&(je=kv):je=jN;if(je&&(je=je(i,ee))){Dv(Ee,je,u,pe);break e}yt&&yt(i,ae,ee),i==="focusout"&&ee&&ae.type==="number"&&ee.memoizedProps.value!=null&&Gm(ae,"number",ae.value)}switch(yt=ee?En(ee):window,i){case"focusin":(Cv(yt)||yt.contentEditable==="true")&&(Wo=yt,ag=ee,wc=null);break;case"focusout":wc=ag=Wo=null;break;case"mousedown":ig=!0;break;case"contextmenu":case"mouseup":case"dragend":ig=!1,Fv(Ee,u,pe);break;case"selectionchange":if(HN)break;case"keydown":case"keyup":Fv(Ee,u,pe)}var $e;if(eg)e:{switch(i){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else $o?Av(i,u)&&(et="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(et="onCompositionStart");et&&(Tv&&u.locale!=="ko"&&($o||et!=="onCompositionStart"?et==="onCompositionEnd"&&$o&&($e=gv()):(Ki=pe,Wm="value"in Ki?Ki.value:Ki.textContent,$o=!0)),yt=th(ee,et),0<yt.length&&(et=new bv(et,i,null,u,pe),Ee.push({event:et,listeners:yt}),$e?et.data=$e:($e=Sv(u),$e!==null&&(et.data=$e)))),($e=IN?NN(i,u):ON(i,u))&&(et=th(ee,"onBeforeInput"),0<et.length&&(yt=new bv("onBeforeInput","beforeinput",null,u,pe),Ee.push({event:yt,listeners:et}),yt.data=$e)),xO(Ee,i,ee,u,pe)}ox(Ee,o)})}function au(i,o,u){return{instance:i,listener:o,currentTarget:u}}function th(i,o){for(var u=o+"Capture",h=[];i!==null;){var g=i,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=_c(i,u),g!=null&&h.unshift(au(i,g,v)),g=_c(i,o),g!=null&&h.push(au(i,g,v))),i.tag===3)return h;i=i.return}return[]}function bl(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function cx(i,o,u,h,g){for(var v=o._reactName,R=[];u!==null&&u!==h;){var O=u,H=O.alternate,ee=O.stateNode;if(O=O.tag,H!==null&&H===h)break;O!==5&&O!==26&&O!==27||ee===null||(H=ee,g?(ee=_c(u,v),ee!=null&&R.unshift(au(u,ee,H))):g||(ee=_c(u,v),ee!=null&&R.push(au(u,ee,H)))),u=u.return}R.length!==0&&i.push({event:o,listeners:R})}var DO=/\r\n?/g,kO=/\u0000|\uFFFD/g;function ux(i){return(typeof i=="string"?i:""+i).replace(DO,`
26
+ `).replace(kO,"")}function dx(i,o){return o=ux(o),ux(i)===o}function nh(){}function Bt(i,o,u,h,g,v){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||qo(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&qo(i,""+h);break;case"className":mi(i,"class",h);break;case"tabIndex":mi(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(i,u,h);break;case"style":hv(i,h,v);break;case"data":if(o!=="object"){mi(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=uf(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"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 v=="function"&&(u==="formAction"?(o!=="input"&&Bt(i,o,"name",g.name,g,null),Bt(i,o,"formEncType",g.formEncType,g,null),Bt(i,o,"formMethod",g.formMethod,g,null),Bt(i,o,"formTarget",g.formTarget,g,null)):(Bt(i,o,"encType",g.encType,g,null),Bt(i,o,"method",g.method,g,null),Bt(i,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=uf(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=nh);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=uf(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.removeAttribute(u);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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":vt("beforetoggle",i),vt("toggle",i),pi(i,"popover",h);break;case"xlinkActuate":gt(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":gt(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":gt(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":gt(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":gt(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":gt(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":gt(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":gt(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":gt(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pi(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=aN.get(u)||u,pi(i,u,h))}}function k0(i,o,u,h,g,v){switch(u){case"style":hv(i,h,v);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?qo(i,h):(typeof h=="number"||typeof h=="bigint")&&qo(i,""+h);break;case"onScroll":h!=null&&vt("scroll",i);break;case"onScrollEnd":h!=null&&vt("scrollend",i);break;case"onClick":h!=null&&(i.onclick=nh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ga.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),o=u.slice(2,g?u.length-7:void 0),v=i[De]||null,v=v!=null?v[u]:null,typeof v=="function"&&i.removeEventListener(o,v,g),typeof h=="function")){typeof v!="function"&&v!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(o,h,g);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):pi(i,u,h)}}}function nr(i,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",i),vt("load",i);var h=!1,g=!1,v;for(v in u)if(u.hasOwnProperty(v)){var R=u[v];if(R!=null)switch(v){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Bt(i,o,v,R,u,null)}}g&&Bt(i,o,"srcSet",u.srcSet,u,null),h&&Bt(i,o,"src",u.src,u,null);return;case"input":vt("invalid",i);var O=v=R=g=null,H=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var pe=u[h];if(pe!=null)switch(h){case"name":g=pe;break;case"type":R=pe;break;case"checked":H=pe;break;case"defaultChecked":ee=pe;break;case"value":v=pe;break;case"defaultValue":O=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,o));break;default:Bt(i,o,h,pe,u,null)}}cv(i,v,O,H,ee,R,g,!1),lf(i);return;case"select":vt("invalid",i),h=R=v=null;for(g in u)if(u.hasOwnProperty(g)&&(O=u[g],O!=null))switch(g){case"value":v=O;break;case"defaultValue":R=O;break;case"multiple":h=O;default:Bt(i,o,g,O,u,null)}o=v,u=R,i.multiple=!!h,o!=null?Vo(i,!!h,o,!1):u!=null&&Vo(i,!!h,u,!0);return;case"textarea":vt("invalid",i),v=g=h=null;for(R in u)if(u.hasOwnProperty(R)&&(O=u[R],O!=null))switch(R){case"value":h=O;break;case"defaultValue":g=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:Bt(i,o,R,O,u,null)}dv(i,h,g,v),lf(i);return;case"option":for(H in u)if(u.hasOwnProperty(H)&&(h=u[H],h!=null))switch(H){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Bt(i,o,H,h,u,null)}return;case"dialog":vt("beforetoggle",i),vt("toggle",i),vt("cancel",i),vt("close",i);break;case"iframe":case"object":vt("load",i);break;case"video":case"audio":for(h=0;h<ru.length;h++)vt(ru[h],i);break;case"image":vt("error",i),vt("load",i);break;case"details":vt("toggle",i);break;case"embed":case"source":case"link":vt("error",i),vt("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(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:Bt(i,o,ee,h,u,null)}return;default:if(Vm(o)){for(pe in u)u.hasOwnProperty(pe)&&(h=u[pe],h!==void 0&&k0(i,o,pe,h,u,void 0));return}}for(O in u)u.hasOwnProperty(O)&&(h=u[O],h!=null&&Bt(i,o,O,h,u,null))}function RO(i,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,R=null,O=null,H=null,ee=null,pe=null;for(se in u){var Ee=u[se];if(u.hasOwnProperty(se)&&Ee!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":H=Ee;default:h.hasOwnProperty(se)||Bt(i,o,se,null,h,Ee)}}for(var ae in h){var se=h[ae];if(Ee=u[ae],h.hasOwnProperty(ae)&&(se!=null||Ee!=null))switch(ae){case"type":v=se;break;case"name":g=se;break;case"checked":ee=se;break;case"defaultChecked":pe=se;break;case"value":R=se;break;case"defaultValue":O=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:se!==Ee&&Bt(i,o,ae,se,h,Ee)}}zm(i,R,O,H,ee,pe,v,g);return;case"select":se=R=O=ae=null;for(v in u)if(H=u[v],u.hasOwnProperty(v)&&H!=null)switch(v){case"value":break;case"multiple":se=H;default:h.hasOwnProperty(v)||Bt(i,o,v,null,h,H)}for(g in h)if(v=h[g],H=u[g],h.hasOwnProperty(g)&&(v!=null||H!=null))switch(g){case"value":ae=v;break;case"defaultValue":O=v;break;case"multiple":R=v;default:v!==H&&Bt(i,o,g,v,h,H)}o=O,u=R,h=se,ae!=null?Vo(i,!!u,ae,!1):!!h!=!!u&&(o!=null?Vo(i,!!u,o,!0):Vo(i,!!u,u?[]:"",!1));return;case"textarea":se=ae=null;for(O in u)if(g=u[O],u.hasOwnProperty(O)&&g!=null&&!h.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Bt(i,o,O,null,h,g)}for(R in h)if(g=h[R],v=u[R],h.hasOwnProperty(R)&&(g!=null||v!=null))switch(R){case"value":ae=g;break;case"defaultValue":se=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==v&&Bt(i,o,R,g,h,v)}uv(i,ae,se);return;case"option":for(var rt in u)if(ae=u[rt],u.hasOwnProperty(rt)&&ae!=null&&!h.hasOwnProperty(rt))switch(rt){case"selected":i.selected=!1;break;default:Bt(i,o,rt,null,h,ae)}for(H in h)if(ae=h[H],se=u[H],h.hasOwnProperty(H)&&ae!==se&&(ae!=null||se!=null))switch(H){case"selected":i.selected=ae&&typeof ae!="function"&&typeof ae!="symbol";break;default:Bt(i,o,H,ae,h,se)}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 Je in u)ae=u[Je],u.hasOwnProperty(Je)&&ae!=null&&!h.hasOwnProperty(Je)&&Bt(i,o,Je,null,h,ae);for(ee in h)if(ae=h[ee],se=u[ee],h.hasOwnProperty(ee)&&ae!==se&&(ae!=null||se!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,o));break;default:Bt(i,o,ee,ae,h,se)}return;default:if(Vm(o)){for(var Ut in u)ae=u[Ut],u.hasOwnProperty(Ut)&&ae!==void 0&&!h.hasOwnProperty(Ut)&&k0(i,o,Ut,void 0,h,ae);for(pe in h)ae=h[pe],se=u[pe],!h.hasOwnProperty(pe)||ae===se||ae===void 0&&se===void 0||k0(i,o,pe,ae,h,se);return}}for(var Q in u)ae=u[Q],u.hasOwnProperty(Q)&&ae!=null&&!h.hasOwnProperty(Q)&&Bt(i,o,Q,null,h,ae);for(Ee in h)ae=h[Ee],se=u[Ee],!h.hasOwnProperty(Ee)||ae===se||ae==null&&se==null||Bt(i,o,Ee,ae,h,se)}var R0=null,w0=null;function rh(i){return i.nodeType===9?i:i.ownerDocument}function fx(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 hx(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function I0(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var N0=null;function wO(){var i=window.event;return i&&i.type==="popstate"?i===N0?!1:(N0=i,!0):(N0=null,!1)}var px=typeof setTimeout=="function"?setTimeout:void 0,IO=typeof clearTimeout=="function"?clearTimeout:void 0,mx=typeof Promise=="function"?Promise:void 0,NO=typeof queueMicrotask=="function"?queueMicrotask:typeof mx<"u"?function(i){return mx.resolve(null).then(i).catch(OO)}:px;function OO(i){setTimeout(function(){throw i})}function fs(i){return i==="head"}function gx(i,o){var u=o,h=0,g=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"){if(0<h&&8>h){u=h;var R=i.ownerDocument;if(u&1&&iu(R.documentElement),u&2&&iu(R.body),u&4)for(u=R.head,iu(u),R=u.firstChild;R;){var O=R.nextSibling,H=R.nodeName;R[Ge]||H==="SCRIPT"||H==="STYLE"||H==="LINK"&&R.rel.toLowerCase()==="stylesheet"||u.removeChild(R),R=O}}if(g===0){i.removeChild(v),hu(o);return}g--}else u==="$"||u==="$?"||u==="$!"?g++:h=u.charCodeAt(0)-48;else h=0;u=v}while(u);hu(o)}function O0(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":O0(u),Ye(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function LO(i,o,u,h){for(;i.nodeType===1;){var g=u;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Ge])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(v=i.getAttribute("rel"),v==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(v!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(v=i.getAttribute("src"),(v!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===v)return i}else return i;if(i=Na(i.nextSibling),i===null)break}return null}function MO(i,o,u){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Na(i.nextSibling),i===null))return null;return i}function L0(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function PO(i,o){var u=i.ownerDocument;if(i.data!=="$?"||u.readyState==="complete")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function Na(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}var M0=null;function yx(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return i;o--}else u==="/$"&&o++}i=i.previousSibling}return null}function Ex(i,o,u){switch(o=rh(u),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function iu(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);Ye(i)}var pa=new Map,bx=new Set;function ah(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ri=le.d;le.d={f:FO,r:jO,D:BO,C:UO,L:HO,m:zO,X:VO,S:GO,M:qO};function FO(){var i=Ri.f(),o=Wf();return i||o}function jO(i){var o=Lt(i);o!==null&&o.tag===5&&o.type==="form"?BT(o):Ri.r(i)}var vl=typeof document>"u"?null:document;function vx(i,o,u){var h=vl;if(h&&typeof o=="string"&&o){var g=oa(o);g='link[rel="'+i+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),bx.has(g)||(bx.add(g),i={rel:i,crossOrigin:u,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),nr(o,"link",i),ft(o),h.head.appendChild(o)))}}function BO(i){Ri.D(i),vx("dns-prefetch",i,null)}function UO(i,o){Ri.C(i,o),vx("preconnect",i,o)}function HO(i,o,u){Ri.L(i,o,u);var h=vl;if(h&&i&&o){var g='link[rel="preload"][as="'+oa(o)+'"]';o==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+oa(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+oa(u.imageSizes)+'"]')):g+='[href="'+oa(i)+'"]';var v=g;switch(o){case"style":v=Tl(i);break;case"script":v=_l(i)}pa.has(v)||(i=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),pa.set(v,i),h.querySelector(g)!==null||o==="style"&&h.querySelector(su(v))||o==="script"&&h.querySelector(ou(v))||(o=h.createElement("link"),nr(o,"link",i),ft(o),h.head.appendChild(o)))}}function zO(i,o){Ri.m(i,o);var u=vl;if(u&&i){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+oa(h)+'"][href="'+oa(i)+'"]',v=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=_l(i)}if(!pa.has(v)&&(i=p({rel:"modulepreload",href:i},o),pa.set(v,i),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ou(v)))return}h=u.createElement("link"),nr(h,"link",i),ft(h),u.head.appendChild(h)}}}function GO(i,o,u){Ri.S(i,o,u);var h=vl;if(h&&i){var g=bn(h).hoistableStyles,v=Tl(i);o=o||"default";var R=g.get(v);if(!R){var O={loading:0,preload:null};if(R=h.querySelector(su(v)))O.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":o},u),(u=pa.get(v))&&P0(i,u);var H=R=h.createElement("link");ft(H),nr(H,"link",i),H._p=new Promise(function(ee,pe){H.onload=ee,H.onerror=pe}),H.addEventListener("load",function(){O.loading|=1}),H.addEventListener("error",function(){O.loading|=2}),O.loading|=4,ih(R,o,h)}R={type:"stylesheet",instance:R,count:1,state:O},g.set(v,R)}}}function VO(i,o){Ri.X(i,o);var u=vl;if(u&&i){var h=bn(u).hoistableScripts,g=_l(i),v=h.get(g);v||(v=u.querySelector(ou(g)),v||(i=p({src:i,async:!0},o),(o=pa.get(g))&&F0(i,o),v=u.createElement("script"),ft(v),nr(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function qO(i,o){Ri.M(i,o);var u=vl;if(u&&i){var h=bn(u).hoistableScripts,g=_l(i),v=h.get(g);v||(v=u.querySelector(ou(g)),v||(i=p({src:i,async:!0,type:"module"},o),(o=pa.get(g))&&F0(i,o),v=u.createElement("script"),ft(v),nr(v,"link",i),u.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(g,v))}}function Tx(i,o,u,h){var g=(g=we.current)?ah(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=Tl(u.href),u=bn(g).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=Tl(u.href);var v=bn(g).hoistableStyles,R=v.get(i);if(R||(g=g.ownerDocument||g,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(i,R),(v=g.querySelector(su(i)))&&!v._p&&(R.instance=v,R.state.loading=5),pa.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},pa.set(i,u),v||YO(g,i,u,R.state))),o&&h===null)throw Error(r(528,""));return R}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=_l(u),u=bn(g).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Tl(i){return'href="'+oa(i)+'"'}function su(i){return'link[rel="stylesheet"]['+i+"]"}function _x(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function YO(i,o,u,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),nr(o,"link",u),ft(o),i.head.appendChild(o))}function _l(i){return'[src="'+oa(i)+'"]'}function ou(i){return"script[async]"+i}function xx(i,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+oa(u.href)+'"]');if(h)return o.instance=h,ft(h),h;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),ft(h),nr(h,"style",g),ih(h,u.precedence,i),o.instance=h;case"stylesheet":g=Tl(u.href);var v=i.querySelector(su(g));if(v)return o.state.loading|=4,o.instance=v,ft(v),v;h=_x(u),(g=pa.get(g))&&P0(h,g),v=(i.ownerDocument||i).createElement("link"),ft(v);var R=v;return R._p=new Promise(function(O,H){R.onload=O,R.onerror=H}),nr(v,"link",h),o.state.loading|=4,ih(v,u.precedence,i),o.instance=v;case"script":return v=_l(u.src),(g=i.querySelector(ou(v)))?(o.instance=g,ft(g),g):(h=u,(g=pa.get(v))&&(h=p({},u),F0(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),ft(g),nr(g,"link",h),i.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,ih(h,u.precedence,i));return o.instance}function ih(i,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,v=g,R=0;R<h.length;R++){var O=h[R];if(O.dataset.precedence===o)v=O;else if(v!==g)break}v?v.parentNode.insertBefore(i,v.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(i,o.firstChild))}function P0(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function F0(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var sh=null;function Ax(i,o,u){if(sh===null){var h=new Map,g=sh=new Map;g.set(u,h)}else g=sh,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),g=0;g<u.length;g++){var v=u[g];if(!(v[Ge]||v[be]||i==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var R=v.getAttribute(o)||"";R=i+R;var O=h.get(R);O?O.push(v):h.set(R,[v])}}return h}function Sx(i,o,u){i=i.ownerDocument||i,i.head.insertBefore(u,o==="title"?i.querySelector("head > title"):null)}function QO(i,o,u){if(u===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function Cx(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var lu=null;function $O(){}function WO(i,o,u){if(lu===null)throw Error(r(475));var h=lu;if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Tl(u.href),v=i.querySelector(su(g));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=oh.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=v,ft(v);return}v=i.ownerDocument||i,u=_x(u),(g=pa.get(g))&&P0(u,g),v=v.createElement("link"),ft(v);var R=v;R._p=new Promise(function(O,H){R.onload=O,R.onerror=H}),nr(v,"link",u),o.instance=v}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=oh.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function KO(){if(lu===null)throw Error(r(475));var i=lu;return i.stylesheets&&i.count===0&&j0(i,i.stylesheets),0<i.count?function(o){var u=setTimeout(function(){if(i.stylesheets&&j0(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(u)}}:null}function oh(){if(this.count--,this.count===0){if(this.stylesheets)j0(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var lh=null;function j0(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,lh=new Map,o.forEach(XO,i),lh=null,oh.call(i))}function XO(i,o){if(!(o.state.loading&4)){var u=lh.get(i);if(u)var h=u.get(null);else{u=new Map,lh.set(i,u);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var R=g[v];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(u.set(R.dataset.precedence,R),h=R)}h&&u.set(null,h)}g=o.instance,R=g.getAttribute("data-precedence"),v=u.get(R)||h,v===h&&u.set(null,g),u.set(R,g),this.count++,h=oh.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),v?v.parentNode.insertBefore(g,v.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),o.state.loading|=4}}var cu={$$typeof:S,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function ZO(i,o,u,h,g,v,R,O){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=br(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=br(0),this.hiddenUpdates=br(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Dx(i,o,u,h,g,v,R,O,H,ee,pe,Ee){return i=new ZO(i,o,u,R,O,H,ee,Ee),o=1,v===!0&&(o|=24),v=Gr(3,null,null,o),i.current=v,v.stateNode=i,o=bg(),o.refCount++,i.pooledCache=o,o.refCount++,v.memoizedState={element:h,isDehydrated:u,cache:o},xg(v),i}function kx(i){return i?(i=Jo,i):Jo}function Rx(i,o,u,h,g,v){g=kx(g),h.context===null?h.context=g:h.pendingContext=g,h=Ji(o),h.payload={element:u},v=v===void 0?null:v,v!==null&&(h.callback=v),u=es(i,h,o),u!==null&&($r(u,i,o),Bc(u,i,o))}function wx(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function B0(i,o){wx(i,o),(i=i.alternate)&&wx(i,o)}function Ix(i){if(i.tag===13){var o=Zo(i,67108864);o!==null&&$r(o,i,67108864),B0(i,67108864)}}var ch=!0;function JO(i,o,u,h){var g=V.T;V.T=null;var v=le.p;try{le.p=2,U0(i,o,u,h)}finally{le.p=v,V.T=g}}function e4(i,o,u,h){var g=V.T;V.T=null;var v=le.p;try{le.p=8,U0(i,o,u,h)}finally{le.p=v,V.T=g}}function U0(i,o,u,h){if(ch){var g=H0(h);if(g===null)D0(i,o,h,uh,u),Ox(i,h);else if(n4(g,i,o,u,h))h.stopPropagation();else if(Ox(i,h),o&4&&-1<t4.indexOf(i)){for(;g!==null;){var v=Lt(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var R=_e(v.pendingLanes);if(R!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;R;){var H=1<<31-nt(R);O.entanglements[1]|=H,R&=~H}$a(v),(Mt&6)===0&&(Qf=qe()+500,nu(0))}}break;case 13:O=Zo(v,2),O!==null&&$r(O,v,2),Wf(),B0(v,2)}if(v=H0(h),v===null&&D0(i,o,h,uh,u),v===g)break;g=v}g!==null&&h.stopPropagation()}else D0(i,o,h,null,u)}}function H0(i){return i=Ym(i),z0(i)}var uh=null;function z0(i){if(uh=null,i=pt(i),i!==null){var o=s(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=l(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return uh=i,null}function Nx(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(Jn()){case an:return 2;case on:return 8;case Qe:case Ct:return 32;case Cr:return 268435456;default:return 32}default:return 32}}var G0=!1,hs=null,ps=null,ms=null,uu=new Map,du=new Map,gs=[],t4="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 Ox(i,o){switch(i){case"focusin":case"focusout":hs=null;break;case"dragenter":case"dragleave":ps=null;break;case"mouseover":case"mouseout":ms=null;break;case"pointerover":case"pointerout":uu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":du.delete(o.pointerId)}}function fu(i,o,u,h,g,v){return i===null||i.nativeEvent!==v?(i={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:v,targetContainers:[g]},o!==null&&(o=Lt(o),o!==null&&Ix(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),i)}function n4(i,o,u,h,g){switch(o){case"focusin":return hs=fu(hs,i,o,u,h,g),!0;case"dragenter":return ps=fu(ps,i,o,u,h,g),!0;case"mouseover":return ms=fu(ms,i,o,u,h,g),!0;case"pointerover":var v=g.pointerId;return uu.set(v,fu(uu.get(v)||null,i,o,u,h,g)),!0;case"gotpointercapture":return v=g.pointerId,du.set(v,fu(du.get(v)||null,i,o,u,h,g)),!0}return!1}function Lx(i){var o=pt(i.target);if(o!==null){var u=s(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){i.blockedOn=o,X(i.priority,function(){if(u.tag===13){var h=Qr();h=Ur(h);var g=Zo(u,h);g!==null&&$r(g,u,h),B0(u,h)}});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function dh(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=H0(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);qm=h,u.target.dispatchEvent(h),qm=null}else return o=Lt(u),o!==null&&Ix(o),i.blockedOn=u,!1;o.shift()}return!0}function Mx(i,o,u){dh(i)&&u.delete(o)}function r4(){G0=!1,hs!==null&&dh(hs)&&(hs=null),ps!==null&&dh(ps)&&(ps=null),ms!==null&&dh(ms)&&(ms=null),uu.forEach(Mx),du.forEach(Mx)}function fh(i,o){i.blockedOn===o&&(i.blockedOn=null,G0||(G0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,r4)))}var hh=null;function Px(i){hh!==i&&(hh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){hh===i&&(hh=null);for(var o=0;o<i.length;o+=3){var u=i[o],h=i[o+1],g=i[o+2];if(typeof h!="function"){if(z0(h||u)===null)continue;break}var v=Lt(u);v!==null&&(i.splice(o,3),o-=3,zg(v,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function hu(i){function o(H){return fh(H,i)}hs!==null&&fh(hs,i),ps!==null&&fh(ps,i),ms!==null&&fh(ms,i),uu.forEach(o),du.forEach(o);for(var u=0;u<gs.length;u++){var h=gs[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<gs.length&&(u=gs[0],u.blockedOn===null);)Lx(u),u.blockedOn===null&&gs.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],v=u[h+1],R=g[De]||null;if(typeof v=="function")R||Px(u);else if(R){var O=null;if(v&&v.hasAttribute("formAction")){if(g=v,R=v[De]||null)O=R.formAction;else if(z0(g)!==null)continue}else O=R.action;typeof O=="function"?u[h+1]=O:(u.splice(h,3),h-=3),Px(u)}}}function V0(i){this._internalRoot=i}ph.prototype.render=V0.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=Qr();Rx(u,h,i,o,null,null)},ph.prototype.unmount=V0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;Rx(i.current,2,null,i,null,null),Wf(),o[Ue]=null}};function ph(i){this._internalRoot=i}ph.prototype.unstable_scheduleHydration=function(i){if(i){var o=G();i={blockedOn:null,target:i,priority:o};for(var u=0;u<gs.length&&o!==0&&o<gs[u].priority;u++);gs.splice(u,0,i),u===0&&Lx(i)}};var Fx=t.version;if(Fx!=="19.1.1")throw Error(r(527,Fx,"19.1.1"));le.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var a4={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mh.isDisabled&&mh.supportsFiber)try{ue=mh.inject(a4),ve=mh}catch{}}return pu.createRoot=function(i,o){if(!a(i))throw Error(r(299));var u=!1,h="",g=JT,v=e_,R=t_,O=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(R=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(O=o.unstable_transitionCallbacks)),o=Dx(i,1,!1,null,null,u,h,g,v,R,O,null),i[Ue]=o.current,C0(i),new V0(o)},pu.hydrateRoot=function(i,o,u){if(!a(i))throw Error(r(299));var h=!1,g="",v=JT,R=e_,O=t_,H=null,ee=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(v=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(O=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(H=u.unstable_transitionCallbacks),u.formState!==void 0&&(ee=u.formState)),o=Dx(i,1,!0,o,u??null,h,g,v,R,O,H,ee),o.context=kx(null),u=o.current,h=Qr(),h=Ur(h),g=Ji(h),g.callback=null,es(u,g,h),u=h,o.current.lanes=u,lr(o,u),$a(o),i[Ue]=o.current,C0(i),new ph(o)},pu.version="19.1.1",pu}var Gx;function U4(){if(Gx)return q0.exports;Gx=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(),q0.exports=B4(),q0.exports}var H4=U4();/**
27
+ * react-router v7.7.1
28
+ *
29
+ * Copyright (c) Remix Software Inc.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE.md file in the root directory of this source tree.
33
+ *
34
+ * @license MIT
35
+ */var Z2=e=>{throw TypeError(e)},z4=(e,t,n)=>t.has(e)||Z2("Cannot "+n),$0=(e,t,n)=>(z4(e,t,"read from private field"),n?n.call(e):t.get(e)),G4=(e,t,n)=>t.has(e)?Z2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Vx="popstate";function V4(e={}){function t(r,a){let{pathname:s,search:l,hash:c}=r.location;return cd("",{pathname:s,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Os(a)}return Y4(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function q4(){return Math.random().toString(36).substring(2,10)}function qx(e,t){return{usr:e.state,key:e.key,idx:t}}function cd(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ps(t):t,state:n,key:t&&t.key||r||q4()}}function Os({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 Ps(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 Y4(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,c="POP",d=null,f=p();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function p(){return(l.state||{idx:null}).idx}function m(){c="POP";let C=p(),x=C==null?null:C-f;f=C,d&&d({action:c,location:A.location,delta:x})}function E(C,x){c="PUSH";let D=cd(A.location,C,x);f=p()+1;let S=qx(D,f),L=A.createHref(D);try{l.pushState(S,"",L)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(L)}s&&d&&d({action:c,location:A.location,delta:1})}function y(C,x){c="REPLACE";let D=cd(A.location,C,x);f=p();let S=qx(D,f),L=A.createHref(D);l.replaceState(S,"",L),s&&d&&d({action:c,location:A.location,delta:0})}function T(C){return J2(C)}let A={get action(){return c},get location(){return e(a,l)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Vx,m),d=C,()=>{a.removeEventListener(Vx,m),d=null}},createHref(C){return t(a,C)},createURL:T,encodeLocation(C){let x=T(C);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:E,replace:y,go(C){return l.go(C)}};return A}function J2(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Os(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Mu,Yx=class{constructor(e){if(G4(this,Mu,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if($0(this,Mu).has(e))return $0(this,Mu).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){$0(this,Mu).set(e,t)}};Mu=new WeakMap;var Q4=new Set(["lazy","caseSensitive","path","id","index","children"]);function $4(e){return Q4.has(e)}var W4=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function K4(e){return W4.has(e)}function X4(e){return e.index===!0}function ud(e,t,n=[],r={},a=!1){return e.map((s,l)=>{let c=[...n,String(l)],d=typeof s.id=="string"?s.id:c.join("-");if(Tt(s.index!==!0||!s.children,"Cannot specify children on an index route"),Tt(a||!r[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),X4(s)){let f={...s,...t(s),id:d};return r[d]=f,f}else{let f={...s,...t(s),id:d,children:void 0};return r[d]=f,s.children&&(f.children=ud(s.children,t,c,r,a)),f}})}function Ss(e,t,n="/"){return jh(e,t,n,!1)}function jh(e,t,n,r){let a=typeof t=="string"?Ps(t):t,s=Ca(a.pathname||"/",n);if(s==null)return null;let l=eD(e);J4(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let f=u5(s);c=l5(l[d],f,r)}return c}function Z4(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}function eD(e,t=[],n=[],r=""){let a=(s,l,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(Tt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=ii([r,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&(Tt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),eD(s.children,t,p,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:s5(f,s.index),routesMeta:p})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))a(s,l);else for(let c of tD(s.path))a(s,l,c)}),t}function tD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=tD(r.join("/")),c=[];return c.push(...l.map(d=>d===""?s:[s,d].join("/"))),a&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function J4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:o5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var e5=/^:[\w-]+$/,t5=3,n5=2,r5=1,a5=10,i5=-2,Qx=e=>e==="*";function s5(e,t){let n=e.split("/"),r=n.length;return n.some(Qx)&&(r+=i5),t&&(r+=n5),n.filter(a=>!Qx(a)).reduce((a,s)=>a+(e5.test(s)?t5:s===""?r5:a5),r)}function o5(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function l5(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let c=0;c<r.length;++c){let d=r[c],f=c===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",m=lp({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},p),E=d.route;if(!m&&f&&n&&!r[r.length-1].route.index&&(m=lp({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!m)return null;Object.assign(a,m.params),l.push({params:a,pathname:ii([s,m.pathname]),pathnameBase:p5(ii([s,m.pathnameBase])),route:E}),m.pathnameBase!=="/"&&(s=ii([s,m.pathnameBase]))}return l}function lp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=c5(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((f,{paramName:p,isOptional:m},E)=>{if(p==="*"){let T=c[E]||"";l=s.slice(0,s.length-T.length).replace(/(.)\/+$/,"$1")}const y=c[E];return m&&!y?f[p]=void 0:f[p]=(y||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function c5(e,t=!1,n=!0){jn(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function u5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jn(!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 Ca(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 d5({basename:e,pathname:t}){return t==="/"?e:ii([e,t])}function f5(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ps(e):e;return{pathname:n?n.startsWith("/")?n:h5(n,t):t,search:m5(r),hash:g5(a)}}function h5(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function W0(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 nD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yE(e){let t=nD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function EE(e,t,n,r=!1){let a;typeof e=="string"?a=Ps(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),W0("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),W0("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),W0("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,c;if(l==null)c=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let E=l.split("/");for(;E[0]==="..";)E.shift(),m-=1;a.pathname=E.join("/")}c=m>=0?t[m]:"/"}let d=f5(a,c),f=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||p)&&(d.pathname+="/"),d}var ii=e=>e.join("/").replace(/\/\/+/g,"/"),p5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),m5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,g5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,cp=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 dd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var rD=["POST","PUT","PATCH","DELETE"],y5=new Set(rD),E5=["GET",...rD],b5=new Set(E5),v5=new Set([301,302,303,307,308]),T5=new Set([307,308]),K0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_5={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},x5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bE=e=>x5.test(e),A5=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),aD="remix-router-transitions",iD=Symbol("ResetLoaderData");function S5(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";Tt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],a=e.mapRouteProperties||A5,s={},l=ud(e.routes,a,void 0,s),c,d=e.basename||"/",f=e.dataStrategy||w5,p={unstable_middleware:!1,...e.future},m=null,E=new Set,y=null,T=null,A=null,C=e.hydrationData!=null,x=Ss(l,e.history.location,d),D=!1,S=null,L;if(x==null&&!e.patchRoutesOnNavigation){let G=ya(404,{pathname:e.history.location.pathname}),{matches:X,route:ie}=iA(l);L=!0,x=X,S={[ie.id]:G}}else if(x&&!e.hydrationData&&za(x,l,e.history.location.pathname).active&&(x=null),x)if(x.some(G=>G.route.lazy))L=!1;else if(!x.some(G=>G.route.loader))L=!0;else{let G=e.hydrationData?e.hydrationData.loaderData:null,X=e.hydrationData?e.hydrationData.errors:null;if(X){let ie=x.findIndex(be=>X[be.route.id]!==void 0);L=x.slice(0,ie+1).every(be=>!a1(be.route,G,X))}else L=x.every(ie=>!a1(ie.route,G,X))}else{L=!1,x=[];let G=za(null,l,e.history.location.pathname);G.active&&G.matches&&(D=!0,x=G.matches)}let M,w={historyAction:e.history.action,location:e.history.location,matches:x,initialized:L,navigation:K0,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||S,fetchers:new Map,blockers:new Map},q="POP",ne=!1,W,k=!1,z=new Map,$=null,K=!1,re=!1,me=new Set,V=new Map,le=0,oe=-1,ye=new Map,P=new Set,Le=new Map,ce=new Map,I=new Set,te=new Map,Ce,we=null;function Pe(){if(m=e.history.listen(({action:G,location:X,delta:ie})=>{if(Ce){Ce(),Ce=void 0;return}jn(te.size===0||ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let be=Ke({currentLocation:w.location,nextLocation:X,historyAction:G});if(be&&ie!=null){let De=new Promise(Ue=>{Ce=Ue});e.history.go(ie*-1),st(be,{state:"blocked",location:X,proceed(){st(be,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),De.then(()=>e.history.go(ie))},reset(){let Ue=new Map(w.blockers);Ue.set(be,mu),dt({blockers:Ue})}});return}return Fe(G,X)}),n){H5(t,z);let G=()=>z5(t,z);t.addEventListener("pagehide",G),$=()=>t.removeEventListener("pagehide",G)}return w.initialized||Fe("POP",w.location,{initialHydration:!0}),M}function Me(){m&&m(),$&&$(),E.clear(),W&&W.abort(),w.fetchers.forEach((G,X)=>nt(X)),w.blockers.forEach((G,X)=>Te(X))}function ot(G){return E.add(G),()=>E.delete(G)}function dt(G,X={}){G.matches&&(G.matches=G.matches.map(De=>{let Ue=s[De.route.id],Ve=De.route;return Ve.element!==Ue.element||Ve.errorElement!==Ue.errorElement||Ve.hydrateFallbackElement!==Ue.hydrateFallbackElement?{...De,route:Ue}:De})),w={...w,...G};let ie=[],be=[];w.fetchers.forEach((De,Ue)=>{De.state==="idle"&&(I.has(Ue)?ie.push(Ue):be.push(Ue))}),I.forEach(De=>{!w.fetchers.has(De)&&!V.has(De)&&ie.push(De)}),[...E].forEach(De=>De(w,{deletedFetchers:ie,viewTransitionOpts:X.viewTransitionOpts,flushSync:X.flushSync===!0})),ie.forEach(De=>nt(De)),be.forEach(De=>w.fetchers.delete(De))}function He(G,X,{flushSync:ie}={}){let be=w.actionData!=null&&w.navigation.formMethod!=null&&Or(w.navigation.formMethod)&&w.navigation.state==="loading"&&G.state?._isRedirect!==!0,De;X.actionData?Object.keys(X.actionData).length>0?De=X.actionData:De=null:be?De=w.actionData:De=null;let Ue=X.loaderData?rA(w.loaderData,X.loaderData,X.matches||[],X.errors):w.loaderData,Ve=w.blockers;Ve.size>0&&(Ve=new Map(Ve),Ve.forEach((Ge,Ye)=>Ve.set(Ye,mu)));let ze=K?!1:cr(G,X.matches||w.matches),We=ne===!0||w.navigation.formMethod!=null&&Or(w.navigation.formMethod)&&G.state?._isRedirect!==!0;c&&(l=c,c=void 0),K||q==="POP"||(q==="PUSH"?e.history.push(G,G.state):q==="REPLACE"&&e.history.replace(G,G.state));let Ze;if(q==="POP"){let Ge=z.get(w.location.pathname);Ge&&Ge.has(G.pathname)?Ze={currentLocation:w.location,nextLocation:G}:z.has(G.pathname)&&(Ze={currentLocation:G,nextLocation:w.location})}else if(k){let Ge=z.get(w.location.pathname);Ge?Ge.add(G.pathname):(Ge=new Set([G.pathname]),z.set(w.location.pathname,Ge)),Ze={currentLocation:w.location,nextLocation:G}}dt({...X,actionData:De,loaderData:Ue,historyAction:q,location:G,initialized:!0,navigation:K0,revalidation:"idle",restoreScrollPosition:ze,preventScrollReset:We,blockers:Ve},{viewTransitionOpts:Ze,flushSync:ie===!0}),q="POP",ne=!1,k=!1,K=!1,re=!1,we?.resolve(),we=null}async function Wt(G,X){if(typeof G=="number"){e.history.go(G);return}let ie=r1(w.location,w.matches,d,G,X?.fromRouteId,X?.relative),{path:be,submission:De,error:Ue}=$x(!1,ie,X),Ve=w.location,ze=cd(w.location,be,X&&X.state);ze={...ze,...e.history.encodeLocation(ze)};let We=X&&X.replace!=null?X.replace:void 0,Ze="PUSH";We===!0?Ze="REPLACE":We===!1||De!=null&&Or(De.formMethod)&&De.formAction===w.location.pathname+w.location.search&&(Ze="REPLACE");let Ge=X&&"preventScrollReset"in X?X.preventScrollReset===!0:void 0,Ye=(X&&X.flushSync)===!0,pt=Ke({currentLocation:Ve,nextLocation:ze,historyAction:Ze});if(pt){st(pt,{state:"blocked",location:ze,proceed(){st(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:ze}),Wt(G,X)},reset(){let Lt=new Map(w.blockers);Lt.set(pt,mu),dt({blockers:Lt})}});return}await Fe(Ze,ze,{submission:De,pendingError:Ue,preventScrollReset:Ge,replace:X&&X.replace,enableViewTransition:X&&X.viewTransition,flushSync:Ye})}function Nt(){we||(we=G5()),Rt(),dt({revalidation:"loading"});let G=we.promise;return w.navigation.state==="submitting"?G:w.navigation.state==="idle"?(Fe(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),G):(Fe(q||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:k===!0}),G)}async function Fe(G,X,ie){W&&W.abort(),W=null,q=G,K=(ie&&ie.startUninterruptedRevalidation)===!0,lr(w.location,w.matches),ne=(ie&&ie.preventScrollReset)===!0,k=(ie&&ie.enableViewTransition)===!0;let be=c||l,De=ie&&ie.overrideNavigation,Ue=ie?.initialHydration&&w.matches&&w.matches.length>0&&!D?w.matches:Ss(be,X,d),Ve=(ie&&ie.flushSync)===!0;if(Ue&&w.initialized&&!re&&P5(w.location,X)&&!(ie&&ie.submission&&Or(ie.submission.formMethod))){He(X,{matches:Ue},{flushSync:Ve});return}let ze=za(Ue,be,X.pathname);if(ze.active&&ze.matches&&(Ue=ze.matches),!Ue){let{error:bn,notFoundMatches:ft,route:Ft}=Cn(X.pathname);He(X,{matches:ft,loaderData:{},errors:{[Ft.id]:bn}},{flushSync:Ve});return}W=new AbortController;let We=Ll(e.history,X,W.signal,ie&&ie.submission),Ze=new Yx(e.unstable_getContext?await e.unstable_getContext():void 0),Ge;if(ie&&ie.pendingError)Ge=[lo(Ue).route.id,{type:"error",error:ie.pendingError}];else if(ie&&ie.submission&&Or(ie.submission.formMethod)){let bn=await or(We,X,ie.submission,Ue,Ze,ze.active,ie&&ie.initialHydration===!0,{replace:ie.replace,flushSync:Ve});if(bn.shortCircuited)return;if(bn.pendingActionResult){let[ft,Ft]=bn.pendingActionResult;if(Xr(Ft)&&dd(Ft.error)&&Ft.error.status===404){W=null,He(X,{matches:bn.matches,loaderData:{},errors:{[ft]:Ft.error}});return}}Ue=bn.matches||Ue,Ge=bn.pendingActionResult,De=X0(X,ie.submission),Ve=!1,ze.active=!1,We=Ll(e.history,We.url,We.signal)}let{shortCircuited:Ye,matches:pt,loaderData:Lt,errors:En}=await fn(We,X,Ue,Ze,ze.active,De,ie&&ie.submission,ie&&ie.fetcherSubmission,ie&&ie.replace,ie&&ie.initialHydration===!0,Ve,Ge);Ye||(W=null,He(X,{matches:pt||Ue,...aA(Ge),loaderData:Lt,errors:En}))}async function or(G,X,ie,be,De,Ue,Ve,ze={}){Rt();let We=B5(X,ie);if(dt({navigation:We},{flushSync:ze.flushSync===!0}),Ue){let Ye=await hn(be,X.pathname,G.signal);if(Ye.type==="aborted")return{shortCircuited:!0};if(Ye.type==="error"){let pt=lo(Ye.partialMatches).route.id;return{matches:Ye.partialMatches,pendingActionResult:[pt,{type:"error",error:Ye.error}]}}else if(Ye.matches)be=Ye.matches;else{let{notFoundMatches:pt,error:Lt,route:En}=Cn(X.pathname);return{matches:pt,pendingActionResult:[En.id,{type:"error",error:Lt}]}}}let Ze,Ge=Bh(be,X);if(!Ge.route.action&&!Ge.route.lazy)Ze={type:"error",error:ya(405,{method:G.method,pathname:X.pathname,routeId:Ge.route.id})};else{let Ye=zl(a,s,G,be,Ge,Ve?[]:r,De),pt=await Cr(G,Ye,De,null);if(Ze=pt[Ge.route.id],!Ze){for(let Lt of be)if(pt[Lt.route.id]){Ze=pt[Lt.route.id];break}}if(G.signal.aborted)return{shortCircuited:!0}}if(fo(Ze)){let Ye;return ze&&ze.replace!=null?Ye=ze.replace:Ye=eA(Ze.response.headers.get("Location"),new URL(G.url),d)===w.location.pathname+w.location.search,await Ct(G,Ze,!0,{submission:ie,replace:Ye}),{shortCircuited:!0}}if(Xr(Ze)){let Ye=lo(be,Ge.route.id);return(ze&&ze.replace)!==!0&&(q="PUSH"),{matches:be,pendingActionResult:[Ye.route.id,Ze,Ge.route.id]}}return{matches:be,pendingActionResult:[Ge.route.id,Ze]}}async function fn(G,X,ie,be,De,Ue,Ve,ze,We,Ze,Ge,Ye){let pt=Ue||X0(X,Ve),Lt=Ve||ze||oA(pt),En=!K&&!Ze;if(De){if(En){let Nn=qe(Ye);dt({navigation:pt,...Nn!==void 0?{actionData:Nn}:{}},{flushSync:Ge})}let gt=await hn(ie,X.pathname,G.signal);if(gt.type==="aborted")return{shortCircuited:!0};if(gt.type==="error"){let Nn=lo(gt.partialMatches).route.id;return{matches:gt.partialMatches,loaderData:{},errors:{[Nn]:gt.error}}}else if(gt.matches)ie=gt.matches;else{let{error:Nn,notFoundMatches:Hs,route:ia}=Cn(X.pathname);return{matches:Hs,loaderData:{},errors:{[ia.id]:Nn}}}}let bn=c||l,{dsMatches:ft,revalidatingFetchers:Ft}=Wx(G,be,a,s,e.history,w,ie,Lt,X,Ze?[]:r,Ze===!0,re,me,I,Le,P,bn,d,e.patchRoutesOnNavigation!=null,Ye);if(oe=++le,!e.dataStrategy&&!ft.some(gt=>gt.shouldLoad)&&Ft.length===0){let gt=yn();return He(X,{matches:ie,loaderData:{},errors:Ye&&Xr(Ye[1])?{[Ye[0]]:Ye[1].error}:null,...aA(Ye),...gt?{fetchers:new Map(w.fetchers)}:{}},{flushSync:Ge}),{shortCircuited:!0}}if(En){let gt={};if(!De){gt.navigation=pt;let Nn=qe(Ye);Nn!==void 0&&(gt.actionData=Nn)}Ft.length>0&&(gt.fetchers=Jn(Ft)),dt(gt,{flushSync:Ge})}Ft.forEach(gt=>{Ot(gt.key),gt.controller&&V.set(gt.key,gt.controller)});let Ga=()=>Ft.forEach(gt=>Ot(gt.key));W&&W.signal.addEventListener("abort",Ga);let{loaderResults:Hr,fetcherResults:vr}=await Ha(ft,Ft,G,be);if(G.signal.aborted)return{shortCircuited:!0};W&&W.signal.removeEventListener("abort",Ga),Ft.forEach(gt=>V.delete(gt.key));let aa=yh(Hr);if(aa)return await Ct(G,aa.result,!0,{replace:We}),{shortCircuited:!0};if(aa=yh(vr),aa)return P.add(aa.key),await Ct(G,aa.result,!0,{replace:We}),{shortCircuited:!0};let{loaderData:Go,errors:$i}=nA(w,ie,Hr,Ye,Ft,vr);Ze&&w.errors&&($i={...w.errors,...$i});let hi=yn(),pi=Sn(oe),mi=hi||pi||Ft.length>0;return{matches:ie,loaderData:Go,errors:$i,...mi?{fetchers:new Map(w.fetchers)}:{}}}function qe(G){if(G&&!Xr(G[1]))return{[G[0]]:G[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function Jn(G){return G.forEach(X=>{let ie=w.fetchers.get(X.key),be=gu(void 0,ie?ie.data:void 0);w.fetchers.set(X.key,be)}),new Map(w.fetchers)}async function an(G,X,ie,be){Ot(G);let De=(be&&be.flushSync)===!0,Ue=c||l,Ve=r1(w.location,w.matches,d,ie,X,be?.relative),ze=Ss(Ue,Ve,d),We=za(ze,Ue,Ve);if(We.active&&We.matches&&(ze=We.matches),!ze){ve(G,X,ya(404,{pathname:Ve}),{flushSync:De});return}let{path:Ze,submission:Ge,error:Ye}=$x(!0,Ve,be);if(Ye){ve(G,X,Ye,{flushSync:De});return}let pt=new Yx(e.unstable_getContext?await e.unstable_getContext():void 0),Lt=(be&&be.preventScrollReset)===!0;if(Ge&&Or(Ge.formMethod)){await on(G,X,Ze,ze,pt,We.active,De,Lt,Ge);return}Le.set(G,{routeId:X,path:Ze}),await Qe(G,X,Ze,ze,pt,We.active,De,Lt,Ge)}async function on(G,X,ie,be,De,Ue,Ve,ze,We){Rt(),Le.delete(G);let Ze=w.fetchers.get(G);ue(G,U5(We,Ze),{flushSync:Ve});let Ge=new AbortController,Ye=Ll(e.history,ie,Ge.signal,We);if(Ue){let pn=await hn(be,new URL(Ye.url).pathname,Ye.signal,G);if(pn.type==="aborted")return;if(pn.type==="error"){ve(G,X,pn.error,{flushSync:Ve});return}else if(pn.matches)be=pn.matches;else{ve(G,X,ya(404,{pathname:ie}),{flushSync:Ve});return}}let pt=Bh(be,ie);if(!pt.route.action&&!pt.route.lazy){let pn=ya(405,{method:We.formMethod,pathname:ie,routeId:X});ve(G,X,pn,{flushSync:Ve});return}V.set(G,Ge);let Lt=le,En=zl(a,s,Ye,be,pt,r,De),ft=(await Cr(Ye,En,De,G))[pt.route.id];if(Ye.signal.aborted){V.get(G)===Ge&&V.delete(G);return}if(I.has(G)){if(fo(ft)||Xr(ft)){ue(G,_s(void 0));return}}else{if(fo(ft))if(V.delete(G),oe>Lt){ue(G,_s(void 0));return}else return P.add(G),ue(G,gu(We)),Ct(Ye,ft,!1,{fetcherSubmission:We,preventScrollReset:ze});if(Xr(ft)){ve(G,X,ft.error);return}}let Ft=w.navigation.location||w.location,Ga=Ll(e.history,Ft,Ge.signal),Hr=c||l,vr=w.navigation.state!=="idle"?Ss(Hr,w.navigation.location,d):w.matches;Tt(vr,"Didn't find any matches after fetcher action");let aa=++le;ye.set(G,aa);let Go=gu(We,ft.data);w.fetchers.set(G,Go);let{dsMatches:$i,revalidatingFetchers:hi}=Wx(Ga,De,a,s,e.history,w,vr,We,Ft,r,!1,re,me,I,Le,P,Hr,d,e.patchRoutesOnNavigation!=null,[pt.route.id,ft]);hi.filter(pn=>pn.key!==G).forEach(pn=>{let Wi=pn.key,sf=w.fetchers.get(Wi),of=gu(void 0,sf?sf.data:void 0);w.fetchers.set(Wi,of),Ot(Wi),pn.controller&&V.set(Wi,pn.controller)}),dt({fetchers:new Map(w.fetchers)});let pi=()=>hi.forEach(pn=>Ot(pn.key));Ge.signal.addEventListener("abort",pi);let{loaderResults:mi,fetcherResults:gt}=await Ha($i,hi,Ga,De);if(Ge.signal.aborted)return;if(Ge.signal.removeEventListener("abort",pi),ye.delete(G),V.delete(G),hi.forEach(pn=>V.delete(pn.key)),w.fetchers.has(G)){let pn=_s(ft.data);w.fetchers.set(G,pn)}let Nn=yh(mi);if(Nn)return Ct(Ga,Nn.result,!1,{preventScrollReset:ze});if(Nn=yh(gt),Nn)return P.add(Nn.key),Ct(Ga,Nn.result,!1,{preventScrollReset:ze});let{loaderData:Hs,errors:ia}=nA(w,vr,mi,void 0,hi,gt);Sn(aa),w.navigation.state==="loading"&&aa>oe?(Tt(q,"Expected pending action"),W&&W.abort(),He(w.navigation.location,{matches:vr,loaderData:Hs,errors:ia,fetchers:new Map(w.fetchers)})):(dt({errors:ia,loaderData:rA(w.loaderData,Hs,vr,ia),fetchers:new Map(w.fetchers)}),re=!1)}async function Qe(G,X,ie,be,De,Ue,Ve,ze,We){let Ze=w.fetchers.get(G);ue(G,gu(We,Ze?Ze.data:void 0),{flushSync:Ve});let Ge=new AbortController,Ye=Ll(e.history,ie,Ge.signal);if(Ue){let Ft=await hn(be,new URL(Ye.url).pathname,Ye.signal,G);if(Ft.type==="aborted")return;if(Ft.type==="error"){ve(G,X,Ft.error,{flushSync:Ve});return}else if(Ft.matches)be=Ft.matches;else{ve(G,X,ya(404,{pathname:ie}),{flushSync:Ve});return}}let pt=Bh(be,ie);V.set(G,Ge);let Lt=le,En=zl(a,s,Ye,be,pt,r,De),ft=(await Cr(Ye,En,De,G))[pt.route.id];if(V.get(G)===Ge&&V.delete(G),!Ye.signal.aborted){if(I.has(G)){ue(G,_s(void 0));return}if(fo(ft))if(oe>Lt){ue(G,_s(void 0));return}else{P.add(G),await Ct(Ye,ft,!1,{preventScrollReset:ze});return}if(Xr(ft)){ve(G,X,ft.error);return}ue(G,_s(ft.data))}}async function Ct(G,X,ie,{submission:be,fetcherSubmission:De,preventScrollReset:Ue,replace:Ve}={}){X.response.headers.has("X-Remix-Revalidate")&&(re=!0);let ze=X.response.headers.get("Location");Tt(ze,"Expected a Location header on the redirect Response"),ze=eA(ze,new URL(G.url),d);let We=cd(w.location,ze,{_isRedirect:!0});if(n){let En=!1;if(X.response.headers.has("X-Remix-Reload-Document"))En=!0;else if(bE(ze)){const bn=J2(ze,!0);En=bn.origin!==t.location.origin||Ca(bn.pathname,d)==null}if(En){Ve?t.location.replace(ze):t.location.assign(ze);return}}W=null;let Ze=Ve===!0||X.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ge,formAction:Ye,formEncType:pt}=w.navigation;!be&&!De&&Ge&&Ye&&pt&&(be=oA(w.navigation));let Lt=be||De;if(T5.has(X.response.status)&&Lt&&Or(Lt.formMethod))await Fe(Ze,We,{submission:{...Lt,formAction:ze},preventScrollReset:Ue||ne,enableViewTransition:ie?k:void 0});else{let En=X0(We,be);await Fe(Ze,We,{overrideNavigation:En,fetcherSubmission:De,preventScrollReset:Ue||ne,enableViewTransition:ie?k:void 0})}}async function Cr(G,X,ie,be){let De,Ue={};try{De=await I5(f,G,X,be,ie,!1)}catch(Ve){return X.filter(ze=>ze.shouldLoad).forEach(ze=>{Ue[ze.route.id]={type:"error",error:Ve}}),Ue}if(G.signal.aborted)return Ue;for(let[Ve,ze]of Object.entries(De))if(F5(ze)){let We=ze.result;Ue[Ve]={type:"redirect",response:L5(We,G,Ve,X,d)}}else Ue[Ve]=await O5(ze);return Ue}async function Ha(G,X,ie,be){let De=Cr(ie,G,be,null),Ue=Promise.all(X.map(async We=>{if(We.matches&&We.match&&We.request&&We.controller){let Ge=(await Cr(We.request,We.matches,be,We.key))[We.match.route.id];return{[We.key]:Ge}}else return Promise.resolve({[We.key]:{type:"error",error:ya(404,{pathname:We.path})}})})),Ve=await De,ze=(await Ue).reduce((We,Ze)=>Object.assign(We,Ze),{});return{loaderResults:Ve,fetcherResults:ze}}function Rt(){re=!0,Le.forEach((G,X)=>{V.has(X)&&me.add(X),Ot(X)})}function ue(G,X,ie={}){w.fetchers.set(G,X),dt({fetchers:new Map(w.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ve(G,X,ie,be={}){let De=lo(w.matches,X);nt(G),dt({errors:{[De.route.id]:ie},fetchers:new Map(w.fetchers)},{flushSync:(be&&be.flushSync)===!0})}function Be(G){return ce.set(G,(ce.get(G)||0)+1),I.has(G)&&I.delete(G),w.fetchers.get(G)||_5}function nt(G){let X=w.fetchers.get(G);V.has(G)&&!(X&&X.state==="loading"&&ye.has(G))&&Ot(G),Le.delete(G),ye.delete(G),P.delete(G),I.delete(G),me.delete(G),w.fetchers.delete(G)}function Dt(G){let X=(ce.get(G)||0)-1;X<=0?(ce.delete(G),I.add(G)):ce.set(G,X),dt({fetchers:new Map(w.fetchers)})}function Ot(G){let X=V.get(G);X&&(X.abort(),V.delete(G))}function qn(G){for(let X of G){let ie=Be(X),be=_s(ie.data);w.fetchers.set(X,be)}}function yn(){let G=[],X=!1;for(let ie of P){let be=w.fetchers.get(ie);Tt(be,`Expected fetcher: ${ie}`),be.state==="loading"&&(P.delete(ie),G.push(ie),X=!0)}return qn(G),X}function Sn(G){let X=[];for(let[ie,be]of ye)if(be<G){let De=w.fetchers.get(ie);Tt(De,`Expected fetcher: ${ie}`),De.state==="loading"&&(Ot(ie),ye.delete(ie),X.push(ie))}return qn(X),X.length>0}function _e(G,X){let ie=w.blockers.get(G)||mu;return te.get(G)!==X&&te.set(G,X),ie}function Te(G){w.blockers.delete(G),te.delete(G)}function st(G,X){let ie=w.blockers.get(G)||mu;Tt(ie.state==="unblocked"&&X.state==="blocked"||ie.state==="blocked"&&X.state==="blocked"||ie.state==="blocked"&&X.state==="proceeding"||ie.state==="blocked"&&X.state==="unblocked"||ie.state==="proceeding"&&X.state==="unblocked",`Invalid blocker state transition: ${ie.state} -> ${X.state}`);let be=new Map(w.blockers);be.set(G,X),dt({blockers:be})}function Ke({currentLocation:G,nextLocation:X,historyAction:ie}){if(te.size===0)return;te.size>1&&jn(!1,"A router only supports one blocker at a time");let be=Array.from(te.entries()),[De,Ue]=be[be.length-1],Ve=w.blockers.get(De);if(!(Ve&&Ve.state==="proceeding")&&Ue({currentLocation:G,nextLocation:X,historyAction:ie}))return De}function Cn(G){let X=ya(404,{pathname:G}),ie=c||l,{matches:be,route:De}=iA(ie);return{notFoundMatches:be,route:De,error:X}}function Br(G,X,ie){if(y=G,A=X,T=ie||null,!C&&w.navigation===K0){C=!0;let be=cr(w.location,w.matches);be!=null&&dt({restoreScrollPosition:be})}return()=>{y=null,A=null,T=null}}function br(G,X){return T&&T(G,X.map(be=>Z4(be,w.loaderData)))||G.key}function lr(G,X){if(y&&A){let ie=br(G,X);y[ie]=A()}}function cr(G,X){if(y){let ie=br(G,X),be=y[ie];if(typeof be=="number")return be}return null}function za(G,X,ie){if(e.patchRoutesOnNavigation)if(G){if(Object.keys(G[0].params).length>0)return{active:!0,matches:jh(X,ie,d,!0)}}else return{active:!0,matches:jh(X,ie,d,!0)||[]};return{active:!1,matches:null}}async function hn(G,X,ie,be){if(!e.patchRoutesOnNavigation)return{type:"success",matches:G};let De=G;for(;;){let Ue=c==null,Ve=c||l,ze=s;try{await e.patchRoutesOnNavigation({signal:ie,path:X,matches:De,fetcherKey:be,patch:(Ge,Ye)=>{ie.aborted||Kx(Ge,Ye,Ve,ze,a,!1)}})}catch(Ge){return{type:"error",error:Ge,partialMatches:De}}finally{Ue&&!ie.aborted&&(l=[...l])}if(ie.aborted)return{type:"aborted"};let We=Ss(Ve,X,d);if(We)return{type:"success",matches:We};let Ze=jh(Ve,X,d,!0);if(!Ze||De.length===Ze.length&&De.every((Ge,Ye)=>Ge.route.id===Ze[Ye].route.id))return{type:"success",matches:null};De=Ze}}function Ur(G){s={},c=ud(G,a,void 0,s)}function Ra(G,X,ie=!1){let be=c==null;Kx(G,X,c||l,s,a,ie),be&&(l=[...l],dt({}))}return M={get basename(){return d},get future(){return p},get state(){return w},get routes(){return l},get window(){return t},initialize:Pe,subscribe:ot,enableScrollRestoration:Br,navigate:Wt,fetch:an,revalidate:Nt,createHref:G=>e.history.createHref(G),encodeLocation:G=>e.history.encodeLocation(G),getFetcher:Be,deleteFetcher:Dt,dispose:Me,getBlocker:_e,deleteBlocker:Te,patchRoutes:Ra,_internalFetchControllers:V,_internalSetRoutes:Ur,_internalSetStateDoNotUseOrYouWillBreakYourApp(G){dt(G)}},M}function C5(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function r1(e,t,n,r,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let d=EE(r||".",yE(l),Ca(e.pathname,n)||e.pathname,s==="path");if(r==null&&(d.search=e.search,d.hash=e.hash),(r==null||r===""||r===".")&&c){let f=vE(d.search);if(c.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let p=new URLSearchParams(d.search),m=p.getAll("index");p.delete("index"),m.filter(y=>y).forEach(y=>p.append("index",y));let E=p.toString();d.search=E?`?${E}`:""}}return n!=="/"&&(d.pathname=d5({basename:n,pathname:d.pathname})),Os(d)}function $x(e,t,n){if(!n||!C5(n))return{path:t};if(n.formMethod&&!j5(n.formMethod))return{path:t,error:ya(405,{method:n.formMethod})};let r=()=>({path:t,error:ya(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),l=dD(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Or(s))return r();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((E,[y,T])=>`${E}${y}=${T}
36
+ `,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!Or(s))return r();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}Tt(typeof FormData=="function","FormData is not available in this environment");let c,d;if(n.formData)c=s1(n.formData),d=n.formData;else if(n.body instanceof FormData)c=s1(n.body),d=n.body;else if(n.body instanceof URLSearchParams)c=n.body,d=tA(c);else if(n.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(n.body),d=tA(c)}catch{return r()}let f={formMethod:s,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Or(f.formMethod))return{path:t,submission:f};let p=Ps(t);return e&&p.search&&vE(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Os(p),submission:f}}function Wx(e,t,n,r,a,s,l,c,d,f,p,m,E,y,T,A,C,x,D,S){let L=S?Xr(S[1])?S[1].error:S[1].data:void 0,M=a.createURL(s.location),w=a.createURL(d),q;if(p&&s.errors){let K=Object.keys(s.errors)[0];q=l.findIndex(re=>re.route.id===K)}else if(S&&Xr(S[1])){let K=S[0];q=l.findIndex(re=>re.route.id===K)-1}let ne=S?S[1].statusCode:void 0,W=ne&&ne>=400,k={currentUrl:M,currentParams:s.matches[0]?.params||{},nextUrl:w,nextParams:l[0].params,...c,actionResult:L,actionStatus:ne},z=l.map((K,re)=>{let{route:me}=K,V=null;if(q!=null&&re>q?V=!1:me.lazy?V=!0:me.loader==null?V=!1:p?V=a1(me,s.loaderData,s.errors):D5(s.loaderData,s.matches[re],K)&&(V=!0),V!==null)return i1(n,r,e,K,f,t,V);let le=W?!1:m||M.pathname+M.search===w.pathname+w.search||M.search!==w.search||k5(s.matches[re],K),oe={...k,defaultShouldRevalidate:le},ye=up(K,oe);return i1(n,r,e,K,f,t,ye,oe)}),$=[];return T.forEach((K,re)=>{if(p||!l.some(ce=>ce.route.id===K.routeId)||y.has(re))return;let me=s.fetchers.get(re),V=me&&me.state!=="idle"&&me.data===void 0,le=Ss(C,K.path,x);if(!le){if(D&&V)return;$.push({key:re,routeId:K.routeId,path:K.path,matches:null,match:null,request:null,controller:null});return}if(A.has(re))return;let oe=Bh(le,K.path),ye=new AbortController,P=Ll(a,K.path,ye.signal),Le=null;if(E.has(re))E.delete(re),Le=zl(n,r,P,le,oe,f,t);else if(V)m&&(Le=zl(n,r,P,le,oe,f,t));else{let ce={...k,defaultShouldRevalidate:W?!1:m};up(oe,ce)&&(Le=zl(n,r,P,le,oe,f,t,ce))}Le&&$.push({key:re,routeId:K.routeId,path:K.path,matches:Le,match:oe,request:P,controller:ye})}),{dsMatches:z,revalidatingFetchers:$}}function a1(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,a=n!=null&&n[e.id]!==void 0;return!r&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!a}function D5(e,t,n){let r=!t||n.route.id!==t.route.id,a=!e.hasOwnProperty(n.route.id);return r||a}function k5(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function up(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Kx(e,t,n,r,a,s){let l;if(e){let f=r[e];Tt(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),l=f.children}else l=n;let c=[],d=[];if(t.forEach(f=>{let p=l.find(m=>sD(f,m));p?d.push({existingRoute:p,newRoute:f}):c.push(f)}),c.length>0){let f=ud(c,a,[e||"_","patch",String(l?.length||"0")],r);l.push(...f)}if(s&&d.length>0)for(let f=0;f<d.length;f++){let{existingRoute:p,newRoute:m}=d[f],E=p,[y]=ud([m],a,[],{},!0);Object.assign(E,{element:y.element?y.element:E.element,errorElement:y.errorElement?y.errorElement:E.errorElement,hydrateFallbackElement:y.hydrateFallbackElement?y.hydrateFallbackElement:E.hydrateFallbackElement})}}function sD(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(a=>sD(n,a))):!1}var Xx=new WeakMap,oD=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let a=n[t.id];if(Tt(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let s=a.lazy[e];if(!s)return;let l=Xx.get(a);l||(l={},Xx.set(a,l));let c=l[e];if(c)return c;let d=(async()=>{let f=$4(e),m=a[e]!==void 0&&e!=="hasErrorBoundary";if(f)jn(!f,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(m)jn(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let E=await s();E!=null&&(Object.assign(a,{[e]:E}),Object.assign(a,r(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(E=>E===void 0)&&(a.lazy=void 0))})();return l[e]=d,d},Zx=new WeakMap;function R5(e,t,n,r,a){let s=n[e.id];if(Tt(s,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=Zx.get(s);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let m=(async()=>{Tt(typeof e.lazy=="function","No lazy route function found");let E=await e.lazy(),y={};for(let T in E){let A=E[T];if(A===void 0)continue;let C=K4(T),D=s[T]!==void 0&&T!=="hasErrorBoundary";C?jn(!C,"Route property "+T+" is not a supported property to be returned from a lazy route function. This property will be ignored."):D?jn(!D,`Route "${s.id}" has a static property "${T}" defined but its lazy function is also returning a value for this property. The lazy route property "${T}" will be ignored.`):y[T]=A}Object.assign(s,y),Object.assign(s,{...r(s),lazy:void 0})})();return Zx.set(s,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let l=Object.keys(e.lazy),c=[],d;for(let p of l){if(a&&a.includes(p))continue;let m=oD({key:p,route:e,manifest:n,mapRouteProperties:r});m&&(c.push(m),p===t&&(d=m))}let f=c.length>0?Promise.all(c).then(()=>{}):void 0;return f?.catch(()=>{}),d?.catch(()=>{}),{lazyRoutePromise:f,lazyHandlerPromise:d}}async function Jx(e){let t=e.matches.filter(a=>a.shouldLoad),n={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,s)=>{n[t[s].route.id]=a}),n}async function w5(e){return e.matches.some(t=>t.route.unstable_middleware)?lD(e,!1,()=>Jx(e),(t,n)=>({[n]:{type:"error",result:t}})):Jx(e)}async function lD(e,t,n,r){let{matches:a,request:s,params:l,context:c}=e,d={handlerResult:void 0};try{let f=a.flatMap(m=>m.route.unstable_middleware?m.route.unstable_middleware.map(E=>[m.route.id,E]):[]),p=await cD({request:s,params:l,context:c},f,t,d,n);return t?p:d.handlerResult}catch(f){if(!d.middlewareError)throw f;let p=await r(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,p):p}}async function cD(e,t,n,r,a,s=0){let{request:l}=e;if(l.signal.aborted)throw l.signal.reason?l.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${l.method} ${l.url}`);let c=t[s];if(!c)return r.handlerResult=await a(),r.handlerResult;let[d,f]=c,p=!1,m,E=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0,await cD(e,t,n,r,a,s+1)};try{let y=await f({request:e.request,params:e.params,context:e.context},E);return p?y===void 0?m:y:E()}catch(y){throw r.middlewareError?r.middlewareError.error!==y&&(r.middlewareError={routeId:d,error:y}):r.middlewareError={routeId:d,error:y},y}}function uD(e,t,n,r,a){let s=oD({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),l=R5(r.route,Or(n.method)?"action":"loader",t,e,a);return{middleware:s,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function i1(e,t,n,r,a,s,l,c=null){let d=!1,f=uD(e,t,n,r,a);return{...r,_lazyPromises:f,shouldLoad:l,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(p){return d=!0,c?typeof p=="boolean"?up(r,{...c,defaultShouldRevalidate:p}):up(r,c):l},resolve(p){return d||l||p&&!Or(n.method)&&(r.route.lazy||r.route.loader)?N5({request:n,match:r,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:p,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function zl(e,t,n,r,a,s,l,c=null){return r.map(d=>d.route.id!==a.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler:()=>!1,_lazyPromises:uD(e,t,n,d,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:i1(e,t,n,d,s,l,!0,c))}async function I5(e,t,n,r,a,s){n.some(f=>f._lazyPromises?.middleware)&&await Promise.all(n.map(f=>f._lazyPromises?.middleware));let l={request:t,params:n[0].params,context:a,matches:n},d=await e({...l,fetcherKey:r,unstable_runClientMiddleware:f=>{let p=l;return lD(p,!1,()=>f({...p,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(m,E)=>({[E]:{type:"error",result:m}}))}});try{await Promise.all(n.flatMap(f=>[f._lazyPromises?.handler,f._lazyPromises?.route]))}catch{}return d}async function N5({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:a,scopedContext:s}){let l,c,d=Or(e.method),f=d?"action":"loader",p=m=>{let E,y=new Promise((C,x)=>E=x);c=()=>E(),e.signal.addEventListener("abort",c);let T=C=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${f}" [routeId: ${t.route.id}]`)):m({request:e,params:t.params,context:s},...C!==void 0?[C]:[]),A=(async()=>{try{return{type:"data",result:await(a?a(x=>T(x)):T())}}catch(C){return{type:"error",result:C}}})();return Promise.race([A,y])};try{let m=d?t.route.action:t.route.loader;if(n||r)if(m){let E,[y]=await Promise.all([p(m).catch(T=>{E=T}),n,r]);if(E!==void 0)throw E;l=y}else{await n;let E=d?t.route.action:t.route.loader;if(E)[l]=await Promise.all([p(E),r]);else if(f==="action"){let y=new URL(e.url),T=y.pathname+y.search;throw ya(405,{method:e.method,pathname:T,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(m)l=await p(m);else{let E=new URL(e.url),y=E.pathname+E.search;throw ya(404,{pathname:y})}}catch(m){return{type:"error",result:m}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function O5(e){let{result:t,type:n}=e;if(fD(t)){let r;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?r=null:r=await t.json():r=await t.text()}catch(a){return{type:"error",error:a}}return n==="error"?{type:"error",error:new cp(t.status,t.statusText,r),statusCode:t.status,headers:t.headers}:{type:"data",data:r,statusCode:t.status,headers:t.headers}}return n==="error"?sA(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 cp(t.init?.status||500,void 0,t.data),statusCode:dd(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:dd(t)?t.status:void 0}:sA(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 L5(e,t,n,r,a){let s=e.headers.get("Location");if(Tt(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!bE(s)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);s=r1(new URL(t.url),l,a,s),e.headers.set("Location",s)}return e}function eA(e,t,n){if(bE(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),s=Ca(a.pathname,n)!=null;if(a.origin===t.origin&&s)return a.pathname+a.search+a.hash}return e}function Ll(e,t,n,r){let a=e.createURL(dD(t)).toString(),s={signal:n};if(r&&Or(r.formMethod)){let{formMethod:l,formEncType:c}=r;s.method=l.toUpperCase(),c==="application/json"?(s.headers=new Headers({"Content-Type":c}),s.body=JSON.stringify(r.json)):c==="text/plain"?s.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?s.body=s1(r.formData):s.body=r.formData}return new Request(a,s)}function s1(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function tA(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function M5(e,t,n,r=!1,a=!1){let s={},l=null,c,d=!1,f={},p=n&&Xr(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let E=m.route.id,y=t[E];if(Tt(!fo(y),"Cannot handle redirect results in processLoaderData"),Xr(y)){let T=y.error;if(p!==void 0&&(T=p,p=void 0),l=l||{},a)l[E]=T;else{let A=lo(e,E);l[A.route.id]==null&&(l[A.route.id]=T)}r||(s[E]=iD),d||(d=!0,c=dd(y.error)?y.error.status:500),y.headers&&(f[E]=y.headers)}else s[E]=y.data,y.statusCode&&y.statusCode!==200&&!d&&(c=y.statusCode),y.headers&&(f[E]=y.headers)}),p!==void 0&&n&&(l={[n[0]]:p},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:l,statusCode:c||200,loaderHeaders:f}}function nA(e,t,n,r,a,s){let{loaderData:l,errors:c}=M5(t,n,r);return a.filter(d=>!d.matches||d.matches.some(f=>f.shouldLoad)).forEach(d=>{let{key:f,match:p,controller:m}=d,E=s[f];if(Tt(E,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Xr(E)){let y=lo(e.matches,p?.route.id);c&&c[y.route.id]||(c={...c,[y.route.id]:E.error}),e.fetchers.delete(f)}else if(fo(E))Tt(!1,"Unhandled fetcher revalidation redirect");else{let y=_s(E.data);e.fetchers.set(f,y)}}),{loaderData:l,errors:c}}function rA(e,t,n,r){let a=Object.entries(t).filter(([,s])=>s!==iD).reduce((s,[l,c])=>(s[l]=c,s),{});for(let s of n){let l=s.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&s.route.loader&&(a[l]=e[l]),r&&r.hasOwnProperty(l))break}return a}function aA(e){return e?Xr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function lo(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 iA(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 ya(e,{pathname:t,routeId:n,method:r,type:a,message:s}={}){let l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",r&&t&&n?c=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c=`Route "${n}" does not match URL "${t}"`):e===404?(l="Not Found",c=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",r&&t&&n?c=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new cp(e||500,l,new Error(c),!0)}function yh(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,a]=t[n];if(fo(a))return{key:r,result:a}}}function dD(e){let t=typeof e=="string"?Ps(e):e;return Os({...t,hash:""})}function P5(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function F5(e){return fD(e.result)&&v5.has(e.result.status)}function Xr(e){return e.type==="error"}function fo(e){return(e&&e.type)==="redirect"}function sA(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function fD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function j5(e){return b5.has(e.toUpperCase())}function Or(e){return y5.has(e.toUpperCase())}function vE(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Bh(e,t){let n=typeof t=="string"?Ps(t).search:t.search;if(e[e.length-1].route.index&&vE(n||""))return e[e.length-1];let r=nD(e);return r[r.length-1]}function oA(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:s,json:l}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function X0(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 B5(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 gu(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 U5(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 _s(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 H5(e,t){try{let n=e.sessionStorage.getItem(aD);if(n){let r=JSON.parse(n);for(let[a,s]of Object.entries(r||{}))s&&Array.isArray(s)&&t.set(a,new Set(s||[]))}}catch{}}function z5(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(aD,JSON.stringify(n))}catch(r){jn(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function G5(){let e,t,n=new Promise((r,a)=>{e=async s=>{r(s);try{await n}catch{}},t=async s=>{a(s);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Po=N.createContext(null);Po.displayName="DataRouter";var Ld=N.createContext(null);Ld.displayName="DataRouterState";N.createContext(!1);var TE=N.createContext({isTransitioning:!1});TE.displayName="ViewTransition";var hD=N.createContext(new Map);hD.displayName="Fetchers";var V5=N.createContext(null);V5.displayName="Await";var ci=N.createContext(null);ci.displayName="Navigation";var $p=N.createContext(null);$p.displayName="Location";var ja=N.createContext({outlet:null,matches:[],isDataRoute:!1});ja.displayName="Route";var _E=N.createContext(null);_E.displayName="RouteError";function q5(e,{relative:t}={}){Tt(Md(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=N.useContext(ci),{hash:a,pathname:s,search:l}=Pd(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:ii([n,s])),r.createHref({pathname:c,search:l,hash:a})}function Md(){return N.useContext($p)!=null}function Fo(){return Tt(Md(),"useLocation() may be used only in the context of a <Router> component."),N.useContext($p).location}var pD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function mD(e){N.useContext(ci).static||N.useLayoutEffect(e)}function xE(){let{isDataRoute:e}=N.useContext(ja);return e?i6():Y5()}function Y5(){Tt(Md(),"useNavigate() may be used only in the context of a <Router> component.");let e=N.useContext(Po),{basename:t,navigator:n}=N.useContext(ci),{matches:r}=N.useContext(ja),{pathname:a}=Fo(),s=JSON.stringify(yE(r)),l=N.useRef(!1);return mD(()=>{l.current=!0}),N.useCallback((d,f={})=>{if(jn(l.current,pD),!l.current)return;if(typeof d=="number"){n.go(d);return}let p=EE(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:ii([t,p.pathname])),(f.replace?n.replace:n.push)(p,f.state,f)},[t,n,s,a,e])}var Q5=N.createContext(null);function $5(e){let t=N.useContext(ja).outlet;return t&&N.createElement(Q5.Provider,{value:e},t)}function sc(){let{matches:e}=N.useContext(ja),t=e[e.length-1];return t?t.params:{}}function Pd(e,{relative:t}={}){let{matches:n}=N.useContext(ja),{pathname:r}=Fo(),a=JSON.stringify(yE(n));return N.useMemo(()=>EE(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function W5(e,t,n,r){Tt(Md(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=N.useContext(ci),{matches:s}=N.useContext(ja),l=s[s.length-1],c=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",p=l&&l.route;{let x=p&&p.path||"";yD(d,!p||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${x}">) 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.
37
+
38
+ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let m=Fo(),E;E=m;let y=E.pathname||"/",T=y;if(f!=="/"){let x=f.replace(/^\//,"").split("/");T="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let A=Ss(e,{pathname:T});return jn(p||A!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),jn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.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.`),e6(A&&A.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:ii([f,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:ii([f,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r)}function K5(){let e=gD(),t=dd(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)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:s},"ErrorBoundary")," or"," ",N.createElement("code",{style:s},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:a},n):null,l)}var X5=N.createElement(K5,null),Z5=class extends N.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?N.createElement(ja.Provider,{value:this.props.routeContext},N.createElement(_E.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function J5({routeContext:e,match:t,children:n}){let r=N.useContext(Po);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(ja.Provider,{value:e},n)}function e6(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 a=e,s=n?.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);Tt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:p,errors:m}=n,E=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!m||m[f.route.id]===void 0);if(f.route.lazy||E){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let m,E=!1,y=null,T=null;n&&(m=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||X5,l&&(c<0&&p===0?(yD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,T=null):c===p&&(E=!0,T=f.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,p+1)),C=()=>{let x;return m?x=y:E?x=T:f.route.Component?x=N.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,N.createElement(J5,{match:f,routeContext:{outlet:d,matches:A,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?N.createElement(Z5,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:C(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):C()},null)}function AE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function t6(e){let t=N.useContext(Po);return Tt(t,AE(e)),t}function n6(e){let t=N.useContext(Ld);return Tt(t,AE(e)),t}function r6(e){let t=N.useContext(ja);return Tt(t,AE(e)),t}function SE(e){let t=r6(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function a6(){return SE("useRouteId")}function gD(){let e=N.useContext(_E),t=n6("useRouteError"),n=SE("useRouteError");return e!==void 0?e:t.errors?.[n]}function i6(){let{router:e}=t6("useNavigate"),t=SE("useNavigate"),n=N.useRef(!1);return mD(()=>{n.current=!0}),N.useCallback(async(a,s={})=>{jn(n.current,pD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var lA={};function yD(e,t,n){!t&&!lA[e]&&(lA[e]=!0,jn(!1,n))}var cA={};function uA(e,t){!e&&!cA[t]&&(cA[t]=!0,console.warn(t))}function s6(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&jn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:N.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&jn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&jn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var o6=["HydrateFallback","hydrateFallbackElement"],l6=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 c6({router:e,flushSync:t}){let[n,r]=N.useState(e.state),[a,s]=N.useState(),[l,c]=N.useState({isTransitioning:!1}),[d,f]=N.useState(),[p,m]=N.useState(),[E,y]=N.useState(),T=N.useRef(new Map),A=N.useCallback((S,{deletedFetchers:L,flushSync:M,viewTransitionOpts:w})=>{S.fetchers.forEach((ne,W)=>{ne.data!==void 0&&T.current.set(W,ne.data)}),L.forEach(ne=>T.current.delete(ne)),uA(M===!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 q=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(uA(w==null||q,"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."),!w||!q){t&&M?t(()=>r(S)):N.startTransition(()=>r(S));return}if(t&&M){t(()=>{p&&(d&&d.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:w.currentLocation,nextLocation:w.nextLocation})});let ne=e.window.document.startViewTransition(()=>{t(()=>r(S))});ne.finished.finally(()=>{t(()=>{f(void 0),m(void 0),s(void 0),c({isTransitioning:!1})})}),t(()=>m(ne));return}p?(d&&d.resolve(),p.skipTransition(),y({state:S,currentLocation:w.currentLocation,nextLocation:w.nextLocation})):(s(S),c({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}))},[e.window,t,p,d]);N.useLayoutEffect(()=>e.subscribe(A),[e,A]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new l6)},[l]),N.useEffect(()=>{if(d&&a&&e.window){let S=a,L=d.promise,M=e.window.document.startViewTransition(async()=>{N.startTransition(()=>r(S)),await L});M.finished.finally(()=>{f(void 0),m(void 0),s(void 0),c({isTransitioning:!1})}),m(M)}},[a,d,e.window]),N.useEffect(()=>{d&&a&&n.location.key===a.location.key&&d.resolve()},[d,p,n.location,a]),N.useEffect(()=>{!l.isTransitioning&&E&&(s(E.state),c({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),y(void 0))},[l.isTransitioning,E]);let C=N.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:S=>e.navigate(S),push:(S,L,M)=>e.navigate(S,{state:L,preventScrollReset:M?.preventScrollReset}),replace:(S,L,M)=>e.navigate(S,{replace:!0,state:L,preventScrollReset:M?.preventScrollReset})}),[e]),x=e.basename||"/",D=N.useMemo(()=>({router:e,navigator:C,static:!1,basename:x}),[e,C,x]);return N.createElement(N.Fragment,null,N.createElement(Po.Provider,{value:D},N.createElement(Ld.Provider,{value:n},N.createElement(hD.Provider,{value:T.current},N.createElement(TE.Provider,{value:l},N.createElement(h6,{basename:x,location:n.location,navigationType:n.historyAction,navigator:C},N.createElement(u6,{routes:e.routes,future:e.future,state:n})))))),null)}var u6=N.memo(d6);function d6({routes:e,future:t,state:n}){return W5(e,void 0,n,t)}function f6(e){return $5(e.context)}function h6({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){Tt(!Md(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Ps(n));let{pathname:d="/",search:f="",hash:p="",state:m=null,key:E="default"}=n,y=N.useMemo(()=>{let T=Ca(d,l);return T==null?null:{location:{pathname:T,search:f,hash:p,state:m,key:E},navigationType:r}},[l,d,f,p,m,E,r]);return jn(y!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:N.createElement(ci.Provider,{value:c},N.createElement($p.Provider,{children:t,value:y}))}var Uh="get",Hh="application/x-www-form-urlencoded";function Wp(e){return e!=null&&typeof e.tagName=="string"}function p6(e){return Wp(e)&&e.tagName.toLowerCase()==="button"}function m6(e){return Wp(e)&&e.tagName.toLowerCase()==="form"}function g6(e){return Wp(e)&&e.tagName.toLowerCase()==="input"}function y6(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function E6(e,t){return e.button===0&&(!t||t==="_self")&&!y6(e)}var Eh=null;function b6(){if(Eh===null)try{new FormData(document.createElement("form"),0),Eh=!1}catch{Eh=!0}return Eh}var v6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Z0(e){return e!=null&&!v6.has(e)?(jn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hh}"`),null):e}function T6(e,t){let n,r,a,s,l;if(m6(e)){let c=e.getAttribute("action");r=c?Ca(c,t):null,n=e.getAttribute("method")||Uh,a=Z0(e.getAttribute("enctype"))||Hh,s=new FormData(e)}else if(p6(e)||g6(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?Ca(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Uh,a=Z0(e.getAttribute("formenctype"))||Z0(c.getAttribute("enctype"))||Hh,s=new FormData(c,e),!b6()){let{name:f,type:p,value:m}=e;if(p==="image"){let E=f?`${f}.`:"";s.append(`${E}x`,"0"),s.append(`${E}y`,"0")}else f&&s.append(f,m)}}else{if(Wp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Uh,r=null,a=Hh,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function CE(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _6(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Ca(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function x6(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 A6(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 S6(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await x6(s,n);return l.links?l.links():[]}return[]}));return R6(r.flat(1).filter(A6).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function dA(e,t,n,r,a,s){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,c=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,f)=>l(d,f)||c(d,f)):s==="data"?t.filter((d,f)=>{let p=r.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(l(d,f)||c(d,f))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function C6(e,t,{includeHydrateFallback:n}={}){return D6(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function D6(e){return[...new Set(e)]}function k6(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function R6(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(k6(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function ED(){let e=N.useContext(Po);return CE(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function w6(){let e=N.useContext(Ld);return CE(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var DE=N.createContext(void 0);DE.displayName="FrameworkContext";function bD(){let e=N.useContext(DE);return CE(e,"You must render this element inside a <HydratedRouter> element"),e}function I6(e,t){let n=N.useContext(DE),[r,a]=N.useState(!1),[s,l]=N.useState(!1),{onFocus:c,onBlur:d,onMouseEnter:f,onMouseLeave:p,onTouchStart:m}=t,E=N.useRef(null);N.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=x=>{x.forEach(D=>{l(D.isIntersecting)})},C=new IntersectionObserver(A,{threshold:.5});return E.current&&C.observe(E.current),()=>{C.disconnect()}}},[e]),N.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let y=()=>{a(!0)},T=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,E,{}]:[s,E,{onFocus:yu(c,y),onBlur:yu(d,T),onMouseEnter:yu(f,y),onMouseLeave:yu(p,T),onTouchStart:yu(m,y)}]:[!1,E,{}]}function yu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function N6({page:e,...t}){let{router:n}=ED(),r=N.useMemo(()=>Ss(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?N.createElement(L6,{page:e,matches:r,...t}):null}function O6(e){let{manifest:t,routeModules:n}=bD(),[r,a]=N.useState([]);return N.useEffect(()=>{let s=!1;return S6(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function L6({page:e,matches:t,...n}){let r=Fo(),{manifest:a,routeModules:s}=bD(),{basename:l}=ED(),{loaderData:c,matches:d}=w6(),f=N.useMemo(()=>dA(e,t,d,a,r,"data"),[e,t,d,a,r]),p=N.useMemo(()=>dA(e,t,d,a,r,"assets"),[e,t,d,a,r]),m=N.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,A=!1;if(t.forEach(x=>{let D=a.routes[x.route.id];!D||!D.hasLoader||(!f.some(S=>S.route.id===x.route.id)&&x.route.id in c&&s[x.route.id]?.shouldRevalidate||D.hasClientLoader?A=!0:T.add(x.route.id))}),T.size===0)return[];let C=_6(e,l,"data");return A&&T.size>0&&C.searchParams.set("_routes",t.filter(x=>T.has(x.route.id)).map(x=>x.route.id).join(",")),[C.pathname+C.search]},[l,c,r,a,f,t,e,s]),E=N.useMemo(()=>C6(p,a),[p,a]),y=O6(p);return N.createElement(N.Fragment,null,m.map(T=>N.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...n})),E.map(T=>N.createElement("link",{key:T,rel:"modulepreload",href:T,...n})),y.map(({key:T,link:A})=>N.createElement("link",{key:T,...A})))}function M6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var vD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vD&&(window.__reactRouterVersion="7.7.1")}catch{}function P6(e,t){return S5({basename:t?.basename,unstable_getContext:t?.unstable_getContext,future:t?.future,history:V4({window:t?.window}),hydrationData:F6(),routes:e,mapRouteProperties:s6,hydrationRouteProperties:o6,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function F6(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:j6(e.errors)}),e}function j6(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new cp(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let s=window[a.__subType];if(typeof s=="function")try{let l=new s(a.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let s=new Error(a.message);s.stack="",n[r]=s}}else n[r]=a;return n}var TD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_D=N.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,state:c,target:d,to:f,preventScrollReset:p,viewTransition:m,...E},y){let{basename:T}=N.useContext(ci),A=typeof f=="string"&&TD.test(f),C,x=!1;if(typeof f=="string"&&A&&(C=f,vD))try{let W=new URL(window.location.href),k=f.startsWith("//")?new URL(W.protocol+f):new URL(f),z=Ca(k.pathname,T);k.origin===W.origin&&z!=null?f=z+k.search+k.hash:x=!0}catch{jn(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=q5(f,{relative:a}),[S,L,M]=I6(r,E),w=z6(f,{replace:l,state:c,target:d,preventScrollReset:p,relative:a,viewTransition:m});function q(W){t&&t(W),W.defaultPrevented||w(W)}let ne=N.createElement("a",{...E,...M,href:C||D,onClick:x||s?t:q,ref:M6(y,L),target:d,"data-discover":!A&&n==="render"?"true":void 0});return S&&!A?N.createElement(N.Fragment,null,ne,N.createElement(N6,{page:D})):ne});_D.displayName="Link";var B6=N.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:c,children:d,...f},p){let m=Pd(l,{relative:f.relative}),E=Fo(),y=N.useContext(Ld),{navigator:T,basename:A}=N.useContext(ci),C=y!=null&&Q6(m)&&c===!0,x=T.encodeLocation?T.encodeLocation(m).pathname:m.pathname,D=E.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(D=D.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&A&&(S=Ca(S,A)||S);const L=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let M=D===x||!a&&D.startsWith(x)&&D.charAt(L)==="/",w=S!=null&&(S===x||!a&&S.startsWith(x)&&S.charAt(x.length)==="/"),q={isActive:M,isPending:w,isTransitioning:C},ne=M?t:void 0,W;typeof r=="function"?W=r(q):W=[r,M?"active":null,w?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let k=typeof s=="function"?s(q):s;return N.createElement(_D,{...f,"aria-current":ne,className:W,ref:p,style:k,to:l,viewTransition:c},typeof d=="function"?d(q):d)});B6.displayName="NavLink";var U6=N.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=Uh,action:c,onSubmit:d,relative:f,preventScrollReset:p,viewTransition:m,...E},y)=>{let T=q6(),A=Y6(c,{relative:f}),C=l.toLowerCase()==="get"?"get":"post",x=typeof c=="string"&&TD.test(c),D=S=>{if(d&&d(S),S.defaultPrevented)return;S.preventDefault();let L=S.nativeEvent.submitter,M=L?.getAttribute("formmethod")||l;T(L||S.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:s,relative:f,preventScrollReset:p,viewTransition:m})};return N.createElement("form",{ref:y,method:C,action:A,onSubmit:r?d:D,...E,"data-discover":!x&&e==="render"?"true":void 0})});U6.displayName="Form";function H6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xD(e){let t=N.useContext(Po);return Tt(t,H6(e)),t}function z6(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let c=xE(),d=Fo(),f=Pd(e,{relative:s});return N.useCallback(p=>{if(E6(p,t)){p.preventDefault();let m=n!==void 0?n:Os(d)===Os(f);c(e,{replace:m,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[d,c,f,n,r,t,e,a,s,l])}var G6=0,V6=()=>`__${String(++G6)}__`;function q6(){let{router:e}=xD("useSubmit"),{basename:t}=N.useContext(ci),n=a6();return N.useCallback(async(r,a={})=>{let{action:s,method:l,encType:c,formData:d,body:f}=T6(r,t);if(a.navigate===!1){let p=a.fetcherKey||V6();await e.fetch(p,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function Y6(e,{relative:t}={}){let{basename:n}=N.useContext(ci),r=N.useContext(ja);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Pd(e||".",{relative:t})},l=Fo();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),d=c.getAll("index");if(d.some(p=>p==="")){c.delete("index"),d.filter(m=>m).forEach(m=>c.append("index",m));let p=c.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:ii([n,s.pathname])),Os(s)}function Q6(e,{relative:t}={}){let n=N.useContext(TE);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=xD("useViewTransitionState"),a=Pd(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ca(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ca(n.nextLocation.pathname,r)||n.nextLocation.pathname;return lp(a.pathname,l)!=null||lp(a.pathname,s)!=null}function $6(e){return N.createElement(c6,{flushSync:$2.flushSync,...e})}const W6="modulepreload",K6=function(e){return"/"+e},fA={},j=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");a=l(n.map(f=>{if(f=K6(f),f in fA)return;fA[f]=!0;const p=f.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const E=document.createElement("link");if(E.rel=p?"stylesheet":W6,p||(E.as="script"),E.crossOrigin="",E.href=f,d&&E.setAttribute("nonce",d),document.head.appendChild(E),p)return new Promise((y,T)=>{E.addEventListener("load",y),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return a.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};function AD(e,t){return function(){return e.apply(t,arguments)}}const{toString:X6}=Object.prototype,{getPrototypeOf:kE}=Object,{iterator:Kp,toStringTag:SD}=Symbol,Xp=(e=>t=>{const n=X6.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ba=e=>(e=e.toLowerCase(),t=>Xp(t)===e),Zp=e=>t=>typeof t===e,{isArray:oc}=Array,fd=Zp("undefined");function Fd(e){return e!==null&&!fd(e)&&e.constructor!==null&&!fd(e.constructor)&&Mr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const CD=Ba("ArrayBuffer");function Z6(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&CD(e.buffer),t}const J6=Zp("string"),Mr=Zp("function"),DD=Zp("number"),jd=e=>e!==null&&typeof e=="object",eL=e=>e===!0||e===!1,zh=e=>{if(Xp(e)!=="object")return!1;const t=kE(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(SD in e)&&!(Kp in e)},tL=e=>{if(!jd(e)||Fd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nL=Ba("Date"),rL=Ba("File"),aL=Ba("Blob"),iL=Ba("FileList"),sL=e=>jd(e)&&Mr(e.pipe),oL=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mr(e.append)&&((t=Xp(e))==="formdata"||t==="object"&&Mr(e.toString)&&e.toString()==="[object FormData]"))},lL=Ba("URLSearchParams"),[cL,uL,dL,fL]=["ReadableStream","Request","Response","Headers"].map(Ba),hL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),oc(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Fd(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let c;for(r=0;r<l;r++)c=s[r],t.call(null,e[c],c,e)}}function kD(e,t){if(Fd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const ho=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,RD=e=>!fd(e)&&e!==ho;function o1(){const{caseless:e}=RD(this)&&this||{},t={},n=(r,a)=>{const s=e&&kD(t,a)||a;zh(t[s])&&zh(r)?t[s]=o1(t[s],r):zh(r)?t[s]=o1({},r):oc(r)?t[s]=r.slice():t[s]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Bd(arguments[r],n);return t}const pL=(e,t,n,{allOwnKeys:r}={})=>(Bd(t,(a,s)=>{n&&Mr(a)?e[s]=AD(a,n):e[s]=a},{allOwnKeys:r}),e),mL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gL=(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)},yL=(e,t,n,r)=>{let a,s,l;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)l=a[s],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&kE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},EL=(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},bL=e=>{if(!e)return null;if(oc(e))return e;let t=e.length;if(!DD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kE(Uint8Array)),TL=(e,t)=>{const r=(e&&e[Kp]).call(e);let a;for(;(a=r.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},_L=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},xL=Ba("HTMLFormElement"),AL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),hA=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),SL=Ba("RegExp"),wD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bd(n,(a,s)=>{let l;(l=t(a,s,e))!==!1&&(r[s]=l||a)}),Object.defineProperties(e,r)},CL=e=>{wD(e,(t,n)=>{if(Mr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mr(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+"'")})}})},DL=(e,t)=>{const n={},r=a=>{a.forEach(s=>{n[s]=!0})};return oc(e)?r(e):r(String(e).split(t)),n},kL=()=>{},RL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wL(e){return!!(e&&Mr(e.append)&&e[SD]==="FormData"&&e[Kp])}const IL=e=>{const t=new Array(10),n=(r,a)=>{if(jd(r)){if(t.indexOf(r)>=0)return;if(Fd(r))return r;if(!("toJSON"in r)){t[a]=r;const s=oc(r)?[]:{};return Bd(r,(l,c)=>{const d=n(l,a+1);!fd(d)&&(s[c]=d)}),t[a]=void 0,s}}return r};return n(e,0)},NL=Ba("AsyncFunction"),OL=e=>e&&(jd(e)||Mr(e))&&Mr(e.then)&&Mr(e.catch),ID=((e,t)=>e?setImmediate:t?((n,r)=>(ho.addEventListener("message",({source:a,data:s})=>{a===ho&&s===n&&r.length&&r.shift()()},!1),a=>{r.push(a),ho.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Mr(ho.postMessage)),LL=typeof queueMicrotask<"u"?queueMicrotask.bind(ho):typeof process<"u"&&process.nextTick||ID,ML=e=>e!=null&&Mr(e[Kp]),de={isArray:oc,isArrayBuffer:CD,isBuffer:Fd,isFormData:oL,isArrayBufferView:Z6,isString:J6,isNumber:DD,isBoolean:eL,isObject:jd,isPlainObject:zh,isEmptyObject:tL,isReadableStream:cL,isRequest:uL,isResponse:dL,isHeaders:fL,isUndefined:fd,isDate:nL,isFile:rL,isBlob:aL,isRegExp:SL,isFunction:Mr,isStream:sL,isURLSearchParams:lL,isTypedArray:vL,isFileList:iL,forEach:Bd,merge:o1,extend:pL,trim:hL,stripBOM:mL,inherits:gL,toFlatObject:yL,kindOf:Xp,kindOfTest:Ba,endsWith:EL,toArray:bL,forEachEntry:TL,matchAll:_L,isHTMLForm:xL,hasOwnProperty:hA,hasOwnProp:hA,reduceDescriptors:wD,freezeMethods:CL,toObjectSet:DL,toCamelCase:AL,noop:kL,toFiniteNumber:RL,findKey:kD,global:ho,isContextDefined:RD,isSpecCompliantForm:wL,toJSONObject:IL,isAsyncFn:NL,isThenable:OL,setImmediate:ID,asap:LL,isIterable:ML};function ut(e,t,n,r,a){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),a&&(this.response=a,this.status=a.status?a.status:null)}de.inherits(ut,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:de.toJSONObject(this.config),code:this.code,status:this.status}}});const ND=ut.prototype,OD={};["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=>{OD[e]={value:e}});Object.defineProperties(ut,OD);Object.defineProperty(ND,"isAxiosError",{value:!0});ut.from=(e,t,n,r,a,s)=>{const l=Object.create(ND);return de.toFlatObject(e,l,function(d){return d!==Error.prototype},c=>c!=="isAxiosError"),ut.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const PL=null;function l1(e){return de.isPlainObject(e)||de.isArray(e)}function LD(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function pA(e,t,n){return e?e.concat(t).map(function(a,s){return a=LD(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function FL(e){return de.isArray(e)&&!e.some(l1)}const jL=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function Jp(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,C){return!de.isUndefined(C[A])});const r=n.metaTokens,a=n.visitor||p,s=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(a))throw new TypeError("visitor must be a function");function f(T){if(T===null)return"";if(de.isDate(T))return T.toISOString();if(de.isBoolean(T))return T.toString();if(!d&&de.isBlob(T))throw new ut("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(T)||de.isTypedArray(T)?d&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function p(T,A,C){let x=T;if(T&&!C&&typeof T=="object"){if(de.endsWith(A,"{}"))A=r?A:A.slice(0,-2),T=JSON.stringify(T);else if(de.isArray(T)&&FL(T)||(de.isFileList(T)||de.endsWith(A,"[]"))&&(x=de.toArray(T)))return A=LD(A),x.forEach(function(S,L){!(de.isUndefined(S)||S===null)&&t.append(l===!0?pA([A],L,s):l===null?A:A+"[]",f(S))}),!1}return l1(T)?!0:(t.append(pA(C,A,s),f(T)),!1)}const m=[],E=Object.assign(jL,{defaultVisitor:p,convertValue:f,isVisitable:l1});function y(T,A){if(!de.isUndefined(T)){if(m.indexOf(T)!==-1)throw Error("Circular reference detected in "+A.join("."));m.push(T),de.forEach(T,function(x,D){(!(de.isUndefined(x)||x===null)&&a.call(t,x,de.isString(D)?D.trim():D,A,E))===!0&&y(x,A?A.concat(D):[D])}),m.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return y(e),t}function mA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function RE(e,t){this._pairs=[],e&&Jp(e,this,t)}const MD=RE.prototype;MD.append=function(t,n){this._pairs.push([t,n])};MD.toString=function(t){const n=t?function(r){return t.call(this,r,mA)}:mA;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function BL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function PD(e,t,n){if(!t)return e;const r=n&&n.encode||BL;de.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=de.isURLSearchParams(t)?t.toString():new RE(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class gA{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){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const FD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UL=typeof URLSearchParams<"u"?URLSearchParams:RE,HL=typeof FormData<"u"?FormData:null,zL=typeof Blob<"u"?Blob:null,GL={isBrowser:!0,classes:{URLSearchParams:UL,FormData:HL,Blob:zL},protocols:["http","https","file","blob","url","data"]},wE=typeof window<"u"&&typeof document<"u",c1=typeof navigator=="object"&&navigator||void 0,VL=wE&&(!c1||["ReactNative","NativeScript","NS"].indexOf(c1.product)<0),qL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YL=wE&&window.location.href||"http://localhost",QL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wE,hasStandardBrowserEnv:VL,hasStandardBrowserWebWorkerEnv:qL,navigator:c1,origin:YL},Symbol.toStringTag,{value:"Module"})),fr={...QL,...GL};function $L(e,t){return Jp(e,new fr.classes.URLSearchParams,{visitor:function(n,r,a,s){return fr.isNode&&de.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function WL(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function KL(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}function jD(e){function t(n,r,a,s){let l=n[s++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=s>=n.length;return l=!l&&de.isArray(a)?a.length:l,d?(de.hasOwnProp(a,l)?a[l]=[a[l],r]:a[l]=r,!c):((!a[l]||!de.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],s)&&de.isArray(a[l])&&(a[l]=KL(a[l])),!c)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(r,a)=>{t(WL(r),a,n,0)}),n}return null}function XL(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ud={transitional:FD,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,s=de.isObject(t);if(s&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return a?JSON.stringify(jD(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $L(t,this.formSerializer).toString();if((c=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Jp(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),XL(t)):t}],transformResponse:[function(t){const n=this.transitional||Ud.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?ut.from(c,ut.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fr.classes.FormData,Blob:fr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{Ud.headers[e]={}});const ZL=de.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"]),JL=e=>{const t={};let n,r,a;return e&&e.split(`
39
+ `).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&ZL[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yA=Symbol("internals");function Eu(e){return e&&String(e).trim().toLowerCase()}function Gh(e){return e===!1||e==null?e:de.isArray(e)?e.map(Gh):String(e)}function eM(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 tM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function J0(e,t,n,r,a){if(de.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function nM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rM(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,s,l){return this[r].call(this,t,a,s,l)},configurable:!0})})}let Pr=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function s(c,d,f){const p=Eu(d);if(!p)throw new Error("header name must be a non-empty string");const m=de.findKey(a,p);(!m||a[m]===void 0||f===!0||f===void 0&&a[m]!==!1)&&(a[m||d]=Gh(c))}const l=(c,d)=>de.forEach(c,(f,p)=>s(f,p,d));if(de.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(de.isString(t)&&(t=t.trim())&&!tM(t))l(JL(t),n);else if(de.isObject(t)&&de.isIterable(t)){let c={},d,f;for(const p of t){if(!de.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[f=p[0]]=(d=c[f])?de.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}l(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Eu(t),t){const r=de.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return eM(a);if(de.isFunction(n))return n.call(this,a,r);if(de.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Eu(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||J0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function s(l){if(l=Eu(l),l){const c=de.findKey(r,l);c&&(!n||J0(r,r[c],c,n))&&(delete r[c],a=!0)}}return de.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const s=n[r];(!t||J0(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,r={};return de.forEach(this,(a,s)=>{const l=de.findKey(r,s);if(l){n[l]=Gh(a),delete n[s];return}const c=t?nM(s):String(s).trim();c!==s&&delete n[s],n[c]=Gh(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&de.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(`
40
+ `)}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(a=>r.set(a)),r}static accessor(t){const r=(this[yA]=this[yA]={accessors:{}}).accessors,a=this.prototype;function s(l){const c=Eu(l);r[c]||(rM(a,l),r[c]=!0)}return de.isArray(t)?t.forEach(s):s(t),this}};Pr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(Pr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});de.freezeMethods(Pr);function ey(e,t){const n=this||Ud,r=t||n,a=Pr.from(r.headers);let s=r.data;return de.forEach(e,function(c){s=c.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function BD(e){return!!(e&&e.__CANCEL__)}function lc(e,t,n){ut.call(this,e??"canceled",ut.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(lc,ut,{__CANCEL__:!0});function UD(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function aM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function iM(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,s=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=r[s];l||(l=f),n[a]=d,r[a]=f;let m=s,E=0;for(;m!==a;)E+=n[m++],m=m%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),f-l<t)return;const y=p&&f-p;return y?Math.round(E*1e3/y):void 0}}function sM(e,t){let n=0,r=1e3/t,a,s;const l=(f,p=Date.now())=>{n=p,a=null,s&&(clearTimeout(s),s=null),e(...f)};return[(...f)=>{const p=Date.now(),m=p-n;m>=r?l(f,p):(a=f,s||(s=setTimeout(()=>{s=null,l(a)},r-m)))},()=>a&&l(a)]}const dp=(e,t,n=3)=>{let r=0;const a=iM(50,250);return sM(s=>{const l=s.loaded,c=s.lengthComputable?s.total:void 0,d=l-r,f=a(d),p=l<=c;r=l;const m={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&p?(c-l)/f:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},EA=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},bA=e=>(...t)=>de.asap(()=>e(...t)),oM=fr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fr.origin),fr.navigator&&/(msie|trident)/i.test(fr.navigator.userAgent)):()=>!0,lM=fr.hasStandardBrowserEnv?{write(e,t,n,r,a,s){const l=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),de.isString(r)&&l.push("path="+r),de.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.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 cM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uM(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function HD(e,t,n){let r=!cM(t);return e&&(r||n==!1)?uM(e,t):t}const vA=e=>e instanceof Pr?{...e}:e;function Do(e,t){t=t||{};const n={};function r(f,p,m,E){return de.isPlainObject(f)&&de.isPlainObject(p)?de.merge.call({caseless:E},f,p):de.isPlainObject(p)?de.merge({},p):de.isArray(p)?p.slice():p}function a(f,p,m,E){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f,m,E)}else return r(f,p,m,E)}function s(f,p){if(!de.isUndefined(p))return r(void 0,p)}function l(f,p){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function c(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(f,p,m)=>a(vA(f),vA(p),m,!0)};return de.forEach(Object.keys({...e,...t}),function(p){const m=d[p]||a,E=m(e[p],t[p],p);de.isUndefined(E)&&m!==c||(n[p]=E)}),n}const zD=e=>{const t=Do({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:l,auth:c}=t;t.headers=l=Pr.from(l),t.url=PD(HD(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(de.isFormData(n)){if(fr.hasStandardBrowserEnv||fr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[f,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(fr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&oM(t.url))){const f=a&&s&&lM.read(s);f&&l.set(a,f)}return t},dM=typeof XMLHttpRequest<"u",fM=dM&&function(e){return new Promise(function(n,r){const a=zD(e);let s=a.data;const l=Pr.from(a.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=a,p,m,E,y,T;function A(){y&&y(),T&&T(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function x(){if(!C)return;const S=Pr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),M={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:S,config:e,request:C};UD(function(q){n(q),A()},function(q){r(q),A()},M),C=null}"onloadend"in C?C.onloadend=x:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(x)},C.onabort=function(){C&&(r(new ut("Request aborted",ut.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new ut("Network Error",ut.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let L=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const M=a.transitional||FD;a.timeoutErrorMessage&&(L=a.timeoutErrorMessage),r(new ut(L,M.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,e,C)),C=null},s===void 0&&l.setContentType(null),"setRequestHeader"in C&&de.forEach(l.toJSON(),function(L,M){C.setRequestHeader(M,L)}),de.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),c&&c!=="json"&&(C.responseType=a.responseType),f&&([E,T]=dp(f,!0),C.addEventListener("progress",E)),d&&C.upload&&([m,y]=dp(d),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",y)),(a.cancelToken||a.signal)&&(p=S=>{C&&(r(!S||S.type?new lc(null,e,C):S),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=aM(a.url);if(D&&fr.protocols.indexOf(D)===-1){r(new ut("Unsupported protocol "+D+":",ut.ERR_BAD_REQUEST,e));return}C.send(s||null)})},hM=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const s=function(f){if(!a){a=!0,c();const p=f instanceof Error?f:this.reason;r.abort(p instanceof ut?p:new lc(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new ut(`timeout ${t} of ms exceeded`,ut.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>de.asap(c),d}},pM=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},mM=async function*(e,t){for await(const n of gM(e))yield*pM(n,t)},gM=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()}},TA=(e,t,n,r)=>{const a=mM(e,t);let s=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:p}=await a.next();if(f){c(),d.close();return}let m=p.byteLength;if(n){let E=s+=m;n(E)}d.enqueue(new Uint8Array(p))}catch(f){throw c(f),f}},cancel(d){return c(d),a.return()}},{highWaterMark:2})},em=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",GD=em&&typeof ReadableStream=="function",yM=em&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),VD=(e,...t)=>{try{return!!e(...t)}catch{return!1}},EM=GD&&VD(()=>{let e=!1;const t=new Request(fr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_A=64*1024,u1=GD&&VD(()=>de.isReadableStream(new Response("").body)),fp={stream:u1&&(e=>e.body)};em&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fp[t]&&(fp[t]=de.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ut(`Response type '${t}' is not supported`,ut.ERR_NOT_SUPPORT,r)})})})(new Response);const bM=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(fr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await yM(e)).byteLength},vM=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return n??bM(t)},TM=em&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:s,timeout:l,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:E}=zD(e);f=f?(f+"").toLowerCase():"text";let y=hM([a,s&&s.toAbortSignal()],l),T;const A=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let C;try{if(d&&EM&&n!=="get"&&n!=="head"&&(C=await vM(p,r))!==0){let M=new Request(t,{method:"POST",body:r,duplex:"half"}),w;if(de.isFormData(r)&&(w=M.headers.get("content-type"))&&p.setContentType(w),M.body){const[q,ne]=EA(C,dp(bA(d)));r=TA(M.body,_A,q,ne)}}de.isString(m)||(m=m?"include":"omit");const x="credentials"in Request.prototype;T=new Request(t,{...E,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:x?m:void 0});let D=await fetch(T,E);const S=u1&&(f==="stream"||f==="response");if(u1&&(c||S&&A)){const M={};["status","statusText","headers"].forEach(W=>{M[W]=D[W]});const w=de.toFiniteNumber(D.headers.get("content-length")),[q,ne]=c&&EA(w,dp(bA(c),!0))||[];D=new Response(TA(D.body,_A,q,()=>{ne&&ne(),A&&A()}),M)}f=f||"text";let L=await fp[de.findKey(fp,f)||"text"](D,e);return!S&&A&&A(),await new Promise((M,w)=>{UD(M,w,{data:L,headers:Pr.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:T})})}catch(x){throw A&&A(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,e,T),{cause:x.cause||x}):ut.from(x,x&&x.code,e,T)}}),d1={http:PL,xhr:fM,fetch:TM};de.forEach(d1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xA=e=>`- ${e}`,_M=e=>de.isFunction(e)||e===null||e===!1,qD={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!_M(n)&&(r=d1[(l=String(n)).toLowerCase()],r===void 0))throw new ut(`Unknown adapter '${l}'`);if(r)break;a[l||"#"+s]=r}if(!r){const s=Object.entries(a).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
41
+ `+s.map(xA).join(`
42
+ `):" "+xA(s[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:d1};function ty(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lc(null,e)}function AA(e){return ty(e),e.headers=Pr.from(e.headers),e.data=ey.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qD.getAdapter(e.adapter||Ud.adapter)(e).then(function(r){return ty(e),r.data=ey.call(e,e.transformResponse,r),r.headers=Pr.from(r.headers),r},function(r){return BD(r)||(ty(e),r&&r.response&&(r.response.data=ey.call(e,e.transformResponse,r.response),r.response.headers=Pr.from(r.response.headers))),Promise.reject(r)})}const YD="1.11.0",tm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const SA={};tm.transitional=function(t,n,r){function a(s,l){return"[Axios v"+YD+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,c)=>{if(t===!1)throw new ut(a(l," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!SA[l]&&(SA[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,c):!0}};tm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xM(e,t,n){if(typeof e!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],l=t[s];if(l){const c=e[s],d=c===void 0||l(c,s,e);if(d!==!0)throw new ut("option "+s+" must be "+d,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+s,ut.ERR_BAD_OPTION)}}const Vh={assertOptions:xM,validators:tm},Wa=Vh.validators;let _o=class{constructor(t){this.defaults=t||{},this.interceptors={request:new gA,response:new gA}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
43
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Do(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&Vh.assertOptions(r,{silentJSONParsing:Wa.transitional(Wa.boolean),forcedJSONParsing:Wa.transitional(Wa.boolean),clarifyTimeoutError:Wa.transitional(Wa.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Vh.assertOptions(a,{encode:Wa.function,serialize:Wa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Vh.assertOptions(n,{baseUrl:Wa.spelling("baseURL"),withXsrfToken:Wa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&de.merge(s.common,s[n.method]);s&&de.forEach(["delete","get","head","post","put","patch","common"],T=>{delete s[T]}),n.headers=Pr.concat(l,s);const c=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,c.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,E;if(!d){const T=[AA.bind(this),void 0];for(T.unshift(...c),T.push(...f),E=T.length,p=Promise.resolve(n);m<E;)p=p.then(T[m++],T[m++]);return p}E=c.length;let y=n;for(m=0;m<E;){const T=c[m++],A=c[m++];try{y=T(y)}catch(C){A.call(this,C);break}}try{p=AA.call(this,y)}catch(T){return Promise.reject(T)}for(m=0,E=f.length;m<E;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=Do(this.defaults,t);const n=HD(t.baseURL,t.url,t.allowAbsoluteUrls);return PD(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){_o.prototype[t]=function(n,r){return this.request(Do(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,c){return this.request(Do(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}_o.prototype[t]=n(),_o.prototype[t+"Form"]=n(!0)});let AM=class QD{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const l=new Promise(c=>{r.subscribe(c),s=c}).then(a);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,c){r.reason||(r.reason=new lc(s,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new QD(function(a){t=a}),cancel:t}}};function SM(e){return function(n){return e.apply(null,n)}}function CM(e){return de.isObject(e)&&e.isAxiosError===!0}const f1={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(f1).forEach(([e,t])=>{f1[t]=e});function $D(e){const t=new _o(e),n=AD(_o.prototype.request,t);return de.extend(n,_o.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return $D(Do(e,a))},n}const at=$D(Ud);at.Axios=_o;at.CanceledError=lc;at.CancelToken=AM;at.isCancel=BD;at.VERSION=YD;at.toFormData=Jp;at.AxiosError=ut;at.Cancel=at.CanceledError;at.all=function(t){return Promise.all(t)};at.spread=SM;at.isAxiosError=CM;at.mergeConfig=Do;at.AxiosHeaders=Pr;at.formToJSON=e=>jD(de.isHTMLForm(e)?new FormData(e):e);at.getAdapter=qD.getAdapter;at.HttpStatusCode=f1;at.default=at;const{Axios:Rre,AxiosError:wre,CanceledError:Ire,isCancel:Nre,CancelToken:Ore,VERSION:Lre,all:Mre,Cancel:Pre,isAxiosError:Fre,spread:jre,toFormData:Bre,AxiosHeaders:Ure,HttpStatusCode:Hre,formToJSON:zre,getAdapter:Gre,mergeConfig:Vre}=at;var cc=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(){}},ko=typeof window>"u"||"Deno"in globalThis;function _r(){}function DM(e,t){return typeof e=="function"?e(t):e}function h1(e){return typeof e=="number"&&e>=0&&e!==1/0}function WD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ws(e,t){return typeof e=="function"?e(t):e}function Ea(e,t){return typeof e=="function"?e(t):e}function CA(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:s,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==IE(l,t.options))return!1}else if(!hd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||s&&!s(t))}function DA(e,t){const{exact:n,status:r,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ro(t.options.mutationKey)!==Ro(s))return!1}else if(!hd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function IE(e,t){return(t?.queryKeyHashFn||Ro)(e)}function Ro(e){return JSON.stringify(e,(t,n)=>p1(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function hd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>hd(e[n],t[n])):!1}function KD(e,t){if(e===t)return e;const n=kA(e)&&kA(t);if(n||p1(e)&&p1(t)){const r=n?e:Object.keys(e),a=r.length,s=n?t:Object.keys(t),l=s.length,c=n?[]:{},d=new Set(r);let f=0;for(let p=0;p<l;p++){const m=n?p:s[p];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(c[m]=void 0,f++):(c[m]=KD(e[m],t[m]),c[m]===e[m]&&e[m]!==void 0&&f++)}return a===l&&f===a?e:c}return t}function hp(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 kA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function p1(e){if(!RA(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!RA(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function RA(e){return Object.prototype.toString.call(e)==="[object Object]"}function kM(e){return new Promise(t=>{setTimeout(t,e)})}function m1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?KD(e,t):t}function RM(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function wM(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var NE=Symbol();function XD(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===NE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ZD(e,t){return typeof e=="function"?e(...t):!!e}var IM=class extends cc{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!ko&&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"}},OE=new IM,NM=class extends cc{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!ko&&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}},pp=new NM;function g1(){let e,t;const n=new Promise((a,s)=>{e=a,t=s});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function OM(e){return Math.min(1e3*2**e,3e4)}function JD(e){return(e??"online")==="online"?pp.isOnline():!0}var ek=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ny(e){return e instanceof ek}function tk(e){let t=!1,n=0,r=!1,a;const s=g1(),l=A=>{r||(E(new ek(A)),e.abort?.())},c=()=>{t=!0},d=()=>{t=!1},f=()=>OE.isFocused()&&(e.networkMode==="always"||pp.isOnline())&&e.canRun(),p=()=>JD(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),s.resolve(A))},E=A=>{r||(r=!0,e.onError?.(A),a?.(),s.reject(A))},y=()=>new Promise(A=>{a=C=>{(r||f())&&A(C)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),T=()=>{if(r)return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(x){A=Promise.reject(x)}Promise.resolve(A).then(m).catch(x=>{if(r)return;const D=e.retry??(ko?0:3),S=e.retryDelay??OM,L=typeof S=="function"?S(n,x):S,M=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,x);if(t||!M){E(x);return}n++,e.onFail?.(n,x),kM(L).then(()=>f()?void 0:y()).then(()=>{t?E(x):T()})})};return{promise:s,cancel:l,continue:()=>(a?.(),s),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?T():y().then(T),s)}}var LM=e=>setTimeout(e,0);function MM(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=LM;const s=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{s(()=>{c(...d)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var zn=MM(),nk=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),h1(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ko?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},PM=class extends nk{#t;#e;#n;#r;#a;#s;#o;constructor(e){super(),this.#o=!1,this.#s=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=FM(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=m1(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(_r).catch(_r):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Ea(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===NE||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ws(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!WD(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.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.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({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.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const d=XD(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#o=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const c=d=>{ny(d)&&d.silent||this.#i({type:"error",error:d}),ny(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=tk({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(f){c(f);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,f)=>{this.#i({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(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,...rk(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...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 ny(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),zn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function rk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:JD(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function FM(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 jM=class extends cc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??IE(r,t);let s=this.get(a);return s||(s=new PM({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}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(){zn.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=>CA(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>CA(e,n)):t}notify(e){zn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){zn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){zn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},BM=class extends nk{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||ak(),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=tk({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},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 s=await this.options.onMutate?.(e);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}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),zn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function ak(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var UM=class extends cc{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 BM({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=bh(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=bh(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=bh(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=bh(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){zn.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=>DA(t,n))}findAll(e={}){return this.getAll().filter(t=>DA(e,t))}notify(e){zn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return zn.batch(()=>Promise.all(e.map(t=>t.continue().catch(_r))))}};function bh(e){return e.options.scope?.id}function wA(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const m=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},E=XD(t.options,t.fetchOptions),y=async(T,A,C)=>{if(p)return Promise.reject();if(A==null&&T.pages.length)return Promise.resolve(T);const D=(()=>{const w={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return m(w),w})(),S=await E(D),{maxPages:L}=t.options,M=C?wM:RM;return{pages:M(T.pages,S,L),pageParams:M(T.pageParams,A,L)}};if(a&&s.length){const T=a==="backward",A=T?HM:IA,C={pages:s,pageParams:l},x=A(r,C);c=await y(C,x,T)}else{const T=e??s.length;do{const A=d===0?l[0]??r.initialPageParam:IA(r,c);if(d>0&&A==null)break;c=await y(c,A),d++}while(d<T)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function IA(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 HM(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var zM=class{#t;#e;#n;#r;#a;#s;#o;#i;constructor(e={}){this.#t=e.queryCache||new jM,this.#e=e.mutationCache||new UM,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=OE.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=pp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=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(ws(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}),s=this.#t.get(r.queryHash)?.state.data,l=DM(t,s);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return zn.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;zn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return zn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=zn.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(_r).catch(_r)}invalidateQueries(e,t={}){return zn.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=zn.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,n);return n.throwOnError||(s=s.catch(_r)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(_r)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(ws(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_r).catch(_r)}fetchInfiniteQuery(e){return e.behavior=wA(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_r).catch(_r)}ensureInfiniteQueryData(e){return e.behavior=wA(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return pp.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(Ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{hd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{hd(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=IE(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===NE&&(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()}},GM=class extends cc{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=g1(),this.options.experimental_prefetchInRender||this.#o.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;#a;#s;#o;#i;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),NA(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return y1(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return y1(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#T(),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 Ea(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!hp(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&OA(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||Ea(this.options.enabled,this.#e)!==Ea(t.enabled,this.#e)||ws(this.options.staleTime,this.#e)!==ws(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||Ea(this.options.enabled,this.#e)!==Ea(t.enabled,this.#e)||a!==this.#l)&&this.#E(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return qM(this,n)&&(this.#r=n,this.#s=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#p.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.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(_r)),t}#g(){this.#v();const e=ws(this.options.staleTime,this.#e);if(ko||this.#r.isStale||!h1(e))return;const n=WD(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}#E(e){this.#T(),this.#l=e,!(ko||Ea(this.options.enabled,this.#e)===!1||!h1(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||OE.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#E(this.#y())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,s=this.#a,l=this.#s,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,E;if(t._optimisticResults){const ne=this.hasListeners(),W=!ne&&NA(e,t),k=ne&&OA(e,n,t,r);(W||k)&&(p={...p,...rk(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:T,status:A}=p;E=p.data;let C=!1;if(t.placeholderData!==void 0&&E===void 0&&A==="pending"){let ne;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(ne=a.data,C=!0):ne=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,ne!==void 0&&(A="success",E=m1(a?.data,ne,t),m=!0)}if(t.select&&E!==void 0&&!C)if(a&&E===s?.data&&t.select===this.#m)E=this.#f;else try{this.#m=t.select,E=t.select(E),E=m1(a?.data,E,t),this.#f=E,this.#i=null}catch(ne){this.#i=ne}this.#i&&(y=this.#i,E=this.#f,T=Date.now(),A="error");const x=p.fetchStatus==="fetching",D=A==="pending",S=A==="error",L=D&&x,M=E!==void 0,q={status:A,fetchStatus:p.fetchStatus,isPending:D,isSuccess:A==="success",isError:S,isInitialLoading:L,isLoading:L,data:E,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:T,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!D,isLoadingError:S&&!M,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&M,isStale:LE(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Ea(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const ne=z=>{q.status==="error"?z.reject(q.error):q.data!==void 0&&z.resolve(q.data)},W=()=>{const z=this.#o=q.promise=g1();ne(z)},k=this.#o;switch(k.status){case"pending":e.queryHash===n.queryHash&&ne(k);break;case"fulfilled":(q.status==="error"||q.data!==k.value)&&W();break;case"rejected":(q.status!=="error"||q.error!==k.reason)&&W();break}}return q}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#e),hp(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const s=new Set(a??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&s.has(c)})};this.#x({listeners:n()})}#_(){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.#b()}#x(e){zn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function VM(e,t){return Ea(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function NA(e,t){return VM(e,t)||e.state.data!==void 0&&y1(e,t,t.refetchOnMount)}function y1(e,t,n){if(Ea(t.enabled,e)!==!1&&ws(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&LE(e,t)}return!1}function OA(e,t,n,r){return(e!==t||Ea(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&LE(e,n)}function LE(e,t){return Ea(t.enabled,e)!==!1&&e.isStaleByTime(ws(t.staleTime,e))}function qM(e,t){return!hp(e.getCurrentResult(),t)}var YM=class extends cc{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}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),hp(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ro(n.mutationKey)!==Ro(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.#a(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}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)}#a(){const t=this.#n?.state??ak();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}}#s(t){zn.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)})})}},QM=N.createContext(void 0),ik=e=>{const t=N.useContext(QM);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},sk=N.createContext(!1),$M=()=>N.useContext(sk);sk.Provider;function WM(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var KM=N.createContext(WM()),XM=()=>N.useContext(KM),ZM=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},JM=e=>{N.useEffect(()=>{e.clearReset()},[e])},eP=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||ZD(n,[e.error,r])),tP=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},nP=(e,t)=>e.isLoading&&e.isFetching&&!t,rP=(e,t)=>e?.suspense&&t.isPending,LA=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function aP(e,t,n){const r=$M(),a=XM(),s=ik(n),l=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",tP(l),ZM(l,a),JM(a);const c=!s.getQueryCache().get(l.queryHash),[d]=N.useState(()=>new t(s,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(m=>{const E=p?d.subscribe(zn.batchCalls(m)):_r;return d.updateResult(),E},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),N.useEffect(()=>{d.setOptions(l)},[l,d]),rP(l,f))throw LA(l,d,a);if(eP({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!ko&&nP(f,r)&&(c?LA(l,d,a):s.getQueryCache().get(l.queryHash)?.promise)?.catch(_r).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function iP(e,t){return aP(e,GM,t)}function sP(e,t){const n=ik(t),[r]=N.useState(()=>new YM(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const a=N.useSyncExternalStore(N.useCallback(l=>r.subscribe(zn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=N.useCallback((l,c)=>{r.mutate(l,c).catch(_r)},[r]);if(a.error&&ZD(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function co(){return co=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},co.apply(this,arguments)}const oP=["children","options"],MA=["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"}),PA={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},lP=["style","script","pre"],cP=["src","href","data","formAction","srcDoc","action"],uP=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,dP=/mailto:/i,fP=/\n{2,}$/,FA=/^(\s*>[\s\S]*?)(?=\n\n|$)/,hP=/^ *> ?/gm,pP=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,mP=/^ {2,}\n/,gP=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,jA=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,BA=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,yP=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,EP=/^(?:\n *)*\n/,bP=/\r\n?/g,vP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,TP=/^\[\^([^\]]+)]/,_P=/\f/g,xP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,AP=/^\s*?\[(x|\s)\]/,UA=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,HA=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zA=/^([^\n]+)\n *(=|-){3,} *\n/,ry=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,SP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,GA=/^<!--[\s\S]*?(?:-->)/,CP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ay=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,DP=/^\{.*\}$/,kP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,RP=/^<([^ >]+@[^ >]+)>/,wP=/^<([^ >]+:\/[^ >]+)>/,IP=/-([a-z])?/gi,VA=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,NP=/^[^\n]+(?: \n|\n{2,})/,OP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,LP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,MP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,PP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,FP=/\t/g,jP=/(^ *\||\| *$)/g,BP=/^ *:-+: *$/,UP=/^ *:-+ *$/,HP=/^ *-+: *$/,nm="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",zP=RegExp(`^([*_])\\1${nm}\\1\\1(?!\\1)`),GP=RegExp(`^([*_])${nm}\\1(?!\\1)`),VP=RegExp(`^(==)${nm}\\1`),qP=RegExp(`^(~~)${nm}\\1`),YP=/^(:[a-zA-Z0-9-_]+:)/,QP=/^\\([^0-9A-Za-z\s])/,$P=/\\([^0-9A-Za-z\s])/g,WP=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,KP=/^\n+/,XP=/^([ \t]*)/,ZP=/(?:^|\n)( *)$/,ME="(?:\\d+\\.)",PE="(?:[*+-])";function ok(e){return"( *)("+(e===1?ME:PE)+") +"}const lk=ok(1),ck=ok(2);function uk(e){return RegExp("^"+(e===1?lk:ck))}const JP=uk(1),e8=uk(2);function dk(e){return RegExp("^"+(e===1?lk:ck)+"[^\\n]*(?:\\n(?!\\1"+(e===1?ME:PE)+" )[^\\n]*)*(\\n|$)","gm")}const t8=dk(1),n8=dk(2);function fk(e){const t=e===1?ME:PE;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const hk=fk(1),pk=fk(2);function qA(e,t){const n=t===1,r=n?hk:pk,a=n?t8:n8,s=n?JP:e8;return{t:l=>s.test(l),o:Jl(function(l,c){const d=ZP.exec(c.prevCapture);return d&&(c.list||!c.inline&&!c.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,c,d){const f=n?+l[2]:void 0,p=l[0].replace(fP,`
44
+ `).match(a);let m=!1;return{items:p.map(function(E,y){const T=s.exec(E)[0].length,A=RegExp("^ {1,"+T+"}","gm"),C=E.replace(A,"").replace(s,""),x=y===p.length-1,D=C.indexOf(`
45
+
46
+ `)!==-1||x&&m;m=D;const S=d.inline,L=d.list;let M;d.list=!0,D?(d.inline=!1,M=zu(C)+`
47
+
48
+ `):(d.inline=!0,M=zu(C));const w=c(M,d);return d.inline=S,d.list=L,w}),ordered:n,start:f}},l:(l,c,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,p){return e("li",{key:p},c(f,d))}))}}const r8=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),a8=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function zu(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function qh(e,t){return e.startsWith(t)}function i8(e,t,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(qh(e,n[r]))return!0;return!1}return n(e,t)}function bu(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 s8(e){return HP.test(e)?"right":BP.test(e)?"center":UP.test(e)?"left":null}function YA(e,t,n,r){const a=n.inTable;n.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,p)=>{d.trim()==="|"&&(c(),r)?f!==0&&f!==p.length-1&&s.push([]):l+=d}),c(),n.inTable=a,s}function o8(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(jP,"").split("|").map(s8):[],a=e[3]?function(l,c,d){return l.trim().split(`
49
+ `).map(function(f){return YA(f,c,d,!0)})}(e[3],t,n):[],s=YA(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:s,type:"25"}:{children:s,type:"21"}}function QA(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Jl(e){return e.inline=1,e}function Es(e){return Jl(function(t,n){return n.inline?e.exec(t):null})}function bs(e){return Jl(function(t,n){return n.inline||n.simple?e.exec(t):null})}function wi(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function vh(e){return Jl(function(t){return e.exec(t)})}const l8=/(javascript|vbscript|data(?!:image)):/i;function c8(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(l8.test(t))return null}catch{return null}return e}function Ka(e){return e&&e.replace($P,"$1")}function Yh(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function u8(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function d8(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const iy=(e,t,n)=>({children:Yh(t,e[2],n)});function sy(){return{}}function oy(){return null}function f8(...e){return e.filter(Boolean).join(" ")}function ly(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function h8(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?co({},PA,t.namedCodesToUnicode):PA;const n=t.slugify||bu,r=t.sanitizer||c8,a=t.createElement||N.createElement,s=[FA,jA,BA,t.enforceAtxHeadings?HA:UA,zA,VA,hk,pk],l=[...s,NP,ry,GA,ay];function c(x,D,...S){const L=ly(t.overrides,x+".props",{});return a(function(M,w){const q=ly(w,M);return q?typeof q=="function"||typeof q=="object"&&"render"in q?q:ly(w,M+".component",M):M}(x,t.overrides),co({},D,L,{className:f8(D?.className,L.className)||void 0}),...S)}function d(x){x=x.replace(xP,"");let D=!1;t.forceInline?D=!0:t.forceBlock||(D=PP.test(x)===!1);const S=T(y(D?x:zu(x).replace(KP,"")+`
50
+
51
+ `,{inline:D}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const L=t.wrapper||(D?"span":"div");let M;if(S.length>1||t.forceWrapper)M=S;else{if(S.length===1)return M=S[0],typeof M=="string"?c("span",{key:"outer"},M):M;M=null}return a(L,{key:"outer"},M)}function f(x,D){if(!D||!D.trim())return null;const S=D.match(uP);return S?S.reduce(function(L,M){const w=M.indexOf("=");if(w!==-1){const q=function(z){return z.indexOf("-")!==-1&&z.match(CP)===null&&(z=z.replace(IP,function($,K){return K.toUpperCase()})),z}(M.slice(0,w)).trim(),ne=function(z){const $=z[0];return($==='"'||$==="'")&&z.length>=2&&z[z.length-1]===$?z.slice(1,-1):z}(M.slice(w+1).trim()),W=MA[q]||q;if(W==="ref")return L;const k=L[W]=function(z,$,K,re){return $==="style"?function(me){const V=[];let le="",oe=!1,ye=!1,P="";if(!me)return V;for(let ce=0;ce<me.length;ce++){const I=me[ce];if(I!=='"'&&I!=="'"||oe||(ye?I===P&&(ye=!1,P=""):(ye=!0,P=I)),I==="("&&le.endsWith("url")?oe=!0:I===")"&&oe&&(oe=!1),I!==";"||ye||oe)le+=I;else{const te=le.trim();if(te){const Ce=te.indexOf(":");if(Ce>0){const we=te.slice(0,Ce).trim(),Pe=te.slice(Ce+1).trim();V.push([we,Pe])}}le=""}}const Le=le.trim();if(Le){const ce=Le.indexOf(":");if(ce>0){const I=Le.slice(0,ce).trim(),te=Le.slice(ce+1).trim();V.push([I,te])}}return V}(K).reduce(function(me,[V,le]){return me[V.replace(/(-[a-z])/g,oe=>oe[1].toUpperCase())]=re(le,z,V),me},{}):cP.indexOf($)!==-1?re(Ka(K),z,$):(K.match(DP)&&(K=Ka(K.slice(1,K.length-1))),K==="true"||K!=="false"&&K)}(x,q,ne,r);typeof k=="string"&&(ry.test(k)||ay.test(k))&&(L[W]=d(k.trim()))}else M!=="style"&&(L[MA[M]||M]=!0);return L},{}):null}const p=[],m={},E={0:{t:[">"],o:wi(FA),i:1,u(x,D,S){const[,L,M]=x[0].replace(hP,"").match(pP);return{alert:L,children:D(M,S)}},l(x,D,S){const L={key:S.key};return x.alert&&(L.className="markdown-alert-"+n(x.alert.toLowerCase(),bu),x.children.unshift({attrs:{},children:[{type:"27",text:x.alert}],noInnerParse:!0,type:"11",tag:"header"})),c("blockquote",L,D(x.children,S))}},1:{o:vh(mP),i:1,u:sy,l:(x,D,S)=>c("br",{key:S.key})},2:{t:x=>{const D=x[0];return D==="-"||D==="*"||D==="_"},o:wi(gP),i:1,u:sy,l:(x,D,S)=>c("hr",{key:S.key})},3:{t:[" "],o:wi(BA),i:0,u:x=>({lang:void 0,text:Ka(zu(x[0].replace(/^ {4}/gm,"")))}),l:(x,D,S)=>c("pre",{key:S.key},c("code",co({},x.attrs,{className:x.lang?"lang-"+x.lang:""}),x.text))},4:{t:["```","~~~"],o:wi(jA),i:0,u:x=>({attrs:f("code",x[3]||""),lang:x[2]||void 0,text:x[4],type:"3"})},5:{t:["`"],o:bs(yP),i:3,u:x=>({text:Ka(x[2])}),l:(x,D,S)=>c("code",{key:S.key},x.text)},6:{t:["[^"],o:wi(vP),i:0,u:x=>(p.push({footnote:x[2],identifier:x[1]}),{}),l:oy},7:{t:["[^"],o:Es(TP),i:1,u:x=>({target:"#"+n(x[1],bu),text:x[1]}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href")},c("sup",{key:S.key},x.text))},8:{t:["[ ]","[x]"],o:Es(AP),i:1,u:x=>({completed:x[1].toLowerCase()==="x"}),l:(x,D,S)=>c("input",{checked:x.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:wi(t.enforceAtxHeadings?HA:UA),i:1,u:(x,D,S)=>({children:Yh(D,x[2],S),id:n(x[2],bu),level:x[1].length}),l:(x,D,S)=>c("h"+x.level,{id:x.id,key:S.key},D(x.children,S))},10:{o:wi(zA),i:0,u:(x,D,S)=>({children:Yh(D,x[1],S),level:x[2]==="="?1:2,type:"9"})},11:{t:["<"],o:vh(ry),i:1,u(x,D,S){const[,L]=x[3].match(XP),M=RegExp("^"+L,"gm"),w=x[3].replace(M,""),q=(ne=w,l.some(K=>K.test(ne))?d8:Yh);var ne;const W=x[1].toLowerCase(),k=lP.indexOf(W)!==-1,z=(k?W:x[1]).trim(),$={attrs:f(z,x[2]),noInnerParse:k,tag:z};if(S.inAnchor=S.inAnchor||W==="a",k)$.text=x[3];else{const K=S.inHTML;S.inHTML=!0,$.children=q(D,w,S),S.inHTML=K}return S.inAnchor=!1,$},l:(x,D,S)=>c(x.tag,co({key:S.key},x.attrs),x.text||(x.children?D(x.children,S):""))},13:{t:["<"],o:vh(ay),i:1,u(x){const D=x[1].trim();return{attrs:f(D,x[2]||""),tag:D}},l:(x,D,S)=>c(x.tag,co({},x.attrs,{key:S.key}))},12:{t:["<!--"],o:vh(GA),i:1,u:()=>({}),l:oy},14:{t:["!["],o:bs(a8),i:1,u:x=>({alt:Ka(x[1]),target:Ka(x[2]),title:Ka(x[3])}),l:(x,D,S)=>c("img",{key:S.key,alt:x.alt||void 0,title:x.title||void 0,src:r(x.target,"img","src")})},15:{t:["["],o:Es(r8),i:3,u:(x,D,S)=>({children:u8(D,x[1],S),target:Ka(x[2]),title:Ka(x[3])}),l:(x,D,S)=>c("a",{key:S.key,href:r(x.target,"a","href"),title:x.title},D(x.children,S))},16:{t:["<"],o:Es(wP),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],type:"15"})},17:{t:(x,D)=>!D.inAnchor&&!t.disableAutoLink&&(qh(x,"http://")||qh(x,"https://")),o:Es(kP),i:0,u:x=>({children:[{text:x[1],type:"27"}],target:x[1],title:void 0,type:"15"})},18:{t:["<"],o:Es(RP),i:0,u(x){let D=x[1],S=x[1];return dP.test(S)||(S="mailto:"+S),{children:[{text:D.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:qA(c,1),33:qA(c,2),19:{o:wi(EP),i:3,u:sy,l:()=>`
52
+ `},21:{o:Jl(function(x,D){if(D.inline||D.simple||D.inHTML&&x.indexOf(`
53
+
54
+ `)===-1&&D.prevCapture.indexOf(`
55
+
56
+ `)===-1)return null;let S="";x.split(`
57
+ `).every(M=>(M+=`
58
+ `,!s.some(w=>w.test(M))&&(S+=M,!!M.trim())));const L=zu(S);return L===""?null:[S,,L]}),i:3,u:iy,l:(x,D,S)=>c("p",{key:S.key},D(x.children,S))},22:{t:["["],o:Es(OP),i:0,u:x=>(m[x[1]]={target:x[2],title:x[4]},{}),l:oy},23:{t:["!["],o:bs(LP),i:0,u:x=>({alt:x[1]?Ka(x[1]):void 0,ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("img",{key:S.key,alt:x.alt,src:r(m[x.ref].target,"img","src"),title:m[x.ref].title}):null},24:{t:x=>x[0]==="["&&x.indexOf("](")===-1,o:Es(MP),i:0,u:(x,D,S)=>({children:D(x[1],S),fallbackChildren:x[0],ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("a",{key:S.key,href:r(m[x.ref].target,"a","href"),title:m[x.ref].title},D(x.children,S)):c("span",{key:S.key},x.fallbackChildren)},25:{t:["|"],o:wi(VA),i:1,u:o8,l(x,D,S){const L=x;return c("table",{key:S.key},c("thead",null,c("tr",null,L.header.map(function(M,w){return c("th",{key:w,style:QA(L,w)},D(M,S))}))),c("tbody",null,L.cells.map(function(M,w){return c("tr",{key:w},M.map(function(q,ne){return c("td",{key:ne,style:QA(L,ne)},D(q,S))}))})))}},27:{o:Jl(function(x,D){let S;return qh(x,":")&&(S=YP.exec(x)),S||WP.exec(x)}),i:4,u(x){const D=x[0];return{text:D.indexOf("&")===-1?D:D.replace(SP,(S,L)=>t.namedCodesToUnicode[L]||S)}},l:x=>x.text},28:{t:["**","__"],o:bs(zP),i:2,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("strong",{key:S.key},D(x.children,S))},29:{t:x=>{const D=x[0];return(D==="*"||D==="_")&&x[1]!==D},o:bs(GP),i:3,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("em",{key:S.key},D(x.children,S))},30:{t:["\\"],o:bs(QP),i:1,u:x=>({text:x[1],type:"27"})},31:{t:["=="],o:bs(VP),i:3,u:iy,l:(x,D,S)=>c("mark",{key:S.key},D(x.children,S))},32:{t:["~~"],o:bs(qP),i:3,u:iy,l:(x,D,S)=>c("del",{key:S.key},D(x.children,S))}};t.disableParsingRawHTML===!0&&(delete E[11],delete E[13]);const y=function(x){var D=Object.keys(x);function S(L,M){var w=[];if(M.prevCapture=M.prevCapture||"",L.trim())for(;L;)for(var q=0;q<D.length;){var ne=D[q],W=x[ne];if(!W.t||i8(L,M,W.t)){var k=W.o(L,M);if(k&&k[0]){L=L.substring(k[0].length);var z=W.u(k,S,M);M.prevCapture+=k[0],z.type||(z.type=ne),w.push(z);break}q++}else q++}return M.prevCapture="",w}return D.sort(function(L,M){return x[L].i-x[M].i||(L<M?-1:1)}),function(L,M){return S(function(w){return w.replace(bP,`
59
+ `).replace(_P,"").replace(FP," ")}(L),M)}}(E),T=(A=function(x,D){return function(S,L,M){const w=x[S.type].l;return D?D(()=>w(S,L,M),S,L,M):w(S,L,M)}}(E,t.renderRule),function x(D,S={}){if(Array.isArray(D)){const L=S.key,M=[];let w=!1;for(let q=0;q<D.length;q++){S.key=q;const ne=x(D[q],S),W=typeof ne=="string";W&&w?M[M.length-1]+=ne:ne!==null&&M.push(ne),w=W}return S.key=L,M}return A(D,x,S)});var A;const C=d(e);return p.length?c("div",null,C,c("footer",{key:"footer"},p.map(function(x){return c("div",{id:n(x.identifier,bu),key:x.identifier},x.identifier,T(y(x.footnote,{inline:!0})))}))):C}const FE=e=>{let{children:t="",options:n}=e,r=function(a,s){if(a==null)return{};var l,c,d={},f=Object.keys(a);for(c=0;c<f.length;c++)s.indexOf(l=f[c])>=0||(d[l]=a[l]);return d}(e,oP);return N.cloneElement(h8(t,n),r)};var jE=zd(),lt=e=>Hd(e,jE),BE=zd();lt.write=e=>Hd(e,BE);var rm=zd();lt.onStart=e=>Hd(e,rm);var UE=zd();lt.onFrame=e=>Hd(e,UE);var HE=zd();lt.onFinish=e=>Hd(e,HE);var Gl=[];lt.setTimeout=(e,t)=>{const n=lt.now()+t,r=()=>{const s=Gl.findIndex(l=>l.cancel==r);~s&&Gl.splice(s,1),Ds-=~s?1:0},a={time:n,handler:e,cancel:r};return Gl.splice(mk(n),0,a),Ds+=1,gk(),a};var mk=e=>~(~Gl.findIndex(t=>t.time>e)||~Gl.length);lt.cancel=e=>{rm.delete(e),UE.delete(e),HE.delete(e),jE.delete(e),BE.delete(e)};lt.sync=e=>{E1=!0,lt.batchedUpdates(e),E1=!1};lt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,lt.onStart(n)}return r.handler=e,r.cancel=()=>{rm.delete(n),t=null},r};var zE=typeof window<"u"?window.requestAnimationFrame:()=>{};lt.use=e=>zE=e;lt.now=typeof performance<"u"?()=>performance.now():Date.now;lt.batchedUpdates=e=>e();lt.catch=console.error;lt.frameLoop="always";lt.advance=()=>{lt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ek()};var Cs=-1,Ds=0,E1=!1;function Hd(e,t){E1?(t.delete(e),e(0)):(t.add(e),gk())}function gk(){Cs<0&&(Cs=0,lt.frameLoop!=="demand"&&zE(yk))}function p8(){Cs=-1}function yk(){~Cs&&(zE(yk),lt.batchedUpdates(Ek))}function Ek(){const e=Cs;Cs=lt.now();const t=mk(Cs);if(t&&(bk(Gl.splice(0,t),n=>n.handler()),Ds-=t),!Ds){p8();return}rm.flush(),jE.flush(e?Math.min(64,Cs-e):16.667),UE.flush(),BE.flush(),HE.flush()}function zd(){let e=new Set,t=e;return{add(n){Ds+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Ds-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Ds-=t.size,bk(t,r=>r(n)&&e.add(r)),Ds+=e.size,t=e)}}}function bk(e,t){e.forEach(n=>{try{t(n)}catch(r){lt.catch(r)}})}var m8=Object.defineProperty,g8=(e,t)=>{for(var n in t)m8(e,n,{get:t[n],enumerable:!0})},Pa={};g8(Pa,{assign:()=>E8,colors:()=>Is,createStringInterpolator:()=>VE,skipAnimation:()=>Tk,to:()=>vk,willAdvance:()=>qE});function b1(){}var y8=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Oe={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 Pi(e,t){if(Oe.arr(e)){if(!Oe.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var xt=(e,t)=>e.forEach(t);function oi(e,t,n){if(Oe.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 Jr=e=>Oe.und(e)?[]:Oe.arr(e)?e:[e];function Gu(e,t){if(e.size){const n=Array.from(e);e.clear(),xt(n,t)}}var Pu=(e,...t)=>Gu(e,n=>n(...t)),GE=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),VE,vk,Is=null,Tk=!1,qE=b1,E8=e=>{e.to&&(vk=e.to),e.now&&(lt.now=e.now),e.colors!==void 0&&(Is=e.colors),e.skipAnimation!=null&&(Tk=e.skipAnimation),e.createStringInterpolator&&(VE=e.createStringInterpolator),e.requestAnimationFrame&&lt.use(e.requestAnimationFrame),e.batchedUpdates&&(lt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(qE=e.willAdvance),e.frameLoop&&(lt.frameLoop=e.frameLoop)},Vu=new Set,Aa=[],cy=[],mp=0,am={get idle(){return!Vu.size&&!Aa.length},start(e){mp>e.priority?(Vu.add(e),lt.onStart(b8)):(_k(e),lt(v1))},advance:v1,sort(e){if(mp)lt.onFrame(()=>am.sort(e));else{const t=Aa.indexOf(e);~t&&(Aa.splice(t,1),xk(e))}},clear(){Aa=[],Vu.clear()}};function b8(){Vu.forEach(_k),Vu.clear(),lt(v1)}function _k(e){Aa.includes(e)||xk(e)}function xk(e){Aa.splice(v8(Aa,t=>t.priority>e.priority),0,e)}function v1(e){const t=cy;for(let n=0;n<Aa.length;n++){const r=Aa[n];mp=r.priority,r.idle||(qE(r),r.advance(e),r.idle||t.push(r))}return mp=0,cy=Aa,cy.length=0,Aa=t,Aa.length>0}function v8(e,t){const n=e.findIndex(t);return n<0?e.length:n}var T8={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+",gp=La+"%";function im(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var _8=new RegExp("rgb"+im(La,La,La)),x8=new RegExp("rgba"+im(La,La,La,La)),A8=new RegExp("hsl"+im(La,gp,gp)),S8=new RegExp("hsla"+im(La,gp,gp,La)),C8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,D8=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,k8=/^#([0-9a-fA-F]{6})$/,R8=/^#([0-9a-fA-F]{8})$/;function w8(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=k8.exec(e))?parseInt(t[1]+"ff",16)>>>0:Is&&Is[e]!==void 0?Is[e]:(t=_8.exec(e))?(xl(t[1])<<24|xl(t[2])<<16|xl(t[3])<<8|255)>>>0:(t=x8.exec(e))?(xl(t[1])<<24|xl(t[2])<<16|xl(t[3])<<8|KA(t[4]))>>>0:(t=C8.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=R8.exec(e))?parseInt(t[1],16)>>>0:(t=D8.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=A8.exec(e))?($A(WA(t[1]),Th(t[2]),Th(t[3]))|255)>>>0:(t=S8.exec(e))?($A(WA(t[1]),Th(t[2]),Th(t[3]))|KA(t[4]))>>>0:null}function uy(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 $A(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,s=uy(a,r,e+1/3),l=uy(a,r,e),c=uy(a,r,e-1/3);return Math.round(s*255)<<24|Math.round(l*255)<<16|Math.round(c*255)<<8}function xl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function WA(e){return(parseFloat(e)%360+360)%360/360}function KA(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Th(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function XA(e){let t=w8(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${s})`}var pd=(e,t,n)=>{if(Oe.fun(e))return e;if(Oe.arr(e))return pd({range:e,output:t,extrapolate:n});if(Oe.str(e.output[0]))return VE(e);const r=e,a=r.output,s=r.range||[0,1],l=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(f=>f);return f=>{const p=N8(f,s);return I8(f,s[p],s[p+1],a[p],a[p+1],d,l,c,r.map)}};function I8(e,t,n,r,a,s,l,c,d){let f=d?d(e):e;if(f<t){if(l==="identity")return f;l==="clamp"&&(f=t)}if(f>n){if(c==="identity")return f;c==="clamp"&&(f=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=s(f),r===-1/0?f=-f:a===1/0?f=f+r:f=f*(a-r)+r,f)}function N8(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var O8={linear:e=>e},md=Symbol.for("FluidValue.get"),ec=Symbol.for("FluidValue.observers"),va=e=>!!(e&&e[md]),Lr=e=>e&&e[md]?e[md]():e,ZA=e=>e[ec]||null;function L8(e,t){e.eventObserved?e.eventObserved(t):e(t)}function gd(e,t){const n=e[ec];n&&n.forEach(r=>{L8(r,t)})}var Ak=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");M8(this,e)}},M8=(e,t)=>Sk(e,md,t);function uc(e,t){if(e[md]){let n=e[ec];n||Sk(e,ec,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yd(e,t){const n=e[ec];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ec]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Sk=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Qh=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,P8=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,JA=new RegExp(`(${Qh.source})(%|[a-z]+)`,"i"),F8=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,sm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ck=e=>{const[t,n]=j8(e);if(!t||GE())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&sm.test(n))return Ck(n);if(n)return n}return e},j8=e=>{const t=sm.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},dy,B8=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Dk=e=>{dy||(dy=Is?new RegExp(`(${Object.keys(Is).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Lr(s).replace(sm,Ck).replace(P8,XA).replace(dy,XA)),n=t.map(s=>s.match(Qh).map(Number)),a=n[0].map((s,l)=>n.map(c=>{if(!(l in c))throw Error('The arity of each "output" value must be equal');return c[l]})).map(s=>pd({...e,output:s}));return s=>{const l=!JA.test(t[0])&&t.find(d=>JA.test(d))?.replace(Qh,"");let c=0;return t[0].replace(Qh,()=>`${a[c++](s)}${l||""}`).replace(F8,B8)}},YE="react-spring: ",kk=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${YE}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},U8=kk(console.warn);function H8(){U8(`${YE}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var z8=kk(console.warn);function G8(){z8(`${YE}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 om(e){return Oe.str(e)&&(e[0]=="#"||/\d/.test(e)||!GE()&&sm.test(e)||e in(Is||{}))}var QE=GE()?N.useEffect:N.useLayoutEffect,V8=()=>{const e=N.useRef(!1);return QE(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Rk(){const e=N.useState()[1],t=V8();return()=>{t.current&&e(Math.random())}}var wk=e=>N.useEffect(e,q8),q8=[];function eS(e){const t=N.useRef(void 0);return N.useEffect(()=>{t.current=e}),t.current}var Ed=Symbol.for("Animated:node"),Y8=e=>!!e&&e[Ed]===e,ti=e=>e&&e[Ed],$E=(e,t)=>y8(e,Ed,t),lm=e=>e&&e[Ed]&&e[Ed].getPayload(),Ik=class{constructor(){$E(this,this)}getPayload(){return this.payload||[]}},cm=class Nk extends Ik{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,Oe.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Nk(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return Oe.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,Oe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},yp=class Ok extends cm{constructor(t){super(0),this._string=null,this._toString=pd({output:[t,t]})}static create(t){return new Ok(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Oe.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=pd({output:[this.getValue(),t]})),this._value=0,super.reset()}},Ep={dependencies:null},um=class extends Ik{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return oi(this.source,(n,r)=>{Y8(n)?t[r]=n.getValue(e):va(n)?t[r]=Lr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return oi(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ep.dependencies&&va(e)&&Ep.dependencies.add(e);const t=lm(e);t&&xt(t,n=>this.add(n))}},Q8=class Lk extends um{constructor(t){super(t)}static create(t){return new Lk(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,a)=>r.setValue(t[a])).some(Boolean):(super.setValue(t.map($8)),!0)}};function $8(e){return(om(e)?yp:cm).create(e)}function T1(e){const t=ti(e);return t?t.constructor:Oe.arr(e)?Q8:om(e)?yp:cm}var tS=(e,t)=>{const n=!Oe.fun(e)||e.prototype&&e.prototype.isReactComponent;return N.forwardRef((r,a)=>{const s=N.useRef(null),l=n&&N.useCallback(T=>{s.current=X8(a,T)},[a]),[c,d]=K8(r,t),f=Rk(),p=()=>{const T=s.current;if(n&&!T)return;(T?t.applyAnimatedValues(T,c.getValue(!0)):!1)===!1&&f()},m=new W8(p,d),E=N.useRef(void 0);QE(()=>(E.current=m,xt(d,T=>uc(T,m)),()=>{E.current&&(xt(E.current.deps,T=>yd(T,E.current)),lt.cancel(E.current.update))})),N.useEffect(p,[]),wk(()=>()=>{const T=E.current;xt(T.deps,A=>yd(A,T))});const y=t.getComponentProps(c.getValue());return N.createElement(e,{...y,ref:l})})},W8=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&lt.write(this.update)}};function K8(e,t){const n=new Set;return Ep.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new um(e),Ep.dependencies=null,[e,n]}function X8(e,t){return e&&(Oe.fun(e)?e(t):e.current=t),t}var nS=Symbol.for("AnimatedComponent"),Z8=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new um(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=l=>{const c=rS(l)||"Anonymous";return Oe.str(l)?l=s[l]||(s[l]=tS(l,a)):l=l[nS]||(l[nS]=tS(l,a)),l.displayName=`Animated(${c})`,l};return oi(e,(l,c)=>{Oe.arr(e)&&(c=rS(l)),s[c]=s(l)}),{animated:s}},rS=e=>Oe.str(e)?e:e&&Oe.str(e.displayName)?e.displayName:Oe.fun(e)&&e.name||null;function uo(e,...t){return Oe.fun(e)?e(...t):e}var qu=(e,t)=>e===!0||!!(t&&e&&(Oe.fun(e)?e(t):Jr(e).includes(t))),Mk=(e,t)=>Oe.obj(e)?t&&e[t]:e,Pk=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,J8=e=>e,WE=(e,t=J8)=>{let n=e7;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const s=t(e[a],a);Oe.und(s)||(r[a]=s)}return r},e7=["config","onProps","onStart","onChange","onPause","onResume","onRest"],t7={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 n7(e){const t={};let n=0;if(oi(e,(r,a)=>{t7[a]||(t[a]=r,n++)}),n)return t}function Fk(e){const t=n7(e);if(t){const n={to:t};return oi(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function bd(e){return e=Lr(e),Oe.arr(e)?e.map(bd):om(e)?Pa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function r7(e){for(const t in e)return!0;return!1}function _1(e){return Oe.fun(e)||Oe.arr(e)&&Oe.obj(e[0])}function a7(e,t){e.ref?.delete(e),t?.delete(e)}function i7(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var s7={default:{tension:170,friction:26}},x1={...s7.default,mass:1,damping:1,easing:O8.linear,clamp:!1},o7=class{constructor(){this.velocity=0,Object.assign(this,x1)}};function l7(e,t,n){n&&(n={...n},aS(n,t),t={...n,...t}),aS(e,t),Object.assign(e,t);for(const l in x1)e[l]==null&&(e[l]=x1[l]);let{frequency:r,damping:a}=e;const{mass:s}=e;return Oe.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*a*s/r),e}function aS(e,t){if(!Oe.und(t.decay))e.duration=void 0;else{const n=!Oe.und(t.tension)||!Oe.und(t.friction);(n||!Oe.und(t.frequency)||!Oe.und(t.damping)||!Oe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var iS=[],c7=class{constructor(){this.changed=!1,this.values=iS,this.toValues=null,this.fromValues=iS,this.config=new o7,this.immediate=!1}};function jk(e,{key:t,props:n,defaultProps:r,state:a,actions:s}){return new Promise((l,c)=>{let d,f,p=qu(n.cancel??r?.cancel,t);if(p)y();else{Oe.und(n.pause)||(a.paused=qu(n.pause,t));let T=r?.pause;T!==!0&&(T=a.paused||qu(T,t)),d=uo(n.delay||0,t),T?(a.resumeQueue.add(E),s.pause()):(s.resume(),E())}function m(){a.resumeQueue.add(E),a.timeouts.delete(f),f.cancel(),d=f.time-lt.now()}function E(){d>0&&!Pa.skipAnimation?(a.delayed=!0,f=lt.setTimeout(y,d),a.pauseQueue.add(m),a.timeouts.add(f)):y()}function y(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(m),a.timeouts.delete(f),e<=(a.cancelId||0)&&(p=!0);try{s.start({...n,callId:e,cancel:p},l)}catch(T){c(T)}}})}var KE=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Vl(e.get()):t.every(n=>n.noop)?Bk(e.get()):Oa(e.get(),t.every(n=>n.finished)),Bk=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Oa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Vl=e=>({value:e,cancelled:!0,finished:!1});function Uk(e,t,n,r){const{callId:a,parentId:s,onRest:l}=t,{asyncTo:c,promise:d}=n;return!s&&e===c&&!t.reset?d:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const f=WE(t,(C,x)=>x==="onRest"?void 0:C);let p,m;const E=new Promise((C,x)=>(p=C,m=x)),y=C=>{const x=a<=(n.cancelId||0)&&Vl(r)||a!==n.asyncId&&Oa(r,!1);if(x)throw C.result=x,m(C),C},T=(C,x)=>{const D=new sS,S=new oS;return(async()=>{if(Pa.skipAnimation)throw vd(n),S.result=Oa(r,!1),m(S),S;y(D);const L=Oe.obj(C)?{...C}:{...x,to:C};L.parentId=a,oi(f,(w,q)=>{Oe.und(L[q])&&(L[q]=w)});const M=await r.start(L);return y(D),n.paused&&await new Promise(w=>{n.resumeQueue.add(w)}),M})()};let A;if(Pa.skipAnimation)return vd(n),Oa(r,!1);try{let C;Oe.arr(e)?C=(async x=>{for(const D of x)await T(D)})(e):C=Promise.resolve(e(T,r.stop.bind(r))),await Promise.all([C.then(p),E]),A=Oa(r.get(),!0,!1)}catch(C){if(C instanceof sS)A=C.result;else if(C instanceof oS)A=C.result;else throw C}finally{a==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?d:void 0)}return Oe.fun(l)&&lt.batchedUpdates(()=>{l(A,r,r.item)}),A})()}function vd(e,t){Gu(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var sS=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.")}},oS=class extends Error{constructor(){super("SkipAnimationSignal")}},A1=e=>e instanceof XE,u7=1,XE=class extends Ak{constructor(){super(...arguments),this.id=u7++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ti(this);return e&&e.getValue()}to(...e){return Pa.to(this,e)}interpolate(...e){return H8(),Pa.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){gd(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||am.sort(this),gd(this,{type:"priority",parent:this,priority:e})}},wo=Symbol.for("SpringPhase"),Hk=1,S1=2,C1=4,fy=e=>(e[wo]&Hk)>0,vs=e=>(e[wo]&S1)>0,vu=e=>(e[wo]&C1)>0,lS=(e,t)=>t?e[wo]|=S1|Hk:e[wo]&=~S1,cS=(e,t)=>t?e[wo]|=C1:e[wo]&=~C1,d7=class extends XE{constructor(e,t){if(super(),this.animation=new c7,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,!Oe.und(e)||!Oe.und(t)){const n=Oe.obj(e)?{...e}:{...t,from:e};Oe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(vs(this)||this._state.asyncTo)||vu(this)}get goal(){return Lr(this.animation.to)}get velocity(){const e=ti(this);return e instanceof cm?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return fy(this)}get isAnimating(){return vs(this)}get isPaused(){return vu(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:s}=r,l=lm(r.to);!l&&va(r.to)&&(a=Jr(Lr(r.to))),r.values.forEach((f,p)=>{if(f.done)return;const m=f.constructor==yp?1:l?l[p].lastPosition:a[p];let E=r.immediate,y=m;if(!E){if(y=f.lastPosition,s.tension<=0){f.done=!0;return}let T=f.elapsedTime+=e;const A=r.fromValues[p],C=f.v0!=null?f.v0:f.v0=Oe.arr(s.velocity)?s.velocity[p]:s.velocity;let x;const D=s.precision||(A==m?.005:Math.min(1,Math.abs(m-A)*.001));if(Oe.und(s.duration))if(s.decay){const S=s.decay===!0?.998:s.decay,L=Math.exp(-(1-S)*T);y=A+C/(1-S)*(1-L),E=Math.abs(f.lastPosition-y)<=D,x=C*L}else{x=f.lastVelocity==null?C:f.lastVelocity;const S=s.restVelocity||D/10,L=s.clamp?0:s.bounce,M=!Oe.und(L),w=A==m?f.v0>0:A<m;let q,ne=!1;const W=1,k=Math.ceil(e/W);for(let z=0;z<k&&(q=Math.abs(x)>S,!(!q&&(E=Math.abs(m-y)<=D,E)));++z){M&&(ne=y==m||y>m==w,ne&&(x=-x*L,y=m));const $=-s.tension*1e-6*(y-m),K=-s.friction*.001*x,re=($+K)/s.mass;x=x+re*W,y=y+x*W}}else{let S=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,f.durationProgress>0&&(f.elapsedTime=s.duration*f.durationProgress,T=f.elapsedTime+=e)),S=(s.progress||0)+T/this._memoizedDuration,S=S>1?1:S<0?0:S,f.durationProgress=S),y=A+s.easing(S)*(m-A),x=(y-f.lastPosition)/e,E=S==1}f.lastVelocity=x,Number.isNaN(y)&&(console.warn("Got NaN while animating:",this),E=!0)}l&&!l[p].done&&(E=!1),E?f.done=!0:t=!1,f.setValue(y,s.round)&&(n=!0)});const c=ti(this),d=c.getValue();if(t){const f=Lr(r.to);(d!==f||n)&&!s.decay?(c.setValue(f),this._onChange(f)):n&&s.decay&&this._onChange(d),this._stop()}else n&&this._onChange(d)}set(e){return lt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(vs(this)){const{to:e,config:t}=this.animation;lt.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 Oe.und(e)?(n=this.queue||[],this.queue=[]):n=[Oe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>KE(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),vd(this._state,e&&this._lastCallId),lt.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=Oe.obj(n)?n[t]:n,(n==null||_1(n))&&(n=void 0),r=Oe.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return fy(this)||(e.reverse&&([n,r]=[r,n]),r=Lr(r),Oe.und(r)?ti(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,WE(e,(l,c)=>/^on/.test(c)?Mk(l,n):l)),dS(this,e,"onProps"),_u(this,"onProps",e,this);const a=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 s=this._state;return jk(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{vu(this)||(cS(this,!0),Pu(s.pauseQueue),_u(this,"onPause",Oa(this,Tu(this,this.animation.to)),this))},resume:()=>{vu(this)&&(cS(this,!1),vs(this)&&this._resume(),Pu(s.resumeQueue),_u(this,"onResume",Oa(this,Tu(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(l=>{if(e.loop&&l.finished&&!(t&&l.noop)){const c=zk(e);if(c)return this._update(c,!0)}return l})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Vl(this));const r=!Oe.und(e.to),a=!Oe.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Vl(this));const{key:s,defaultProps:l,animation:c}=this,{to:d,from:f}=c;let{to:p=d,from:m=f}=e;a&&!r&&(!t.default||Oe.und(p))&&(p=m),t.reverse&&([p,m]=[m,p]);const E=!Pi(m,f);E&&(c.from=m),m=Lr(m);const y=!Pi(p,d);y&&this._focus(p);const T=_1(t.to),{config:A}=c,{decay:C,velocity:x}=A;(r||a)&&(A.velocity=0),t.config&&!T&&l7(A,uo(t.config,s),t.config!==l.config?uo(l.config,s):void 0);let D=ti(this);if(!D||Oe.und(p))return n(Oa(this,!0));const S=Oe.und(t.reset)?a&&!t.default:!Oe.und(m)&&qu(t.reset,s),L=S?m:this.get(),M=bd(p),w=Oe.num(M)||Oe.arr(M)||om(M),q=!T&&(!w||qu(l.immediate||t.immediate,s));if(y){const z=T1(p);if(z!==D.constructor)if(q)D=this._set(M);else throw Error(`Cannot animate between ${D.constructor.name} and ${z.name}, as the "to" prop suggests`)}const ne=D.constructor;let W=va(p),k=!1;if(!W){const z=S||!fy(this)&&E;(y||z)&&(k=Pi(bd(L),M),W=!k),(!Pi(c.immediate,q)&&!q||!Pi(A.decay,C)||!Pi(A.velocity,x))&&(W=!0)}if(k&&vs(this)&&(c.changed&&!S?W=!0:W||this._stop(d)),!T&&((W||va(d))&&(c.values=D.getPayload(),c.toValues=va(p)?null:ne==yp?[1]:Jr(M)),c.immediate!=q&&(c.immediate=q,!q&&!S&&this._set(d)),W)){const{onRest:z}=c;xt(h7,K=>dS(this,t,K));const $=Oa(this,Tu(this,d));Pu(this._pendingCalls,$),this._pendingCalls.add(n),c.changed&&lt.batchedUpdates(()=>{c.changed=!S,z?.($,this),S?uo(l.onRest,$):c.onStart?.($,this)})}S&&this._set(L),T?n(Uk(t.to,t,this._state,this)):W?this._start():vs(this)&&!y?this._pendingCalls.add(n):n(Bk(L))}_focus(e){const t=this.animation;e!==t.to&&(ZA(this)&&this._detach(),t.to=e,ZA(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;va(t)&&(uc(t,this),A1(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;va(e)&&yd(e,this)}_set(e,t=!0){const n=Lr(e);if(!Oe.und(n)){const r=ti(this);if(!r||!Pi(n,r.getValue())){const a=T1(n);!r||r.constructor!=a?$E(this,a.create(n)):r.setValue(n),r&&lt.batchedUpdates(()=>{this._onChange(n,t)})}}return ti(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,_u(this,"onStart",Oa(this,Tu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),uo(this.animation.onChange,e,this)),uo(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ti(this).reset(Lr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),vs(this)||(lS(this,!0),vu(this)||this._resume())}_resume(){Pa.skipAnimation?this.finish():am.start(this)}_stop(e,t){if(vs(this)){lS(this,!1);const n=this.animation;xt(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),gd(this,{type:"idle",parent:this});const r=t?Vl(this.get()):Oa(this.get(),Tu(this,e??n.to));Pu(this._pendingCalls,r),n.changed&&(n.changed=!1,_u(this,"onRest",r,this))}}};function Tu(e,t){const n=bd(t),r=bd(e.get());return Pi(r,n)}function zk(e,t=e.loop,n=e.to){const r=uo(t);if(r){const a=r!==!0&&Fk(r),s=(a||e).reverse,l=!a||a.reset;return Td({...e,loop:t,default:!1,pause:void 0,to:!s||_1(n)?n:void 0,from:l?e.from:void 0,reset:l,...a})}}function Td(e){const{to:t,from:n}=e=Fk(e),r=new Set;return Oe.obj(t)&&uS(t,r),Oe.obj(n)&&uS(n,r),e.keys=r.size?Array.from(r):null,e}function f7(e){const t=Td(e);return Oe.und(t.default)&&(t.default=WE(t)),t}function uS(e,t){oi(e,(n,r)=>n!=null&&t.add(r))}var h7=["onStart","onRest","onChange","onPause","onResume"];function dS(e,t,n){e.animation[n]=t[n]!==Pk(t,n)?Mk(t[n],e.key):void 0}function _u(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var p7=["onStart","onChange","onRest"],m7=1,g7=class{constructor(e,t){this.id=m7++,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];Oe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Td(e)),this}start(e){let{queue:t}=this;return e?t=Jr(e).map(Td):this.queue=[],this._flush?this._flush(this,t):(Qk(this,t),D1(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xt(Jr(t),r=>n[r].stop(!!e))}else vd(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Oe.und(e))this.start({pause:!0});else{const t=this.springs;xt(Jr(e),n=>t[n].pause())}return this}resume(e){if(Oe.und(e))this.start({pause:!1});else{const t=this.springs;xt(Jr(e),n=>t[n].resume())}return this}each(e){oi(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Gu(e,([c,d])=>{d.value=this.get(),c(d,this,this._item)}));const s=!r&&this._started,l=a||s&&n.size?this.get():null;a&&t.size&&Gu(t,([c,d])=>{d.value=l,c(d,this,this._item)}),s&&(this._started=!1,Gu(n,([c,d])=>{d.value=l,c(d,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;lt.onFrame(this._onFrame)}};function D1(e,t){return Promise.all(t.map(n=>Gk(e,n))).then(n=>KE(e,n))}async function Gk(e,t,n){const{keys:r,to:a,from:s,loop:l,onRest:c,onResolve:d}=t,f=Oe.obj(t.default)&&t.default;l&&(t.loop=!1),a===!1&&(t.to=null),s===!1&&(t.from=null);const p=Oe.arr(a)||Oe.fun(a)?a:void 0;p?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):xt(p7,A=>{const C=t[A];if(Oe.fun(C)){const x=e._events[A];t[A]=({finished:D,cancelled:S})=>{const L=x.get(C);L?(D||(L.finished=!1),S&&(L.cancelled=!0)):x.set(C,{value:null,finished:D||!1,cancelled:S||!1})},f&&(f[A]=t[A])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,Pu(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const E=(r||Object.keys(e.springs)).map(A=>e.springs[A].start(t)),y=t.cancel===!0||Pk(t,"cancel")===!0;(p||y&&m.asyncId)&&E.push(jk(++e._lastAsyncId,{props:t,state:m,actions:{pause:b1,resume:b1,start(A,C){y?(vd(m,e._lastAsyncId),C(Vl(e))):(A.onRest=c,C(Uk(p,A,m,e)))}}})),m.paused&&await new Promise(A=>{m.resumeQueue.add(A)});const T=KE(e,await Promise.all(E));if(l&&T.finished&&!(n&&T.noop)){const A=zk(t,l,a);if(A)return Qk(e,[A]),Gk(e,A,!0)}return d&&lt.batchedUpdates(()=>d(T,e,e.item)),T}function fS(e,t){const n={...e.springs};return t&&xt(Jr(t),r=>{Oe.und(r.keys)&&(r=Td(r)),Oe.obj(r.to)||(r={...r,to:void 0}),Yk(n,r,a=>qk(a))}),Vk(e,n),n}function Vk(e,t){oi(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,uc(n,e))})}function qk(e,t){const n=new d7;return n.key=e,t&&uc(n,t),n}function Yk(e,t,n){t.keys&&xt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Qk(e,t){xt(t,n=>{Yk(e.springs,n,r=>qk(r,e))})}var y7=N.createContext({pause:!1,immediate:!1}),E7=()=>{const e=[],t=function(r){G8();const a=[];return xt(e,(s,l)=>{if(Oe.und(r))a.push(s.start());else{const c=n(r,s,l);c&&a.push(s.start(c))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return xt(e,r=>r.pause(...arguments)),this},t.resume=function(){return xt(e,r=>r.resume(...arguments)),this},t.set=function(r){xt(e,(a,s)=>{const l=Oe.fun(r)?r(s,a):r;l&&a.set(l)})},t.start=function(r){const a=[];return xt(e,(s,l)=>{if(Oe.und(r))a.push(s.start());else{const c=this._getProps(r,s,l);c&&a.push(s.start(c))}}),a},t.stop=function(){return xt(e,r=>r.stop(...arguments)),this},t.update=function(r){return xt(e,(a,s)=>a.update(this._getProps(r,a,s))),this};const n=function(r,a,s){return Oe.fun(r)?r(s,a):r};return t._getProps=n,t};function b7(e,t,n){const r=Oe.fun(t)&&t;r&&!n&&(n=[]);const a=N.useMemo(()=>r||arguments.length==3?E7():void 0,[]),s=N.useRef(0),l=Rk(),c=N.useMemo(()=>({ctrls:[],queue:[],flush(x,D){const S=fS(x,D);return s.current>0&&!c.queue.length&&!Object.keys(S).some(M=>!x.springs[M])?D1(x,D):new Promise(M=>{Vk(x,S),c.queue.push(()=>{M(D1(x,D))}),l()})}}),[]),d=N.useRef([...c.ctrls]),f=N.useRef([]),p=eS(e)||0;N.useMemo(()=>{xt(d.current.slice(e,p),x=>{a7(x,a),x.stop(!0)}),d.current.length=e,m(p,e)},[e]),N.useMemo(()=>{m(0,Math.min(p,e))},n);function m(x,D){for(let S=x;S<D;S++){const L=d.current[S]||(d.current[S]=new g7(null,c.flush)),M=r?r(S,L):t[S];M&&(f.current[S]=f7(M))}}const E=d.current.map((x,D)=>fS(x,f.current[D])),y=N.useContext(y7),T=eS(y),A=y!==T&&r7(y);QE(()=>{s.current++,c.ctrls=d.current;const{queue:x}=c;x.length&&(c.queue=[],xt(x,D=>D())),xt(d.current,(D,S)=>{a?.add(D),A&&D.start({default:y});const L=f.current[S];L&&(i7(D,L.ref),D.ref?D.queue.push(L):D.start(L))})}),wk(()=>()=>{xt(c.ctrls,x=>x.stop(!0))});const C=E.map(x=>({...x}));return a?[C,a]:C}function v7(e,t){const n=Oe.fun(e),[[r],a]=b7(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var T7=class extends XE{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=pd(...t);const n=this._get(),r=T1(n);$E(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Pi(t,n)||(ti(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&hS(this._active)&&hy(this)}_get(){const e=Oe.arr(this.source)?this.source.map(Lr):Jr(Lr(this.source));return this.calc(...e)}_start(){this.idle&&!hS(this._active)&&(this.idle=!1,xt(lm(this),e=>{e.done=!1}),Pa.skipAnimation?(lt.batchedUpdates(()=>this.advance()),hy(this)):am.start(this))}_attach(){let e=1;xt(Jr(this.source),t=>{va(t)&&uc(t,this),A1(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xt(Jr(this.source),e=>{va(e)&&yd(e,this)}),this._active.clear(),hy(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=Jr(this.source).reduce((t,n)=>Math.max(t,(A1(n)?n.priority:0)+1),0))}};function _7(e){return e.idle!==!1}function hS(e){return!e.size||Array.from(e).every(_7)}function hy(e){e.idle||(e.idle=!0,xt(lm(e),t=>{t.done=!0}),gd(e,{type:"idle",parent:e}))}Pa.assign({createStringInterpolator:Dk,to:(e,t)=>new T7(e,t)});var $k=/^--/;function x7(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!$k.test(e)&&!(Yu.hasOwnProperty(e)&&Yu[e])?t+"px":(""+t).trim()}var pS={};function A7(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:s,scrollTop:l,scrollLeft:c,viewBox:d,...f}=t,p=Object.values(f),m=Object.keys(f).map(E=>n||e.hasAttribute(E)?E:pS[E]||(pS[E]=E.replace(/([A-Z])/g,y=>"-"+y.toLowerCase())));s!==void 0&&(e.textContent=s);for(const E in a)if(a.hasOwnProperty(E)){const y=x7(E,a[E]);$k.test(E)?e.style.setProperty(E,y):e.style[E]=y}m.forEach((E,y)=>{e.setAttribute(E,p[y])}),r!==void 0&&(e.className=r),l!==void 0&&(e.scrollTop=l),c!==void 0&&(e.scrollLeft=c),d!==void 0&&e.setAttribute("viewBox",d)}var Yu={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},S7=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),C7=["Webkit","Ms","Moz","O"];Yu=Object.keys(Yu).reduce((e,t)=>(C7.forEach(n=>e[S7(n,t)]=e[t]),e),Yu);var D7=/^(matrix|translate|scale|rotate|skew)/,k7=/^(translate)/,R7=/^(rotate|skew)/,py=(e,t)=>Oe.num(e)&&e!==0?e+t:e,$h=(e,t)=>Oe.arr(e)?e.every(n=>$h(n,t)):Oe.num(e)?e===t:parseFloat(e)===t,w7=class extends um{constructor({x:e,y:t,z:n,...r}){const a=[],s=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),s.push(l=>[`translate3d(${l.map(c=>py(c,"px")).join(",")})`,$h(l,0)])),oi(r,(l,c)=>{if(c==="transform")a.push([l||""]),s.push(d=>[d,d===""]);else if(D7.test(c)){if(delete r[c],Oe.und(l))return;const d=k7.test(c)?"px":R7.test(c)?"deg":"";a.push(Jr(l)),s.push(c==="rotate3d"?([f,p,m,E])=>[`rotate3d(${f},${p},${m},${py(E,d)})`,$h(E,0)]:f=>[`${c}(${f.map(p=>py(p,d)).join(",")})`,$h(f,c.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new I7(a,s)),super(r)}},I7=class extends Ak{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return xt(this.inputs,(n,r)=>{const a=Lr(n[0]),[s,l]=this.transforms[r](Oe.arr(a)?a:n.map(Lr));e+=" "+s,t=t&&l}),t?"none":e}observerAdded(e){e==1&&xt(this.inputs,t=>xt(t,n=>va(n)&&uc(n,this)))}observerRemoved(e){e==0&&xt(this.inputs,t=>xt(t,n=>va(n)&&yd(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),gd(this,e)}},N7=["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"];Pa.assign({batchedUpdates:$2.unstable_batchedUpdates,createStringInterpolator:Dk,colors:T8});var O7=Z8(N7,{applyAnimatedValues:A7,createAnimatedStyle:e=>new w7(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),L7=O7.animated;const mS=e=>e,M7=()=>{let e=mS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mS}}},P7=M7();function Io(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 Fa(e){if(typeof e!="string")throw new Error(Io(7));return e.charAt(0).toUpperCase()+e.slice(1)}function dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gS={exports:{}},my,yS;function F7(){if(yS)return my;yS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return my=e,my}var gy,ES;function j7(){if(ES)return gy;ES=1;var e=F7();function t(){}function n(){}return n.resetWarningCache=t,gy=function(){function r(l,c,d,f,p,m){if(m!==e){var E=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 E.name="Invariant Violation",E}}r.isRequired=r;function a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},gy}var bS;function B7(){return bS||(bS=1,gS.exports=j7()()),gS.exports}var U7=B7();const vS=dm(U7);function Wk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Wk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fn(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Wk(e))&&(r&&(r+=" "),r+=t);return r}function jo(e,t,n=void 0){const r={};for(const a in e){const s=e[a];let l="",c=!0;for(let d=0;d<s.length;d+=1){const f=s[d];f&&(l+=(c===!0?"":" ")+t(f),c=!1,n&&n[f]&&(l+=" "+n[f]))}r[a]=l}return r}var TS={exports:{}},Ht={};/**
60
+ * @license React
61
+ * react-is.production.js
62
+ *
63
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
64
+ *
65
+ * This source code is licensed under the MIT license found in the
66
+ * LICENSE file in the root directory of this source tree.
67
+ */var _S;function H7(){if(_S)return Ht;_S=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function T(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case e:switch(A=A.type,A){case n:case a:case r:case d:case f:case E:return A;default:switch(A=A&&A.$$typeof,A){case l:case c:case m:case p:return A;case s:return A;default:return C}}case t:return C}}}return Ht.ContextConsumer=s,Ht.ContextProvider=l,Ht.Element=e,Ht.ForwardRef=c,Ht.Fragment=n,Ht.Lazy=m,Ht.Memo=p,Ht.Portal=t,Ht.Profiler=a,Ht.StrictMode=r,Ht.Suspense=d,Ht.SuspenseList=f,Ht.isContextConsumer=function(A){return T(A)===s},Ht.isContextProvider=function(A){return T(A)===l},Ht.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},Ht.isForwardRef=function(A){return T(A)===c},Ht.isFragment=function(A){return T(A)===n},Ht.isLazy=function(A){return T(A)===m},Ht.isMemo=function(A){return T(A)===p},Ht.isPortal=function(A){return T(A)===t},Ht.isProfiler=function(A){return T(A)===a},Ht.isStrictMode=function(A){return T(A)===r},Ht.isSuspense=function(A){return T(A)===d},Ht.isSuspenseList=function(A){return T(A)===f},Ht.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===a||A===r||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===p||A.$$typeof===l||A.$$typeof===s||A.$$typeof===c||A.$$typeof===y||A.getModuleId!==void 0)},Ht.typeOf=T,Ht}var xS;function z7(){return xS||(xS=1,TS.exports=H7()),TS.exports}var Kk=z7();function Fi(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 Xk(e){if(N.isValidElement(e)||Kk.isValidElementType(e)||!Fi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Xk(e[n])}),t}function ea(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Fi(e)&&Fi(t)&&Object.keys(t).forEach(a=>{N.isValidElement(t[a])||Kk.isValidElementType(t[a])?r[a]=t[a]:Fi(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Fi(e[a])?r[a]=ea(e[a],t[a],n):n.clone?r[a]=Fi(t[a])?Xk(t[a]):t[a]:r[a]=t[a]}),r}function Qu(e,t){return t?ea(e,t,{clone:!1}):e}function AS(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(a.match(s)?.[1]||0)});return n.length?n.reduce((r,a)=>{const s=t[a];return delete r[a],r[a]=s,r},{...t}):t}function G7(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function V7(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(s)}function q7(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function n(s,l){s.up=(...c)=>t(e.breakpoints.up(...c),l),s.down=(...c)=>t(e.breakpoints.down(...c),l),s.between=(...c)=>t(e.breakpoints.between(...c),l),s.only=(...c)=>t(e.breakpoints.only(...c),l),s.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},a=s=>(n(r,s),r);return n(a),{...e,containerQueries:a}}const fm={xs:0,sm:600,md:900,lg:1200,xl:1536},SS={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fm[e]}px)`},Y7={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:fm[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Vi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||SS;return t.reduce((s,l,c)=>(s[a.up(a.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const a=r.breakpoints||SS;return Object.keys(t).reduce((s,l)=>{if(G7(a.keys,l)){const c=V7(r.containerQueries?r:Y7,l);c&&(s[c]=n(t[l],l))}else if(Object.keys(a.values||fm).includes(l)){const c=a.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function Q7(e={}){return e.keys?.reduce((t,n)=>{const r=e.up(n);return t[r]={},t},{})||{}}function CS(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function hm(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function bp(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=hm(e,n)||r,t&&(a=t(a,r,e)),a}function In(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,s=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,f=hm(d,r)||{};return Vi(l,c,p=>{let m=bp(f,a,p);return p===m&&typeof p=="string"&&(m=bp(f,a,`${t}${p==="default"?"":Fa(p)}`,p)),n===!1?m:{[n]:m}})};return s.propTypes={},s.filterProps=[t],s}function $7(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const W7={m:"margin",p:"padding"},K7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},DS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},X7=$7(e=>{if(e.length>2)if(DS[e])e=DS[e];else return[e];const[t,n]=e.split(""),r=W7[t],a=K7[n]||"";return Array.isArray(a)?a.map(s=>r+s):[r+a]}),ZE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],JE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ZE,...JE];function Gd(e,t,n,r){const a=hm(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const l=Math.abs(s),c=a[l];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function eb(e){return Gd(e,"spacing",8)}function Vd(e,t){return typeof t=="string"||t==null?t:e(t)}function Z7(e,t){return n=>e.reduce((r,a)=>(r[a]=Vd(t,n),r),{})}function J7(e,t,n,r){if(!t.includes(n))return null;const a=X7(n),s=Z7(a,r),l=e[n];return Vi(e,l,s)}function Zk(e,t){const n=eb(e.theme);return Object.keys(e).map(r=>J7(e,t,r,n)).reduce(Qu,{})}function _n(e){return Zk(e,ZE)}_n.propTypes={};_n.filterProps=ZE;function xn(e){return Zk(e,JE)}xn.propTypes={};xn.filterProps=JE;function pm(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(s=>{r[s]=a}),r),{}),n=r=>Object.keys(r).reduce((a,s)=>t[s]?Qu(a,t[s](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Ta(e){return typeof e!="number"?e:`${e}px solid`}function Da(e,t){return In({prop:e,themeKey:"borders",transform:t})}const e9=Da("border",Ta),t9=Da("borderTop",Ta),n9=Da("borderRight",Ta),r9=Da("borderBottom",Ta),a9=Da("borderLeft",Ta),i9=Da("borderColor"),s9=Da("borderTopColor"),o9=Da("borderRightColor"),l9=Da("borderBottomColor"),c9=Da("borderLeftColor"),u9=Da("outline",Ta),d9=Da("outlineColor"),mm=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gd(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Vd(t,r)});return Vi(e,e.borderRadius,n)}return null};mm.propTypes={};mm.filterProps=["borderRadius"];pm(e9,t9,n9,r9,a9,i9,s9,o9,l9,c9,mm,u9,d9);const gm=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gd(e.theme,"spacing",8),n=r=>({gap:Vd(t,r)});return Vi(e,e.gap,n)}return null};gm.propTypes={};gm.filterProps=["gap"];const ym=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gd(e.theme,"spacing",8),n=r=>({columnGap:Vd(t,r)});return Vi(e,e.columnGap,n)}return null};ym.propTypes={};ym.filterProps=["columnGap"];const Em=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gd(e.theme,"spacing",8),n=r=>({rowGap:Vd(t,r)});return Vi(e,e.rowGap,n)}return null};Em.propTypes={};Em.filterProps=["rowGap"];const f9=In({prop:"gridColumn"}),h9=In({prop:"gridRow"}),p9=In({prop:"gridAutoFlow"}),m9=In({prop:"gridAutoColumns"}),g9=In({prop:"gridAutoRows"}),y9=In({prop:"gridTemplateColumns"}),E9=In({prop:"gridTemplateRows"}),b9=In({prop:"gridTemplateAreas"}),v9=In({prop:"gridArea"});pm(gm,ym,Em,f9,h9,p9,m9,g9,y9,E9,b9,v9);function ql(e,t){return t==="grey"?t:e}const T9=In({prop:"color",themeKey:"palette",transform:ql}),_9=In({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ql}),x9=In({prop:"backgroundColor",themeKey:"palette",transform:ql});pm(T9,_9,x9);function Zr(e){return e<=1&&e!==0?`${e*100}%`:e}const A9=In({prop:"width",transform:Zr}),tb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||fm[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Zr(n)}};return Vi(e,e.maxWidth,t)}return null};tb.filterProps=["maxWidth"];const S9=In({prop:"minWidth",transform:Zr}),C9=In({prop:"height",transform:Zr}),D9=In({prop:"maxHeight",transform:Zr}),k9=In({prop:"minHeight",transform:Zr});In({prop:"size",cssProperty:"width",transform:Zr});In({prop:"size",cssProperty:"height",transform:Zr});const R9=In({prop:"boxSizing"});pm(A9,tb,S9,C9,D9,k9,R9);const bm={border:{themeKey:"borders",transform:Ta},borderTop:{themeKey:"borders",transform:Ta},borderRight:{themeKey:"borders",transform:Ta},borderBottom:{themeKey:"borders",transform:Ta},borderLeft:{themeKey:"borders",transform:Ta},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ta},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mm},color:{themeKey:"palette",transform:ql},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ql},backgroundColor:{themeKey:"palette",transform:ql},p:{style:xn},pt:{style:xn},pr:{style:xn},pb:{style:xn},pl:{style:xn},px:{style:xn},py:{style:xn},padding:{style:xn},paddingTop:{style:xn},paddingRight:{style:xn},paddingBottom:{style:xn},paddingLeft:{style:xn},paddingX:{style:xn},paddingY:{style:xn},paddingInline:{style:xn},paddingInlineStart:{style:xn},paddingInlineEnd:{style:xn},paddingBlock:{style:xn},paddingBlockStart:{style:xn},paddingBlockEnd:{style:xn},m:{style:_n},mt:{style:_n},mr:{style:_n},mb:{style:_n},ml:{style:_n},mx:{style:_n},my:{style:_n},margin:{style:_n},marginTop:{style:_n},marginRight:{style:_n},marginBottom:{style:_n},marginLeft:{style:_n},marginX:{style:_n},marginY:{style:_n},marginInline:{style:_n},marginInlineStart:{style:_n},marginInlineEnd:{style:_n},marginBlock:{style:_n},marginBlockStart:{style:_n},marginBlockEnd:{style:_n},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:gm},rowGap:{style:Em},columnGap:{style:ym},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zr},maxWidth:{style:tb},minWidth:{transform:Zr},height:{transform:Zr},maxHeight:{transform:Zr},minHeight:{transform:Zr},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 w9(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function I9(e,t){return typeof e=="function"?e(t):e}function N9(){function e(n,r,a,s){const l={[n]:r,theme:a},c=s[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:p,style:m}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const E=hm(a,f)||{};return m?m(l):Vi(l,r,y=>{let T=bp(E,p,y);return y===T&&typeof y=="string"&&(T=bp(E,p,`${n}${y==="default"?"":Fa(y)}`,y)),d===!1?T:{[d]:T}})}function t(n){const{sx:r,theme:a={},nested:s}=n||{};if(!r)return null;const l=a.unstable_sxConfig??bm;function c(d){let f=d;if(typeof d=="function")f=d(a);else if(typeof d!="object")return d;if(!f)return null;const p=Q7(a.breakpoints),m=Object.keys(p);let E=p;return Object.keys(f).forEach(y=>{const T=I9(f[y],a);if(T!=null)if(typeof T=="object")if(l[y])E=Qu(E,e(y,T,a,l));else{const A=Vi({theme:a},T,C=>({[y]:C}));w9(A,T)?E[y]=t({sx:T,theme:a,nested:!0}):E=Qu(E,A)}else E=Qu(E,e(y,T,a,l))}),!s&&a.modularCssLayers?{"@layer sx":AS(a,CS(m,E))}:AS(a,CS(m,E))}return Array.isArray(r)?r.map(c):c(r)}return t}const tc=N9();tc.filterProps=["sx"];function O9(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function nb(e,t=0,n=1){return O9(e,t,n)}function L9(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,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ls(e){if(e.type)return e;if(e.charAt(0)==="#")return Ls(L9(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Io(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=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(a))throw new Error(Io(10,a))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:a}}const M9=e=>{const t=Ls(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Fu=(e,t)=>{try{return M9(e)}catch{return e}};function vm(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,s)=>s<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Jk(e){e=Ls(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=(f,p=(f+n/30)%12)=>a-s*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),vm({type:c,values:d})}function k1(e){e=Ls(e);let t=e.type==="hsl"||e.type==="hsla"?Ls(Jk(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 P9(e,t){const n=k1(e),r=k1(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function R1(e,t){return e=Ls(e),t=nb(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vm(e)}function _h(e,t,n){try{return R1(e,t)}catch{return e}}function rb(e,t){if(e=Ls(e),t=nb(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 vm(e)}function Vt(e,t,n){try{return rb(e,t)}catch{return e}}function ab(e,t){if(e=Ls(e),t=nb(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 vm(e)}function qt(e,t,n){try{return ab(e,t)}catch{return e}}function F9(e,t=.15){return k1(e)>.5?rb(e,t):ab(e,t)}function xh(e,t,n){try{return F9(e,t)}catch{return e}}const _d={black:"#000",white:"#fff"},j9={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"},Al={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Sl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},xu={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Cl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Dl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},kl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function e3(){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:_d.white,default:_d.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 B9=e3();function t3(){return{text:{primary:_d.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:_d.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 kS=t3();function RS(e,t,n,r){const a=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ab(e.main,a):t==="dark"&&(e.dark=rb(e.main,s)))}function U9(e="light"){return e==="dark"?{main:Cl[200],light:Cl[50],dark:Cl[400]}:{main:Cl[700],light:Cl[400],dark:Cl[800]}}function H9(e="light"){return e==="dark"?{main:Al[200],light:Al[50],dark:Al[400]}:{main:Al[500],light:Al[300],dark:Al[700]}}function z9(e="light"){return e==="dark"?{main:Sl[500],light:Sl[300],dark:Sl[700]}:{main:Sl[700],light:Sl[400],dark:Sl[800]}}function G9(e="light"){return e==="dark"?{main:Dl[400],light:Dl[300],dark:Dl[700]}:{main:Dl[700],light:Dl[500],dark:Dl[900]}}function V9(e="light"){return e==="dark"?{main:kl[400],light:kl[300],dark:kl[700]}:{main:kl[800],light:kl[500],dark:kl[900]}}function q9(e="light"){return e==="dark"?{main:xu[400],light:xu[300],dark:xu[700]}:{main:"#ed6c02",light:xu[500],dark:xu[900]}}function ib(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,s=e.primary||U9(t),l=e.secondary||H9(t),c=e.error||z9(t),d=e.info||G9(t),f=e.success||V9(t),p=e.warning||q9(t);function m(T){return P9(T,kS.text.primary)>=n?kS.text.primary:B9.text.primary}const E=({color:T,name:A,mainShade:C=500,lightShade:x=300,darkShade:D=700})=>{if(T={...T},!T.main&&T[C]&&(T.main=T[C]),!T.hasOwnProperty("main"))throw new Error(Io(11,A?` (${A})`:"",C));if(typeof T.main!="string")throw new Error(Io(12,A?` (${A})`:"",JSON.stringify(T.main)));return RS(T,"light",x,r),RS(T,"dark",D,r),T.contrastText||(T.contrastText=m(T.main)),T};let y;return t==="light"?y=e3():t==="dark"&&(y=t3()),ea({common:{..._d},mode:t,primary:E({color:s,name:"primary"}),secondary:E({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:c,name:"error"}),warning:E({color:p,name:"warning"}),info:E({color:d,name:"info"}),success:E({color:f,name:"success"}),grey:j9,contrastThreshold:n,getContrastText:m,augmentColor:E,tonalOffset:r,...y},a)}function Y9(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 Q9={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 $9(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var W9=/[A-Z]|^ms/g,K9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,n3=function(e){return e.charCodeAt(1)===45},wS=function(e){return e!=null&&typeof e!="boolean"},yy=$9(function(e){return n3(e)?e:e.replace(W9,"-$&").toLowerCase()}),IS=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(K9,function(n,r,a){return ks={name:r,styles:a,next:ks},r})}return Q9[e]!==1&&!n3(e)&&typeof t=="number"&&t!==0?t+"px":t};function vp(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 a=n;if(a.anim===1)return ks={name:a.name,styles:a.styles,next:ks},a.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)ks={name:l.name,styles:l.styles,next:ks},l=l.next;var c=s.styles+";";return c}return X9(e,t,n)}}var d=n;return d}function X9(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=vp(e,t,n[a])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var c=l;wS(c)&&(r+=yy(s)+":"+IS(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&t==null)for(var d=0;d<l.length;d++)wS(l[d])&&(r+=yy(s)+":"+IS(s,l[d])+";");else{var f=vp(e,t,l);switch(s){case"animation":case"animationName":{r+=yy(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}return r}var NS=/label:\s*([^\s;{]+)\s*(;|$)/g,ks;function Z9(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,a="";ks=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,a+=vp(n,t,s);else{var l=s;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=vp(n,t,e[c]),r){var d=s;a+=d[c]}NS.lastIndex=0;for(var f="",p;(p=NS.exec(a))!==null;)f+="-"+p[1];var m=Y9(a)+f;return{name:m,styles:a,next:ks}}function J9(e,t){return f4(e,t)}function eF(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const OS=[];function xo(e){return OS[0]=e,Z9(OS)}const tF=typeof window<"u"?N.useLayoutEffect:N.useEffect;function nF(e){return Object.keys(e).length===0}function rF(e=null){const t=N.useContext(D4);return!t||nF(t)?e:t}const aF=N.createContext(),iF=()=>N.useContext(aF)??!1;function Tp(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const s=a;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const l=e[s],c=t[s];if(!c)r[s]=l||{};else if(!l)r[s]=c;else{r[s]={...c};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const f=d;r[s][f]=Tp(l[f],c[f],n)}}}else s==="className"&&n&&t.className?r.className=Fn(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}const sF=N.createContext(void 0);function oF(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?Tp(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?Tp(a,r,t.components.mergeClassNameAndStyle):r}function lF({props:e,name:t}){const n=N.useContext(sF);return oF({props:e,name:t,theme:{components:n}})}const cF=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 uF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,s=cF(t),l=Object.keys(s);function c(E){return`@media (min-width:${typeof t[E]=="number"?t[E]:E}${n})`}function d(E){return`@media (max-width:${(typeof t[E]=="number"?t[E]:E)-r/100}${n})`}function f(E,y){const T=l.indexOf(y);return`@media (min-width:${typeof t[E]=="number"?t[E]:E}${n}) and (max-width:${(T!==-1&&typeof t[l[T]]=="number"?t[l[T]]:y)-r/100}${n})`}function p(E){return l.indexOf(E)+1<l.length?f(E,l[l.indexOf(E)+1]):c(E)}function m(E){const y=l.indexOf(E);return y===0?c(l[1]):y===l.length-1?d(l[y]):f(E,l[l.indexOf(E)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:c,down:d,between:f,only:p,not:m,unit:n,...a}}const dF={borderRadius:4};function fF(e=8,t=eb({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 hF(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 sb(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:s={},...l}=e,c=uF(n),d=fF(a);let f=ea({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...dF,...s}},l);return f=q7(f),f.applyStyles=hF,f=t.reduce((p,m)=>ea(p,m),f),f.unstable_sxConfig={...bm,...l?.unstable_sxConfig},f.unstable_sx=function(p){return tc({sx:p,theme:this})},f}const pF=sb();function mF(e=pF){return rF(e)}const LS=(e,t,n,r=[])=>{let a=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(a)?a[Number(s)]=n:a&&typeof a=="object"&&(a[s]=n):a&&typeof a=="object"&&(a[s]||(a[s]=r.includes(s)?[]:{}),a=a[s])})},gF=(e,t,n)=>{function r(a,s=[],l=[]){Object.entries(a).forEach(([c,d])=>{(!n||n&&!n([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,c],Array.isArray(d)?[...l,c]:l):t([...s,c],d,l))})}r(e)},yF=(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 Ey(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},s={},l={};return gF(e,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const p=`--${n?`${n}-`:""}${c.join("-")}`,m=yF(c,d);Object.assign(a,{[p]:m}),LS(s,c,`var(${p})`,f),LS(l,c,`var(${p}, ${m})`,f)}},c=>c[0]==="vars"),{css:a,vars:s,varsWithDefaults:l}}function EF(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...d}=e,{vars:f,css:p,varsWithDefaults:m}=Ey(d,t);let E=m;const y={},{[c]:T,...A}=s;if(Object.entries(A||{}).forEach(([x,D])=>{const{vars:S,css:L,varsWithDefaults:M}=Ey(D,t);E=ea(E,M),y[x]={css:L,vars:S}}),T){const{css:x,vars:D,varsWithDefaults:S}=Ey(T,t);E=ea(E,S),y[c]={css:x,vars:D}}function C(x,D){let S=a;if(a==="class"&&(S=".%s"),a==="data"&&(S="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(S=`[${a}="%s"]`),x){if(S==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${s[x]?.palette?.mode||x})`]:{":root":D}};if(S)return e.defaultColorScheme===x?`:root, ${S.replace("%s",String(x))}`:S.replace("%s",String(x))}return":root"}return{vars:E,generateThemeVars:()=>{let x={...f};return Object.entries(y).forEach(([,{vars:D}])=>{x=ea(x,D)}),x},generateStyleSheets:()=>{const x=[],D=e.defaultColorScheme||"light";function S(w,q){Object.keys(q).length&&x.push(typeof w=="string"?{[w]:{...q}}:w)}S(n(void 0,{...p}),p);const{[D]:L,...M}=y;if(L){const{css:w}=L,q=s[D]?.palette?.mode,ne=!r&&q?{colorScheme:q,...w}:{...w};S(n(D,{...ne}),ne)}return Object.entries(M).forEach(([w,{css:q}])=>{const ne=s[w]?.palette?.mode,W=!r&&ne?{colorScheme:ne,...q}:{...q};S(n(w,{...W}),W)}),x}}}function bF(e){const t={};return Object.entries(e).forEach(n=>{const[r,a]=n;typeof a=="object"&&(t[r]=`${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 vF(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 TF={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 Fs(e,t,n="Mui"){const r=TF[t];return r?`${n}-${r}`:`${P7.generate(e)}-${t}`}function _F(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function xF(e){return Math.round(e*1e5)/1e5}const MS={textTransform:"uppercase"},PS='"Roboto", "Helvetica", "Arial", sans-serif';function AF(e,t){const{fontFamily:n=PS,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:p,...m}=typeof t=="function"?t(e):t,E=r/14,y=p||(C=>`${C/d*E}rem`),T=(C,x,D,S,L)=>({fontFamily:n,fontWeight:C,fontSize:y(x),lineHeight:D,...n===PS?{letterSpacing:`${xF(S/x)}em`}:{},...L,...f}),A={h1:T(a,96,1.167,-1.5),h2:T(a,60,1.2,-.5),h3:T(s,48,1.167,0),h4:T(s,34,1.235,.25),h5:T(s,24,1.334,0),h6:T(l,20,1.6,.15),subtitle1:T(s,16,1.75,.15),subtitle2:T(l,14,1.57,.1),body1:T(s,16,1.5,.15),body2:T(s,14,1.43,.15),button:T(l,14,1.75,.4,MS),caption:T(s,12,1.66,.4),overline:T(s,12,2.66,1,MS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ea({htmlFontSize:d,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c,...A},m,{clone:!1})}const SF=.2,CF=.14,DF=.12;function cn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${SF})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${CF})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${DF})`].join(",")}const kF=["none",cn(0,2,1,-1,0,1,1,0,0,1,3,0),cn(0,3,1,-2,0,2,2,0,0,1,5,0),cn(0,3,3,-2,0,3,4,0,0,1,8,0),cn(0,2,4,-1,0,4,5,0,0,1,10,0),cn(0,3,5,-1,0,5,8,0,0,1,14,0),cn(0,3,5,-1,0,6,10,0,0,1,18,0),cn(0,4,5,-2,0,7,10,1,0,2,16,1),cn(0,5,5,-3,0,8,10,1,0,3,14,2),cn(0,5,6,-3,0,9,12,1,0,3,16,2),cn(0,6,6,-3,0,10,14,1,0,4,18,3),cn(0,6,7,-4,0,11,15,1,0,4,20,3),cn(0,7,8,-4,0,12,17,2,0,5,22,4),cn(0,7,8,-4,0,13,19,2,0,5,24,4),cn(0,7,9,-4,0,14,21,2,0,5,26,4),cn(0,8,9,-5,0,15,22,2,0,6,28,5),cn(0,8,10,-5,0,16,24,2,0,6,30,5),cn(0,8,11,-5,0,17,26,2,0,6,32,5),cn(0,9,11,-5,0,18,28,2,0,7,34,6),cn(0,9,12,-6,0,19,29,2,0,7,36,6),cn(0,10,13,-6,0,20,31,3,0,8,38,7),cn(0,10,13,-6,0,21,33,3,0,8,40,7),cn(0,10,14,-6,0,22,35,3,0,8,42,7),cn(0,11,14,-7,0,23,36,3,0,9,44,8),cn(0,11,15,-7,0,24,38,3,0,9,46,8)],RF={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)"},r3={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FS(e){return`${Math.round(e)}ms`}function wF(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function IF(e){const t={...RF,...e.easing},n={...r3,...e.duration};return{getAutoHeightDuration:wF,create:(r=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=a;return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof s=="string"?s:FS(s)} ${l} ${typeof c=="string"?c:FS(c)}`).join(",")},...e,easing:t,duration:n}}const NF={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function OF(e){return Fi(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function a3(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let s=0;s<a.length;s++){const[l,c]=a[s];!OF(c)||l.startsWith("unstable_")?delete r[l]:Fi(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
68
+
69
+ const theme = ${JSON.stringify(t,null,2)};
70
+
71
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
72
+ theme.transitions = createTransitions(theme.transitions || {});
73
+
74
+ export default theme;`}function w1(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:s={},transitions:l={},typography:c={},shape:d,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Io(20));const p=ib(s),m=sb(e);let E=ea(m,{mixins:_F(m.breakpoints,r),palette:p,shadows:kF.slice(),typography:AF(p,c),transitions:IF(l),zIndex:{...NF}});return E=ea(E,f),E=t.reduce((y,T)=>ea(y,T),E),E.unstable_sxConfig={...bm,...f?.unstable_sxConfig},E.unstable_sx=function(y){return tc({sx:y,theme:this})},E.toRuntimeSource=a3,E}function LF(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 MF=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=LF(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function i3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function s3(e){return e==="dark"?MF:[]}function PF(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,s=ib(t);return{palette:s,opacity:{...i3(s.mode),...n},overlays:r||s3(s.mode),...a}}function FF(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const jF=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],BF=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let s=a;if(a==="class"&&(s=".%s"),a==="data"&&(s="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(s=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return jF(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:s?{[s.replace("%s",t)]:l,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function UF(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function he(e,t,n){!e[t]&&n&&(e[t]=n)}function ju(e){return typeof e!="string"||!e.startsWith("hsl")?e:Jk(e)}function Ii(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Fu(ju(e[t])))}function HF(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xa=e=>{try{return e()}catch{}},zF=(e="mui")=>u4(e);function by(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=PF({...t,palette:{mode:a,...t?.palette}});return}const{palette:s,...l}=w1({...n,palette:{mode:a,...t?.palette}});return e[r]={...t,palette:s,opacity:{...i3(a),...t?.opacity},overlays:t?.overlays||s3(a)},l}function GF(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:l=FF,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),E=zF(s),{[m]:y,light:T,dark:A,...C}=n,x={...C};let D=y;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(Io(21,m));const S=by(x,D,f,m);T&&!x.light&&by(x,T,void 0,"light"),A&&!x.dark&&by(x,A,void 0,"dark");let L={defaultColorScheme:m,...S,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:d,getCssVar:E,colorSchemes:x,font:{...bF(S.typography),...S.font},spacing:HF(f.spacing)};Object.keys(L.colorSchemes).forEach(W=>{const k=L.colorSchemes[W].palette,z=$=>{const K=$.split("-"),re=K[1],me=K[2];return E($,k[re][me])};if(k.mode==="light"&&(he(k.common,"background","#fff"),he(k.common,"onBackground","#000")),k.mode==="dark"&&(he(k.common,"background","#000"),he(k.common,"onBackground","#fff")),UF(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){he(k.Alert,"errorColor",Vt(k.error.light,.6)),he(k.Alert,"infoColor",Vt(k.info.light,.6)),he(k.Alert,"successColor",Vt(k.success.light,.6)),he(k.Alert,"warningColor",Vt(k.warning.light,.6)),he(k.Alert,"errorFilledBg",z("palette-error-main")),he(k.Alert,"infoFilledBg",z("palette-info-main")),he(k.Alert,"successFilledBg",z("palette-success-main")),he(k.Alert,"warningFilledBg",z("palette-warning-main")),he(k.Alert,"errorFilledColor",Xa(()=>k.getContrastText(k.error.main))),he(k.Alert,"infoFilledColor",Xa(()=>k.getContrastText(k.info.main))),he(k.Alert,"successFilledColor",Xa(()=>k.getContrastText(k.success.main))),he(k.Alert,"warningFilledColor",Xa(()=>k.getContrastText(k.warning.main))),he(k.Alert,"errorStandardBg",qt(k.error.light,.9)),he(k.Alert,"infoStandardBg",qt(k.info.light,.9)),he(k.Alert,"successStandardBg",qt(k.success.light,.9)),he(k.Alert,"warningStandardBg",qt(k.warning.light,.9)),he(k.Alert,"errorIconColor",z("palette-error-main")),he(k.Alert,"infoIconColor",z("palette-info-main")),he(k.Alert,"successIconColor",z("palette-success-main")),he(k.Alert,"warningIconColor",z("palette-warning-main")),he(k.AppBar,"defaultBg",z("palette-grey-100")),he(k.Avatar,"defaultBg",z("palette-grey-400")),he(k.Button,"inheritContainedBg",z("palette-grey-300")),he(k.Button,"inheritContainedHoverBg",z("palette-grey-A100")),he(k.Chip,"defaultBorder",z("palette-grey-400")),he(k.Chip,"defaultAvatarColor",z("palette-grey-700")),he(k.Chip,"defaultIconColor",z("palette-grey-700")),he(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),he(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),he(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),he(k.LinearProgress,"primaryBg",qt(k.primary.main,.62)),he(k.LinearProgress,"secondaryBg",qt(k.secondary.main,.62)),he(k.LinearProgress,"errorBg",qt(k.error.main,.62)),he(k.LinearProgress,"infoBg",qt(k.info.main,.62)),he(k.LinearProgress,"successBg",qt(k.success.main,.62)),he(k.LinearProgress,"warningBg",qt(k.warning.main,.62)),he(k.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),he(k.Slider,"primaryTrack",qt(k.primary.main,.62)),he(k.Slider,"secondaryTrack",qt(k.secondary.main,.62)),he(k.Slider,"errorTrack",qt(k.error.main,.62)),he(k.Slider,"infoTrack",qt(k.info.main,.62)),he(k.Slider,"successTrack",qt(k.success.main,.62)),he(k.Slider,"warningTrack",qt(k.warning.main,.62));const $=xh(k.background.default,.8);he(k.SnackbarContent,"bg",$),he(k.SnackbarContent,"color",Xa(()=>k.getContrastText($))),he(k.SpeedDialAction,"fabHoverBg",xh(k.background.paper,.15)),he(k.StepConnector,"border",z("palette-grey-400")),he(k.StepContent,"border",z("palette-grey-400")),he(k.Switch,"defaultColor",z("palette-common-white")),he(k.Switch,"defaultDisabledColor",z("palette-grey-100")),he(k.Switch,"primaryDisabledColor",qt(k.primary.main,.62)),he(k.Switch,"secondaryDisabledColor",qt(k.secondary.main,.62)),he(k.Switch,"errorDisabledColor",qt(k.error.main,.62)),he(k.Switch,"infoDisabledColor",qt(k.info.main,.62)),he(k.Switch,"successDisabledColor",qt(k.success.main,.62)),he(k.Switch,"warningDisabledColor",qt(k.warning.main,.62)),he(k.TableCell,"border",qt(_h(k.divider,1),.88)),he(k.Tooltip,"bg",_h(k.grey[700],.92))}if(k.mode==="dark"){he(k.Alert,"errorColor",qt(k.error.light,.6)),he(k.Alert,"infoColor",qt(k.info.light,.6)),he(k.Alert,"successColor",qt(k.success.light,.6)),he(k.Alert,"warningColor",qt(k.warning.light,.6)),he(k.Alert,"errorFilledBg",z("palette-error-dark")),he(k.Alert,"infoFilledBg",z("palette-info-dark")),he(k.Alert,"successFilledBg",z("palette-success-dark")),he(k.Alert,"warningFilledBg",z("palette-warning-dark")),he(k.Alert,"errorFilledColor",Xa(()=>k.getContrastText(k.error.dark))),he(k.Alert,"infoFilledColor",Xa(()=>k.getContrastText(k.info.dark))),he(k.Alert,"successFilledColor",Xa(()=>k.getContrastText(k.success.dark))),he(k.Alert,"warningFilledColor",Xa(()=>k.getContrastText(k.warning.dark))),he(k.Alert,"errorStandardBg",Vt(k.error.light,.9)),he(k.Alert,"infoStandardBg",Vt(k.info.light,.9)),he(k.Alert,"successStandardBg",Vt(k.success.light,.9)),he(k.Alert,"warningStandardBg",Vt(k.warning.light,.9)),he(k.Alert,"errorIconColor",z("palette-error-main")),he(k.Alert,"infoIconColor",z("palette-info-main")),he(k.Alert,"successIconColor",z("palette-success-main")),he(k.Alert,"warningIconColor",z("palette-warning-main")),he(k.AppBar,"defaultBg",z("palette-grey-900")),he(k.AppBar,"darkBg",z("palette-background-paper")),he(k.AppBar,"darkColor",z("palette-text-primary")),he(k.Avatar,"defaultBg",z("palette-grey-600")),he(k.Button,"inheritContainedBg",z("palette-grey-800")),he(k.Button,"inheritContainedHoverBg",z("palette-grey-700")),he(k.Chip,"defaultBorder",z("palette-grey-700")),he(k.Chip,"defaultAvatarColor",z("palette-grey-300")),he(k.Chip,"defaultIconColor",z("palette-grey-300")),he(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),he(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),he(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),he(k.LinearProgress,"primaryBg",Vt(k.primary.main,.5)),he(k.LinearProgress,"secondaryBg",Vt(k.secondary.main,.5)),he(k.LinearProgress,"errorBg",Vt(k.error.main,.5)),he(k.LinearProgress,"infoBg",Vt(k.info.main,.5)),he(k.LinearProgress,"successBg",Vt(k.success.main,.5)),he(k.LinearProgress,"warningBg",Vt(k.warning.main,.5)),he(k.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),he(k.Slider,"primaryTrack",Vt(k.primary.main,.5)),he(k.Slider,"secondaryTrack",Vt(k.secondary.main,.5)),he(k.Slider,"errorTrack",Vt(k.error.main,.5)),he(k.Slider,"infoTrack",Vt(k.info.main,.5)),he(k.Slider,"successTrack",Vt(k.success.main,.5)),he(k.Slider,"warningTrack",Vt(k.warning.main,.5));const $=xh(k.background.default,.98);he(k.SnackbarContent,"bg",$),he(k.SnackbarContent,"color",Xa(()=>k.getContrastText($))),he(k.SpeedDialAction,"fabHoverBg",xh(k.background.paper,.15)),he(k.StepConnector,"border",z("palette-grey-600")),he(k.StepContent,"border",z("palette-grey-600")),he(k.Switch,"defaultColor",z("palette-grey-300")),he(k.Switch,"defaultDisabledColor",z("palette-grey-600")),he(k.Switch,"primaryDisabledColor",Vt(k.primary.main,.55)),he(k.Switch,"secondaryDisabledColor",Vt(k.secondary.main,.55)),he(k.Switch,"errorDisabledColor",Vt(k.error.main,.55)),he(k.Switch,"infoDisabledColor",Vt(k.info.main,.55)),he(k.Switch,"successDisabledColor",Vt(k.success.main,.55)),he(k.Switch,"warningDisabledColor",Vt(k.warning.main,.55)),he(k.TableCell,"border",Vt(_h(k.divider,1),.68)),he(k.Tooltip,"bg",_h(k.grey[700],.92))}Ii(k.background,"default"),Ii(k.background,"paper"),Ii(k.common,"background"),Ii(k.common,"onBackground"),Ii(k,"divider"),Object.keys(k).forEach($=>{const K=k[$];$!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&he(k[$],"mainChannel",Fu(ju(K.main))),K.light&&he(k[$],"lightChannel",Fu(ju(K.light))),K.dark&&he(k[$],"darkChannel",Fu(ju(K.dark))),K.contrastText&&he(k[$],"contrastTextChannel",Fu(ju(K.contrastText))),$==="text"&&(Ii(k[$],"primary"),Ii(k[$],"secondary")),$==="action"&&(K.active&&Ii(k[$],"active"),K.selected&&Ii(k[$],"selected")))})}),L=t.reduce((W,k)=>ea(W,k),L);const M={prefix:s,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:BF(L)},{vars:w,generateThemeVars:q,generateStyleSheets:ne}=EF(L,M);return L.vars=w,Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([W,k])=>{L[W]=k}),L.generateThemeVars=q,L.generateStyleSheets=ne,L.generateSpacing=function(){return d4(f.spacing,eb(this))},L.getColorSchemeSelector=vF(c),L.spacing=L.generateSpacing(),L.shouldSkipGeneratingVar=l,L.unstable_sxConfig={...bm,...f?.unstable_sxConfig},L.unstable_sx=function(W){return tc({sx:W,theme:this})},L.toRuntimeSource=a3,L}function jS(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ib({...n===!0?{}:n.palette,mode:t})})}function VF(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...l}=e,c=s||"light",d=a?.[c],f={...a,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return w1(e,...t);let p=n;"palette"in e||f[c]&&(f[c]!==!0?p=f[c].palette:c==="dark"&&(p={mode:"dark"}));const m=w1({...e,palette:p},...t);return m.defaultColorScheme=c,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},jS(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},jS(m,"light",f.light)),m}return!n&&!("light"in f)&&c==="light"&&(f.light=!0),GF({...l,colorSchemes:f,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const ob=VF(),lb="$$material";function qF(){const e=h4(ob);return e[lb]||e}function YF(e){const{variants:t,...n}=e,r={variants:t,style:xo(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=xo(a.style))}),r}const QF=sb();function Ns(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function po(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function $F(e){return e?(t,n)=>n[e]:null}function WF(e,t,n){e.theme=XF(e.theme)?n:e.theme[t]||e.theme}function Wh(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>Wh(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?po(r.style,n):r.style;else{const{variants:s,...l}=r;a=n?po(xo(l),n):l}return o3(e,r.variants,[a],n)}return r?.isProcessed?n?po(xo(r.style),n):r.style:n?po(xo(r),n):r}function o3(e,t,n=[],r=void 0){let a;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(a))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?po(xo(l.style(a)),r):l.style(a))):n.push(r?po(xo(l.style),r):l.style)}return n}function KF(e={}){const{themeId:t,defaultTheme:n=QF,rootShouldForwardProp:r=Ns,slotShouldForwardProp:a=Ns}=e;function s(l){WF(l,t,n)}return(l,c={})=>{eF(l,M=>M.filter(w=>w!==tc));const{name:d,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:E=$F(JF(f)),...y}=c,T=d&&d.startsWith("Mui")||f?"components":"custom",A=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,C=m||!1;let x=Ns;f==="Root"||f==="root"?x=r:f?x=a:ZF(l)&&(x=void 0);const D=J9(l,{shouldForwardProp:x,label:void 0,...y}),S=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(w){return Wh(w,M,w.theme.modularCssLayers?T:void 0)};if(Fi(M)){const w=YF(M);return function(q){return w.variants?Wh(q,w,q.theme.modularCssLayers?T:void 0):q.theme.modularCssLayers?po(w.style,T):w.style}}return M},L=(...M)=>{const w=[],q=M.map(S),ne=[];if(w.push(s),d&&E&&ne.push(function(z){const $=z.theme.components?.[d]?.styleOverrides;if(!$)return null;const K={};for(const re in $)K[re]=Wh(z,$[re],z.theme.modularCssLayers?"theme":void 0);return E(z,K)}),d&&!A&&ne.push(function(z){const $=z.theme?.components?.[d]?.variants;return $?o3(z,$,[],z.theme.modularCssLayers?"theme":void 0):null}),C||ne.push(tc),Array.isArray(q[0])){const z=q.shift(),$=new Array(w.length).fill(""),K=new Array(ne.length).fill("");let re;re=[...$,...z,...K],re.raw=[...$,...z.raw,...K],w.unshift(re)}const W=[...w,...q,...ne],k=D(...W);return l.muiName&&(k.muiName=l.muiName),k};return D.withConfig&&(L.withConfig=D.withConfig),L}}function XF(e){for(const t in e)return!1;return!0}function ZF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function JF(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ej(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const cb=e=>ej(e)&&e!=="classes",sn=KF({themeId:lb,defaultTheme:ob,rootShouldForwardProp:cb}),ub=s4;function dc(e){return lF(e)}function js(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Fs(e,a,n)}),r}function tj(e){return Fs("MuiSvgIcon",e)}js("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nj=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${Fa(t)}`,`fontSize${Fa(n)}`]};return jo(a,tj,r)},rj=sn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fa(n.color)}`],t[`fontSize${Fa(n.fontSize)}`]]}})(ub(({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}}]}))),I1=N.forwardRef(function(e,t){const n=dc({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...E}=n,y=N.isValidElement(r)&&r.type==="svg",T={...n,color:s,component:l,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:y},A={};f||(A.viewBox=m);const C=nj(T);return b.jsxs(rj,{as:l,className:Fn(C.root,a),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:t,...A,...E,...y&&r.props,ownerState:T,children:[y?r.props.children:r,p?b.jsx("title",{children:p}):null]})});I1.muiName="SvgIcon";function $t(e,t){function n(r,a){return b.jsx(I1,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=I1.muiName,N.memo(N.forwardRef(n))}function aj(e){return e&&e.ownerDocument||document}function ij(e){const{controlled:t,default:n}=e,{current:r}=N.useRef(t!==void 0),[a,s]=N.useState(n),l=r?t:a,c=N.useCallback(d=>{r||s(d)},[]);return[l,c]}function si(e){const t=N.useRef(e);return tF(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function li(...e){const t=N.useRef(void 0),n=N.useCallback(r=>{const a=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const l=s,c=l(r);return typeof c=="function"?c:()=>{l(null)}}return s.current=r,()=>{s.current=null}});return()=>{a.forEach(s=>s?.())}},e);return N.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function sj(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function oj(e,t){if(!e)return t;function n(l,c){const d={};return Object.keys(c).forEach(f=>{sj(f,c[f])&&typeof l[f]=="function"&&(d[f]=(...p)=>{l[f](...p),c[f](...p)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,f=Fn(l?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!f&&{className:f},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,a=n(e,r),s=Fn(r?.className,e?.className);return{...t,...e,...a,...!!s&&{className:s},...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 Tm=$t(b.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"})),qd=$t(b.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"})),l3=[{id:"abap",name:"ABAP",import:()=>j(()=>import("./abap-BmBUA35e-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>j(()=>import("./actionscript-3-zFUbzQa9-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>j(()=>import("./ada-CBvPkFpZ-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>j(()=>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:()=>j(()=>import("./angular-ts-wkniW60G-CLxf_aqD.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>j(()=>import("./apache-CVNlsSDc-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>j(()=>import("./apex-DFk3KRB1-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>j(()=>import("./apl-TLDHFJX6-4Ja2pao0.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>j(()=>import("./applescript-CYMR_y0g-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>j(()=>import("./ara-4QmU5e04-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>j(()=>import("./asciidoc-v_1bjgUg-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>j(()=>import("./asm-RC0Yh-NZ-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>j(()=>import("./astro-Uf8_VxKJ-CLNq6E27.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>j(()=>import("./awk-gPH8MVMW-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>j(()=>import("./ballerina-kvLnRU_e-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>j(()=>import("./bat-BHYy44sT-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>j(()=>import("./beancount-D-MADTs_-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>j(()=>import("./berry-Ci9U0o4h-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>j(()=>import("./bibtex-CX618D15-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>j(()=>import("./bicep-iuYiPopT-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>j(()=>import("./blade-BtR00Gx0-BH_u9bLw.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>j(()=>import("./bsl-BIXPNqL4-B7NuXuWJ.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>j(()=>import("./c-DASdrs7p-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>j(()=>import("./cadence-BDALQi26-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>j(()=>import("./cairo-tXZKA2PT-BLBT-6ii.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>j(()=>import("./clarity-CNgV2Ths-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>j(()=>import("./clojure-CsKKFGwv-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>j(()=>import("./cmake-Dr-A3iJx-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>j(()=>import("./cobol-DMssKNmC-B2fukI-w.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>j(()=>import("./codeowners-Bt9yU6NX-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>j(()=>import("./codeql-DBNTqJi1-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>j(()=>import("./coffee-D_GzM8k1-4lliG68M.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>j(()=>import("./common-lisp-r7ZEOG7T-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>j(()=>import("./coq-CB6Pv_W9-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>j(()=>import("./cpp-CJF2i3ah-pZOsOWe_.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>j(()=>import("./crystal-BKWnaU3g-DLUiimt9.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>j(()=>import("./csharp-CYWRhZ2R-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>j(()=>import("./css-D1aVdRIU-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>j(()=>import("./csv-DvCncUGQ-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>j(()=>import("./cue-BXMrmvay-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>j(()=>import("./cypher-DTm5zNR1-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>j(()=>import("./d-D6ZXmn3l-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>j(()=>import("./dart-Dz59Is3F-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>j(()=>import("./dax-DTVGzydb-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>j(()=>import("./desktop-Db9vb-dl-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>j(()=>import("./diff-XmNrvgM1-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>j(()=>import("./docker-DWH2onkn-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>j(()=>import("./dotenv-4337wvzu-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>j(()=>import("./dream-maker-CvvfrJSx-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>j(()=>import("./edge-CgxR-qhM-C4-j-4jN.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>j(()=>import("./elixir-DZkeSPwW-CcKXTVRL.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>j(()=>import("./elm-BKuV1HE1-DhehEoOI.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>j(()=>import("./emacs-lisp-BAefI874-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>j(()=>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:()=>j(()=>import("./erlang-CmIiwF3I-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>j(()=>import("./fennel-DNqkz9pE-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>j(()=>import("./fish-DIm72t2T-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>j(()=>import("./fluent-BapTxJsC-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>j(()=>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:()=>j(()=>import("./fortran-free-form-CNDsBFUj-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>j(()=>import("./fsharp-Cv0x43wb-Dg8cqrY9.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>j(()=>import("./gdresource-CMcKXvgJ-CWt23EK3.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>j(()=>import("./gdscript-D7aheHm--DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>j(()=>import("./gdshader-BGJEsM2Z-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>j(()=>import("./genie-C9gPjc6J-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>j(()=>import("./gherkin-bka1Exbx--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>j(()=>import("./git-commit-BspYIY3P-n1pa9hpQ.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>j(()=>import("./git-rebase--zLBTjUa-D_BU2XLr.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>j(()=>import("./gleam-B4k9YFGD-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>j(()=>import("./glimmer-js-DhY9umHJ-VrvmblrN.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>j(()=>import("./glimmer-ts-CCrHcYH5-JtH9P_df.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>j(()=>import("./glsl-XLGYNq5B-BsoackK0.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>j(()=>import("./gnuplot-DnWoRZt--CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>j(()=>import("./go-BErP6iv1-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>j(()=>import("./graphql-DWpQF4JI-Bg_kbUNo.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>j(()=>import("./groovy-IWs5-NIO-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>j(()=>import("./hack-CQrV-ytR-DsU69WFl.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>j(()=>import("./haml-CMN0hQaL-P2mc1-Uz.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>j(()=>import("./handlebars-Cc-7fXX5-1wmMMko9.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>j(()=>import("./haskell-CtlGos0K-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>j(()=>import("./haxe-CZZ33vZw-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>j(()=>import("./hcl-6hOg9WP4-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>j(()=>import("./hjson-CgwED-oz-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>j(()=>import("./hlsl-3-lv4gi7-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>j(()=>import("./html-B0P_v3yU-5FUQOWqS.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>j(()=>import("./html-derivative-D59SHfh8-CSkG6UyS.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>j(()=>import("./http-Dcjm_K1m-BIoBBtFi.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>j(()=>import("./hxml-BNKImryz-C86vEiUs.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>j(()=>import("./hy-C2xHhR6I-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>j(()=>import("./imba-Drd0AMDo-ClNo5Aft.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>j(()=>import("./ini-BUcvsX-U-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>j(()=>import("./java-B7odJ7Ap-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>j(()=>import("./javascript-fa8UlHZE-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>j(()=>import("./jinja-CCSYduCH-DYrHgqe4.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>j(()=>import("./jison-BygvlveW-CnxAXEK_.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>j(()=>import("./json-71t8ZF9g-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>j(()=>import("./json5-Z7F6rA6a-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>j(()=>import("./jsonc-Dphhs4m2-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>j(()=>import("./jsonl-D9jj92Gg-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>j(()=>import("./jsonnet-DEQ7IUoJ-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>j(()=>import("./jssm-j74e88UX-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>j(()=>import("./jsx-Bkesy5tT-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>j(()=>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:()=>j(()=>import("./kotlin-DCgZY7Ii-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>j(()=>import("./kusto-Cw029H-v-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>j(()=>import("./latex-LfGCYGw5-BH0TQ0ei.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>j(()=>import("./lean-CYSet4vs-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>j(()=>import("./less-DQA4v-Nm-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>j(()=>import("./liquid-CvufO3kO-CDc-Ahzk.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>j(()=>import("./log-D2eRfqDn-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>j(()=>import("./logo-QEAtGWZ9-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>j(()=>import("./lua-BVfhNLDr-CWJMHgTQ.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>j(()=>import("./luau-BjYGiqID-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>j(()=>import("./make-BjuHP00g-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>j(()=>import("./markdown-B6guhLWd-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>j(()=>import("./marko-CHlMS8w5-BMD3FaEa.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>j(()=>import("./matlab-BpQlIJiw-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>j(()=>import("./mdc-4K6B6lHG-BAGHtNo-.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>j(()=>import("./mdx-DIoECIFU-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>j(()=>import("./mermaid-BZ7WHNIe-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>j(()=>import("./mipsasm-DusDYkFc-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>j(()=>import("./mojo-CY9jaezJ-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>j(()=>import("./move-ChphFumd-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>j(()=>import("./narrat-Dz4d7OmN-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>j(()=>import("./nextflow-DW0Yq9a2-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>j(()=>import("./nginx-Can2eAjw-CdY2tLiv.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>j(()=>import("./nim-B3r2RtQZ-VfCbv_TB.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>j(()=>import("./nix-Cg5uV_xg-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>j(()=>import("./nushell-BfRnzRWn-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>j(()=>import("./objective-c-BGg9R27G-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>j(()=>import("./objective-cpp-CJ3y3V_5-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>j(()=>import("./ocaml-BZLsfx_o-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>j(()=>import("./pascal-l2bqd7Dz-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>j(()=>import("./perl-DaMQyPwp-C4BFOiY3.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>j(()=>import("./php-BL3EfPBi-BMN5eA9q.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>j(()=>import("./plsql-oVq_K_wH-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>j(()=>import("./po-5jaeIyVd-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>j(()=>import("./polar-wcLp8ci7-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>j(()=>import("./postcss-BZ3MNRIJ-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>j(()=>import("./powerquery-CgRa2XRw-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>j(()=>import("./powershell-Diwyv8Eh-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>j(()=>import("./prisma-COL_v1x4-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>j(()=>import("./prolog-CuvJOxqT-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>j(()=>import("./proto-o9HLmF90-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>j(()=>import("./pug-HKe4Luo3-BjTLA0bL.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>j(()=>import("./puppet-wpGOnQp5-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>j(()=>import("./purescript-B_1NgE2N-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>j(()=>import("./python-xYxLFJY--DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>j(()=>import("./qml-FlMIyjU9-DSnJ_WBo.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>j(()=>import("./qmldir-BInDYbpo-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>j(()=>import("./qss-D-h4NdUG-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>j(()=>import("./r-F-9I-ITZ-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>j(()=>import("./racket-BoD1TBFT-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>j(()=>import("./raku-IaYcw19m-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>j(()=>import("./razor-CeqqNtyB-CTLKKD1r.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>j(()=>import("./reg-CMUdAgIP-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>j(()=>import("./regexp-GiFkbxS--DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>j(()=>import("./rel-BaRn3QX7-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>j(()=>import("./riscv-B9V3SsvW-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>j(()=>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:()=>j(()=>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:()=>j(()=>import("./rust-Pc7DCsZD-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>j(()=>import("./sas-tDSYjXcL-BoaRjvJ1.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>j(()=>import("./sass-iCyS6eP9-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>j(()=>import("./scala-Cly-fENF-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>j(()=>import("./scheme-Zi24oEYu-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>j(()=>import("./scss-DhHc4lxB-DOVe6m7U.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>j(()=>import("./sdbl-BBamrXFL-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>j(()=>import("./shaderlab-CvqEIoL0-D4Zbm5h2.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>j(()=>import("./shellscript-Dn0-btNd-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>j(()=>import("./shellsession-8OLo3sB6-BcsC7Rtk.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>j(()=>import("./smalltalk-Cns31tKw-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>j(()=>import("./solidity-BG_k8fA_-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>j(()=>import("./soy-EwHMOVPj-g2bfMTqc.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>j(()=>import("./sparql-DhuelBut-DSDXMn9h.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>j(()=>import("./splunk-CTqDjQdo-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>j(()=>import("./sql-DCkt643--COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>j(()=>import("./ssh-config-DHHGll-v-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>j(()=>import("./stata-Dok6hMw0-Dx5Z5W33.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>j(()=>import("./stylus-n_9f0QQ5-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>j(()=>import("./svelte-01qw6Rxm-BPq1Epw_.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>j(()=>import("./swift-BAWqNR8A-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>j(()=>import("./system-verilog-Cui-g-ut-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>j(()=>import("./systemd-CsKYQIQK-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>j(()=>import("./talonscript-D2dGh8FO-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>j(()=>import("./tasl-D3W8HMV6-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>j(()=>import("./tcl-2y0Fuc4S-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>j(()=>import("./templ-Hmy8U0DD-bZJvPZVc.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>j(()=>import("./terraform-BGW6Oerf-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>j(()=>import("./tex-mHs7a43s-GNY7iZwJ.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>j(()=>import("./toml-CQSfOn0e-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>j(()=>import("./ts-tags-DYZ4SGcN-DHCrqCAy.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>j(()=>import("./tsv-BtvSkaG0-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>j(()=>import("./tsx-DiGsgWT8-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>j(()=>import("./turtle-BJ2wmjPc-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>j(()=>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:()=>j(()=>import("./typescript-buWNZFwO-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>j(()=>import("./typespec-bLbdsxJL-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>j(()=>import("./typst-Y9_SmXTs-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>j(()=>import("./v-wa8Orrdd-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>j(()=>import("./vala-DRdriFr_-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>j(()=>import("./vb-E2_-jk4M-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>j(()=>import("./verilog-B1iBoR5_-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>j(()=>import("./vhdl-CRVaAhXk-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>j(()=>import("./viml-B-zWOd7Z-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>j(()=>import("./vue-Bl1uVNsA-B0HO5ROf.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>j(()=>import("./vue-html-DHr5wjBG-BZddcMPi.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>j(()=>import("./vyper-DWutKXpa-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>j(()=>import("./wasm-Bv5f0gKv-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>j(()=>import("./wenyan-BMYnfus1-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>j(()=>import("./wgsl-DnPoPGDU-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>j(()=>import("./wikitext-CntM04PE-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>j(()=>import("./wolfram-Ws5qPlX9-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>j(()=>import("./xml-ChBsf5uy-CRY5u_dA.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>j(()=>import("./xsl-BefjlXrd-kO2fudRX.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>j(()=>import("./yaml-Bbg74JKr-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>j(()=>import("./zenscript-C0RKE4nU-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>j(()=>import("./zig-D6SXBGNm-BVz_zdnA.js"),[])}],lj=Object.fromEntries(l3.map(e=>[e.id,e.import])),cj=Object.fromEntries(l3.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),uj={...lj,...cj},dj=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>j(()=>import("./andromeeda-uXNdzNpk-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>j(()=>import("./aurora-x-BwoVEUWZ-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>j(()=>import("./ayu-dark-CxPZkpb2-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>j(()=>import("./catppuccin-frappe-BrTOiad2-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>j(()=>import("./catppuccin-latte-D-dc_R4m-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>j(()=>import("./catppuccin-macchiato-DN4jOp0G-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>j(()=>import("./catppuccin-mocha-B8yCE3-3-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>j(()=>import("./dark-plus-pUHDTVV0-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>j(()=>import("./dracula-BtZx2Kac-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>j(()=>import("./dracula-soft-BKa-aqBv-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>j(()=>import("./everforest-dark-DMCBqXCK-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>j(()=>import("./everforest-light-BbXl82Em-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>j(()=>import("./github-dark-DenFmJkN-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>j(()=>import("./github-dark-default-BJPUVz4H-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>j(()=>import("./github-dark-dimmed-DUshB20C-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>j(()=>import("./github-dark-high-contrast-D3aGCnF8-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>j(()=>import("./github-light-JYsPkUQd-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>j(()=>import("./github-light-default-D99KPAby-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>j(()=>import("./github-light-high-contrast-BbmZE-Mp-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>j(()=>import("./houston-BDYrDoDW-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>j(()=>import("./kanagawa-dragon-CiKur4Hl-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>j(()=>import("./kanagawa-lotus-BKu-smKu-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>j(()=>import("./kanagawa-wave-CQwozSzG-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>j(()=>import("./laserwave-6a00oqik-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>j(()=>import("./light-plus-CZuVqSLX-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>j(()=>import("./material-theme-D6KBX41T-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>j(()=>import("./material-theme-darker-CkRroheE-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>j(()=>import("./material-theme-lighter-BUBw43Yz-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>j(()=>import("./material-theme-ocean-ClGX14Ja-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>j(()=>import("./material-theme-palenight-C1RVm8K1-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>j(()=>import("./min-dark-C7ak0t6c-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>j(()=>import("./min-light-CKFxVcPp-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>j(()=>import("./monokai-C1KBYcO0-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>j(()=>import("./night-owl-Bm2rzalh-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>j(()=>import("./nord-CC5OiUXg-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>j(()=>import("./one-dark-pro-D7-kP8fv-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>j(()=>import("./one-light-D9sNaUtq-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>j(()=>import("./plastic-CSTz3KZp-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>j(()=>import("./poimandres-C-VADXHD-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>j(()=>import("./red-7y8PH7HH-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>j(()=>import("./rose-pine-DhT-HZE9-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>j(()=>import("./rose-pine-dawn-DiCjL2i4-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>j(()=>import("./rose-pine-moon-BNmGHlcn-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>j(()=>import("./slack-dark-i7wN4OET-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>j(()=>import("./slack-ochin-ndHf0LoP-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>j(()=>import("./snazzy-light-BlSJXAu4-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>j(()=>import("./solarized-dark-UTmkh7lw-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>j(()=>import("./solarized-light-BheCkDPT-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>j(()=>import("./synthwave-84-NU3C_KFZ-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>j(()=>import("./tokyo-night-LhP3hHhi-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>j(()=>import("./vesper-CJsaOsSM-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>j(()=>import("./vitesse-black-BoGvW84i-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>j(()=>import("./vitesse-dark-Cym-eLtO-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>j(()=>import("./vitesse-light-CcmG315c-CVO1_9PV.js"),[])}],fj=Object.fromEntries(dj.map(e=>[e.id,e.import]));let Gi=class extends Error{constructor(e){super(e),this.name="ShikiError"}},db=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function hj(){return 2147483648}function pj(){return typeof performance<"u"?performance.now():Date.now()}const mj=(e,t)=>e+(t-e%t)%t;async function gj(e){let t,n;const r={};function a(y){n=y,r.HEAPU8=new Uint8Array(y),r.HEAPU32=new Uint32Array(y)}function s(y,T,A){r.HEAPU8.copyWithin(y,T,T+A)}function l(y){try{return t.grow(y-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(y){const T=r.HEAPU8.length;y=y>>>0;const A=hj();if(y>A)return!1;for(let C=1;C<=4;C*=2){let x=T*(1+.2/C);x=Math.min(x,y+100663296);const D=Math.min(A,mj(Math.max(y,x),65536));if(l(D))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(y,T,A=1024){const C=T+A;let x=T;for(;y[x]&&!(x>=C);)++x;if(x-T>16&&y.buffer&&d)return d.decode(y.subarray(T,x));let D="";for(;T<x;){let S=y[T++];if(!(S&128)){D+=String.fromCharCode(S);continue}const L=y[T++]&63;if((S&224)===192){D+=String.fromCharCode((S&31)<<6|L);continue}const M=y[T++]&63;if((S&240)===224?S=(S&15)<<12|L<<6|M:S=(S&7)<<18|L<<12|M<<6|y[T++]&63,S<65536)D+=String.fromCharCode(S);else{const w=S-65536;D+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return D}function p(y,T){return y?f(r.HEAPU8,y,T):""}const m={emscripten_get_now:pj,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function E(){const y=await e({env:m,wasi_snapshot_preview1:m});t=y.memory,a(t.buffer),Object.assign(r,y),r.UTF8ToString=p}return await E(),r}var yj=Object.defineProperty,Ej=(e,t,n)=>t in e?yj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hn=(e,t,n)=>(Ej(e,typeof t!="symbol"?t+"":t,n),n);let Kn=null;function bj(e){throw new db(e.UTF8ToString(e.getLastOnigError()))}class _m{constructor(t){Hn(this,"utf16Length"),Hn(this,"utf8Length"),Hn(this,"utf16Value"),Hn(this,"utf8Value"),Hn(this,"utf16OffsetToUtf8"),Hn(this,"utf8OffsetToUtf16");const n=t.length,r=_m._utf8ByteLength(t),a=r!==n,s=a?new Uint32Array(n+1):null;a&&(s[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const c=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let m=p,E=!1;if(p>=55296&&p<=56319&&f+1<n){const y=t.charCodeAt(f+1);y>=56320&&y<=57343&&(m=(p-55296<<10)+65536|y-56320,E=!0)}a&&(s[f]=d,E&&(s[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),m<=127?c[d++]=m:m<=2047?(c[d++]=192|(m&1984)>>>6,c[d++]=128|(m&63)>>>0):m<=65535?(c[d++]=224|(m&61440)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0):(c[d++]=240|(m&1835008)>>>18,c[d++]=128|(m&258048)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0),E&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const s=t.charCodeAt(r);let l=s,c=!1;if(s>=55296&&s<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(s-55296<<10)+65536|d-56320,c=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Za=class{constructor(e){if(Hn(this,"id",++Za.LAST_ID),Hn(this,"_onigBinding"),Hn(this,"content"),Hn(this,"utf16Length"),Hn(this,"utf8Length"),Hn(this,"utf16OffsetToUtf8"),Hn(this,"utf8OffsetToUtf16"),Hn(this,"ptr"),!Kn)throw new db("Must invoke loadWasm first.");this._onigBinding=Kn,this.content=e;const t=new _m(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!Za._sharedPtrInUse?(Za._sharedPtr||(Za._sharedPtr=Kn.omalloc(1e4)),Za._sharedPtrInUse=!0,Kn.HEAPU8.set(t.utf8Value,Za._sharedPtr),this.ptr=Za._sharedPtr):this.ptr=t.createString(Kn)}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===Za._sharedPtr?Za._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let Yd=Za;Hn(Yd,"LAST_ID",0);Hn(Yd,"_sharedPtr",0);Hn(Yd,"_sharedPtrInUse",!1);class vj{constructor(t){if(Hn(this,"_onigBinding"),Hn(this,"_ptr"),!Kn)throw new db("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,d=t.length;c<d;c++){const f=new _m(t[c]);n[c]=f.createString(Kn),r[c]=f.utf8Length}const a=Kn.omalloc(4*t.length);Kn.HEAPU32.set(n,a/4);const s=Kn.omalloc(4*t.length);Kn.HEAPU32.set(r,s/4);const l=Kn.createOnigScanner(a,s,t.length);for(let c=0,d=t.length;c<d;c++)Kn.ofree(n[c]);Kn.ofree(s),Kn.ofree(a),l===0&&bj(Kn),this._onigBinding=Kn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new Yd(t);const s=this._findNextMatchSync(t,n,!1,a);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const s=this._onigBinding,l=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const c=s.HEAPU32;let d=l/4;const f=c[d++],p=c[d++],m=[];for(let E=0;E<p;E++){const y=t.convertUtf8OffsetToUtf16(c[d++]),T=t.convertUtf8OffsetToUtf16(c[d++]);m[E]={start:y,end:T,length:T-y}}return{index:f,captureIndices:m}}}function Tj(e){return typeof e.instantiator=="function"}function _j(e){return typeof e.default=="function"}function xj(e){return typeof e.data<"u"}function Aj(e){return typeof Response<"u"&&e instanceof Response}function Sj(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 Ah;function Cj(e){if(Ah)return Ah;async function t(){Kn=await gj(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Tj(r)?r=await r.instantiator(n):_j(r)?r=await r.default(n):(xj(r)&&(r=r.data),Aj(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Dj(r)(n):r=await kj(r)(n):Sj(r)?r=await vy(r)(n):r instanceof WebAssembly.Module?r=await vy(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await vy(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Ah=t(),Ah}function vy(e){return t=>WebAssembly.instantiate(e,t)}function Dj(e){return t=>WebAssembly.instantiateStreaming(e,t)}function kj(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Rj;function wj(){return Rj}async function c3(e){return e&&await Cj(e),{createScanner(t){return new vj(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Yd(t)}}}function Ij(e){return fb(e)}function fb(e){return Array.isArray(e)?Nj(e):e instanceof RegExp?e:typeof e=="object"?Oj(e):e}function Nj(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=fb(e[n]);return t}function Oj(e){let t={};for(let n in e)t[n]=fb(e[n]);return t}function u3(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function d3(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?d3(e.substring(0,e.length-1)):e.substr(~t+1)}var Ty=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Sh=class{static hasCaptures(e){return e===null?!1:(Ty.lastIndex=0,Ty.test(e))}static replaceCaptures(e,t,n){return e.replace(Ty,(r,a,s,l)=>{let c=n[parseInt(a||s,10)];if(c){let d=t.substring(c.start,c.end);for(;d[0]===".";)d=d.substring(1);switch(l){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return r})}};function f3(e,t){return e<t?-1:e>t?1:0}function h3(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 a=0;a<n;a++){let s=f3(e[a],t[a]);if(s!==0)return s}return 0}return n-r}function BS(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 p3(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var m3=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}},_p=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Pj(e),t)}static createFromParsedTheme(e,t){return jj(e,t)}_cachedMatchRoot=new m3(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=>Lj(e.parent,r.parentScopes));return n?new g3(n.fontStyle,n.foreground,n.background):null}},_y=class Kh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Kh(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Kh(n,t[r]);return n}push(t){return new Kh(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 Lj(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!Mj(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Mj(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var g3=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Pj(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,s=t.length;a<s;a++){let l=t[a];if(!l.settings)continue;let c;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(l.scope)?c=l.scope:c=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let E=0,y=m.length;E<y;E++)switch(m[E]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&BS(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&BS(l.settings.background)&&(p=l.settings.background);for(let m=0,E=c.length;m<E;m++){let y=c[m].trim().split(" "),T=y[y.length-1],A=null;y.length>1&&(A=y.slice(0,y.length-1),A.reverse()),n[r++]=new Fj(T,A,a,d,f,p)}}return n}var Fj=class{constructor(e,t,n,r,a,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=s}},Ui=(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))(Ui||{});function jj(e,t){e.sort((d,f)=>{let p=f3(d.scope,f.scope);return p!==0||(p=h3(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let s=new Bj(t),l=new g3(n,s.getId(r),s.getId(a)),c=new Hj(new N1(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];c.insert(0,p.scope,p.parentScopes,p.fontStyle,s.getId(p.foreground),s.getId(p.background))}return new _p(s,l,c)}var Bj=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)}},Uj=Object.freeze([]),N1=class y3{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,s){this.scopeDepth=t,this.parentScopes=n||Uj,this.fontStyle=r,this.foreground=a,this.background=s}clone(){return new y3(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},Hj=class O1{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,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const s=n.parentScopes[a].length-t.parentScopes[r].length;if(s!==0)return s;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,s;if(r===-1?(a=t,s=""):(a=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(O1._cmpBySpecificity),n}insert(t,n,r,a,s,l){if(n===""){this._doInsertHere(t,r,a,s,l);return}let c=n.indexOf("."),d,f;c===-1?(d=n,f=""):(d=n.substring(0,c),f=n.substring(c+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new O1(this._mainRule.clone(),N1.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,s,l)}_doInsertHere(t,n,r,a,s){if(n===null){this._mainRule.acceptOverwrite(t,r,a,s);return}for(let l=0,c=this._rulesWithParentScopes.length;l<c;l++){let d=this._rulesWithParentScopes[l];if(h3(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,s);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new N1(t,n,r,a,s))}},nc=class ma{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ma.getLanguageId(t),r=ma.getTokenType(t),a=ma.getFontStyle(t),s=ma.getForeground(t),l=ma.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:s,background:l})}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,a,s,l,c){let d=ma.getLanguageId(t),f=ma.getTokenType(t),p=ma.containsBalancedBrackets(t)?1:0,m=ma.getFontStyle(t),E=ma.getForeground(t),y=ma.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),s!==-1&&(m=s),l!==0&&(E=l),c!==0&&(y=c),(d<<0|f<<8|p<<10|m<<11|E<<15|y<<24)>>>0}};function xp(e,t){const n=[],r=zj(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function s(){if(a==="-"){a=r.next();const d=s();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=c();return a===")"&&(a=r.next()),d}if(US(a)){const d=[];do d.push(a),a=r.next();while(US(a));return f=>t(d,f)}return null}function l(){const d=[];let f=s();for(;f;)d.push(f),f=s();return p=>d.every(m=>m(p))}function c(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(m=>m(p))}}function US(e){return!!e&&!!e.match(/[\w\.:]+/)}function zj(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 E3(e){typeof e.dispose=="function"&&e.dispose()}var xd=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Gj=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Vj=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))}},qj=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new xd(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Vj;for(const n of e)Yj(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof xd){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 Yj(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof xd?Xh({baseGrammar:s,selfGrammar:a},r):L1(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const c of l)r.add(new xd(c))}function L1(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ap([r],t,n)}}function Xh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ap(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ap(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ap(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?u3({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ap(r.patterns,{...t,repository:a},n);const s=r.include;if(!s)continue;const l=b3(s);switch(l.kind){case 0:Xh({...t,selfGrammar:t.baseGrammar},n);break;case 1:Xh(t,n);break;case 2:L1(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const d={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};l.kind===4?L1(l.ruleName,d,n):Xh(d,n)}else l.kind===4?n.add(new Gj(l.scopeName,l.ruleName)):n.add(new xd(l.scopeName));break}}}var Qj=class{kind=0},$j=class{kind=1},Wj=class{constructor(e){this.ruleName=e}kind=2},Kj=class{constructor(e){this.scopeName=e}kind=3},Xj=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function b3(e){if(e==="$base")return new Qj;if(e==="$self")return new $j;const t=e.indexOf("#");if(t===-1)return new Kj(e);if(t===0)return new Wj(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Xj(n,r)}}var Zj=/\\(\d+)/,HS=/\\(\d+)/g,Jj=-1,v3=-2,Qd=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Sh.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Sh.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${d3(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:Sh.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Sh.replaceCaptures(this._contentName,e,t)}},eB=class extends Qd{retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}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!")}},tB=class extends Qd{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new Ad(r,this.id),this.captures=a,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 Sd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},zS=class extends Qd{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.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 Sd,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},M1=class extends Qd{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a,s,l,c,d,f){super(e,t,n,r),this._begin=new Ad(a,this.id),this.beginCaptures=s,this._end=new Ad(l||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=d||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.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 Sd;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}},Sp=class extends Qd{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,a,s,l,c,d){super(e,t,n,r),this._begin=new Ad(a,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new Ad(l,v3),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.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 Sd;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 Sd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},T3=class dr{static createCaptureRule(t,n,r,a,s){return t.registerRule(l=>new eB(n,l,r,a,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new tB(t.$vscodeTextmateLocation,t.id,t.name,t.match,dr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=u3({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new zS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,dr._compilePatterns(s,n,r))}return t.while?new Sp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,dr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,dr._compileCaptures(t.whileCaptures||t.captures,n,r),dr._compilePatterns(t.patterns,n,r)):new M1(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,dr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,dr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,dr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let s=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);c>s&&(s=c)}for(let l=0;l<=s;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);let d=0;t[l].patterns&&(d=dr.getCompiledRuleId(t[l],n,r)),a[c]=dr.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let s=0,l=t.length;s<l;s++){const c=t[s];let d=-1;if(c.include){const f=b3(c.include);switch(f.kind){case 0:case 1:d=dr.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=dr.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,E=f.kind===4?f.ruleName:null,y=n.getExternalGrammar(m,r);if(y)if(E){let T=y.repository[E];T&&(d=dr.getCompiledRuleId(T,n,y.repository))}else d=dr.getCompiledRuleId(y.repository.$self,n,y.repository);break}}else d=dr.getCompiledRuleId(c,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof zS||f instanceof M1||f instanceof Sp)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Ad=class _3{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,s=[],l=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const d=t.charAt(c+1);d==="z"?(s.push(t.substring(a,c)),s.push("$(?!\\n)(?<!\\n)"),a=c+2):(d==="A"||d==="G")&&(l=!0),c++}this.hasAnchor=l,a===0?this.source=t:(s.push(t.substring(a,r)),this.source=s.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=Zj.test(this.source):this.hasBackReferences=!1}clone(){return new _3(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(a=>t.substring(a.start,a.end));return HS.lastIndex=0,this.source.replace(HS,(a,s)=>p3(r[parseInt(s,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=[],a=[],s,l,c,d;for(s=0,l=this.source.length;s<l;s++)c=this.source.charAt(s),t[s]=c,n[s]=c,r[s]=c,a[s]=c,c==="\\"&&s+1<l&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="￿",n[s+1]="￿",r[s+1]="A",a[s+1]="A"):d==="G"?(t[s+1]="￿",n[s+1]="G",r[s+1]="￿",a[s+1]="G"):(t[s+1]=d,n[s+1]=d,r[s+1]=d,a[s+1]=d),s++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.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}},Sd=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 GS(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(a=>a.resolveAnchors(t,n));return new GS(e,r,this._items.map(a=>a.ruleId))}},GS=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(`
75
+ `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},xy=class{constructor(e,t){this.languageId=e,this.tokenType=t}},nB=class P1{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new xy(t,8),this._embeddedLanguagesMatcher=new rB(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?P1._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new xy(0,0);_getBasicScopeAttributes=new m3(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new xy(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(P1.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/},rB=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])=>p3(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])}},VS=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function x3(e,t,n,r,a,s,l,c){const d=t.content.length;let f=!1,p=-1;if(l){const y=aB(e,t,n,r,a,s);a=y.stack,r=y.linePos,n=y.isFirstLine,p=y.anchorPosition}const m=Date.now();for(;!f;){if(c!==0&&Date.now()-m>c)return new VS(a,!0);E()}return new VS(a,!1);function E(){const y=iB(e,t,n,r,a,p);if(!y){s.produce(a,d),f=!0;return}const T=y.captureIndices,A=y.matchedRuleId,C=T&&T.length>0?T[0].end>r:!1;if(A===Jj){const x=a.getRule(e);s.produce(a,T[0].start),a=a.withContentNameScopesList(a.nameScopesList),Bu(e,t,n,a,s,x.endCaptures,T),s.produce(a,T[0].end);const D=a;if(a=a.parent,p=D.getAnchorPos(),!C&&D.getEnterPos()===r){a=D,s.produce(a,d),f=!0;return}}else{const x=e.getRule(A);s.produce(a,T[0].start);const D=a,S=x.getName(t.content,T),L=a.contentNameScopesList.pushAttributed(S,e);if(a=a.push(A,r,p,T[0].end===d,null,L,L),x instanceof M1){const M=x;Bu(e,t,n,a,s,M.beginCaptures,T),s.produce(a,T[0].end),p=T[0].end;const w=M.getContentName(t.content,T),q=L.pushAttributed(w,e);if(a=a.withContentNameScopesList(q),M.endHasBackReferences&&(a=a.withEndRule(M.getEndWithResolvedBackReferences(t.content,T))),!C&&D.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(x instanceof Sp){const M=x;Bu(e,t,n,a,s,M.beginCaptures,T),s.produce(a,T[0].end),p=T[0].end;const w=M.getContentName(t.content,T),q=L.pushAttributed(w,e);if(a=a.withContentNameScopesList(q),M.whileHasBackReferences&&(a=a.withEndRule(M.getWhileWithResolvedBackReferences(t.content,T))),!C&&D.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(Bu(e,t,n,a,s,x.captures,T),s.produce(a,T[0].end),a=a.pop(),!C){a=a.safePop(),s.produce(a,d),f=!0;return}}T[0].end>r&&(r=T[0].end,n=!1)}}function aB(e,t,n,r,a,s){let l=a.beginRuleCapturedEOL?0:-1;const c=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof Sp&&c.push({rule:f,stack:d})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:f,findOptions:p}=lB(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==v3){a=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(d.stack,m.captureIndices[0].start),Bu(e,t,n,d.stack,s,d.rule.whileCaptures,m.captureIndices),s.produce(d.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function iB(e,t,n,r,a,s){const l=sB(e,t,n,r,a,s),c=e.getInjections();if(c.length===0)return l;const d=oB(c,e,t,n,r,a,s);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}function sB(e,t,n,r,a,s){const l=a.getRule(e),{ruleScanner:c,findOptions:d}=A3(l,e,a.endRule,n,r===s),f=c.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function oB(e,t,n,r,a,s,l){let c=Number.MAX_VALUE,d=null,f,p=0;const m=s.contentNameScopesList.getScopeNames();for(let E=0,y=e.length;E<y;E++){const T=e[E];if(!T.matcher(m))continue;const A=t.getRule(T.ruleId),{ruleScanner:C,findOptions:x}=A3(A,t,null,r,a===l),D=C.findNextMatchSync(n,a,x);if(!D)continue;const S=D.captureIndices[0].start;if(!(S>=c)&&(c=S,d=D.captureIndices,f=D.ruleId,p=T.priority,c===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function A3(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function lB(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Bu(e,t,n,r,a,s,l){if(s.length===0)return;const c=t.content,d=Math.min(s.length,l.length),f=[],p=l[0].end;for(let m=0;m<d;m++){const E=s[m];if(E===null)continue;const y=l[m];if(y.length===0)continue;if(y.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=y.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,y.start):a.produce(r,y.start),E.retokenizeCapturedWithRuleId){const A=E.getName(c,l),C=r.contentNameScopesList.pushAttributed(A,e),x=E.getContentName(c,l),D=C.pushAttributed(x,e),S=r.push(E.retokenizeCapturedWithRuleId,y.start,-1,!1,null,C,D),L=e.createOnigString(c.substring(0,y.end));x3(e,L,n&&y.start===0,y.start,S,a,!1,0),E3(L);continue}const T=E.getName(c,l);if(T!==null){const A=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(T,e);f.push(new cB(A,y.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var cB=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function uB(e,t,n,r,a,s,l,c){return new fB(e,t,n,r,a,s,l,c)}function qS(e,t,n,r,a){const s=xp(t,Cp),l=T3.getCompiledRuleId(n,r,a.repository);for(const c of s)e.push({debugSelector:t,matcher:c.matcher,ruleId:l,grammar:a,priority:c.priority})}function Cp(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(dB(t[a],r))return n=a+1,!0;return!1})}function dB(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 fB=class{constructor(e,t,n,r,a,s,l,c){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new nB(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=YS(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const d of Object.keys(a)){const f=xp(d,Cp);for(const p of f)this._tokenTypeMatchers.push({matcher:p.matcher,type:a[d]})}}_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:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let l in a)qS(t,l,a[l],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(l=>{const c=this.getExternalGrammar(l);if(c){const d=c.injectionSelector;d&&qS(t,d,c,this,c)}})}return t.sort((a,s)=>a.priority-s.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]=YS(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=T3.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===F1.NULL){a=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=nc.set(0,f.languageId,f.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),E=this.getRule(this._rootId).getName(null,null);let y;E?y=$u.createRootAndLookUpScopeName(E,m,this):y=$u.createRoot("unknown",m),t=new F1(null,this._rootId,-1,-1,!1,null,y,y)}else a=!1,t.reset();e=e+`
76
+ `;const s=this.createOnigString(e),l=s.content.length,c=new pB(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=x3(this,s,a,0,t,c,!0,r);return E3(s),{lineLength:l,lineTokens:c,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function YS(e,t){return e=Ij(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 $u=class Ja{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const s of n)a=_y.push(a,s.scopeNames),r=new Ja(r,a,s.encodedTokenAttributes);return r}static createRoot(t,n){return new Ja(null,new _y(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),s=new _y(null,t),l=r.themeProvider.themeMatch(s),c=Ja.mergeAttributes(n,a,l);return new Ja(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Ja.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 a=-1,s=0,l=0;return r!==null&&(a=r.fontStyle,s=r.foregroundId,l=r.backgroundId),nc.set(t,n.languageId,n.tokenType,null,a,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Ja._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const s of r)a=Ja._pushAttributed(a,s,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),c=Ja.mergeAttributes(t.tokenAttributes,a,l);return new Ja(t,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},F1=class io{constructor(t,n,r,a,s,l,c,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=l,this.nameScopesList=c,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new io(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:io._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?$u.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(){io._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,s,l,c){return new io(this,t,n,r,a,s,l,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new io(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=$u.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new io(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,$u.fromExtension(r,n.contentNameScopesList))}},hB=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):xp(n,Cp).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>xp(n,Cp).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}},pB=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,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const l of this._tokenTypeOverrides)l.matcher(s)&&(r=nc.set(r,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(s))}if(a&&(r=nc.set(r,0,8,a,-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,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},mB=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,a){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,uB(e,s,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},gB=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new mB(_p.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(_p.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 hB(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,a){const s=new qj(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(l=>this._loadSingleGrammar(l.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,n,r,a)}_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,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,a)}},j1=F1.NULL;const S3=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let $d=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};$d.prototype.normal={};$d.prototype.property={};$d.prototype.space=void 0;function C3(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new $d(n,r,t)}function Cd(e){return e.toLowerCase()}let jr=class{constructor(e,t){this.attribute=t,this.property=e}};jr.prototype.attribute="";jr.prototype.booleanish=!1;jr.prototype.boolean=!1;jr.prototype.commaOrSpaceSeparated=!1;jr.prototype.commaSeparated=!1;jr.prototype.defined=!1;jr.prototype.mustUseProperty=!1;jr.prototype.number=!1;jr.prototype.overloadedBoolean=!1;jr.prototype.property="";jr.prototype.spaceSeparated=!1;jr.prototype.space=void 0;let yB=0;const ht=Bo(),Mn=Bo(),B1=Bo(),ke=Bo(),Xt=Bo(),Yl=Bo(),Wr=Bo();function Bo(){return 2**++yB}const U1=Object.freeze(Object.defineProperty({__proto__:null,boolean:ht,booleanish:Mn,commaOrSpaceSeparated:Wr,commaSeparated:Yl,number:ke,overloadedBoolean:B1,spaceSeparated:Xt},Symbol.toStringTag,{value:"Module"})),Ay=Object.keys(U1);let hb=class extends jr{constructor(e,t,n,r){let a=-1;if(super(e,t),QS(this,"space",r),typeof n=="number")for(;++a<Ay.length;){const s=Ay[a];QS(this,Ay[a],(n&U1[s])===U1[s])}}};hb.prototype.defined=!0;function QS(e,t,n){n&&(e[t]=n)}function fc(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new hb(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Cd(r)]=r,n[Cd(s.attribute)]=r}return new $d(t,n,e.space)}const D3=fc({properties:{ariaActiveDescendant:null,ariaAtomic:Mn,ariaAutoComplete:null,ariaBusy:Mn,ariaChecked:Mn,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:Xt,ariaCurrent:null,ariaDescribedBy:Xt,ariaDetails:null,ariaDisabled:Mn,ariaDropEffect:Xt,ariaErrorMessage:null,ariaExpanded:Mn,ariaFlowTo:Xt,ariaGrabbed:Mn,ariaHasPopup:null,ariaHidden:Mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xt,ariaLevel:ke,ariaLive:null,ariaModal:Mn,ariaMultiLine:Mn,ariaMultiSelectable:Mn,ariaOrientation:null,ariaOwns:Xt,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Mn,ariaReadOnly:Mn,ariaRelevant:null,ariaRequired:Mn,ariaRoleDescription:Xt,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Mn,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function k3(e,t){return t in e?e[t]:t}function R3(e,t){return k3(e,t.toLowerCase())}const EB=fc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yl,acceptCharset:Xt,accessKey:Xt,action:null,allow:null,allowFullScreen:ht,allowPaymentRequest:ht,allowUserMedia:ht,alt:null,as:null,async:ht,autoCapitalize:null,autoComplete:Xt,autoFocus:ht,autoPlay:ht,blocking:Xt,capture:null,charSet:null,checked:ht,cite:null,className:Xt,cols:ke,colSpan:null,content:null,contentEditable:Mn,controls:ht,controlsList:Xt,coords:ke|Yl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ht,defer:ht,dir:null,dirName:null,disabled:ht,download:B1,draggable:Mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ht,formTarget:null,headers:Xt,height:ke,hidden:B1,high:ke,href:null,hrefLang:null,htmlFor:Xt,httpEquiv:Xt,id:null,imageSizes:null,imageSrcSet:null,inert:ht,inputMode:null,integrity:null,is:null,isMap:ht,itemId:null,itemProp:Xt,itemRef:Xt,itemScope:ht,itemType:Xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ht,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:ht,muted:ht,name:null,nonce:null,noModule:ht,noValidate:ht,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:ht,optimum:ke,pattern:null,ping:Xt,placeholder:null,playsInline:ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ht,referrerPolicy:null,rel:Xt,required:ht,reversed:ht,rows:ke,rowSpan:ke,sandbox:Xt,scope:null,scoped:ht,seamless:ht,selected:ht,shadowRootClonable:ht,shadowRootDelegatesFocus:ht,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:Mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:ht,useMap:null,value:Mn,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xt,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ht,declare:ht,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:ht,noHref:ht,noShade:ht,noWrap:ht,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:Mn,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ht,disableRemotePlayback:ht,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:R3}),bB=fc({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:Wr,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:Xt,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:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,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:Yl,g2:Yl,glyphName:Yl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Wr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,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:ke,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:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wr,rev:Wr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wr,requiredFeatures:Wr,requiredFonts:Wr,requiredFormats:Wr,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:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Wr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wr,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:k3}),w3=fc({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()}}),I3=fc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:R3}),N3=fc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),vB={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"},TB=/[A-Z]/g,$S=/-[a-z]/g,_B=/^data[-\w.:]+$/i;function Wd(e,t){const n=Cd(t);let r=t,a=jr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_B.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace($S,AB);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!$S.test(s)){let l=s.replace(TB,xB);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=hb}return new a(r,t)}function xB(e){return"-"+e.toLowerCase()}function AB(e){return e.charAt(1).toUpperCase()}const hc=C3([D3,EB,w3,I3,N3],"html"),qi=C3([D3,bB,w3,I3,N3],"svg"),WS={}.hasOwnProperty;function xm(e,t){const n=t||{};function r(a,...s){let l=r.invalid;const c=r.handlers;if(a&&WS.call(a,e)){const d=String(a[e]);l=WS.call(c,d)?c[d]:r.unknown}if(l)return l.call(this,a,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const SB=/["&'<>`]/g,CB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,DB=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,kB=/[|\\{}()[\]^$+*?.]/g,KS=new WeakMap;function RB(e,t){if(e=e.replace(t.subset?wB(t.subset):SB,r),t.subset||t.escapeOnly)return e;return e.replace(CB,n).replace(DB,r);function n(a,s,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(a,s,l){return t.format(a.charCodeAt(0),l.charCodeAt(s+1),t)}}function wB(e){let t=KS.get(e);return t||(t=IB(e),KS.set(e,t)),t}function IB(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(kB,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const NB=/[\dA-Fa-f]/;function OB(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!NB.test(String.fromCharCode(t))?r:r+";"}const LB=/\d/;function MB(e,t,n){const r="&#"+String(e);return n&&t&&!LB.test(String.fromCharCode(t))?r:r+";"}const PB=["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"],Sy={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:"€"},FB=["cent","copy","divide","gt","lt","not","para","times"],O3={}.hasOwnProperty,H1={};let Ch;for(Ch in Sy)O3.call(Sy,Ch)&&(H1[Sy[Ch]]=Ch);const jB=/[^\dA-Za-z]/;function BB(e,t,n,r){const a=String.fromCharCode(e);if(O3.call(H1,a)){const s=H1[a],l="&"+s;return n&&PB.includes(s)&&!FB.includes(s)&&(!r||t&&t!==61&&jB.test(String.fromCharCode(t)))?l:l+";"}return""}function UB(e,t,n){let r=OB(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=BB(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const s=MB(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Ql(e,t){return RB(e,Object.assign({format:UB},t))}const HB=/^>|^->|<!--|-->|--!>|<!-$/g,zB=[">"],GB=["<",">"];function VB(e,t,n,r){return r.settings.bogusComments?"<?"+Ql(e.value,Object.assign({},r.settings.characterReferences,{subset:zB}))+">":"<!--"+e.value.replace(HB,a)+"-->";function a(s){return Ql(s,Object.assign({},r.settings.characterReferences,{subset:GB}))}}function qB(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Dp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function z1(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const l=n.slice(a,r).trim();(l||!s)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function Am(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function G1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Sm(e){return e.join(" ").trim()}const YB=/[ \t\n\f\r]/g;function Kd(e){return typeof e=="object"?e.type==="text"?XS(e.value):!1:XS(e)}function XS(e){return e.replace(YB,"")===""}const Vn=M3(1),L3=M3(-1),QB=[];function M3(e){return t;function t(n,r,a){const s=n?n.children:QB;let l=(r||0)+e,c=s[l];if(!a)for(;c&&Kd(c);)l+=e,c=s[l];return c}}const $B={}.hasOwnProperty;function P3(e){return t;function t(n,r,a){return $B.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const pb=P3({body:KB,caption:Cy,colgroup:Cy,dd:eU,dt:JB,head:Cy,html:WB,li:ZB,optgroup:tU,option:nU,p:XB,rp:ZS,rt:ZS,tbody:aU,td:JS,tfoot:iU,th:JS,thead:rU,tr:sU});function Cy(e,t,n){const r=Vn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Kd(r.value.charAt(0)))}function WB(e,t,n){const r=Vn(n,t);return!r||r.type!=="comment"}function KB(e,t,n){const r=Vn(n,t);return!r||r.type!=="comment"}function XB(e,t,n){const r=Vn(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 ZB(e,t,n){const r=Vn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function JB(e,t,n){const r=Vn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function eU(e,t,n){const r=Vn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ZS(e,t,n){const r=Vn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function tU(e,t,n){const r=Vn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function nU(e,t,n){const r=Vn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function rU(e,t,n){const r=Vn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function aU(e,t,n){const r=Vn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function iU(e,t,n){return!Vn(n,t)}function sU(e,t,n){const r=Vn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function JS(e,t,n){const r=Vn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const oU=P3({body:uU,colgroup:dU,head:cU,html:lU,tbody:fU});function lU(e){const t=Vn(e,-1);return!t||t.type!=="comment"}function cU(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 uU(e){const t=Vn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Kd(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function dU(e,t,n){const r=L3(n,t),a=Vn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&pb(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function fU(e,t,n){const r=L3(n,t),a=Vn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&pb(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Dh={name:[[`
77
+ \f\r &/=>`.split(""),`
78
+ \f\r "&'/=>\``.split("")],[`\0
79
+ \f\r "&'/<=>`.split(""),`\0
80
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
81
+ \f\r &>`.split(""),`\0
82
+ \f\r "&'<=>\``.split("")],[`\0
83
+ \f\r "&'<=>\``.split(""),`\0
84
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function hU(e,t,n,r){const a=r.schema,s=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=qi);const f=pU(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!s||!oU(e,t,n))&&(c.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!l&&(!s||!pb(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function pU(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const s=mU(e,a,t[a]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function mU(e,t,n){const r=Wd(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let l=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const d=Ql(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Dh.name[a][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Am:Sm)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(c=Ql(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Dh.unquoted[a][s]}))),c!==n&&(e.settings.quoteSmart&&Dp(n,l)>Dp(n,e.alternative)&&(l=e.alternative),c=l+Ql(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?Dh.single:Dh.double)[a][s],attribute:!0}))+l),d+(c&&"="+c))}const gU=["<","&"];function F3(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ql(e.value,Object.assign({},r.settings.characterReferences,{subset:gU}))}function yU(e,t,n,r){return r.settings.allowDangerousHtml?e.value:F3(e,t,n,r)}function EU(e,t,n,r){return r.all(e)}const bU=xm("type",{invalid:vU,unknown:TU,handlers:{comment:VB,doctype:qB,element:hU,raw:yU,root:EU,text:F3}});function vU(e){throw new Error("Expected node, not `"+e+"`")}function TU(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const _U={},xU={},AU=[];function SU(e,t){const n=_U,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:CU,all:DU,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||S3,characterReferences:n.characterReferences||xU,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?qi:hc,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function CU(e,t,n){return bU(e,t,n,this)}function DU(e){const t=[],n=e&&e.children||AU;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function kU(e){return Array.isArray(e)?e:[e]}function Cm(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let s=0;s<n.length;s+=2){const l=t?n[s]+(n[s+1]||""):n[s];a.push([l,r]),r+=n[s].length,r+=n[s+1]?.length||0}return a}function mb(e){return!e||["plaintext","txt","text","plain"].includes(e)}function j3(e){return e==="ansi"||mb(e)}function gb(e){return e==="none"}function B3(e){return gb(e)}function U3(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 RU(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function wU(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const s=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,c)=>l-c);return s.length?RU(a,s):a})):e}async function H3(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function kp(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[a]=s:a===r&&Object.assign(n,s);return n}function mo(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function z3(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Ui.Italic&&(t["font-style"]="italic"),e.fontStyle&Ui.Bold&&(t["font-weight"]="bold"),e.fontStyle&Ui.Underline&&(t["text-decoration"]="underline")),t}function IU(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function NU(e){const t=Cm(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=a,l=0;for(const c of t){if(s<c.length)break;s-=c.length,l++}return{line:l,character:s}}function r(a,s){let l=0;for(let c=0;c<a;c++)l+=t[c].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}class xr extends Error{constructor(t){super(t),this.name="ShikiError"}}const G3=new WeakMap;function Dm(e,t){G3.set(e,t)}function Dd(e){return G3.get(e)}class pc{_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 pc(Object.fromEntries(kU(n).map(r=>[r,j1])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return eC(this._stacks[this.theme])}getScopes(t=this.theme){return eC(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function eC(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const s=a?.nameScopesList?.scopeName;s&&t.push(s),a.parent&&r(a.parent)}return r(e),t}function OU(e,t){if(!(e instanceof pc))throw new xr("Invalid grammar state");return e.getInternalStack(t)}function LU(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new xr(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const c=a.lines[l.line];if(c===void 0)throw new xr(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>c.length)throw new xr(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${c.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=NU(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));MU(s),e.set(n.meta,{decorations:s,converter:a,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(a=>[a.start.offset,a.end.offset]);return wU(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new xr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function s(p,m,E,y){const T=a[p];let A="",C=-1,x=-1;if(m===0&&(C=0),E===0&&(x=0),E===Number.POSITIVE_INFINITY&&(x=T.children.length),C===-1||x===-1)for(let S=0;S<T.children.length;S++)A+=V3(T.children[S]),C===-1&&A.length===m&&(C=S+1),x===-1&&A.length===E&&(x=S+1);if(C===-1)throw new xr(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(x===-1)throw new xr(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const D=T.children.slice(C,x);if(!y.alwaysWrap&&D.length===T.children.length)c(T,y,"line");else if(!y.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],y,"token");else{const S={type:"element",tagName:"span",properties:{},children:D};c(S,y,"wrapper"),T.children.splice(C,D.length,S)}}function l(p,m){a[p]=c(a[p],m,"line")}function c(p,m,E){const y=m.properties||{},T=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},m.properties?.class&&U3(p,m.properties.class),p=T(p,E)||p,p}const d=[],f=r.decorations.sort((p,m)=>m.start.offset-p.start.offset);for(const p of f){const{start:m,end:E}=p;if(m.line===E.line)s(m.line,m.character,E.character,p);else if(m.line<E.line){s(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let y=m.line+1;y<E.line;y++)d.unshift(()=>l(y,p));s(E.line,0,E.character,p)}}d.forEach(p=>p())}}}function MU(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new xr(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],s=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,c=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(s||l||c||d){if(l&&l||c&&d)continue;throw new xr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function V3(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(V3).join(""):""}const PU=[LU()];function Rp(e){return[...e.transformers||[],...PU]}var go=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Dy={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function FU(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 tC(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const s=[e[t+n++],e[t+n++],e[t+n]].map(l=>Number.parseInt(l));s.length===3&&!s.some(l=>Number.isNaN(l))&&(a={type:"rgb",rgb:s})}else if(r==="5"){const s=Number.parseInt(e[t+n]);Number.isNaN(s)||(a={type:"table",index:Number(s)})}return[n,a]}function jU(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)Dy[a]&&t.push({type:"setDecoration",value:Dy[a]});else if(a<=29){const s=Dy[a-20];s&&t.push({type:"resetDecoration",value:s})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:go[a-30]}});else if(a===38){const[s,l]=tC(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=s}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:go[a-40]}});else if(a===48){const[s,l]=tC(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=s}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:go[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:go[a-100+8]}})}return t}function BU(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let s=0;do{const l=FU(r,s),c=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=jU(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}s=l.position}while(s<r.length);return a}}}var UU={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 HU(e=UU){function t(c){return e[c]}function n(c){return`#${c.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<go.length;f++)r.push(t(go[f]));let c=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)r.push(n([c[f],c[p],c[m]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function s(c){return a()[c]}function l(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return s(c.index)}}return{value:l}}function zU(e,t,n){const r=kp(e,n),a=Cm(t),s=HU(Object.fromEntries(go.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),l=BU();return a.map(c=>l.parse(c[0]).map(d=>{let f,p;d.decorations.has("reverse")?(f=d.background?s.value(d.background):e.bg,p=d.foreground?s.value(d.foreground):e.fg):(f=d.foreground?s.value(d.foreground):e.fg,p=d.background?s.value(d.background):void 0),f=mo(f,r),p=mo(p,r),d.decorations.has("dim")&&(f=GU(f));let m=Ui.None;return d.decorations.has("bold")&&(m|=Ui.Bold),d.decorations.has("italic")&&(m|=Ui.Italic),d.decorations.has("underline")&&(m|=Ui.Underline),{content:d.value,offset:c[1],color:f,bgColor:p,fontStyle:m}}))}function GU(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 yb(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(mb(r)||gb(a))return Cm(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:s,colorMap:l}=e.setTheme(a);if(r==="ansi")return zU(s,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Gi(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Gi(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return qU(t,c,s,l,n)}function VU(...e){if(e.length===2)return Dd(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:s=t.getLoadedThemes()[0]}=r;if(mb(a)||gb(s))throw new Gi("Plain language does not have grammar state");if(a==="ansi")throw new Gi("ANSI language does not have grammar state");const{theme:l,colorMap:c}=t.setTheme(s),d=t.getLanguage(a);return new pc(wp(n,d,l,c,r).stateStack,d.name,l.name)}function qU(e,t,n,r,a){const s=wp(e,t,n,r,a),l=new pc(wp(e,t,n,r,a).stateStack,t.name,n.name);return Dm(s.tokens,l),s.tokens}function wp(e,t,n,r,a){const s=kp(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:c=500}=a,d=Cm(e);let f=a.grammarState?OU(a.grammarState,n.name)??j1:a.grammarContextCode!=null?wp(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:j1,p=[];const m=[];for(let E=0,y=d.length;E<y;E++){const[T,A]=d[E];if(T===""){p=[],m.push([]);continue}if(l>0&&T.length>=l){p=[],m.push([{content:T,offset:A,color:"",fontStyle:0}]);continue}let C,x,D;a.includeExplanation&&(C=t.tokenizeLine(T,f),x=C.tokens,D=0);const S=t.tokenizeLine2(T,f,c),L=S.tokens.length/2;for(let M=0;M<L;M++){const w=S.tokens[2*M],q=M+1<L?S.tokens[2*M+2]:T.length;if(w===q)continue;const ne=S.tokens[2*M+1],W=mo(r[nc.getForeground(ne)],s),k=nc.getFontStyle(ne),z={content:T.substring(w,q),offset:A+w,color:W,fontStyle:k};if(a.includeExplanation){const $=[];if(a.includeExplanation!=="scopeName")for(const re of n.settings){let me;switch(typeof re.scope){case"string":me=re.scope.split(/,/).map(V=>V.trim());break;case"object":me=re.scope;break;default:continue}$.push({settings:re,selectors:me.map(V=>V.split(/ /))})}z.explanation=[];let K=0;for(;w+K<q;){const re=x[D],me=T.substring(re.startIndex,re.endIndex);K+=me.length,z.explanation.push({content:me,scopes:a.includeExplanation==="scopeName"?YU(re.scopes):QU($,re.scopes)}),D+=1}}p.push(z)}m.push(p),p=[],f=S.ruleStack}return{tokens:m,stateStack:f}}function YU(e){return e.map(t=>({scopeName:t}))}function QU(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const s=t[r];n[r]={scopeName:s,themeMatches:WU(e,s,t.slice(0,r))}}return n}function nC(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function $U(e,t,n){if(!nC(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)nC(e[r],n[a])&&(r-=1),a-=1;return r===-1}function WU(e,t,n){const r=[];for(const{selectors:a,settings:s}of e)for(const l of a)if($U(l,t,n)){r.push(s);break}return r}function q3(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=yb(e,t,{...n,theme:d.theme}),p=Dd(f),m=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:m}}),s=KU(...a.map(d=>d.tokens)),l=s[0].map((d,f)=>d.map((p,m)=>{const E={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(E.explanation=p.explanation),s.forEach((y,T)=>{const{content:A,explanation:C,offset:x,...D}=y[f][m];E.variants[r[T].color]=D}),E})),c=a[0].state?new pc(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return c&&Dm(l,c),l}function KU(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),s=t.map(()=>[]);t.forEach((d,f)=>d.push(s[f]));const l=a.map(()=>0),c=a.map(d=>d[0]);for(;c.every(d=>d);){const d=Math.min(...c.map(f=>f.content.length));for(let f=0;f<n;f++){const p=c[f];p.content.length===d?(s[f].push(p),l[f]+=1,c[f]=a[f][l[f]]):(s[f].push({...p,content:p.content.slice(0,d)}),c[f]={...p,content:p.content.slice(d),offset:p.offset+d})}}}return t}function Ip(e,t,n){let r,a,s,l,c,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-"}=n,m=Object.entries(n.themes).filter(C=>C[1]).map(C=>({color:C[0],theme:C[1]})).sort((C,x)=>C.color===f?-1:x.color===f?1:0);if(m.length===0)throw new Gi("`themes` option must not be empty");const E=q3(e,t,n);if(d=Dd(E),f&&!m.find(C=>C.color===f))throw new Gi(`\`themes\` option must contain the defaultColor key \`${f}\``);const y=m.map(C=>e.getTheme(C.theme)),T=m.map(C=>C.color);s=E.map(C=>C.map(x=>XU(x,T,p,f))),d&&Dm(s,d);const A=m.map(C=>kp(C.theme,n));a=m.map((C,x)=>(x===0&&f?"":`${p+C.color}:`)+(mo(y[x].fg,A[x])||"inherit")).join(";"),r=m.map((C,x)=>(x===0&&f?"":`${p+C.color}-bg:`)+(mo(y[x].bg,A[x])||"inherit")).join(";"),l=`shiki-themes ${y.map(C=>C.name).join(" ")}`,c=f?void 0:[a,r].join(";")}else if("theme"in n){const f=kp(n.theme,n);s=yb(e,t,n);const p=e.getTheme(n.theme);r=mo(p.bg,f),a=mo(p.fg,f),l=p.name,d=Dd(s)}else throw new Gi("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:a,bg:r,themeName:l,rootStyle:c,grammarState:d}}function XU(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(d=>z3(e.variants[d])),l=new Set(s.flatMap(d=>Object.keys(d))),c={};return s.forEach((d,f)=>{for(const p of l){const m=d[p]||"inherit";if(f===0&&r)c[p]=m;else{const E=p==="color"?"":p==="background-color"?"-bg":`-${p}`,y=n+t[f]+(p==="color"?"":E);c[y]=m}}}),a.htmlStyle=c,a}function Np(e,t,n,r={meta:{},options:n,codeToHast:(a,s)=>Np(e,a,s),codeToTokens:(a,s)=>Ip(e,a,s)}){let a=t;for(const y of Rp(n))a=y.preprocess?.call(r,a,n)||a;let{tokens:s,fg:l,bg:c,themeName:d,rootStyle:f,grammarState:p}=Ip(e,a,n);const{mergeWhitespaces:m=!0}=n;m===!0?s=JU(s):m==="never"&&(s=eH(s));const E={...r,get source(){return a}};for(const y of Rp(n))s=y.tokens?.call(E,s)||s;return ZU(s,{...n,fg:l,bg:c,themeName:d,rootStyle:f},E,p)}function ZU(e,t,n,r=Dd(e)){const a=Rp(t),s=[],l={type:"root",children:[]},{structure:c="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([T])=>!T.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:s};const m=[],E={...n,structure:c,addClassToHast:U3,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return p},get lines(){return m}};if(e.forEach((T,A)=>{A&&(c==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&s.push({type:"text",value:`
85
+ `}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const D of T){let S={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const L=IU(D.htmlStyle||z3(D));L&&(S.properties.style=L);for(const M of a)S=M?.span?.call(E,S,A+1,x,C,D)||S;c==="inline"?l.children.push(S):c==="classic"&&C.children.push(S),x+=D.content.length}if(c==="classic"){for(const D of a)C=D?.line?.call(E,C,A+1)||C;m.push(C),s.push(C)}}),c==="classic"){for(const T of a)p=T?.code?.call(E,p)||p;f.children.push(p);for(const T of a)f=T?.pre?.call(E,f)||f;l.children.push(f)}let y=l;for(const T of a)y=T?.root?.call(E,y)||y;return r&&Dm(y,r),y}function JU(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((s,l)=>{const c=!(s.fontStyle&&s.fontStyle&Ui.Underline);c&&s.content.match(/^\s+$/)&&t[l+1]?(a||(a=s.offset),r+=s.content):r?(c?n.push({...s,offset:a,content:r+s.content}):n.push({content:r,offset:a},s),a=0,r=""):n.push(s)}),n})}function eH(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[,a,s,l]=r;if(!a&&!l)return n;const c=[{...n,offset:n.offset+a.length,content:s}];return a&&c.unshift({content:a,offset:n.offset}),l&&c.push({content:l,offset:n.offset+a.length+s.length}),c}))}function tH(e,t,n){const r={meta:{},options:n,codeToHast:(s,l)=>Np(e,s,l),codeToTokens:(s,l)=>Ip(e,s,l)};let a=SU(Np(e,t,n,r));for(const s of Rp(n))a=s.postprocess?.call(r,a,n)||a;return a}const rC={light:"#333333",dark:"#bbbbbb"},aC={light:"#fffffe",dark:"#1e1e1e"},iC="__shiki_resolved";function Eb(e){if(e?.[iC])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?rC.light:rC.dark),n||(n=t.type==="light"?aC.light:aC.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 a=0;const s=new Map;function l(c){if(s.has(c))return s.get(c);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(c):(s.set(c,d),d)}t.settings=t.settings.map(c=>{const d=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),f=c.settings?.background&&!c.settings.background.startsWith("#");if(!d&&!f)return c;const p={...c,settings:{...c.settings}};if(d){const m=l(c.settings.foreground);t.colorReplacements[m]=c.settings.foreground,p.settings.foreground=m}if(f){const m=l(c.settings.background);t.colorReplacements[m]=c.settings.background,p.settings.background=m}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const d=l(t.colors[c]);t.colorReplacements[d]=t.colors[c],t.colors[c]=d}return Object.defineProperty(t,iC,{enumerable:!1,writable:!1,value:!0}),t}async function Y3(e){return Array.from(new Set((await Promise.all(e.filter(t=>!j3(t)).map(async t=>await H3(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Q3(e){return(await Promise.all(e.map(async t=>B3(t)?null:Eb(await H3(t))))).filter(t=>!!t)}class nH extends gB{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(s=>this.loadTheme(s)),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=Eb(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=_p.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 xr(`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(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,s])=>!s);if(r.length){const a=n.filter(([s,l])=>l&&l.embeddedLangs?.some(c=>r.map(([d])=>d).includes(c))).filter(s=>!r.includes(s));throw new xr(`Missing languages ${r.map(([s])=>`\`${s}\``).join(", ")}, required by ${a.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[a,s]of n)this._resolver.addLanguage(s);for(const[a,s]of n)this.loadLanguage(s)}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 rH{_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 a=1;a<=n.length;a++){const s=n.slice(0,a).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let Au=0;function aH(e){Au+=1,e.warnings!==!1&&Au>=10&&Au%10===0&&console.warn(`[Shiki] ${Au} 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 xr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Eb),a=new rH(e.engine,n),s=new nH(a,r,n,e.langAlias);let l;function c(D){C();const S=s.getGrammar(typeof D=="string"?D:D.name);if(!S)throw new xr(`Language \`${D}\` not found, you may need to load it first`);return S}function d(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const S=s.getTheme(D);if(!S)throw new xr(`Theme \`${D}\` not found, you may need to load it first`);return S}function f(D){C();const S=d(D);l!==D&&(s.setTheme(S),l=D);const L=s.getColorMap();return{theme:S,colorMap:L}}function p(){return C(),s.getLoadedThemes()}function m(){return C(),s.getLoadedLanguages()}function E(...D){C(),s.loadLanguages(D.flat(1))}async function y(...D){return E(await Y3(D))}function T(...D){C();for(const S of D.flat(1))s.loadTheme(S)}async function A(...D){return C(),T(await Q3(D))}function C(){if(t)throw new xr("Shiki instance has been disposed")}function x(){t||(t=!0,s.dispose(),Au-=1)}return{setTheme:f,getTheme:d,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:y,loadLanguageSync:E,loadTheme:A,loadThemeSync:T,dispose:x,[Symbol.dispose]:x}}async function iH(e={}){e.loadWasm;const[t,n,r]=await Promise.all([Q3(e.themes||[]),Y3(e.langs||[]),e.engine||c3(e.loadWasm||wj())]);return aH({...e,themes:t,langs:n,engine:r})}async function sH(e={}){const t=await iH(e);return{getLastGrammarState:(...n)=>VU(t,...n),codeToTokensBase:(n,r)=>yb(t,n,r),codeToTokensWithThemes:(n,r)=>q3(t,n,r),codeToTokens:(n,r)=>Ip(t,n,r),codeToHast:(n,r)=>Np(t,n,r),codeToHtml:(n,r)=>tH(t,n,r),...t,getInternalContext:()=>t}}function oH(e,t,n){let r,a,s;{const c=e;r=c.langs,a=c.themes,s=c.engine}async function l(c){function d(y){if(typeof y=="string"){if(j3(y))return[];const T=r[y];if(!T)throw new Gi(`Language \`${y}\` is not included in this bundle. You may want to load it from external source.`);return T}return y}function f(y){if(B3(y))return"none";if(typeof y=="string"){const T=a[y];if(!T)throw new Gi(`Theme \`${y}\` is not included in this bundle. You may want to load it from external source.`);return T}return y}const p=(c.themes??[]).map(y=>f(y)),m=(c.langs??[]).map(y=>d(y)),E=await sH({engine:c.engine??s(),...c,themes:p,langs:m});return{...E,loadLanguage(...y){return E.loadLanguage(...y.map(d))},loadTheme(...y){return E.loadTheme(...y.map(f))}}}return l}const lH=oH({langs:uj,themes:fj,engine:()=>c3(j(()=>import("./wasm-DQxwEHae-CG6Dc4jp.js"),[]))}),ky={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"}]}}},cH={...ky,patterns:[...ky.patterns,{include:"#docvar"}],repository:{...ky.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},uH={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"}]}}},$3="catppuccin-latte",dH=lH({themes:[$3],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...cH},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...uH}]});async function No(e,t){return(await dH).codeToHtml(e,{lang:t,theme:$3})}const Gn=Ms(Fl)({display:"flex",flexDirection:"column",height:"100%"}),na=Ms(jl)({display:"flex",flexDirection:"column",padding:"10px",flexGrow:1}),bb=Ms(o4)({padding:"10px"}),fH=Ms("div")({height:"100%"});Ms("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const W3=Ms("div")({height:"75vh",width:"100%",overflowY:"auto"});Ms("div")({position:"relative",height:"100%",flex:"0 0 auto"});function ir({error:e,context:t}){const n=e.data?.message||"Unknown Error";return b.jsxs(b.Fragment,{children:[t&&b.jsx(Ie,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),b.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function mr({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:s=2,textVariant:l="body2"}){const c=b.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[b.jsx(v4,{size:t,color:n,thickness:r}),e&&b.jsx(Ie,{variant:l,color:"text.secondary",children:e})]});return a?b.jsx(it,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:c}):c}const hH=$t([b.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"),b.jsx("path",{d:"M7 12h2v5H7zm8-5h2v10h-2zm-4 7h2v3h-2zm0-4h2v2h-2z"},"1")]),Yt="http://localhost/api/v0".replace(/\/+$/,"");class Bs{constructor(t,n=Yt,r=at){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration}class pH extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}const Jt={},en="https://example.com",tt=function(e,t,n){if(n==null)throw new pH(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function V1(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>V1(e,r,n)):Object.keys(t).forEach(r=>V1(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const tn=function(e,...t){const n=new URLSearchParams(e.search);V1(n,t),e.search=n.toString()},Op=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||""},nn=function(e){return e.pathname+e.search+e.hash},rn=function(e,t,n,r){return(a=t,s=n)=>{const l={...e.options,url:(a.defaults.baseURL?"":r?.basePath??s)+e.url};return a.request(l)}},mH=function(e){return{getConnection:async(t,n,r={})=>{tt("getConnection","projectName",t),tt("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};tn(s,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:nn(s),options:c}},getQuerydata:async(t,n,r,a,s={})=>{tt("getQuerydata","projectName",t),tt("getQuerydata","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};r!==void 0&&(m.sqlStatement=r),a!==void 0&&(m.options=a),tn(c,m);let E=d&&d.headers?d.headers:{};return f.headers={...p,...E,...s.headers},{url:nn(c),options:f}},getSqlsource:async(t,n,r,a={})=>{tt("getSqlsource","projectName",t),tt("getSqlsource","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(s,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}},getTablesource:async(t,n,r,a,s={})=>{tt("getTablesource","projectName",t),tt("getTablesource","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};r!==void 0&&(m.tableKey=r),a!==void 0&&(m.tablePath=a),tn(c,m);let E=d&&d.headers?d.headers:{};return f.headers={...p,...E,...s.headers},{url:nn(c),options:f}},getTemporarytable:async(t,n,r,a={})=>{tt("getTemporarytable","projectName",t),tt("getTemporarytable","connectionName",n);const s="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(s,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}},getTest:async(t,n,r={})=>{tt("getTest","projectName",t),tt("getTest","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};tn(s,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:nn(s),options:c}},listConnections:async(t,n={})=>{tt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,en);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...n},c={};tn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...n.headers},{url:nn(a),options:l}},listSchemas:async(t,n,r={})=>{tt("listSchemas","projectName",t),tt("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),s=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};tn(s,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:nn(s),options:c}},listTables:async(t,n,r,a={})=>{tt("listTables","projectName",t),tt("listTables","connectionName",n),tt("listTables","schemaName",r);const s="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),l=new URL(s,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={};tn(l,{});let p=c&&c.headers?c.headers:{};return d.headers={...f,...p,...a.headers},{url:nn(l),options:d}}}},Ni=function(e){const t=mH(e);return{async getConnection(n,r,a){const s=await t.getConnection(n,r,a),l=e?.serverIndex??0,c=Jt["ConnectionsApi.getConnection"]?.[l]?.url;return(d,f)=>rn(s,at,Yt,e)(d,c||f)},async getQuerydata(n,r,a,s,l){const c=await t.getQuerydata(n,r,a,s,l),d=e?.serverIndex??0,f=Jt["ConnectionsApi.getQuerydata"]?.[d]?.url;return(p,m)=>rn(c,at,Yt,e)(p,f||m)},async getSqlsource(n,r,a,s){const l=await t.getSqlsource(n,r,a,s),c=e?.serverIndex??0,d=Jt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(f,p)=>rn(l,at,Yt,e)(f,d||p)},async getTablesource(n,r,a,s,l){const c=await t.getTablesource(n,r,a,s,l),d=e?.serverIndex??0,f=Jt["ConnectionsApi.getTablesource"]?.[d]?.url;return(p,m)=>rn(c,at,Yt,e)(p,f||m)},async getTemporarytable(n,r,a,s){const l=await t.getTemporarytable(n,r,a,s),c=e?.serverIndex??0,d=Jt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(f,p)=>rn(l,at,Yt,e)(f,d||p)},async getTest(n,r,a){const s=await t.getTest(n,r,a),l=e?.serverIndex??0,c=Jt["ConnectionsApi.getTest"]?.[l]?.url;return(d,f)=>rn(s,at,Yt,e)(d,c||f)},async listConnections(n,r){const a=await t.listConnections(n,r),s=e?.serverIndex??0,l=Jt["ConnectionsApi.listConnections"]?.[s]?.url;return(c,d)=>rn(a,at,Yt,e)(c,l||d)},async listSchemas(n,r,a){const s=await t.listSchemas(n,r,a),l=e?.serverIndex??0,c=Jt["ConnectionsApi.listSchemas"]?.[l]?.url;return(d,f)=>rn(s,at,Yt,e)(d,c||f)},async listTables(n,r,a,s){const l=await t.listTables(n,r,a,s),c=e?.serverIndex??0,d=Jt["ConnectionsApi.listTables"]?.[c]?.url;return(f,p)=>rn(l,at,Yt,e)(f,d||p)}}};class K3 extends Bs{getConnection(t,n,r){return Ni(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,s){return Ni(this.configuration).getQuerydata(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Ni(this.configuration).getSqlsource(t,n,r,a).then(s=>s(this.axios,this.basePath))}getTablesource(t,n,r,a,s){return Ni(this.configuration).getTablesource(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Ni(this.configuration).getTemporarytable(t,n,r,a).then(s=>s(this.axios,this.basePath))}getTest(t,n,r){return Ni(this.configuration).getTest(t,n,r).then(a=>a(this.axios,this.basePath))}listConnections(t,n){return Ni(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ni(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Ni(this.configuration).listTables(t,n,r,a).then(s=>s(this.axios,this.basePath))}}const gH=function(e){return{listDatabases:async(t,n,r,a={})=>{tt("listDatabases","projectName",t),tt("listDatabases","packageName",n);const s="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}}}},yH=function(e){const t=gH(e);return{async listDatabases(n,r,a,s){const l=await t.listDatabases(n,r,a,s),c=e?.serverIndex??0,d=Jt["DatabasesApi.listDatabases"]?.[c]?.url;return(f,p)=>rn(l,at,Yt,e)(f,d||p)}}};class EH extends Bs{listDatabases(t,n,r,a){return yH(this.configuration).listDatabases(t,n,r,a).then(s=>s(this.axios,this.basePath))}}const bH=function(e){return{getModel:async(t,n,r,a,s={})=>{tt("getModel","projectName",t),tt("getModel","packageName",n),tt("getModel","path",r);const l="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};a!==void 0&&(m.versionId=a),tn(c,m);let E=d&&d.headers?d.headers:{};return f.headers={...p,...E,...s.headers},{url:nn(c),options:f}},listModels:async(t,n,r,a={})=>{tt("listModels","projectName",t),tt("listModels","packageName",n);const s="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}}}},sC=function(e){const t=bH(e);return{async getModel(n,r,a,s,l){const c=await t.getModel(n,r,a,s,l),d=e?.serverIndex??0,f=Jt["ModelsApi.getModel"]?.[d]?.url;return(p,m)=>rn(c,at,Yt,e)(p,f||m)},async listModels(n,r,a,s){const l=await t.listModels(n,r,a,s),c=e?.serverIndex??0,d=Jt["ModelsApi.listModels"]?.[c]?.url;return(f,p)=>rn(l,at,Yt,e)(f,d||p)}}};class km extends Bs{getModel(t,n,r,a,s){return sC(this.configuration).getModel(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,a){return sC(this.configuration).listModels(t,n,r,a).then(s=>s(this.axios,this.basePath))}}const vH=function(e){return{getNotebook:async(t,n,r,a,s={})=>{tt("getNotebook","projectName",t),tt("getNotebook","packageName",n),tt("getNotebook","path",r);const l="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};a!==void 0&&(m.versionId=a),tn(c,m);let E=d&&d.headers?d.headers:{};return f.headers={...p,...E,...s.headers},{url:nn(c),options:f}},listNotebooks:async(t,n,r,a={})=>{tt("listNotebooks","projectName",t),tt("listNotebooks","packageName",n);const s="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}}}},oC=function(e){const t=vH(e);return{async getNotebook(n,r,a,s,l){const c=await t.getNotebook(n,r,a,s,l),d=e?.serverIndex??0,f=Jt["NotebooksApi.getNotebook"]?.[d]?.url;return(p,m)=>rn(c,at,Yt,e)(p,f||m)},async listNotebooks(n,r,a,s){const l=await t.listNotebooks(n,r,a,s),c=e?.serverIndex??0,d=Jt["NotebooksApi.listNotebooks"]?.[c]?.url;return(f,p)=>rn(l,at,Yt,e)(f,d||p)}}};class X3 extends Bs{getNotebook(t,n,r,a,s){return oC(this.configuration).getNotebook(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}listNotebooks(t,n,r,a){return oC(this.configuration).listNotebooks(t,n,r,a).then(s=>s(this.axios,this.basePath))}}const TH=function(e){return{createPackage:async(t,n,r={})=>{tt("createPackage","projectName",t),tt("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),s=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...r},d={},f={};d["Content-Type"]="application/json",tn(s,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=Op(n,c,e),{url:nn(s),options:c}},deletePackage:async(t,n,r={})=>{tt("deletePackage","projectName",t),tt("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),s=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...r},d={};tn(s,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:nn(s),options:c}},getPackage:async(t,n,r,a,s={})=>{tt("getPackage","projectName",t),tt("getPackage","packageName",n);const l="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(l,en);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...s},p={},m={};r!==void 0&&(m.versionId=r),a!==void 0&&(m.reload=a),tn(c,m);let E=d&&d.headers?d.headers:{};return f.headers={...p,...E,...s.headers},{url:nn(c),options:f}},listPackages:async(t,n={})=>{tt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,en);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...n},c={};tn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...n.headers},{url:nn(a),options:l}},updatePackage:async(t,n,r,a={})=>{tt("updatePackage","projectName",t),tt("updatePackage","packageName",n),tt("updatePackage","body",r);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,en);let c;e&&(c=e.baseOptions);const d={method:"PATCH",...c,...a},f={},p={};f["Content-Type"]="application/json",tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},d.data=Op(r,d,e),{url:nn(l),options:d}}}},Su=function(e){const t=TH(e);return{async createPackage(n,r,a){const s=await t.createPackage(n,r,a),l=e?.serverIndex??0,c=Jt["PackagesApi.createPackage"]?.[l]?.url;return(d,f)=>rn(s,at,Yt,e)(d,c||f)},async deletePackage(n,r,a){const s=await t.deletePackage(n,r,a),l=e?.serverIndex??0,c=Jt["PackagesApi.deletePackage"]?.[l]?.url;return(d,f)=>rn(s,at,Yt,e)(d,c||f)},async getPackage(n,r,a,s,l){const c=await t.getPackage(n,r,a,s,l),d=e?.serverIndex??0,f=Jt["PackagesApi.getPackage"]?.[d]?.url;return(p,m)=>rn(c,at,Yt,e)(p,f||m)},async listPackages(n,r){const a=await t.listPackages(n,r),s=e?.serverIndex??0,l=Jt["PackagesApi.listPackages"]?.[s]?.url;return(c,d)=>rn(a,at,Yt,e)(c,l||d)},async updatePackage(n,r,a,s){const l=await t.updatePackage(n,r,a,s),c=e?.serverIndex??0,d=Jt["PackagesApi.updatePackage"]?.[c]?.url;return(f,p)=>rn(l,at,Yt,e)(f,d||p)}}};class Z3 extends Bs{createPackage(t,n,r){return Su(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return Su(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,s){return Su(this.configuration).getPackage(t,n,r,a,s).then(l=>l(this.axios,this.basePath))}listPackages(t,n){return Su(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return Su(this.configuration).updatePackage(t,n,r,a).then(s=>s(this.axios,this.basePath))}}const _H=function(e){return{createProject:async(t,n={})=>{tt("createProject","body",t);const r="/projects",a=new URL(r,en);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...n},c={},d={};c["Content-Type"]="application/json",tn(a,d);let f=s&&s.headers?s.headers:{};return l.headers={...c,...f,...n.headers},l.data=Op(t,l,e),{url:nn(a),options:l}},deleteProject:async(t,n={})=>{tt("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,en);let s;e&&(s=e.baseOptions);const l={method:"DELETE",...s,...n},c={};tn(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...n.headers},{url:nn(a),options:l}},getProject:async(t,n,r={})=>{tt("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),s=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={},f={};n!==void 0&&(f.reload=n),tn(s,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},{url:nn(s),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,en);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...t},l={};tn(r,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...t.headers},{url:nn(r),options:s}},updateProject:async(t,n,r={})=>{tt("updateProject","projectName",t),tt("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),s=new URL(a,en);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...r},d={},f={};d["Content-Type"]="application/json",tn(s,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=Op(n,c,e),{url:nn(s),options:c}}}},Cu=function(e){const t=_H(e);return{async createProject(n,r){const a=await t.createProject(n,r),s=e?.serverIndex??0,l=Jt["ProjectsApi.createProject"]?.[s]?.url;return(c,d)=>rn(a,at,Yt,e)(c,l||d)},async deleteProject(n,r){const a=await t.deleteProject(n,r),s=e?.serverIndex??0,l=Jt["ProjectsApi.deleteProject"]?.[s]?.url;return(c,d)=>rn(a,at,Yt,e)(c,l||d)},async getProject(n,r,a){const s=await t.getProject(n,r,a),l=e?.serverIndex??0,c=Jt["ProjectsApi.getProject"]?.[l]?.url;return(d,f)=>rn(s,at,Yt,e)(d,c||f)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,s=Jt["ProjectsApi.listProjects"]?.[a]?.url;return(l,c)=>rn(r,at,Yt,e)(l,s||c)},async updateProject(n,r,a){const s=await t.updateProject(n,r,a),l=e?.serverIndex??0,c=Jt["ProjectsApi.updateProject"]?.[l]?.url;return(d,f)=>rn(s,at,Yt,e)(d,c||f)}}};class J3 extends Bs{createProject(t,n){return Cu(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return Cu(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return Cu(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return Cu(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return Cu(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}}const xH=function(e){return{executeQuery:async(t,n,r,a,s,l,c,d={})=>{tt("executeQuery","projectName",t),tt("executeQuery","packageName",n),tt("executeQuery","path",r);const f="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(f,en);let m;e&&(m=e.baseOptions);const E={method:"GET",...m,...d},y={},T={};a!==void 0&&(T.query=a),s!==void 0&&(T.sourceName=s),l!==void 0&&(T.queryName=l),c!==void 0&&(T.versionId=c),tn(p,T);let A=m&&m.headers?m.headers:{};return E.headers={...y,...A,...d.headers},{url:nn(p),options:E}}}},AH=function(e){const t=xH(e);return{async executeQuery(n,r,a,s,l,c,d,f){const p=await t.executeQuery(n,r,a,s,l,c,d,f),m=e?.serverIndex??0,E=Jt["QueryresultsApi.executeQuery"]?.[m]?.url;return(y,T)=>rn(p,at,Yt,e)(y,E||T)}}};class vb extends Bs{executeQuery(t,n,r,a,s,l,c,d){return AH(this.configuration).executeQuery(t,n,r,a,s,l,c,d).then(f=>f(this.axios,this.basePath))}}const SH=function(e){return{listSchedules:async(t,n,r,a={})=>{tt("listSchedules","projectName",t),tt("listSchedules","packageName",n);const s="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(s,en);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),tn(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:nn(l),options:d}}}},CH=function(e){const t=SH(e);return{async listSchedules(n,r,a,s){const l=await t.listSchedules(n,r,a,s),c=e?.serverIndex??0,d=Jt["SchedulesApi.listSchedules"]?.[c]?.url;return(f,p)=>rn(l,at,Yt,e)(f,d||p)}}};class DH extends Bs{listSchedules(t,n,r,a){return CH(this.configuration).listSchedules(t,n,r,a).then(s=>s(this.axios,this.basePath))}}class sr{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 eR=N.createContext(void 0),Lp=({projectName:e,packageName:t,versionId:n,children:r})=>b.jsx(eR.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function ra(e=!0){const t=N.useContext(eR);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const tR=new zM({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),Tb=async(e,t)=>{const n=t?await t():void 0,r=n?{Authorization:`Bearer ${n}`}:{};return{baseURL:e,withCredentials:!!n,headers:r}};function gr(e){const{server:t,getAccessToken:n}=Ib(),r={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{const a=await Tb(t,n);return await e.queryFn(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 iP(r,tR)}function kH(e){const{server:t,getAccessToken:n}=Ib(),r={...e,mutationFn:async a=>{try{const s=await Tb(t,n);return await e.mutationFn(a,s)}catch(s){if(s&&typeof s=="object"&&"response"in s){const l=s;if(l.response?.data){const c=new Error(l.response.data.message||l.message);throw c.status=l.response.status,c.data=l.response.data,c}}throw s}},retry:!1,throwOnError:!1};return sP(r,tR)}const RH=N.lazy(()=>j(()=>import("./RenderedResult-BAZuT25g-QakVAbYy.js"),__vite__mapDeps([93,94,95]))),wH=new vb(new sr);function nR(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 IH({modelPath:e,query:t,sourceName:n,queryName:r,optionalProjectName:a,optionalPackageName:s,optionalVersionId:l}){const c=ra(!1),d=a||c?.projectName,f=s||c?.packageName,p=l||c?.versionId;if(!d||!f)throw new Error("No project or package name provided. Must be set in props or via PackageProvider");const{data:m,isSuccess:E,isError:y,error:T}=gr({queryKey:["queryResult",d,f,e,p,t,n,r],queryFn:A=>wH.executeQuery(d,f,e,t,n,r,p,A)});return b.jsxs(b.Fragment,{children:[!E&&!y&&b.jsx(mr,{text:"Fetching Query Results..."}),E&&b.jsx(N.Suspense,{fallback:b.jsx("div",{children:"Loading..."}),children:b.jsx(RH,{result:m.data.result})}),y&&b.jsx(ir,{context:`${d} > ${f} > ${e}`,error:T})]})}const rR=$t(b.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"})),NH=N.lazy(()=>j(()=>import("./RenderedResult-BAZuT25g-QakVAbYy.js"),__vite__mapDeps([93,94,95])));function aR({result:e,minHeight:t,maxHeight:n}){const[r,a]=N.useState(!1),[s,l]=N.useState(0),[c,d]=N.useState(!1),f=N.useRef(null),p=N.useRef(null),[m,E]=N.useState(void 0),[y,T]=N.useState(!1),A=N.useCallback(()=>{const L=r;a(!r),L&&p.current&&setTimeout(()=>{p.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[r]),C=N.useCallback(L=>{l(L)},[]);if(N.useEffect(()=>{if(y){d(!0);return}if(s===0){d(!1);return}const L=t-20,M=s>L;s<L&&E(s+20),d(M)},[s,y,t]),!e)return null;const x=b.jsx(mr,{text:"Loading...",centered:!0,size:32}),D=y?r?n-40:t-40:void 0,S=m?{minHeight:`${m}px`,height:"100%"}:{height:"100%"};return b.jsx(b.Fragment,{children:b.jsxs(it,{ref:p,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${r?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...S},children:[b.jsx(it,{ref:f,sx:{flex:1,overflow:r?"auto":"hidden",p:0,pb:c?"40px":1},children:e&&b.jsx(N.Suspense,{fallback:x,children:b.jsx(NH,{result:e,height:D,isFillElement:L=>{T(L)},onSizeChange:C})})||x}),c&&b.jsx(it,{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:b.jsx(An,{size:"small",onClick:A,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:r?"Collapse to original size":"Expand to full size",children:r?b.jsx(S4,{sx:{fontSize:30}}):b.jsx(C4,{sx:{fontSize:30}})})})]})})}const OH=`
86
+ .code-display pre {
87
+ margin: 0;
88
+ padding: 0;
89
+ }
90
+ `;function LH({cell:e,notebookPath:t,expandCodeCell:n,hideCodeCellIcon:r,expandEmbedding:a,hideEmbeddingIcon:s}){const[l,c]=Ne.useState(n),[d,f]=Ne.useState(a),[p,m]=Ne.useState(),[E,y]=Ne.useState(),[T,A]=Ne.useState(!1),{packageName:C,projectName:x}=ra(),D=nR({modelPath:t,query:e.text,optionalPackageName:C,optionalProjectName:x});return N.useEffect(()=>{e.type==="code"&&No(e.text,"malloy").then(S=>{m(S)})},[e]),N.useEffect(()=>{No(D,"typescript").then(S=>{y(S)})},[D]),e.type==="markdown"&&b.jsx(Gn,{variant:"outlined",children:b.jsx(na,{children:b.jsx(FE,{children:e.text})})})||e.type==="code"&&b.jsxs(Gn,{variant:"outlined",sx:{height:"auto"},children:[(!r||!s&&e.result)&&b.jsxs(It,{sx:{flexDirection:"row",justifyContent:"space-between",ml:"8px"},children:[b.jsxs(It,{sx:{flexDirection:"row"},children:[e.newSources&&e.newSources.length>0&&b.jsx(Ie,{variant:"overline",children:b.jsx("b",{children:"Data source"})}),e.result&&b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Results"})]}),b.jsx(It,{sx:{flexDirection:"row"},children:b.jsxs(Yp,{sx:{padding:"0px 8px 0px 8px",mb:"auto",mt:"auto"},children:[e.newSources&&e.newSources.length>0&&b.jsx(Rn,{title:"Explore Data Sources",children:b.jsx(An,{size:"small",onClick:()=>{A(!T),f(!1),c(!1)},children:b.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M3 3h18v18H3V3zm2 2v14h14V5H5zm2 2h10v2H7V7zm0 4h10v2H7v-2zm0 4h10v2H7v-2z",fill:"currentColor"})})})}),!r&&b.jsx(Rn,{title:l?"Hide Code":"View Code",children:b.jsx(An,{size:"small",onClick:()=>{c(!l)},children:b.jsx(rR,{})})}),!s&&e.result&&b.jsx(Rn,{title:d?"Hide Embedding":"View Embedding",children:b.jsx(An,{size:"small",onClick:()=>{f(!d)},children:b.jsx(qd,{})})})]})})]}),b.jsx(zi,{in:d,timeout:"auto",unmountOnExit:!0,children:b.jsxs(It,{sx:{p:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ie,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:E}}),b.jsx(Rn,{title:"Copy Embeddable Code",children:b.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(D)},children:b.jsx(Tm,{})})})]})}),b.jsxs(zi,{in:l,timeout:"auto",unmountOnExit:!0,children:[b.jsx("style",{children:OH}),b.jsx(It,{sx:{mx:"8px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx("div",{className:"code-display",style:{fontSize:"12px",width:"800px",border:"1px solid rgb(220,220,220)"},dangerouslySetInnerHTML:{__html:p}})})]}),b.jsx(zi,{in:T,timeout:"auto",unmountOnExit:!0,sx:{p:"5px"},children:b.jsx(MR,{sourceAndPaths:e.newSources.map(S=>({sourceInfo:JSON.parse(S),modelPath:t}))})}),e.result&&!T&&b.jsx(b.Fragment,{children:b.jsx(aR,{result:e.result,minHeight:300,maxHeight:700})})]})}const MH=new X3(new sr);function iR({notebookPath:e,expandResults:t,hideResultIcons:n,expandEmbeddings:r,hideEmbeddingIcons:a}){const[s,l]=Ne.useState(!1),[c,d]=Ne.useState(),{projectName:f,packageName:p,versionId:m}=ra(),E=PH(e,!0);N.useEffect(()=>{No(E,"typescript").then(x=>{d(x)})},[s,E]);const{data:y,isSuccess:T,isError:A,error:C}=gr({queryKey:["notebook",f,p,e,m],queryFn:async x=>(await MH.getNotebook(f,p,e,m,x)).data});return b.jsxs(Gn,{variant:"outlined",children:[b.jsxs(na,{children:[b.jsxs(It,{sx:{flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Notebook"}),!a&&b.jsx(Yp,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:b.jsx(Rn,{title:s?"Hide Embedding":"View Embedding",children:b.jsx(An,{size:"small",onClick:()=>{l(!s)},children:b.jsx(qd,{})})})})]}),b.jsx(zi,{in:s,timeout:"auto",unmountOnExit:!0,children:b.jsxs(It,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ie,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:c}})}),b.jsx(Rn,{title:"Copy Embeddable Code",children:b.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(E)},children:b.jsx(Tm,{})})})]})})]}),b.jsx(bb,{children:b.jsxs(It,{spacing:2,component:"section",children:[!T&&!A&&b.jsx(mr,{text:"Fetching Notebook..."}),T&&y.notebookCells?.map((x,D)=>b.jsx(LH,{cell:x,notebookPath:e,expandCodeCell:t,hideCodeCellIcon:n,expandEmbedding:r,hideEmbeddingIcon:a},D)),A&&C.status===404&&b.jsxs(Ie,{variant:"body2",children:[b.jsx("code",{children:`${f} > ${p} > ${e}`})," ","not found."]}),A&&C.status!==404&&b.jsx(ir,{error:C,context:`${f} > ${p} > ${e}`})]})})]})}function PH(e,t){return`<Notebook
91
+ notebookPath="${e}"
92
+ expandCodeCells={${t}}
93
+ />`}const sR=$t(b.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"})),FH=new Z3(new sr);function jH(){const{projectName:e,packageName:t,versionId:n}=ra(),{data:r,isSuccess:a,isError:s,error:l}=gr({queryKey:["package",e,t,n],queryFn:c=>FH.getPackage(e,t,n,!1,c)});return b.jsx(Gn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Package Config"}),b.jsx(Zn,{}),b.jsx(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:b.jsxs(Qp,{dense:!0,disablePadding:!0,children:[b.jsx(Bl,{dense:!0,disablePadding:!0,children:b.jsx(Hi,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!a&&!s&&b.jsx(Bl,{children:b.jsx(mr,{text:"Fetching Package Metadata..."})}),a&&(r.data&&b.jsx(Bl,{dense:!0,disablePadding:!0,children:b.jsx(Hi,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||b.jsxs(Bl,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[b.jsx(sR,{sx:{color:"grey.600",mr:"10px"}}),b.jsx(Hi,{primary:"No package manifest"})]})),s&&b.jsx(ir,{error:l,context:`${e} > ${t} > ${n}`})]})})]})})}const BH=$t(b.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"})),UH=new J3(new sr);function HH(){const{projectName:e}=Xd(),{data:t,isSuccess:n,isError:r,error:a}=gr({queryKey:["about",e],queryFn:s=>UH.getProject(e,!1,s)});return b.jsxs(b.Fragment,{children:[!n&&!r&&b.jsx(mr,{text:"Fetching About..."}),n&&t.data?.readme&&b.jsxs(Gn,{variant:"outlined",sx:{p:2},children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Readme"}),b.jsx(Gn,{sx:{p:1},children:b.jsx(FE,{children:t.data.readme})})]}),r&&b.jsx(ir,{error:a,context:`${e} > About`})]})}const zH=new Z3(new sr);function GH({navigate:e}){const{projectName:t}=Xd(),{data:n,isSuccess:r,isError:a,error:s}=gr({queryKey:["packages",t],queryFn:l=>zH.listPackages(t,l)});return b.jsxs(b.Fragment,{children:[!r&&!a&&b.jsx(mr,{text:"Fetching Packages..."}),r&&b.jsxs(Gn,{variant:"outlined",sx:{p:2},children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",sx:{mb:1},children:"Packages"}),b.jsx(gn,{container:!0,spacing:2,columns:12,children:n.data.sort((l,c)=>l.name.localeCompare(c.name)).map(l=>b.jsx(gn,{size:{xs:12,sm:12,md:12,lg:4},children:b.jsx(Gn,{variant:"outlined",sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",transform:"translateY(-2px)"}},onClick:c=>e(l.name,c),children:b.jsxs(na,{children:[b.jsx(Ie,{variant:"overline",color:"primary.main",children:l.name}),b.jsx(it,{sx:{maxHeight:"120px",overflowY:"auto"},children:b.jsx(Ie,{variant:"body2",children:l.description})})]})})},l.name))})]}),a&&b.jsx(ir,{error:s,context:`${t} > Packages`})]})}const oR=N.createContext(void 0);function Xd(){const e=N.useContext(oR);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function lR({children:e,projectName:t}){return b.jsx(oR.Provider,{value:{projectName:t},children:e})}function VH({navigate:e}){return b.jsxs(gn,{container:!0,spacing:2,columns:12,children:[b.jsx(gn,{size:{xs:12,md:12},children:b.jsx(GH,{navigate:e})}),b.jsx(gn,{size:{xs:12,md:12},children:b.jsx(HH,{})})]})}const _b=new K3(new sr);function qH({connectionName:e,schema:t}){const{projectName:n}=Xd(),[r,a]=Ne.useState(void 0),[s,l]=Ne.useState(t||null),[c,d]=Ne.useState(!1),{data:f,isSuccess:p,isError:m,error:E,isLoading:y}=gr({queryKey:["tablePath",n,e],queryFn:T=>_b.listSchemas(n,e,T)});return b.jsxs(gn,{container:!0,spacing:1,children:[!t&&b.jsx(gn,{size:{xs:12,md:4},children:b.jsxs(Fh,{sx:{p:1,m:0},children:[b.jsxs(it,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),b.jsx(x4,{control:b.jsx(A4,{checked:c,onChange:T=>d(T.target.checked)}),label:"Hidden Schemas"})]}),b.jsx(Zn,{sx:{mt:"2px"}}),b.jsxs(it,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[y&&b.jsx(mr,{text:"Fetching Table Paths..."}),m&&b.jsx(ir,{error:E,context:`${n} > ${e}`}),p&&f.data.length===0&&b.jsx(Ie,{variant:"body2",children:"No Schemas"}),p&&f.data.length>0&&b.jsx(Qp,{dense:!0,disablePadding:!0,children:f.data.filter(({isHidden:T})=>c||!T).sort((T,A)=>T.isDefault===A.isDefault?0:T.isDefault?-1:1).map(T=>b.jsx(X2,{selected:s===T.name,onClick:()=>l(T.name),children:b.jsx(Hi,{primary:T.name})},T.name))})]})]})}),b.jsx(gn,{size:{xs:12,md:t?6:4},children:s&&b.jsx(Fh,{sx:{p:1,m:0},children:b.jsx(QH,{connectionName:e,schemaName:s,onTableClick:T=>{a(T)}})})}),b.jsx(gn,{size:{xs:12,md:t?6:4},children:r&&s&&b.jsx(Fh,{sx:{p:1,m:0},children:b.jsx(YH,{connectionName:e,schemaName:s,tableName:r})})})]})}function YH({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Xd(),{data:a,isSuccess:s,isError:l,error:c,isLoading:d}=gr({queryKey:["tablePathSchema",r,e,t,n],queryFn:f=>_b.getTablesource(r,e,n,`${t}.${n}`,f)});return b.jsxs(b.Fragment,{children:[b.jsxs(Ie,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),b.jsx(Zn,{}),b.jsxs(it,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[d&&b.jsx(mr,{text:"Fetching Table Details..."}),l&&b.jsx(ir,{error:c,context:`${r} > ${e} > ${t}.${n}`}),s&&a&&b.jsx(gE,{children:b.jsxs(od,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[b.jsx(op,{children:b.jsxs(ai,{children:[b.jsx(zt,{children:"NAME"}),b.jsx(zt,{children:"TYPE"})]})}),b.jsx(ld,{children:a.data.columns?.map(f=>b.jsxs(ai,{children:[b.jsx(zt,{children:f.name}),b.jsx(zt,{children:f.type})]},f.name))})]})})]})]})}function QH({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Xd(),{data:a,isSuccess:s,isError:l,error:c,isLoading:d}=gr({queryKey:["tablesInSchema",r,e,t],queryFn:f=>_b.listTables(r,e,t,f)});return b.jsxs(b.Fragment,{children:[b.jsxs(Ie,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),b.jsx(Zn,{}),b.jsxs(it,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[d&&b.jsx(mr,{text:"Fetching Tables..."}),l&&b.jsx(ir,{error:c,context:`${r} > ${e} > ${t}`}),s&&a.data.length===0&&b.jsx(Ie,{variant:"body2",children:"No Tables"}),s&&a.data.length>0&&b.jsx(Qp,{dense:!0,disablePadding:!0,children:a.data.map(f=>b.jsx(X2,{onClick:()=>n(f),children:b.jsx(Hi,{primary:f})},f))})]})]})}const $H=new K3(new sr);function WH({connection:e,onClick:t}){return b.jsxs(ai,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[b.jsx(zt,{children:b.jsxs(it,{sx:{display:"flex",alignItems:"center",gap:1},children:[b.jsx(Ie,{variant:"body2",children:e.name}),b.jsx(BH,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),b.jsx(zt,{children:b.jsx(Ie,{variant:"body2",children:e.type})})]},e.name)}function KH(){const{projectName:e}=ra(),[t,n]=N.useState(null),{data:r,isSuccess:a,isError:s,error:l}=gr({queryKey:["connections",e],queryFn:f=>$H.listConnections(e,f)}),c=f=>{n(f)},d=()=>{n(null)};return b.jsxs(lR,{projectName:e,children:[b.jsx(Gn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Database Connections"}),b.jsx(Zn,{}),b.jsxs(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!a&&!s&&b.jsx(Ie,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),a&&r.data.length>0&&b.jsx(od,{size:"small",children:b.jsxs(ld,{children:[b.jsxs(ai,{children:[b.jsx(zt,{children:b.jsx(Ie,{variant:"subtitle2",fontWeight:"bold",children:"Connection Name"})}),b.jsx(zt,{children:b.jsx(Ie,{variant:"subtitle2",fontWeight:"bold",children:"Type"})})]}),r.data.map(f=>b.jsx(WH,{connection:f,onClick:()=>c(f.name)},f.name))]})}),a&&r.data.length===0&&b.jsx(Ie,{variant:"body2",children:"No Connections"}),s&&b.jsx(ir,{error:l,context:`${e} > Connections`})]})]})}),b.jsxs(Kl,{open:t!==null,onClose:d,maxWidth:"lg",fullWidth:!0,children:[b.jsxs(Xl,{children:["Connection Explorer: ",t,b.jsx(An,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:b.jsx(it,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),b.jsx(Zl,{children:t&&b.jsx(qH,{connectionName:t})})]})]})}const XH=new EH(new sr);function ZH(){const{projectName:e,packageName:t,versionId:n}=ra(),[r,a]=Ne.useState(!1),[s,l]=Ne.useState(null),c=T=>{l(T),a(!0)},d=()=>{a(!1),l(null)},{data:f,isError:p,error:m,isSuccess:E}=gr({queryKey:["databases",e,t,n],queryFn:T=>XH.listDatabases(e,t,n,T)}),y=T=>T>=1024*1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} T`:T>=1024*1024*1024?`${(T/(1024*1024*1024)).toFixed(2)} G`:T>=1024*1024?`${(T/(1024*1024)).toFixed(2)} M`:`${(T/1024).toFixed(2)} K`;return b.jsxs(b.Fragment,{children:[b.jsx(Gn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Embedded Databases"}),b.jsx(Zn,{}),b.jsxs(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!E&&!p&&b.jsx(mr,{text:"Fetching Databases..."}),p&&b.jsx(ir,{error:m,context:`${e} > ${t} > Databases`}),E&&f.data.length>0&&b.jsxs(od,{size:"small",children:[b.jsx(op,{children:b.jsxs(ai,{children:[b.jsx(zt,{children:"Name"}),b.jsx(zt,{align:"right",children:"Rows"})]})}),b.jsx(ld,{children:f.data.map(T=>b.jsxs(ai,{onClick:()=>c(T),sx:{cursor:"pointer"},children:[b.jsx(zt,{component:"th",scope:"row",children:T.path}),b.jsx(zt,{align:"right",children:y(T.info.rowCount)})]},T.path))})]}),E&&f.data.length===0&&b.jsx(Ie,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),b.jsxs(Kl,{open:r,onClose:d,maxWidth:"sm",fullWidth:!0,children:[b.jsx(Xl,{children:s?.path}),b.jsx(Zl,{children:s?.info?.columns&&b.jsx(gE,{children:b.jsxs(od,{size:"small",children:[b.jsx(op,{children:b.jsxs(ai,{children:[b.jsx(zt,{children:"Column"}),b.jsx(zt,{children:"Type"})]})}),b.jsx(ld,{children:s.info.columns.map(T=>b.jsxs(ai,{children:[b.jsx(zt,{component:"th",scope:"row",children:T.name}),b.jsx(zt,{children:T.type})]},T.name))})]})})})]})]})}function hr(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 Ae(){return Ae=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},Ae.apply(null,arguments)}function JH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Tp(t.components[n].defaultProps,r)}function ez({props:e,name:t,defaultTheme:n,themeId:r}){let a=mF(n);return a=a[r]||a,JH({theme:a,name:t,props:e})}function tz({props:e,name:t}){return ez({props:e,name:t,defaultTheme:ob,themeId:lb})}function q1(e,t){return q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},q1(e,t)}function cR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,q1(e,t)}const lC={disabled:!1},Mp=Ne.createContext(null);var nz=function(e){return e.scrollTop},Uu="unmounted",so="exited",oo="entering",Ml="entered",Y1="exiting",Yi=function(e){cR(t,e);function t(r,a){var s;s=e.call(this,r,a)||this;var l=a,c=l&&!l.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?c?(d=so,s.appearStatus=oo):d=Ml:r.unmountOnExit||r.mountOnEnter?d=Uu:d=so,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,a){var s=r.in;return s&&a.status===Uu?{status:so}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==oo&&s!==Ml&&(a=oo):(s===oo||s===Ml)&&(a=Y1)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,s,l;return a=s=l=r,r!=null&&typeof r!="number"&&(a=r.exit,s=r.enter,l=r.appear!==void 0?r.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===oo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:gh.findDOMNode(this);s&&nz(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===so&&this.setState({status:Uu})},n.performEnter=function(r){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[gh.findDOMNode(this),l],d=c[0],f=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!r&&!s||lC.disabled){this.safeSetState({status:Ml},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:oo},function(){a.props.onEntering(d,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Ml},function(){a.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:gh.findDOMNode(this);if(!a||lC.disabled){this.safeSetState({status:so},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Y1},function(){r.props.onExiting(l),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:so},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},n.setNextCallback=function(r){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,r(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(r,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:gh.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Uu)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=hr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ne.createElement(Mp.Provider,{value:null},typeof s=="function"?s(r,l):Ne.cloneElement(Ne.Children.only(s),l))},t}(Ne.Component);Yi.contextType=Mp;Yi.propTypes={};function Rl(){}Yi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rl,onEntering:Rl,onEntered:Rl,onExit:Rl,onExiting:Rl,onExited:Rl};Yi.UNMOUNTED=Uu;Yi.EXITED=so;Yi.ENTERING=oo;Yi.ENTERED=Ml;Yi.EXITING=Y1;function rz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xb(e,t){var n=function(a){return t&&N.isValidElement(a)?t(a):a},r=Object.create(null);return e&&N.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function az(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),a=[];for(var s in e)s in t?a.length&&(r[s]=a,a=[]):a.push(s);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var f=r[d][l];c[r[d][l]]=n(f)}c[d]=n(d)}for(l=0;l<a.length;l++)c[a[l]]=n(a[l]);return c}function yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function iz(e,t){return xb(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:yo(n,"appear",e),enter:yo(n,"enter",e),exit:yo(n,"exit",e)})})}function sz(e,t,n){var r=xb(e.children),a=az(t,r);return Object.keys(a).forEach(function(s){var l=a[s];if(N.isValidElement(l)){var c=s in t,d=s in r,f=t[s],p=N.isValidElement(f)&&!f.props.in;d&&(!c||p)?a[s]=N.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:yo(l,"exit",e),enter:yo(l,"enter",e)}):!d&&c&&!p?a[s]=N.cloneElement(l,{in:!1}):d&&c&&N.isValidElement(f)&&(a[s]=N.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:yo(l,"exit",e),enter:yo(l,"enter",e)}))}}),a}var oz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},lz={component:"div",childFactory:function(e){return e}},Ab=function(e){cR(t,e);function t(r,a){var s;s=e.call(this,r,a)||this;var l=s.handleExited.bind(rz(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}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,a){var s=a.children,l=a.handleExited,c=a.firstRender;return{children:c?iz(r,l):sz(r,s,l),firstRender:!1}},n.handleExited=function(r,a){var s=xb(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(l){var c=Ae({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,s=r.childFactory,l=hr(r,["component","childFactory"]),c=this.state.contextValue,d=oz(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?Ne.createElement(Mp.Provider,{value:c},d):Ne.createElement(Mp.Provider,{value:c},Ne.createElement(a,l,d))},t}(Ne.Component);Ab.propTypes={};Ab.defaultProps=lz;const cC={};function uR(e,t){const n=N.useRef(cC);return n.current===cC&&(n.current=e(t)),n}const cz=[];function uz(e){N.useEffect(e,cz)}class Sb{static create(){return new Sb}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 dR(){const e=uR(Sb.create).current;return uz(e.disposeEffect),e}function uC(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function dz(e){return Fs("MuiCollapse",e)}js("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const fz=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return jo(r,dz,n)},hz=sn("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]}})(ub(({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"}}]}))),pz=sn("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),mz=sn("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),kd=N.forwardRef(function(e,t){const n=dc({props:e,name:"MuiCollapse"}),{addEndListener:r,children:a,className:s,collapsedSize:l="0px",component:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:E,onExit:y,onExited:T,onExiting:A,orientation:C="vertical",style:x,timeout:D=r3.standard,TransitionComponent:S=Yi,...L}=n,M={...n,orientation:C,collapsedSize:l},w=fz(M),q=qF(),ne=dR(),W=N.useRef(null),k=N.useRef(),z=typeof l=="number"?`${l}px`:l,$=C==="horizontal",K=$?"width":"height",re=N.useRef(null),me=li(t,re),V=te=>Ce=>{if(te){const we=re.current;Ce===void 0?te(we):te(we,Ce)}},le=()=>W.current?W.current[$?"clientWidth":"clientHeight"]:0,oe=V((te,Ce)=>{W.current&&$&&(W.current.style.position="absolute"),te.style[K]=z,p&&p(te,Ce)}),ye=V((te,Ce)=>{const we=le();W.current&&$&&(W.current.style.position="");const{duration:Pe,easing:Me}=uC({style:x,timeout:D,easing:d},{mode:"enter"});if(D==="auto"){const ot=q.transitions.getAutoHeightDuration(we);te.style.transitionDuration=`${ot}ms`,k.current=ot}else te.style.transitionDuration=typeof Pe=="string"?Pe:`${Pe}ms`;te.style[K]=`${we}px`,te.style.transitionTimingFunction=Me,E&&E(te,Ce)}),P=V((te,Ce)=>{te.style[K]="auto",m&&m(te,Ce)}),Le=V(te=>{te.style[K]=`${le()}px`,y&&y(te)}),ce=V(T),I=V(te=>{const Ce=le(),{duration:we,easing:Pe}=uC({style:x,timeout:D,easing:d},{mode:"exit"});if(D==="auto"){const Me=q.transitions.getAutoHeightDuration(Ce);te.style.transitionDuration=`${Me}ms`,k.current=Me}else te.style.transitionDuration=typeof we=="string"?we:`${we}ms`;te.style[K]=z,te.style.transitionTimingFunction=Pe,A&&A(te)});return b.jsx(S,{in:f,onEnter:oe,onEntered:P,onEntering:ye,onExit:Le,onExited:ce,onExiting:I,addEndListener:te=>{D==="auto"&&ne.start(k.current||0,te),r&&r(re.current,te)},nodeRef:re,timeout:D==="auto"?null:D,...L,children:(te,{ownerState:Ce,...we})=>b.jsx(hz,{as:c,className:Fn(w.root,s,{entered:w.entered,exited:!f&&z==="0px"&&w.hidden}[te]),style:{[$?"minWidth":"minHeight"]:z,...x},ref:me,ownerState:{...M,state:te},...we,children:b.jsx(pz,{ownerState:{...M,state:te},className:w.wrapper,ref:W,children:b.jsx(mz,{ownerState:{...M,state:te},className:w.wrapperInner,children:a})})})})});kd&&(kd.muiSupportAuto=!0);const gz=N.createContext(void 0);function yz(){return N.useContext(gz)}function dC(e){try{return e.matches(":focus-visible")}catch{}return!1}class Pp{static create(){return new Pp}static use(){const t=uR(Pp.create).current,[n,r]=N.useState(!1);return t.shouldMount=n,t.setShouldMount=r,N.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=bz(),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 Ez(){return Pp.use()}function bz(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}function vz(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:s,rippleSize:l,in:c,onExited:d,timeout:f}=e,[p,m]=N.useState(!1),E=Fn(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:l,height:l,top:-(l/2)+s,left:-(l/2)+a},T=Fn(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&m(!0),N.useEffect(()=>{if(!c&&d!=null){const A=setTimeout(d,f);return()=>{clearTimeout(A)}}},[d,c,f]),b.jsx("span",{className:E,style:y,children:b.jsx("span",{className:T})})}const ba=js("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Q1=550,Tz=80,_z=hE`
94
+ 0% {
95
+ transform: scale(0);
96
+ opacity: 0.1;
97
+ }
98
+
99
+ 100% {
100
+ transform: scale(1);
101
+ opacity: 0.3;
102
+ }
103
+ `,xz=hE`
104
+ 0% {
105
+ opacity: 1;
106
+ }
107
+
108
+ 100% {
109
+ opacity: 0;
110
+ }
111
+ `,Az=hE`
112
+ 0% {
113
+ transform: scale(1);
114
+ }
115
+
116
+ 50% {
117
+ transform: scale(0.92);
118
+ }
119
+
120
+ 100% {
121
+ transform: scale(1);
122
+ }
123
+ `,Sz=sn("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Cz=sn(vz,{name:"MuiTouchRipple",slot:"Ripple"})`
124
+ opacity: 0;
125
+ position: absolute;
126
+
127
+ &.${ba.rippleVisible} {
128
+ opacity: 0.3;
129
+ transform: scale(1);
130
+ animation-name: ${_z};
131
+ animation-duration: ${Q1}ms;
132
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
133
+ }
134
+
135
+ &.${ba.ripplePulsate} {
136
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
137
+ }
138
+
139
+ & .${ba.child} {
140
+ opacity: 1;
141
+ display: block;
142
+ width: 100%;
143
+ height: 100%;
144
+ border-radius: 50%;
145
+ background-color: currentColor;
146
+ }
147
+
148
+ & .${ba.childLeaving} {
149
+ opacity: 0;
150
+ animation-name: ${xz};
151
+ animation-duration: ${Q1}ms;
152
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
153
+ }
154
+
155
+ & .${ba.childPulsate} {
156
+ position: absolute;
157
+ /* @noflip */
158
+ left: 0px;
159
+ top: 0;
160
+ animation-name: ${Az};
161
+ animation-duration: 2500ms;
162
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
163
+ animation-iteration-count: infinite;
164
+ animation-delay: 200ms;
165
+ }
166
+ `,Dz=N.forwardRef(function(e,t){const n=dc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:s,...l}=n,[c,d]=N.useState([]),f=N.useRef(0),p=N.useRef(null);N.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=N.useRef(!1),E=dR(),y=N.useRef(null),T=N.useRef(null),A=N.useCallback(S=>{const{pulsate:L,rippleX:M,rippleY:w,rippleSize:q,cb:ne}=S;d(W=>[...W,b.jsx(Cz,{classes:{ripple:Fn(a.ripple,ba.ripple),rippleVisible:Fn(a.rippleVisible,ba.rippleVisible),ripplePulsate:Fn(a.ripplePulsate,ba.ripplePulsate),child:Fn(a.child,ba.child),childLeaving:Fn(a.childLeaving,ba.childLeaving),childPulsate:Fn(a.childPulsate,ba.childPulsate)},timeout:Q1,pulsate:L,rippleX:M,rippleY:w,rippleSize:q},f.current)]),f.current+=1,p.current=ne},[a]),C=N.useCallback((S={},L={},M=()=>{})=>{const{pulsate:w=!1,center:q=r||L.pulsate,fakeElement:ne=!1}=L;if(S?.type==="mousedown"&&m.current){m.current=!1;return}S?.type==="touchstart"&&(m.current=!0);const W=ne?null:T.current,k=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,$,K;if(q||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)z=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:re,clientY:me}=S.touches&&S.touches.length>0?S.touches[0]:S;z=Math.round(re-k.left),$=Math.round(me-k.top)}if(q)K=Math.sqrt((2*k.width**2+k.height**2)/3),K%2===0&&(K+=1);else{const re=Math.max(Math.abs((W?W.clientWidth:0)-z),z)*2+2,me=Math.max(Math.abs((W?W.clientHeight:0)-$),$)*2+2;K=Math.sqrt(re**2+me**2)}S?.touches?y.current===null&&(y.current=()=>{A({pulsate:w,rippleX:z,rippleY:$,rippleSize:K,cb:M})},E.start(Tz,()=>{y.current&&(y.current(),y.current=null)})):A({pulsate:w,rippleX:z,rippleY:$,rippleSize:K,cb:M})},[r,A,E]),x=N.useCallback(()=>{C({},{pulsate:!0})},[C]),D=N.useCallback((S,L)=>{if(E.clear(),S?.type==="touchend"&&y.current){y.current(),y.current=null,E.start(0,()=>{D(S,L)});return}y.current=null,d(M=>M.length>0?M.slice(1):M),p.current=L},[E]);return N.useImperativeHandle(t,()=>({pulsate:x,start:C,stop:D}),[x,C,D]),b.jsx(Sz,{className:Fn(ba.root,a.root,s),ref:T,...l,children:b.jsx(Ab,{component:null,exit:!0,children:c})})});function kz(e){return Fs("MuiButtonBase",e)}const Rz=js("MuiButtonBase",["root","disabled","focusVisible"]),wz=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,s=jo({root:["root",t&&"disabled",n&&"focusVisible"]},kz,a);return n&&r&&(s.root+=` ${r}`),s},Iz=sn("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"},[`&.${Rz.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nz=N.forwardRef(function(e,t){const n=dc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:s,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:E,LinkComponent:y="a",onBlur:T,onClick:A,onContextMenu:C,onDragLeave:x,onFocus:D,onFocusVisible:S,onKeyDown:L,onKeyUp:M,onMouseDown:w,onMouseLeave:q,onMouseUp:ne,onTouchEnd:W,onTouchMove:k,onTouchStart:z,tabIndex:$=0,TouchRippleProps:K,touchRippleRef:re,type:me,...V}=n,le=N.useRef(null),oe=Ez(),ye=li(oe.ref,re),[P,Le]=N.useState(!1);d&&P&&Le(!1),N.useImperativeHandle(r,()=>({focusVisible:()=>{Le(!0),le.current.focus()}}),[]);const ce=oe.shouldMount&&!f&&!d;N.useEffect(()=>{P&&m&&!f&&oe.pulsate()},[f,m,P,oe]);const I=Oi(oe,"start",w,p),te=Oi(oe,"stop",C,p),Ce=Oi(oe,"stop",x,p),we=Oi(oe,"stop",ne,p),Pe=Oi(oe,"stop",Qe=>{P&&Qe.preventDefault(),q&&q(Qe)},p),Me=Oi(oe,"start",z,p),ot=Oi(oe,"stop",W,p),dt=Oi(oe,"stop",k,p),He=Oi(oe,"stop",Qe=>{dC(Qe.target)||Le(!1),T&&T(Qe)},!1),Wt=si(Qe=>{le.current||(le.current=Qe.currentTarget),dC(Qe.target)&&(Le(!0),S&&S(Qe)),D&&D(Qe)}),Nt=()=>{const Qe=le.current;return c&&c!=="button"&&!(Qe.tagName==="A"&&Qe.href)},Fe=si(Qe=>{m&&!Qe.repeat&&P&&Qe.key===" "&&oe.stop(Qe,()=>{oe.start(Qe)}),Qe.target===Qe.currentTarget&&Nt()&&Qe.key===" "&&Qe.preventDefault(),L&&L(Qe),Qe.target===Qe.currentTarget&&Nt()&&Qe.key==="Enter"&&!d&&(Qe.preventDefault(),A&&A(Qe))}),or=si(Qe=>{m&&Qe.key===" "&&P&&!Qe.defaultPrevented&&oe.stop(Qe,()=>{oe.pulsate(Qe)}),M&&M(Qe),A&&Qe.target===Qe.currentTarget&&Nt()&&Qe.key===" "&&!Qe.defaultPrevented&&A(Qe)});let fn=c;fn==="button"&&(V.href||V.to)&&(fn=y);const qe={};fn==="button"?(qe.type=me===void 0?"button":me,qe.disabled=d):(!V.href&&!V.to&&(qe.role="button"),d&&(qe["aria-disabled"]=d));const Jn=li(t,le),an={...n,centerRipple:a,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:$,focusVisible:P},on=wz(an);return b.jsxs(Iz,{as:fn,className:Fn(on.root,l),ownerState:an,onBlur:He,onClick:A,onContextMenu:te,onFocus:Wt,onKeyDown:Fe,onKeyUp:or,onMouseDown:I,onMouseLeave:Pe,onMouseUp:we,onDragLeave:Ce,onTouchEnd:ot,onTouchMove:dt,onTouchStart:Me,ref:Jn,tabIndex:d?-1:$,type:me,...qe,...V,children:[s,ce?b.jsx(Dz,{ref:ye,center:a,...K}):null]})});function Oi(e,t,n,r=!1){return si(a=>(n&&n(a),r||e[t](a),!0))}function Oz(e){return Fs("PrivateSwitchBase",e)}js("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function Lz(e){return typeof e=="string"}function fR(e,t,n){return e===void 0||Lz(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ni(e,t,n){return typeof e=="function"?e(t,n):e}function ga(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 fC(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 hR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:s}=e;if(!t){const y=Fn(n?.className,s,a?.className,r?.className),T={...n?.style,...a?.style,...r?.style},A={...n,...a,...r};return y.length>0&&(A.className=y),Object.keys(T).length>0&&(A.style=T),{props:A,internalRef:void 0}}const l=ga({...a,...r}),c=fC(r),d=fC(a),f=t(l),p=Fn(f?.className,n?.className,s,a?.className,r?.className),m={...f?.style,...n?.style,...a?.style,...r?.style},E={...f,...n,...d,...c};return p.length>0&&(E.className=p),Object.keys(m).length>0&&(E.style=m),{props:E,internalRef:f.ref}}function $1(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:s,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...E}=s,y=p[e]||r,T=ni(m[e],a),{props:{component:A,...C},internalRef:x}=hR({className:n,...d,externalForwardedProps:e==="root"?E:void 0,externalSlotProps:T}),D=li(x,T?.ref,t.ref),S=e==="root"?A||f:A,L=fR(y,{...e==="root"&&!f&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...C,...S&&!c&&{as:S},...S&&c&&{component:S},ref:D},a);return[y,L]}const Mz=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,s={root:["root",n&&"checked",r&&"disabled",a&&`edge${Fa(a)}`],input:["input"]};return jo(s,Oz,t)},Pz=sn(Nz,{name:"MuiSwitchBase"})({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}}]}),Fz=sn("input",{name:"MuiSwitchBase",shouldForwardProp:cb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jz=N.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:E,name:y,onBlur:T,onChange:A,onFocus:C,readOnly:x,required:D=!1,tabIndex:S,type:L,value:M,slots:w={},slotProps:q={},...ne}=e,[W,k]=ij({controlled:r,default:!!s}),z=yz(),$=te=>{C&&C(te),z&&z.onFocus&&z.onFocus(te)},K=te=>{T&&T(te),z&&z.onBlur&&z.onBlur(te)},re=te=>{if(te.nativeEvent.defaultPrevented)return;const Ce=te.target.checked;k(Ce),A&&A(te,Ce)};let me=l;z&&typeof me>"u"&&(me=z.disabled);const V=L==="checkbox"||L==="radio",le={...e,checked:W,disabled:me,disableFocusRipple:c,edge:d},oe=Mz(le),ye={slots:w,slotProps:{input:m,...q}},[P,Le]=$1("root",{ref:t,elementType:Pz,className:oe.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,component:"span",...ne},getSlotProps:te=>({...te,onFocus:Ce=>{te.onFocus?.(Ce),$(Ce)},onBlur:Ce=>{te.onBlur?.(Ce),K(Ce)}}),ownerState:le,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:me,role:void 0,tabIndex:null}}),[ce,I]=$1("input",{ref:E,elementType:Fz,className:oe.input,externalForwardedProps:ye,getSlotProps:te=>({...te,onChange:Ce=>{te.onChange?.(Ce),re(Ce)}}),ownerState:le,additionalProps:{autoFocus:n,checked:r,defaultChecked:s,disabled:me,id:V?p:void 0,name:y,readOnly:x,required:D,tabIndex:S,type:L,...L==="checkbox"&&M===void 0?{}:{value:M}}});return b.jsxs(P,{...Le,children:[b.jsx(ce,{...I}),W?a:f]})}),Bz=$t(b.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"})),Uz=$t(b.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"})),Hz=$t(b.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 zz(e){return Fs("MuiCheckbox",e)}const Ry=js("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function Gz(e){return typeof e.main=="string"}function Vz(e,t=[]){if(!Gz(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function hC(e=[]){return([,t])=>t&&Vz(t,e)}const qz=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,s={root:["root",n&&"indeterminate",`color${Fa(r)}`,`size${Fa(a)}`]},l=jo(s,zz,t);return{...t,...l}},Yz=sn(jz,{shouldForwardProp:e=>cb(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Fa(n.size)}`],n.color!=="default"&&t[`color${Fa(n.color)}`]]}})(ub(({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})`:R1(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(hC()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:R1(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(hC()).map(([t])=>({props:{color:t},style:{[`&.${Ry.checked}, &.${Ry.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ry.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Qz=b.jsx(Uz,{}),$z=b.jsx(Bz,{}),Wz=b.jsx(Hz,{}),pR=N.forwardRef(function(e,t){const n=dc({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Qz,color:a="primary",icon:s=$z,indeterminate:l=!1,indeterminateIcon:c=Wz,inputProps:d,size:f="medium",disableRipple:p=!1,className:m,slots:E={},slotProps:y={},...T}=n,A=l?c:s,C=l?c:r,x={...n,disableRipple:p,color:a,indeterminate:l,size:f},D=qz(x),S=y.input??d,[L,M]=$1("root",{ref:t,elementType:Yz,className:Fn(D.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:E,slotProps:y,...T},ownerState:x,additionalProps:{type:"checkbox",icon:N.cloneElement(A,{fontSize:A.props.fontSize??f}),checkedIcon:N.cloneElement(C,{fontSize:C.props.fontSize??f}),disableRipple:p,slots:E,slotProps:{input:oj(typeof S=="function"?S(x):S,{"data-indeterminate":l})}}});return b.jsx(L,{...M,classes:D})});function Eo(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...s}=e,l=a?{}:ni(n,r),{props:c,internalRef:d}=hR({...s,externalSlotProps:l}),f=li(d,l?.ref,e.additionalProps?.ref);return fR(t,{...c,ref:f},r)}function mR(e){return tz}const gR=N.createContext(null);function Kz(e){const{value:t,children:n}=e;return b.jsx(gR.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Uo=()=>{const e=N.useContext(gR);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(`
167
+ `));return e},Xz=({props:e})=>{const{instance:t}=Uo(),{label:n,itemId:r}=e,[a,s]=N.useState(n),l=t.isItemBeingEdited(r);return N.useEffect(()=>{l||s(n)},[l,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:d})=>t.isItemEditable(r)?{value:a??"","data-element":"labelInput",onChange:f=>{c.onChange?.(f),s(f.target.value)},onKeyDown:f=>{if(c.onKeyDown?.(f),f.defaultMuiPrevented)return;const p=f.target;f.key==="Enter"&&p.value?d.handleSaveItemLabel(f,p.value):f.key==="Escape"&&d.handleCancelItemLabelEditing(f)},onBlur:f=>{c.onBlur?.(f),!f.defaultMuiPrevented&&f.target.value&&d.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}},Sa=({instance:e,state:t,setState:n,params:r})=>{const a=N.useRef(t.editedItemId),s=m=>a.current===m,l=m=>{n(E=>Ae({},E,{editedItemId:m})),a.current=m},c=m=>m===t.editedItemId,d=!!r.isItemEditable,f=m=>{if(m==null||!d)return!1;const E=e.getItem(m);return E?typeof r.isItemEditable=="function"?r.isItemEditable(E):!!r.isItemEditable:!1},p=(m,E)=>{if(!E)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.",m].join(`
168
+ `));n(y=>{const T=y.items.itemMetaMap[m];return T.label!==E?Ae({},y,{items:Ae({},y.items,{itemMetaMap:Ae({},y.items.itemMetaMap,{[m]:Ae({},T,{label:E})})})}):y}),r.onItemLabelChange&&r.onItemLabelChange(m,E)};return{instance:{setEditedItemId:l,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:f,isTreeViewEditable:d,isItemBeingEditedRef:s},publicAPI:{updateItemLabel:p}}};Sa.itemPlugin=Xz;Sa.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Ae({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};Sa.getInitialState=()=>({editedItemId:null});Sa.params={onItemLabelChange:!0,isItemEditable:!0};const Ao=(e,t)=>e.getAvailablePlugins().has(t),yR=e=>Array.isArray(e)?e.length>0&&e.some(yR):!!e,Zz=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=Uo(),s={expandable:yR(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},l=p=>{if(s.disabled)return;s.focused||n.focusItem(p,e);const m=r&&(p.shiftKey||p.ctrlKey||p.metaKey);s.expandable&&!(m&&n.isItemExpanded(e))&&n.toggleItemExpansion(p,e)},c=p=>{s.disabled||(!s.focused&&!s.editing&&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}))},d=p=>{const m=p.nativeEvent.shiftKey;r&&m?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},f=()=>{Ao(n,Sa)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:l,handleSelection:c,handleCheckboxSelection:d,toggleItemEditing:f,handleSaveItemLabel:(p,m)=>{Ao(n,Sa)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,m),f(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{Ao(n,Sa)&&n.isItemBeingEditedRef(e)&&(f(),n.focusItem(p,e))}},status:s,publicAPI:a}},Cb=N.createContext(()=>-1),ER=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},bR=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(t);if(a===0)return n.parentId;let s=a-1;for(;!e.isItemNavigable(r[s])&&s>=0;)s-=1;if(s===-1)return n.parentId==null?null:bR(e,n.parentId);let l=r[s],c=ER(e,e.getItemOrderedChildrenIds(l));for(;e.isItemExpanded(l)&&c!=null;)l=c,c=e.getItemOrderedChildrenIds(l).find(e.isItemNavigable);return l},Zh=(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),a=e.getItemIndex(n.id);if(a<r.length-1){let s=a+1;for(;!e.isItemNavigable(r[s])&&s<r.length-1;)s+=1;if(e.isItemNavigable(r[s]))return r[s]}n=e.getItemMeta(n.parentId)}return null},vR=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=ER(e,n);if(r==null)return t;t=r}return t},Rd=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),TR=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),a=e.getItemMeta(n);if(r.parentId===a.id||a.parentId===r.id)return a.parentId===r.id?[r.id,a.id]:[a.id,r.id];const s=[r.id],l=[a.id];let c=r.parentId,d=a.parentId,f=l.indexOf(c)!==-1,p=s.indexOf(d)!==-1,m=!0,E=!0;for(;!p&&!f;)m&&(s.push(c),f=l.indexOf(c)!==-1,m=c!==null,!f&&m&&(c=e.getItemMeta(c).parentId)),E&&!f&&(l.push(d),p=s.indexOf(d)!==-1,E=d!==null,!p&&E&&(d=e.getItemMeta(d).parentId));const y=f?c:d,T=e.getItemOrderedChildrenIds(y),A=s[s.indexOf(y)-1],C=l[l.indexOf(y)-1];return T.indexOf(A)<T.indexOf(C)?[t,n]:[n,t]},Jz=(e,t,n)=>{const r=d=>{if(e.isItemExpandable(d)&&e.isItemExpanded(d))return e.getItemOrderedChildrenIds(d)[0];let f=e.getItemMeta(d);for(;f!=null;){const p=e.getItemOrderedChildrenIds(f.parentId),m=e.getItemIndex(f.id);if(m<p.length-1)return p[m+1];f=e.getItemMeta(f.parentId)}throw new Error("Invalid range")},[a,s]=TR(e,t,n),l=[a];let c=a;for(;c!==s;)c=r(c),e.isItemDisabled(c)||l.push(c);return l},eG=e=>{let t=Rd(e);const n=[];for(;t!=null;)n.push(t),t=Zh(e,t);return n},wd=(e,t)=>t!==e.closest('*[role="treeitem"]');let pC=0;const tG=()=>(pC+=1,`mui-tree-view-${pC}`),Db=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,nG=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:a},selection:{disableSelection:s,checkboxSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f,publicAPI:p}=Uo(),m=N.useContext(Cb),{id:E,itemId:y,label:T,children:A,rootRef:C}=e,{rootRef:x,contentRef:D,propsEnhancers:S}=t(e),{interactions:L,status:M}=Zz({itemId:y,children:A}),w=N.useRef(null),q=N.useRef(null),ne=li(C,x,w),W=li(D,q),k=N.useRef(null),z=Db({itemId:y,treeId:d,id:E}),$=f.canItemBeTabbed(y)?0:-1,K={rootRefObject:w,contentRefObject:q,interactions:L},re=ce=>I=>{if(ce.onFocus?.(I),I.defaultMuiPrevented)return;const te=!M.disabled||r;!M.focused&&te&&I.currentTarget===I.target&&f.focusItem(I,y)},me=ce=>I=>{if(ce.onBlur?.(I),I.defaultMuiPrevented)return;const te=f.getItemDOMElement(y);M.editing||I.relatedTarget&&wd(I.relatedTarget,te)&&(I.target&&I.target?.dataset?.element==="labelInput"&&wd(I.target,te)||I.relatedTarget?.dataset?.element==="labelInput")||f.removeFocusedItem()},V=ce=>I=>{ce.onKeyDown?.(I),!(I.defaultMuiPrevented||I.target?.dataset?.element==="labelInput")&&f.handleItemKeyDown(I,y)},le=ce=>I=>{ce.onDoubleClick?.(I),!I.defaultMuiPrevented&&L.toggleItemEditing()},oe=ce=>I=>{ce.onClick?.(I),n?.(I,y),!(I.defaultMuiPrevented||k.current?.contains(I.target))&&(c==="content"&&L.handleExpansion(I),l||L.handleSelection(I))},ye=ce=>I=>{ce.onMouseDown?.(I),!I.defaultMuiPrevented&&(I.shiftKey||I.ctrlKey||I.metaKey||M.disabled)&&I.preventDefault()},P=ce=>I=>{ce.onChange?.(I),!I.defaultMuiPrevented&&(s||M.disabled||L.handleCheckboxSelection(I))},Le=ce=>I=>{ce.onClick?.(I),!I.defaultMuiPrevented&&c==="iconContainer"&&L.handleExpansion(I)};return{getRootProps:(ce={})=>{const I=Ae({},ga(e),ga(ce));let te;M.selected?te=!0:s||M.disabled?te=void 0:te=!1;const Ce=Ae({},I,{ref:ne,role:"treeitem",tabIndex:$,id:z,"aria-expanded":M.expandable?M.expanded:void 0,"aria-selected":te,"aria-disabled":M.disabled||void 0},ce,{onFocus:re(I),onBlur:me(I),onKeyDown:V(I)});a&&(Ce.style={"--TreeView-itemDepth":typeof m=="function"?m(y):m});const we=S.root?.(Ae({},K,{externalEventHandlers:I}))??{};return Ae({},Ce,we)},getContentProps:(ce={})=>{const I=ga(ce),te=Ae({},I,ce,{ref:W,onClick:oe(I),onMouseDown:ye(I),status:M});a&&(te.indentationAtItemLevel=!0);const Ce=S.content?.(Ae({},K,{externalEventHandlers:I}))??{};return Ae({},te,Ce)},getGroupTransitionProps:(ce={})=>{const I=ga(ce),te=Ae({},I,{unmountOnExit:!0,component:"ul",role:"group",in:M.expanded,children:A},ce);return a&&(te.indentationAtItemLevel=!0),te},getIconContainerProps:(ce={})=>{const I=ga(ce);return Ae({},I,ce,{onClick:Le(I)})},getCheckboxProps:(ce={})=>{const I=ga(ce);return Ae({},I,{visible:l,ref:k,checked:M.selected,disabled:s||M.disabled,tabIndex:-1},ce,{onChange:P(I)})},getLabelProps:(ce={})=>{const I=Ae({},ga(ce)),te=Ae({},I,{children:T},ce,{onDoubleClick:le(I)});return f.isTreeViewEditable&&(te.editable=M.editable),te},getLabelInputProps:(ce={})=>{const I=ga(ce),te=S.labelInput?.({rootRefObject:w,contentRefObject:q,externalEventHandlers:I,interactions:L})??{};return Ae({},ce,te)},getDragAndDropOverlayProps:(ce={})=>{const I=ga(ce),te=S.dragAndDropOverlay?.(Ae({},K,{externalEventHandlers:I}))??{};return Ae({},ce,te)},rootRef:ne,status:M,publicAPI:p}},rG=nG;function _R(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:s},expansion:{expansionTrigger:l}}=Uo(),c=t.isItemExpandable(e),d=t.isItemExpanded(e),f=t.isItemFocused(e),p=t.isItemSelected(e),m=t.isItemDisabled(e),E=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,y=t.isItemEditable?t.isItemEditable(e):!1,T=S=>{if(!m){f||t.focusItem(S,e);const L=r&&(S.shiftKey||S.ctrlKey||S.metaKey);c&&!(L&&t.isItemExpanded(e))&&t.toggleItemExpansion(S,e)}},A=S=>{m||(!f&&!E&&t.focusItem(S,e),r&&(S.shiftKey||S.ctrlKey||S.metaKey)?S.shiftKey?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:!0}):t.selectItem({event:S,itemId:e,shouldBeSelected:!0}))},C=S=>{if(s||m)return;const L=S.nativeEvent.shiftKey;r&&L?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:r,shouldBeSelected:S.target.checked})},x=S=>{(S.shiftKey||S.ctrlKey||S.metaKey||m)&&S.preventDefault()},D=()=>{Ao(t,Sa)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:m,expanded:d,selected:p,focused:f,editable:y,editing:E,disableSelection:s,checkboxSelection:a,handleExpansion:T,handleSelection:A,handleCheckboxSelection:C,handleContentClick:n,preventSelection:x,expansionTrigger:l,toggleItemEditing:D,handleSaveItemLabel:(S,L)=>{Ao(t,Sa)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,L),D(),t.focusItem(S,e))},handleCancelItemLabelEditing:S=>{Ao(t,Sa)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(S,e))}}}const aG=sn("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>l4(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})`:Bi(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 iG(e){return e.action==null?null:b.jsx(aG,Ae({},e))}const sG=sn("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ae({},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}`}})),oG=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],xR=N.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:s,icon:l,label:c,itemId:d,onClick:f,onMouseDown:p,dragAndDropOverlayProps:m,labelInputProps:E}=e,y=hr(e,oG),{disabled:T,expanded:A,selected:C,focused:x,editing:D,editable:S,disableSelection:L,checkboxSelection:M,handleExpansion:w,handleSelection:q,handleCheckboxSelection:ne,handleContentClick:W,preventSelection:k,expansionTrigger:z,toggleItemEditing:$}=_R(d),K=l||s||a,re=N.useRef(null),me=oe=>{k(oe),p&&p(oe)},V=oe=>{W?.(oe,d),!re.current?.contains(oe.target)&&(z==="content"&&w(oe),M||q(oe),f&&f(oe))},le=oe=>{oe.defaultMuiPrevented||$()};return b.jsxs("div",Ae({},y,{className:Fn(n.root,r,A&&n.expanded,C&&n.selected,x&&n.focused,T&&n.disabled,D&&n.editing,S&&n.editable),onClick:V,onMouseDown:me,ref:t,children:[b.jsx("div",{className:n.iconContainer,children:K}),M&&b.jsx(pR,{className:n.checkbox,checked:C,onChange:ne,disabled:T||L,ref:re,tabIndex:-1}),D?b.jsx(sG,Ae({},E,{className:n.labelInput})):b.jsx("div",Ae({className:n.label},S&&{onDoubleClick:le},{children:c})),m&&b.jsx(iG,Ae({},m))]}))});function lG(e){return Fs("MuiTreeItem",e)}const Li=js("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),AR=$t(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),SR=$t(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function kb(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=Uo();return r({children:t,itemId:n,instance:a})}kb.propTypes={children:vS.node,itemId:vS.string.isRequired};const cG=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],uG=["ownerState"],dG=["ownerState"],fG=["ownerState"],hG=mR(),pG=e=>{const{classes:t}=e;return jo({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"]},lG,t)},mG=sn("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),gG=sn(xR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Li.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Li.label}`]:t.label}],shouldForwardProp:e=>Ns(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"}},[`&.${Li.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Li.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Li.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bi(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}))`:Bi(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})`:Bi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Li.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Li.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Li.label}`]:Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Li.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),yG=sn(kd,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ns(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),EG=N.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:s},selection:{disableSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f}=Uo(),p=N.useContext(Cb),m=hG({props:e,name:"MuiTreeItem"}),{children:E,className:y,slots:T,slotProps:A,ContentComponent:C=xR,ContentProps:x,itemId:D,id:S,label:L,onClick:M,onMouseDown:w,onBlur:q,onKeyDown:ne}=m,W=hr(m,cG),{expanded:k,focused:z,selected:$,disabled:K,editing:re,handleExpansion:me,handleCancelItemLabelEditing:V,handleSaveItemLabel:le}=_R(D),{contentRef:oe,rootRef:ye,propsEnhancers:P}=r(m),Le=N.useRef(null),ce=N.useRef(null),I=li(t,ye,Le),te=li(x?.ref,oe,ce),Ce={expandIcon:T?.expandIcon??n.slots.expandIcon??AR,collapseIcon:T?.collapseIcon??n.slots.collapseIcon??SR,endIcon:T?.endIcon??n.slots.endIcon,icon:T?.icon,groupTransition:T?.groupTransition},we=Te=>Array.isArray(Te)?Te.length>0&&Te.some(we):!!Te,Pe=we(E),Me=Ae({},m,{expanded:k,focused:z,selected:$,disabled:K,indentationAtItemLevel:s}),ot=pG(Me),dt=Ce.groupTransition??void 0,He=Eo({elementType:dt,ownerState:{},externalSlotProps:A?.groupTransition,additionalProps:Ae({unmountOnExit:!0,in:k,component:"ul",role:"group"},s?{indentationAtItemLevel:!0}:{}),className:ot.groupTransition}),Wt=Te=>{c==="iconContainer"&&me(Te)},Nt=k?Ce.collapseIcon:Ce.expandIcon,Fe=Eo({elementType:Nt,ownerState:{},externalSlotProps:Te=>k?Ae({},ni(n.slotProps.collapseIcon,Te),ni(A?.collapseIcon,Te)):Ae({},ni(n.slotProps.expandIcon,Te),ni(A?.expandIcon,Te)),additionalProps:{onClick:Wt}}),or=hr(Fe,uG),fn=Pe&&Nt?b.jsx(Nt,Ae({},or)):null,qe=Pe?void 0:Ce.endIcon,Jn=Eo({elementType:qe,ownerState:{},externalSlotProps:Te=>Pe?{}:Ae({},ni(n.slotProps.endIcon,Te),ni(A?.endIcon,Te))}),an=hr(Jn,dG),on=qe?b.jsx(qe,Ae({},an)):null,Qe=Ce.icon,Ct=Eo({elementType:Qe,ownerState:{},externalSlotProps:A?.icon}),Cr=hr(Ct,fG),Ha=Qe?b.jsx(Qe,Ae({},Cr)):null;let Rt;$?Rt=!0:l||K?Rt=void 0:Rt=!1;function ue(Te){!z&&(!K||a)&&Te.currentTarget===Te.target&&f.focusItem(Te,D)}function ve(Te){q?.(Te),!(re||Te.relatedTarget&&wd(Te.relatedTarget,Le.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&wd(Te.target,Le.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&f.removeFocusedItem()}const Be=Te=>{ne?.(Te),Te.target?.dataset?.element!=="labelInput"&&f.handleItemKeyDown(Te,D)},nt=Db({itemId:D,treeId:d,id:S}),Dt=f.canItemBeTabbed(D)?0:-1,Ot={rootRefObject:Le,contentRefObject:ce,interactions:{handleSaveItemLabel:le,handleCancelItemLabelEditing:V}},qn=P.root?.(Ae({},Ot,{externalEventHandlers:ga(W)}))??{},yn=P.content?.(Ae({},Ot,{externalEventHandlers:ga(x)}))??{},Sn=P.dragAndDropOverlay?.(Ae({},Ot,{externalEventHandlers:{}}))??{},_e=P.labelInput?.(Ae({},Ot,{externalEventHandlers:{}}))??{};return b.jsx(kb,{itemId:D,children:b.jsxs(mG,Ae({className:Fn(ot.root,y),role:"treeitem","aria-expanded":Pe?k:void 0,"aria-selected":Rt,"aria-disabled":K||void 0,id:nt,tabIndex:Dt},W,{ownerState:Me,onFocus:ue,onBlur:ve,onKeyDown:Be,ref:I,style:s?Ae({},W.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):W.style},qn,{children:[b.jsx(gG,Ae({as:C,classes:{root:ot.content,expanded:ot.expanded,selected:ot.selected,focused:ot.focused,disabled:ot.disabled,editable:ot.editable,editing:ot.editing,iconContainer:ot.iconContainer,label:ot.label,labelInput:ot.labelInput,checkbox:ot.checkbox},label:L,itemId:D,onClick:M,onMouseDown:w,icon:Ha,expansionIcon:fn,displayIcon:on,ownerState:Me},x,yn,Sn.action==null?{}:{dragAndDropOverlayProps:Sn},_e.value==null?{}:{labelInputProps:_e},{ref:te})),E&&b.jsx(yG,Ae({as:dt},He,{children:E}))]}))})});function bG(e){const{slots:t,slotProps:n,status:r}=e,a=Uo(),s=Ae({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??AR,collapseIcon:a.icons.slots.collapseIcon??SR}),l=a.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const d=t?.[c]??s[c],f=Eo({elementType:d,externalSlotProps:p=>Ae({},ni(l[c],p),ni(n?.[c],p)),ownerState:{}});return d?b.jsx(d,Ae({},f)):null}const vG=["visible"],TG=sn("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),_G=sn("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Ns(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})`:Bi(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}))`:Bi(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})`:Bi(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}))`:Bi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),xG=sn("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Ns(e)&&e!=="editable"})(({theme:e})=>Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),AG=sn("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});sn(kd,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ns(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});sn(N.forwardRef((e,t)=>{const{visible:n}=e,r=hr(e,vG);return n?b.jsx(pR,Ae({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function SG(e){return Fs("MuiRichTreeView",e)}js("MuiRichTreeView",["root"]);const CG=(e,t)=>{const n=N.useRef({}),[r,a]=N.useState(()=>{const s={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([c,d])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:d.getDefaultValue},s[c]=d.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,l])=>{const c=t[s]??r[s];return[s,{value:c,setControlledValue:d=>{l.isControlled||a(f=>Ae({},f,{[s]:d}))}}]}))};class DG{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.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 a=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let l=a.length-1;l>=0;l-=1){const c=a[l];r.highPriority.has(c)&&c.apply(this,n)}for(let l=0;l<s.length;l+=1){const c=s[l];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...s){r.removeListener(t,a),n.apply(r,s)})}}const kG=e=>e.isPropagationStopped!==void 0,CR=()=>{const[e]=N.useState(()=>new DG),t=N.useCallback((...r)=>{const[a,s,l={}]=r;l.defaultMuiPrevented=!1,!(kG(l)&&l.isPropagationStopped())&&e.emit(a,s,l)},[e]),n=N.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};CR.params={};const DR=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};DR.params={};const Rb=({params:e,state:t,setState:n})=>{N.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ae({},a,{id:Ae({},a.id,{treeId:e.id??tG()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};Rb.params={id:!0};Rb.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const RG=[CR,DR,Rb],wG=["slots","slotProps","apiRef","experimentalFeatures"],IG=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:s}=e,l=hr(e.props,wG);const c={};s.forEach(E=>{Object.assign(c,E.params)});const d={},f={};Object.keys(l).forEach(E=>{const y=l[E];c[E]?d[E]=y:f[E]=y});const p=a??{},m=s.reduce((E,y)=>y.getDefaultizedParams?y.getDefaultizedParams({params:E,experimentalFeatures:p}):E,d);return{apiRef:r,forwardedProps:f,pluginParams:m,slots:t??{},slotProps:n??{},experimentalFeatures:p}},NG=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let s=null,l=null;const c=[],d={};e.forEach(m=>{if(!m.itemPlugin)return;const E=m.itemPlugin({props:a,rootRef:s,contentRef:l});E?.rootRef&&(s=E.rootRef),E?.contentRef&&(l=E.contentRef),E?.propsEnhancers&&(c.push(E.propsEnhancers),Object.keys(E.propsEnhancers).forEach(y=>{d[y]=!0}))});const f=m=>E=>{const y={};return c.forEach(T=>{const A=T[m];A!=null&&Object.assign(y,A(E))}),y},p=Object.fromEntries(Object.keys(d).map(m=>[m,f(m)]));return{contentRef:l,rootRef:s,propsEnhancers:p}},wrapItem:({itemId:a,children:s})=>{let l=s;for(let c=e.length-1;c>=0;c-=1){const d=e[c];d.wrapItem&&(l=d.wrapItem({itemId:a,children:l,instance:t}))}return l},wrapRoot:({children:a})=>{let s=a;for(let l=e.length-1;l>=0;l-=1){const c=e[l];c.wrapRoot&&(s=c.wrapRoot({children:s,instance:t}))}return s},instance:t,rootRef:r,publicAPI:n});function OG(e){const t=N.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const LG=({plugins:e,rootRef:t,props:n})=>{const r=[...RG,...e],{pluginParams:a,forwardedProps:s,apiRef:l,experimentalFeatures:c,slots:d,slotProps:f}=IG({plugins:r,props:n}),p=CG(r,a),m=N.useRef({}).current,E=OG(l),y=N.useRef(null),T=li(y,t),A=NG({plugins:r,instance:m,publicAPI:E,rootRef:y}),[C,x]=N.useState(()=>{const L={};return r.forEach(M=>{M.getInitialState&&Object.assign(L,M.getInitialState(a))}),L}),D=[],S=L=>{const M=L({instance:m,params:a,slots:d,slotProps:f,experimentalFeatures:c,state:C,setState:x,rootRef:y,models:p,plugins:r});M.getRootProps&&D.push(M.getRootProps),M.publicAPI&&Object.assign(E,M.publicAPI),M.instance&&Object.assign(m,M.instance),M.contextValue&&Object.assign(A,M.contextValue)};return r.forEach(S),{getRootProps:(L={})=>{const M=Ae({role:"tree"},s,L,{ref:T});return D.forEach(w=>{Object.assign(M,w(L))}),M},rootRef:T,contextValue:A,instance:m}},MG=(e,t,n)=>{e.$$publishEvent(t,n)},Ul="__TREE_VIEW_ROOT_PARENT_ID__",PG=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},FG=["children"],kR=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},s={},l={[Ul]:[]},c=(f,p,m)=>{const E=r?r(f):f.id;if(E==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(f)].join(`
169
+ `));if(a[E]!=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: "${E}"`].join(`
170
+ `));const y=n?n(f):f.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(f)].join(`
171
+ `));a[E]={id:E,label:y,parentId:m,idAttribute:void 0,expandable:!!f.children?.length,disabled:t?t(f):!1,depth:p},s[E]=f;const T=m??Ul;l[T]||(l[T]=[]),l[T].push(E),f.children?.forEach(A=>c(A,p+1,E))};e.forEach(f=>c(f,0,null));const d={};return Object.keys(l).forEach(f=>{d[f]=PG(l[f])}),{itemMetaMap:a,itemMap:s,itemOrderedChildrenIds:l,itemChildrenIndexes:d}},Zd=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const s=N.useCallback(C=>n.items.itemMetaMap[C],[n.items.itemMetaMap]),l=N.useCallback(C=>n.items.itemMap[C],[n.items.itemMap]),c=N.useCallback(()=>{const C=x=>{const D=n.items.itemMap[x],S=hr(D,FG),L=n.items.itemOrderedChildrenIds[x];return L&&(S.children=L.map(C)),S};return n.items.itemOrderedChildrenIds[Ul].map(C)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),d=N.useCallback(C=>{if(C==null)return!1;let x=e.getItemMeta(C);if(!x)return!1;if(x.disabled)return!0;for(;x.parentId!=null;)if(x=e.getItemMeta(x.parentId),x.disabled)return!0;return!1},[e]),f=N.useCallback(C=>{const x=e.getItemMeta(C).parentId??Ul;return n.items.itemChildrenIndexes[x][C]},[e,n.items.itemChildrenIndexes]),p=N.useCallback(C=>n.items.itemOrderedChildrenIds[C??Ul]??[],[n.items.itemOrderedChildrenIds]),m=C=>{const x=e.getItemMeta(C);return x==null?null:document.getElementById(Db({treeId:n.id.treeId,itemId:C,id:x.idAttribute}))},E=C=>t.disabledItemsFocusable?!0:!e.isItemDisabled(C),y=N.useRef(!1),T=N.useCallback(()=>{y.current=!0},[]),A=N.useCallback(()=>y.current,[]);return N.useEffect(()=>{e.areItemUpdatesPrevented()||r(C=>{const x=kR({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(C.items.itemMetaMap).forEach(D=>{x.itemMetaMap[D.id]||MG(e,"removeItem",{id:D.id})}),Ae({},C,{items:x})})},[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:l,getItemDOMElement:m,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:s,getItem:l,getItemTree:c,getItemsToRender:()=>{const C=x=>{const D=n.items.itemMetaMap[x];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[x]?.map(C)}};return n.items.itemOrderedChildrenIds[Ul].map(C)},getItemIndex:f,getItemDOMElement:m,getItemOrderedChildrenIds:p,isItemDisabled:d,isItemNavigable:E,preventItemUpdates:T,areItemUpdatesPrevented:A},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Zd.getInitialState=e=>({items:kR({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Zd.getDefaultizedParams=({params:e})=>Ae({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Zd.wrapRoot=({children:e,instance:t})=>b.jsx(Cb.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Zd.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Rm=({instance:e,params:t,models:n})=>{const r=N.useMemo(()=>{const m=new Map;return n.expandedItems.value.forEach(E=>{m.set(E,!0)}),m},[n.expandedItems.value]),a=(m,E)=>{t.onExpandedItemsChange?.(m,E),n.expandedItems.setControlledValue(E)},s=N.useCallback(m=>r.has(m),[r]),l=N.useCallback(m=>!!e.getItemMeta(m)?.expandable,[e]),c=si((m,E)=>{const y=e.isItemExpanded(E);e.setItemExpansion(m,E,!y)}),d=si((m,E,y)=>{if(e.isItemExpanded(E)===y)return;let T;y?T=[E].concat(n.expandedItems.value):T=n.expandedItems.value.filter(A=>A!==E),t.onItemExpansionToggle&&t.onItemExpansionToggle(m,E,y),a(m,T)}),f=(m,E)=>{const y=e.getItemMeta(E),T=e.getItemOrderedChildrenIds(y.parentId).filter(C=>e.isItemExpandable(C)&&!e.isItemExpanded(C)),A=n.expandedItems.value.concat(T);T.length>0&&(t.onItemExpansionToggle&&T.forEach(C=>{t.onItemExpansionToggle(m,C,!0)}),a(m,A))},p=N.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:d},instance:{isItemExpanded:s,isItemExpandable:l,setItemExpansion:d,toggleItemExpansion:c,expandAllSiblings:f},contextValue:{expansion:{expansionTrigger:p}}}};Rm.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const jG=[];Rm.getDefaultizedParams=({params:e})=>Ae({},e,{defaultExpandedItems:e.defaultExpandedItems??jG});Rm.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Jh=e=>Array.isArray(e)?e:e!=null?[e]:[],wy=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},wm=({instance:e,params:t,models:n})=>{const r=N.useRef(null),a=N.useRef({}),s=N.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(m=>{p.set(m,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),l=(p,m)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const E=m.filter(T=>!e.isItemSelected(T)),y=n.selectedItems.value.filter(T=>!m.includes(T));E.forEach(T=>{t.onItemSelectionToggle(p,T,!0)}),y.forEach(T=>{t.onItemSelectionToggle(p,T,!1)})}else m!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),m!=null&&t.onItemSelectionToggle(p,m,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,m),n.selectedItems.setControlledValue(m)},c=p=>s.has(p),d=({event:p,itemId:m,keepExistingSelection:E=!1,shouldBeSelected:y})=>{if(t.disableSelection)return;let T;if(E){const A=Jh(n.selectedItems.value),C=e.isItemSelected(m);C&&(y===!1||y==null)?T=A.filter(x=>x!==m):!C&&(y===!0||y==null)?T=[m].concat(A):T=A}else y===!1||y==null&&e.isItemSelected(m)?T=t.multiSelect?[]:null:T=t.multiSelect?[m]:m;l(p,T),r.current=m,a.current={}},f=(p,[m,E])=>{if(t.disableSelection||!t.multiSelect)return;let y=Jh(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(y=y.filter(x=>!a.current[x]));const T=wy(y),A=Jz(e,m,E),C=A.filter(x=>!T[x]);y=y.concat(C),l(p,y),a.current=wy(A)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:d},instance:{isItemSelected:c,selectItem:d,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const m=eG(e);l(p,m),a.current=wy(m)},expandSelectionRange:(p,m)=>{if(r.current!=null){const[E,y]=TR(e,m,r.current);f(p,[E,y])}},selectRangeFromStartToItem:(p,m)=>{f(p,[Rd(e),m])},selectRangeFromItemToEnd:(p,m)=>{f(p,[m,vR(e)])},selectItemFromArrowNavigation:(p,m,E)=>{if(t.disableSelection||!t.multiSelect)return;let y=Jh(n.selectedItems.value).slice();Object.keys(a.current).length===0?(y.push(E),a.current={[m]:!0,[E]:!0}):(a.current[m]||(a.current={}),a.current[E]?(y=y.filter(T=>T!==m),delete a.current[m]):(y.push(E),a.current[E]=!0)),l(p,y)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};wm.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const BG=[];wm.getDefaultizedParams=({params:e})=>Ae({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?BG:null)});wm.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const mC=1e3;class UG{constructor(t=mC){this.timeouts=new Map,this.cleanupTimeout=mC,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}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 HG{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 zG{}function GG(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new HG:new UG);const[s]=N.useState(new zG),l=N.useRef(null),c=N.useRef(void 0);c.current=a;const d=N.useRef(null);if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f),t+=1,d.current={cleanupToken:t},e.registry.register(s,()=>{l.current?.(),l.current=null,d.current=null},d.current)}else!c.current&&l.current&&(l.current(),l.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));N.useEffect(()=>{if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}const VG={registry:null},qG=GG(VG),RR=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?RR(t.shadowRoot):t:null},YG=(e,t)=>{let n=Jh(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=Rd(e)),n},wb=({instance:e,params:t,state:n,setState:r,models:a,rootRef:s})=>{const l=YG(e,a.selectedItems.value),c=si(C=>{const x=typeof C=="function"?C(n.focusedItemId):C;n.focusedItemId!==x&&r(D=>Ae({},D,{focusedItemId:x}))}),d=N.useCallback(()=>!!s.current&&s.current.contains(RR(aj(s.current))),[s]),f=N.useCallback(C=>n.focusedItemId===C&&d(),[n.focusedItemId,d]),p=C=>{const x=e.getItemMeta(C);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},m=(C,x)=>{const D=e.getItemDOMElement(x);D&&D.focus(),c(x),t.onItemFocus&&t.onItemFocus(C,x)},E=si((C,x)=>{p(x)&&m(C,x)}),y=si(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const C=e.getItemDOMElement(n.focusedItemId);C&&C.blur()}c(null)}}),T=C=>C===l;qG(e,"removeItem",({id:C})=>{n.focusedItemId===C&&m(null,l)});const A=C=>x=>{C.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&m(x,l)};return{getRootProps:C=>({onFocus:A(C)}),publicAPI:{focusItem:E},instance:{isItemFocused:f,canItemBeTabbed:T,focusItem:E,removeFocusedItem:y}}};wb.getInitialState=()=>({focusedItemId:null});wb.params={onItemFocus:!0};function QG(e){return!!e&&e.length===1&&!!e.match(/\S/)}const wR=({instance:e,params:t,state:n})=>{const r=iF(),a=N.useRef({}),s=si(f=>{a.current=f(a.current)});N.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=m=>{f[m.id]=m.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=f},[n.items.itemMetaMap,t.getItemId,e]);const l=(f,p)=>{const m=p.toLowerCase(),E=C=>{const x=Zh(e,C);return x===null?Rd(e):x};let y=null,T=E(f);const A={};for(;y==null&&!A[T];)a.current[T]===m?y=T:(A[T]=!0,T=E(T));return y},c=f=>!t.disableSelection&&!e.isItemDisabled(f),d=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);return{instance:{updateFirstCharMap:s,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||wd(f.target,f.currentTarget))return;const m=f.ctrlKey||f.metaKey,E=f.key;switch(!0){case(E===" "&&c(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.expandSelectionRange(f,p):e.selectItem({event:f,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case E==="Enter":{Ao(e,Sa)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):d(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):c(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem({event:f,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:f,itemId:p}),f.preventDefault()));break}case E==="ArrowDown":{const y=Zh(e,p);y&&(f.preventDefault(),e.focusItem(f,y),t.multiSelect&&f.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(f,p,y));break}case E==="ArrowUp":{const y=bR(e,p);y&&(f.preventDefault(),e.focusItem(f,y),t.multiSelect&&f.shiftKey&&c(y)&&e.selectItemFromArrowNavigation(f,p,y));break}case(E==="ArrowRight"&&!r||E==="ArrowLeft"&&r):{if(m)return;if(e.isItemExpanded(p)){const y=Zh(e,p);y&&(e.focusItem(f,y),f.preventDefault())}else d(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(E==="ArrowLeft"&&!r||E==="ArrowRight"&&r):{if(m)return;if(d(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const y=e.getItemMeta(p).parentId;y&&(e.focusItem(f,y),f.preventDefault())}break}case E==="Home":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromStartToItem(f,p):e.focusItem(f,Rd(e)),f.preventDefault();break}case E==="End":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromItemToEnd(f,p):e.focusItem(f,vR(e)),f.preventDefault();break}case E==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(String.fromCharCode(f.keyCode)==="A"&&m&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(f),f.preventDefault();break}case(!m&&!f.shiftKey&&QG(E)):{const y=l(p,E);y!=null&&(e.focusItem(f,y),f.preventDefault());break}}}}}};wR.params={};const IR=({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}}}});IR.params={};const $G=[Zd,Rm,wm,wb,wR,IR,Sa],WG=["ownerState"];function KG({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:s}){const l=e?.item??EG,c=Eo({elementType:l,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),d=hr(c,WG),f=N.useMemo(()=>s?b.jsx(NR,{itemsToRender:s,slots:e,slotProps:t}):null,[s,e,t]);return b.jsx(l,Ae({},d,{children:f}))}function NR(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return b.jsx(N.Fragment,{children:t.map(a=>b.jsx(KG,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const XG=mR(),ZG=e=>{const{classes:t}=e;return jo({root:["root"]},SG,t)},JG=sn("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),eV=N.forwardRef(function(e,t){const n=XG({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:s}=LG({plugins:$G,rootRef:t,props:n}),{slots:l,slotProps:c}=n,d=ZG(n),f=l?.root??JG,p=Eo({elementType:f,externalSlotProps:c?.root,className:d.root,getSlotProps:r,ownerState:n});return b.jsx(Kz,{value:a,children:b.jsx(f,Ae({},p,{children:b.jsx(NR,{slots:l,slotProps:c,itemsToRender:s.getItemsToRender()})}))})}),tV=$t(b.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"})),nV=$t([b.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"),b.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),rV=$t(b.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"})),aV=$t(b.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function OR({items:e,defaultExpandedItems:t,navigate:n}){return b.jsx(eV,{items:cV(e,n),defaultExpandedItems:t,slots:{item:lV}})}const iV=L7(kd);function sV(e){const t=v7({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return b.jsx(iV,{style:t,...e})}function oV({item:e,...t}){const n=b.jsxs(xG,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&b.jsx(tV,{})||e.fileType==="notebook"&&b.jsx(nV,{})||e.fileType==="model"&&b.jsx(aV,{})||e.fileType=="database"&&b.jsx(rV,{})||b.jsx(sR,{}),b.jsx(Ie,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?b.jsx(Rn,{title:e.error,placement:"right",children:n}):n}const lV=N.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:s,disabled:l,...c}=e,{getRootProps:d,getContentProps:f,getLabelProps:p,getIconContainerProps:m,getGroupTransitionProps:E,status:y,publicAPI:T}=rG({id:n,itemId:r,children:s,label:a,disabled:l,rootRef:t}),A=T.getItem(r);return y.selected=!1,y.focused=!1,b.jsx(kb,{itemId:r,children:b.jsxs(TG,{...d(c),children:[b.jsxs(_G,{...f(),...A.link&&{onClick:C=>A.link(C)},sx:{pointerEvents:!A.selectable&&"none"},children:[b.jsx(AG,{...m(),children:b.jsx(bG,{status:y})}),b.jsx(oV,{...p({item:A})})]}),s&&b.jsx(sV,{...E()})]})})});function cV(e,t){const n=new Map;return e.map(r=>{let a=n;const s=r.path.split("/");s.forEach((l,c)=>{c===s.length-1?a.set(l,r):(a.has(l)||a.set(l,new Map),a=a.get(l))})}),LR(n,"",t)}function LR(e,t,n){const r=[];return e.forEach((a,s)=>{const l=s.endsWith(".malloy")&&"model"||s.endsWith(".malloynb")&&"notebook"||s.endsWith(".parquet")&&"database"||"unknown";if(l!=="unknown"){const c=a;r.push({id:t+s,label:s,fileType:l,link:l==="model"||l==="notebook"?d=>n(t+s,d):void 0,selectable:l==="model"||l==="notebook",error:"error"in c?c.error:void 0})}else t+=`${s}/`,r.push({id:t,label:s,fileType:"directory",selectable:!0,link:void 0,children:LR(a,t,n)})}),r}const uV=new km(new sr),dV=["notebooks/","models/"];function fV({navigate:e}){const{projectName:t,packageName:n,versionId:r}=ra(),{data:a,isError:s,error:l,isSuccess:c}=gr({queryKey:["models",t,n,r],queryFn:d=>uV.listModels(t,n,r,d)});return b.jsx(Gn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Semantic Models"}),b.jsx(Zn,{}),b.jsxs(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!s&&b.jsx(mr,{text:"Fetching Models..."}),s&&b.jsx(ir,{error:l,context:`${t} > ${n} > Models`}),c&&a.data.length>0&&b.jsx(OR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),navigate:e,defaultExpandedItems:dV}),c&&a.data.length===0&&b.jsx(Ie,{variant:"body2",children:"No models found"})]})]})})}const hV=new X3(new sr),pV=["notebooks/"];function mV({navigate:e}){const{projectName:t,packageName:n,versionId:r}=ra(),{data:a,isError:s,error:l,isSuccess:c}=gr({queryKey:["notebooks",t,n,r],queryFn:d=>hV.listNotebooks(t,n,r,d)});return b.jsx(Gn,{variant:"outlined",sx:{width:"100%"},children:b.jsxs(na,{children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Notebooks"}),b.jsx(Zn,{}),b.jsxs(it,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!s&&b.jsx(mr,{text:"Fetching Notebooks..."}),s&&b.jsx(ir,{error:l,context:`${t} > ${n} > Notebooks`}),c&&a.data.length>0&&b.jsx(OR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),defaultExpandedItems:pV,navigate:e}),c&&a.data.length===0&&b.jsx(Ie,{variant:"body2",children:"No notebooks found"})]})]})})}const gV=new DH(new sr);function yV(){const{projectName:e,packageName:t,versionId:n}=ra(),{data:r,isError:a,isLoading:s,error:l}=gr({queryKey:["schedules",e,t,n],queryFn:c=>gV.listSchedules(e,t,n,c)});return s?b.jsx(mr,{text:"Fetching Schedules..."}):a?b.jsx(ir,{error:l,context:`${e} > ${t} > Schedules`}):r.data.length?b.jsx(Gn,{variant:"outlined",sx:{padding:"10px",width:"100%"},children:b.jsxs(na,{children:[b.jsx(Ie,{variant:"overline",fontWeight:"bold",children:"Scheduler"}),b.jsx(Zn,{}),b.jsx(it,{sx:{mt:"10px",maxHeight:"200px",overflowY:"auto"},children:b.jsx(gE,{component:Fh,children:b.jsxs(od,{sx:{minWidth:300},size:"small",children:[b.jsx(op,{children:b.jsxs(ai,{children:[b.jsx(zt,{align:"left",children:"Resource"}),b.jsx(zt,{align:"left",children:"Schedule"}),b.jsx(zt,{align:"left",children:"Action"}),b.jsx(zt,{align:"left",children:"Connection"}),b.jsx(zt,{align:"left",children:"Last Run"}),b.jsx(zt,{align:"left",children:"Status"})]})}),b.jsx(ld,{children:r.data.map(c=>b.jsxs(ai,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[b.jsx(zt,{align:"left",children:c.resource}),b.jsx(zt,{align:"left",children:c.schedule}),b.jsx(zt,{align:"left",children:c.action}),b.jsx(zt,{align:"left",children:c.connection}),b.jsx(zt,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),b.jsx(zt,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}const EV="README.malloynb";function bV({navigate:e}){return e||(e=t=>{window.location.href=t}),b.jsxs(gn,{container:!0,spacing:2,columns:12,children:[b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(jH,{})}),b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(mV,{navigate:e})}),b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(fV,{navigate:e})}),b.jsx(gn,{size:{xs:12,md:6},children:b.jsx(ZH,{})}),b.jsx(gn,{size:{xs:12,md:6},children:b.jsx(KH,{})}),b.jsx(gn,{size:{xs:12,md:12},children:b.jsx(yV,{})}),b.jsx(gn,{size:{xs:12,md:12},children:b.jsx(iR,{notebookPath:EV,hideEmbeddingIcons:!0})})]})}const vV=Ms(Fl)({display:"flex",flexDirection:"column",height:"100%"});function TV({modelPath:e,sourceName:t,queryName:n,expandResult:r,hideResultIcon:a,expandEmbedding:s,hideEmbeddingIcon:l,noView:c,annotations:d}){const[f,p]=Ne.useState(r),[m,E]=Ne.useState(s),[y,T]=Ne.useState(),[A,C]=Ne.useState(),{packageName:x,projectName:D}=ra(),S=nR({modelPath:e,sourceName:t,queryName:n,optionalPackageName:x,optionalProjectName:D});return N.useEffect(()=>{No(S,"typescript").then(L=>{T(L)})},[m,S]),N.useEffect(()=>{if(d&&d.length>0){const L=d.map(M=>`// ${M}`).join(`
172
+ `);No(L,"typescript").then(M=>{C(M)})}},[d]),b.jsx(b.Fragment,{children:b.jsxs(vV,{variant:"outlined",sx:{padding:"0px 10px 0px 10px",borderRadius:"0px"},children:[b.jsxs(It,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},children:[b.jsx(Ie,{variant:"subtitle2",sx:{mt:"auto",mb:"auto"},children:`${c?"":"View >"} ${n}`}),b.jsxs(Yp,{sx:{padding:"0px"},children:[!a&&b.jsx(Rn,{title:f?"Hide Results":"Show Results",children:b.jsx(An,{size:"small",onClick:()=>{p(!f)},children:b.jsx(hH,{})})}),!l&&b.jsx(Rn,{title:m?"Hide Sharing":"Show Sharing",children:b.jsx(An,{size:"small",onClick:()=>{E(!m)},children:b.jsx(qd,{})})})]})]}),b.jsxs(zi,{in:m,timeout:"auto",unmountOnExit:!0,children:[b.jsx(Zn,{}),b.jsxs(It,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ie,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:y}})}),b.jsx(Rn,{title:"Copy Embeddable Code",children:b.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(S)},children:b.jsx(Tm,{})})})]})]}),b.jsxs(zi,{in:f,timeout:"auto",unmountOnExit:!0,children:[b.jsx(Zn,{sx:{mb:"4px"}}),A&&b.jsxs(b.Fragment,{children:[b.jsx(It,{sx:{borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Ie,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:A}})})}),b.jsx(Zn,{sx:{mb:"4px"}})]}),b.jsx(jl,{children:b.jsx(IH,{modelPath:e,sourceName:t,queryName:n})})]})]})})}const _V=new vb(new sr),xV=sn(W2)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(.5),borderBottom:`1px solid ${e.palette.divider}`,minHeight:36})),AV=sn(rr)(({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 MR({sourceAndPaths:e,existingQuery:t,existingSourceName:n,onQueryChange:r,onSourceChange:a}){const[s,l]=Ne.useState(n?e.findIndex(f=>f.sourceInfo.name===n):0),[c,d]=Ne.useState(t||Wu());return Ne.useEffect(()=>{a&&a(s)},[s,a]),b.jsxs(Gn,{variant:"outlined",children:[b.jsx(na,{children:b.jsx(Bx,{sx:{flexDirection:"row",justifyContent:"space-between"},children:e.length>0&&b.jsx(xV,{children:e.map((f,p)=>b.jsx(AV,{selected:s===p,onClick:()=>l(p),children:f.sourceInfo.name||`Source ${p+1}`},f.sourceInfo.name||p))})})}),b.jsx(bb,{children:b.jsxs(Bx,{spacing:2,component:"section",children:[b.jsx(PR,{sourceAndPath:e[s],existingQuery:c,onChange:f=>{d(f),r&&r(f)}}),b.jsx(W2,{height:"5px"})]})})]})}function Wu(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function SV({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a}){const[s,l]=Ne.useState(n||Wu()),[c,d]=Ne.useState([]),{MalloyExplorerProvider:f,QueryPanel:p,ResizableCollapsiblePanel:m,ResultPanel:E,SourcePanel:y}=r;Ne.useEffect(()=>{t&&t(s)},[t,s]);const{projectName:T,packageName:A,versionId:C}=ra(),x=kH({mutationFn:(M,w)=>{const q=new a.ASTQuery({source:e.sourceInfo,query:s?.malloyQuery}).toMalloy();return l({...s,query:q}),_V.executeQuery(T,A,e.modelPath,q,void 0,void 0,C,w)},onSuccess:M=>{if(M){const w=JSON.parse(M.data.result);l({...s,malloyResult:w})}}}),[D,S]=Ne.useState(e.sourceInfo.name);Ne.useEffect(()=>{D!==e.sourceInfo.name&&(S(e.sourceInfo.name),l(Wu()))},[e,D]);const L=Ne.useCallback(M=>{l({...s,malloyQuery:M,malloyResult:void 0})},[s]);return D!==e.sourceInfo.name?b.jsx("div",{children:"Loading..."}):b.jsx(W3,{children:b.jsx(f,{source:e.sourceInfo,query:s?.malloyQuery,onQueryChange:L,focusedNestViewPath:c,onFocusedNestViewPathChange:d,onDrill:M=>{console.info(M)},children:b.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[b.jsx(m,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:b.jsx(y,{onRefresh:()=>l(Wu())})}),b.jsx(m,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:b.jsx(p,{runQuery:()=>{x.mutate()}})}),b.jsx(E,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:M=>l({...s,malloyQuery:M}),submittedQuery:s?.malloyQuery?{executionState:x.isPending?"running":"finished",response:{result:s.malloyResult},query:s.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:x.reset}:void 0,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function PR(e){const[t,n]=N.useState(null),[r,a]=N.useState(null),[s,l]=N.useState(!0);return N.useEffect(()=>{let c=!0;return Promise.all([j(()=>import("./index-TslDWlxH.js"),__vite__mapDeps([96,94,95,97,98])),j(()=>import("./index-Bq29VQqL.js").then(d=>d.i),__vite__mapDeps([97,95]))]).then(([d,f])=>{c&&(n(d),a(f),l(!1))}).catch(d=>{console.error("Failed to load Malloy components:",d),c&&l(!1)}),()=>{c=!1}},[]),s||!t||!r?b.jsx(fH,{children:b.jsx(W3,{children:b.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):b.jsx(SV,{...e,explorerComponents:t,QueryBuilder:r})}const CV=new km(new sr);function FR(e,t){const{projectName:n,packageName:r,versionId:a}=ra(),s=t||a;return gr({queryKey:["package",n,r,e,s],queryFn:async l=>(await CV.getModel(n,r,e,s,l)).data})}function DV({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:s,onChange:l}){const[c,d]=Ne.useState(0),{data:f,isError:p,isLoading:m,error:E}=FR(e,t);return m?b.jsx(mr,{text:"Fetching Model..."}):p?(console.log("error",E),b.jsx(ir,{error:E,context:`ModelExplorer > ${e}`})):b.jsxs(It,{spacing:2,component:"section",children:[Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&b.jsx(It,{sx:{flexDirection:"row",justifyContent:"flex-start"},children:b.jsx(T4,{value:c,onChange:(y,T)=>d(T),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:f.sourceInfos.map((y,T)=>{let A;try{A=JSON.parse(y)}catch{A={name:String(T)}}return b.jsx(_4,{label:A.name||`Source ${T+1}`,sx:{minHeight:36}},A.name||T)})})}),Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&b.jsx(PR,{sourceAndPath:{modelPath:e,sourceInfo:JSON.parse(f.sourceInfos[c])},onChange:l}),f.queries?.length>0&&b.jsxs(Gn,{variant:"outlined",sx:{padding:"0px 10px 0px 10px"},children:[b.jsx(na,{sx:{p:"10px"},children:b.jsx(Ie,{variant:"subtitle1",children:"Named Queries"})}),b.jsx(It,{spacing:1,component:"section",children:f.queries.map(y=>b.jsx(TV,{modelPath:e,queryName:y.name,expandResult:n,hideResultIcon:r,expandEmbedding:a,hideEmbeddingIcon:s,noView:!0,annotations:y.annotations},y.name))}),b.jsx(it,{height:"10px"})]}),b.jsx(it,{height:"5px"})]})}function kV({modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:s,onChange:l}){const[c,d]=Ne.useState(!1),[f,p]=Ne.useState(),{isError:m,isLoading:E,error:y}=FR(e,t),T=RV(e);return N.useEffect(()=>{No(T,"typescript").then(A=>{p(A)})},[c,T]),E?b.jsx(mr,{text:"Fetching Model..."}):m?(console.log("error",y),b.jsx(ir,{error:y,context:`Model > ${e}`})):b.jsxs(Gn,{variant:"outlined",children:[b.jsxs(na,{children:[b.jsx(It,{sx:{flexDirection:"row",justifyContent:"flex-end"},children:!s&&b.jsx(Yp,{sx:{padding:"0px 10px 0px 10px",mb:"auto",mt:"auto"},children:b.jsx(Rn,{title:c?"Hide Embedding":"View Embedding",children:b.jsx(An,{size:"small",onClick:()=>{d(!c)},children:b.jsx(qd,{})})})})}),b.jsxs(zi,{in:c,timeout:"auto",unmountOnExit:!0,children:[b.jsx(Zn,{}),b.jsxs(It,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:[b.jsx(Ie,{sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:b.jsx("div",{dangerouslySetInnerHTML:{__html:f}})}),b.jsx(Rn,{title:"Copy Embeddable Code",children:b.jsx(An,{sx:{width:"24px",height:"24px"},onClick:()=>{navigator.clipboard.writeText(T)},children:b.jsx(Tm,{})})})]})]}),b.jsx(Zn,{})]}),b.jsx(DV,{modelPath:e,versionId:t,expandResults:n,hideResultIcons:r,expandEmbeddings:a,hideEmbeddingIcons:s,onChange:l})]})}function RV(e){return`<Model
173
+ modelPath="${e}"
174
+ accessToken={accessToken}
175
+ />`}const wV=$t(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),wl=c4({createStyledComponent:sn("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>dc({props:e,name:"MuiStack"})});class Ku{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(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.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Ku(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
176
+ `+t.value:`>>>malloy
177
+ import {${t.sourceName}}" from '${t.modelPath}'"
178
+ `+t.value+`
179
+ `).join(`
180
+ `)}static newWorkbook(t){return new Ku(t,void 0)}static async loadWorkbook(t,n){let r;try{const a=await t.getWorkbook(n);a&&(r=JSON.parse(a))}catch{r={models:[],cells:[],workbookPath:n}}return new Ku(t,r)}}const jR=N.createContext(void 0),IV=({server:e=`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:t,children:n})=>{const r={server:e,getAccessToken:t};return b.jsx(jR.Provider,{value:r,children:n})},Ib=()=>{const e=N.useContext(jR);if(e===void 0)throw new Error("useServer must be used within a ServerProvider");return e},kh=$t(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),gC=$t(b.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"})),NV=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OV=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,LV={};function yC(e,t){return(LV.jsx?OV:NV).test(e)}var Il={},Iy,EC;function MV(){if(EC)return Iy;EC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
181
+ `,f="/",p="*",m="",E="comment",y="declaration";Iy=function(A,C){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];C=C||{};var x=1,D=1;function S(K){var re=K.match(t);re&&(x+=re.length);var me=K.lastIndexOf(d);D=~me?K.length-me:D+K.length}function L(){var K={line:x,column:D};return function(re){return re.position=new M(K),ne(),re}}function M(K){this.start=K,this.end={line:x,column:D},this.source=C.source}M.prototype.content=A;function w(K){var re=new Error(C.source+":"+x+":"+D+": "+K);if(re.reason=K,re.filename=C.source,re.line=x,re.column=D,re.source=A,!C.silent)throw re}function q(K){var re=K.exec(A);if(re){var me=re[0];return S(me),A=A.slice(me.length),re}}function ne(){q(n)}function W(K){var re;for(K=K||[];re=k();)re!==!1&&K.push(re);return K}function k(){var K=L();if(!(f!=A.charAt(0)||p!=A.charAt(1))){for(var re=2;m!=A.charAt(re)&&(p!=A.charAt(re)||f!=A.charAt(re+1));)++re;if(re+=2,m===A.charAt(re-1))return w("End of comment missing");var me=A.slice(2,re-2);return D+=2,S(me),A=A.slice(re),D+=2,K({type:E,comment:me})}}function z(){var K=L(),re=q(r);if(re){if(k(),!q(a))return w("property missing ':'");var me=q(s),V=K({type:y,property:T(re[0].replace(e,m)),value:me?T(me[0].replace(e,m)):m});return q(l),V}}function $(){var K=[];W(K);for(var re;re=z();)re!==!1&&(K.push(re),W(K));return K}return ne(),$()};function T(A){return A?A.replace(c,m):m}return Iy}var bC;function PV(){if(bC)return Il;bC=1;var e=Il&&Il.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=n;var t=e(MV());function n(r,a){var s=null;if(!r||typeof r!="string")return s;var l=(0,t.default)(r),c=typeof a=="function";return l.forEach(function(d){if(d.type==="declaration"){var f=d.property,p=d.value;c?a(f,p,d):p&&(s=s||{},s[f]=p)}}),s}return Il}var Du={},vC;function FV(){if(vC)return Du;vC=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(f){return!f||n.test(f)||e.test(f)},l=function(f,p){return p.toUpperCase()},c=function(f,p){return"".concat(p,"-")},d=function(f,p){return p===void 0&&(p={}),s(f)?f:(f=f.toLowerCase(),p.reactCompat?f=f.replace(a,c):f=f.replace(r,c),f.replace(t,l))};return Du.camelCase=d,Du}var ku,TC;function jV(){if(TC)return ku;TC=1;var e=ku&&ku.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(PV()),n=FV();function r(a,s){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(c,d){c&&d&&(l[(0,n.camelCase)(c,s)]=d)}),l}return r.default=r,ku=r,ku}var BV=jV();const UV=dm(BV),Im=BR("end"),ui=BR("start");function BR(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 HV(e){const t=ui(e),n=Im(e);if(t&&n)return{start:t,end:n}}function Xu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?_C(e.position):"start"in e||"end"in e?_C(e):"line"in e||"column"in e?W1(e):""}function W1(e){return xC(e&&e.line)+":"+xC(e&&e.column)}function _C(e){return W1(e&&e.start)+"-"+W1(e&&e.end)}function xC(e){return e&&typeof e=="number"?e:1}class yr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",s={},l=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?a=t:!s.cause&&t&&(l=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?s.ruleId=r:(s.source=r.slice(0,d),s.ruleId=r.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=Xu(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=l&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}yr.prototype.file="";yr.prototype.name="";yr.prototype.reason="";yr.prototype.message="";yr.prototype.stack="";yr.prototype.column=void 0;yr.prototype.line=void 0;yr.prototype.ancestors=void 0;yr.prototype.cause=void 0;yr.prototype.fatal=void 0;yr.prototype.place=void 0;yr.prototype.ruleId=void 0;yr.prototype.source=void 0;const Nb={}.hasOwnProperty,zV=new Map,GV=/[A-Z]/g,VV=new Set(["table","tbody","thead","tfoot","tr"]),qV=new Set(["td","th"]),UR="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function YV(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=eq(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=JV(n,t.jsx,t.jsxs)}const a={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"?qi:hc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=HR(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function HR(e,t,n){if(t.type==="element")return QV(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $V(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return KV(e,t,n);if(t.type==="mdxjsEsm")return WV(e,t);if(t.type==="root")return XV(e,t,n);if(t.type==="text")return ZV(e,t)}function QV(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=qi,e.schema=a),e.ancestors.push(t);const s=GR(e,t.tagName,!1),l=tq(e,t);let c=Lb(e,t);return VV.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!Kd(d):!0})),zR(e,l,s,t),Ob(l,c),e.ancestors.pop(),e.schema=r,e.create(t,s,l,n)}function $V(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)}Id(e,t.position)}function WV(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Id(e,t.position)}function KV(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=qi,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:GR(e,t.name,!0),l=nq(e,t),c=Lb(e,t);return zR(e,l,s,t),Ob(l,c),e.ancestors.pop(),e.schema=r,e.create(t,s,l,n)}function XV(e,t,n){const r={};return Ob(r,Lb(e,t)),e.create(t,e.Fragment,r,n)}function ZV(e,t){return t.value}function zR(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ob(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function JV(e,t,n){return r;function r(a,s,l,c){const d=Array.isArray(l.children)?n:t;return c?d(s,l,c):d(s,l)}}function eq(e,t){return n;function n(r,a,s,l){const c=Array.isArray(s.children),d=ui(r);return t(a,s,l,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function tq(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Nb.call(t.properties,a)){const s=rq(e,a,t.properties[a]);if(s){const[l,c]=s;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&qV.has(t.tagName)?r=c:n[l]=c}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function nq(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const l=s.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Id(e,t.position);else{const a=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,s=e.evaluater.evaluateExpression(l.expression)}else Id(e,t.position);else s=r.value===null?!0:r.value;n[a]=s}return n}function Lb(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:zV;for(;++r<t.children.length;){const s=t.children[r];let l;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const f=a.get(d)||0;l=d+"-"+f,a.set(d,f+1)}}const c=HR(e,s,l);c!==void 0&&n.push(c)}return n}function rq(e,t,n){const r=Wd(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Am(n):Sm(n)),r.property==="style"){let a=typeof n=="object"?n:aq(e,String(n));return e.stylePropertyNameCase==="css"&&(a=iq(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?vB[r.property]||r.property:r.attribute,n]}}function aq(e,t){try{return UV(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new yr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=UR+"#cannot-parse-style-attribute",a}}function GR(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,l;for(;++s<a.length;){const c=yC(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}r=l}else r=yC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Nb.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Id(e)}function Id(e,t){const n=new yr("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=UR+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iq(e){const t={};let n;for(n in e)Nb.call(e,n)&&(t[sq(n)]=e[n]);return t}function sq(e){let t=e.replace(GV,oq);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function oq(e){return"-"+e.toLowerCase()}const Ny={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"]},lq={};function Mb(e,t){const n=lq,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return VR(e,r,a)}function VR(e,t,n){if(cq(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 AC(e.children,t,n)}return Array.isArray(e)?AC(e,t,n):""}function AC(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=VR(e[a],t,n);return r.join("")}function cq(e){return!!(e&&typeof e=="object")}const SC=document.createElement("i");function Pb(e){const t="&"+e+";";SC.innerHTML=t;const n=SC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ta(e,t,n,r){const a=e.length;let s=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);s<r.length;)l=r.slice(s,s+1e4),l.unshift(t,0),e.splice(...l),s+=1e4,t+=1e4}function _a(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const CC={}.hasOwnProperty;function qR(e){const t={};let n=-1;for(;++n<e.length;)uq(t,e[n]);return t}function uq(e,t){let n;for(n in t){const r=(CC.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){CC.call(r,s)||(r[s]=[]);const l=a[s];dq(r[s],Array.isArray(l)?l:l?[l]:[])}}}function dq(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ta(e,0,0,r)}function YR(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ma(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ar=Us(/[A-Za-z]/),pr=Us(/[\dA-Za-z]/),fq=Us(/[#-'*+\--9=?A-Z^-~]/);function Fp(e){return e!==null&&(e<32||e===127)}const K1=Us(/\d/),hq=Us(/[\dA-Fa-f]/),pq=Us(/[!-/:-@[-`{-~]/);function Xe(e){return e!==null&&e<-2}function Qt(e){return e!==null&&(e<0||e===32)}function _t(e){return e===-2||e===-1||e===32}const Nm=Us(/\p{P}|\p{S}/u),Oo=Us(/\s/);function Us(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function mc(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let l="";if(s===37&&pr(e.charCodeAt(n+1))&&pr(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(l=String.fromCharCode(s));else if(s>55295&&s<57344){const c=e.charCodeAt(n+1);s<56320&&c>56319&&c<57344?(l=String.fromCharCode(s,c),a=1):l="�"}else l=String.fromCharCode(s);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function St(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let s=0;return l;function l(d){return _t(d)?(e.enter(n),c(d)):t(d)}function c(d){return _t(d)&&s++<a?(e.consume(d),c):(e.exit(n),t(d))}}const mq={tokenize:gq};function gq(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),St(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),s(c)}function s(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Xe(c)?(e.consume(c),e.exit("chunkText"),s):(e.consume(c),l)}}const yq={tokenize:Eq},DC={tokenize:bq};function Eq(e){const t=this,n=[];let r=0,a,s,l;return c;function c(S){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,d,f)(S)}return f(S)}function d(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&D();const L=t.events.length;let M=L,w;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){w=t.events[M][1].end;break}x(r);let q=L;for(;q<t.events.length;)t.events[q][1].end={...w},q++;return ta(t.events,M+1,0,t.events.slice(L)),t.events.length=q,f(S)}return c(S)}function f(S){if(r===n.length){if(!a)return E(S);if(a.currentConstruct&&a.currentConstruct.concrete)return T(S);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(DC,p,m)(S)}function p(S){return a&&D(),x(r),E(S)}function m(S){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,T(S)}function E(S){return t.containerState={},e.attempt(DC,y,T)(S)}function y(S){return r++,n.push([t.currentConstruct,t.containerState]),E(S)}function T(S){if(S===null){a&&D(),x(0),e.consume(S);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),A(S)}function A(S){if(S===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return Xe(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(S),A)}function C(S,L){const M=t.sliceStream(S);if(L&&M.push(null),S.previous=s,s&&(s.next=S),s=S,a.defineSkip(S.start),a.write(M),t.parser.lazy[S.start.line]){let w=a.events.length;for(;w--;)if(a.events[w][1].start.offset<l&&(!a.events[w][1].end||a.events[w][1].end.offset>l))return;const q=t.events.length;let ne=q,W,k;for(;ne--;)if(t.events[ne][0]==="exit"&&t.events[ne][1].type==="chunkFlow"){if(W){k=t.events[ne][1].end;break}W=!0}for(x(r),w=q;w<t.events.length;)t.events[w][1].end={...k},w++;ta(t.events,ne+1,0,t.events.slice(q)),t.events.length=w}}function x(S){let L=n.length;for(;L-- >S;){const M=n[L];t.containerState=M[1],M[0].exit.call(t,e)}n.length=S}function D(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function bq(e,t,n){return St(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rc(e){if(e===null||Qt(e)||Oo(e))return 1;if(Nm(e))return 2}function Om(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const X1={name:"attention",resolveAll:vq,tokenize:Tq};function vq(e,t){let n=-1,r,a,s,l,c,d,f,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;d=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 m={...e[r][1].end},E={...e[n][1].start};kC(m,-d),kC(E,d),l={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},s={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=_a(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=_a(f,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",s,t]]),f=_a(f,Om(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=_a(f,[["exit",s,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,f=_a(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,ta(e,r-1,n-r+3,f),n=r+f.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Tq(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=rc(r);let s;return l;function l(d){return s=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===s)return e.consume(d),c;const f=e.exit("attentionSequence"),p=rc(d),m=!p||p===2&&a||n.includes(d),E=!a||a===2&&p||n.includes(r);return f._open=!!(s===42?m:m&&(a||!E)),f._close=!!(s===42?E:E&&(p||!m)),t(d)}}function kC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _q={name:"autolink",tokenize:xq};function xq(e,t,n){let r=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return Ar(y)?(e.consume(y),l):y===64?n(y):f(y)}function l(y){return y===43||y===45||y===46||pr(y)?(r=1,c(y)):f(y)}function c(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||pr(y))&&r++<32?(e.consume(y),c):(r=0,f(y))}function d(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||Fp(y)?n(y):(e.consume(y),d)}function f(y){return y===64?(e.consume(y),p):fq(y)?(e.consume(y),f):n(y)}function p(y){return pr(y)?m(y):n(y)}function m(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):E(y)}function E(y){if((y===45||pr(y))&&r++<63){const T=y===45?E:m;return e.consume(y),T}return n(y)}}const Jd={partial:!0,tokenize:Aq};function Aq(e,t,n){return r;function r(s){return _t(s)?St(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||Xe(s)?t(s):n(s)}}const QR={continuation:{tokenize:Cq},exit:Dq,name:"blockQuote",tokenize:Sq};function Sq(e,t,n){const r=this;return a;function a(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),s}return n(l)}function s(l){return _t(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Cq(e,t,n){const r=this;return a;function a(l){return _t(l)?St(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):s(l)}function s(l){return e.attempt(QR,t,n)(l)}}function Dq(e){e.exit("blockQuote")}const $R={name:"characterEscape",tokenize:kq};function kq(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return pq(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const WR={name:"characterReference",tokenize:Rq};function Rq(e,t,n){const r=this;let a=0,s,l;return c;function c(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),s=31,l=pr,p(m))}function f(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,l=hq,p):(e.enter("characterReferenceValue"),s=7,l=K1,p(m))}function p(m){if(m===59&&a){const E=e.exit("characterReferenceValue");return l===pr&&!Pb(r.sliceSerialize(E))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&a++<s?(e.consume(m),p):n(m)}}const RC={partial:!0,tokenize:Iq},wC={concrete:!0,name:"codeFenced",tokenize:wq};function wq(e,t,n){const r=this,a={partial:!0,tokenize:M};let s=0,l=0,c;return d;function d(w){return f(w)}function f(w){const q=r.events[r.events.length-1];return s=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,c=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(w)}function p(w){return w===c?(l++,e.consume(w),p):l<3?n(w):(e.exit("codeFencedFenceSequence"),_t(w)?St(e,m,"whitespace")(w):m(w))}function m(w){return w===null||Xe(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(RC,A,L)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(w))}function E(w){return w===null||Xe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(w)):_t(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),St(e,y,"whitespace")(w)):w===96&&w===c?n(w):(e.consume(w),E)}function y(w){return w===null||Xe(w)?m(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(w))}function T(w){return w===null||Xe(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(w)):w===96&&w===c?n(w):(e.consume(w),T)}function A(w){return e.attempt(a,L,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return s>0&&_t(w)?St(e,D,"linePrefix",s+1)(w):D(w)}function D(w){return w===null||Xe(w)?e.check(RC,A,L)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||Xe(w)?(e.exit("codeFlowValue"),D(w)):(e.consume(w),S)}function L(w){return e.exit("codeFenced"),t(w)}function M(w,q,ne){let W=0;return k;function k(me){return w.enter("lineEnding"),w.consume(me),w.exit("lineEnding"),z}function z(me){return w.enter("codeFencedFence"),_t(me)?St(w,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(me):$(me)}function $(me){return me===c?(w.enter("codeFencedFenceSequence"),K(me)):ne(me)}function K(me){return me===c?(W++,w.consume(me),K):W>=l?(w.exit("codeFencedFenceSequence"),_t(me)?St(w,re,"whitespace")(me):re(me)):ne(me)}function re(me){return me===null||Xe(me)?(w.exit("codeFencedFence"),q(me)):ne(me)}}}function Iq(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s)}function s(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Oy={name:"codeIndented",tokenize:Oq},Nq={partial:!0,tokenize:Lq};function Oq(e,t,n){const r=this;return a;function a(f){return e.enter("codeIndented"),St(e,s,"linePrefix",5)(f)}function s(f){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?d(f):Xe(f)?e.attempt(Nq,l,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Xe(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),t(f)}}function Lq(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):Xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):St(e,s,"linePrefix",5)(l)}function s(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):Xe(l)?a(l):n(l)}}const Mq={name:"codeText",previous:Fq,resolve:Pq,tokenize:jq};function Pq(e){let t=e.length-4,n=3,r,a;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;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Fq(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function jq(e,t,n){let r=0,a,s;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),c(m)}function c(m){return m===96?(e.consume(m),r++,c):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(s=e.enter("codeTextSequence"),a=0,p(m)):Xe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(m))}function f(m){return m===null||m===32||m===96||Xe(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),f)}function p(m){return m===96?(e.consume(m),a++,p):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(s.type="codeTextData",f(m))}}class Bq{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 a=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Ru(this.left,r),s.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),Ru(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ru(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);Ru(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ru(this.left,n.reverse())}}}function Ru(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 KR(e){const t={};let n=-1,r,a,s,l,c,d,f;const p=new Bq(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"&&(d=r[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Uq(p,n)),n=t[n],f=!0);else if(r[1]._container){for(s=n,a=void 0;s--;)if(l=p.get(s),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(p.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=s);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...p.get(a)[1].start},c=p.slice(a,n),c.unshift(r),p.splice(a,n-a+1,c))}}return ta(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!f}function Uq(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const s=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,d=[],f={};let p,m,E=-1,y=n,T=0,A=0;const C=[A];for(;y;){for(;e.get(++a)[1]!==y;);s.push(a),y._tokenizer||(p=r.sliceStream(y),y.next||p.push(null),m&&l.defineSkip(y.start),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=y,y=y.next}for(y=n;++E<c.length;)c[E][0]==="exit"&&c[E-1][0]==="enter"&&c[E][1].type===c[E-1][1].type&&c[E][1].start.line!==c[E][1].end.line&&(A=E+1,C.push(A),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(l.events=[],y?(y._tokenizer=void 0,y.previous=void 0):C.pop(),E=C.length;E--;){const x=c.slice(C[E],C[E+1]),D=s.pop();d.push([D,D+x.length-1]),e.splice(D,2,x)}for(d.reverse(),E=-1;++E<d.length;)f[T+d[E][0]]=T+d[E][1],T+=d[E][1]-d[E][0]-1;return f}const Hq={resolve:Gq,tokenize:Vq},zq={partial:!0,tokenize:qq};function Gq(e){return KR(e),e}function Vq(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?s(c):Xe(c)?e.check(zq,l,s)(c):(e.consume(c),a)}function s(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function qq(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),St(e,s,"linePrefix")}function s(l){if(l===null||Xe(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function XR(e,t,n,r,a,s,l,c,d){const f=d||Number.POSITIVE_INFINITY;let p=0;return m;function m(x){return x===60?(e.enter(r),e.enter(a),e.enter(s),e.consume(x),e.exit(s),E):x===null||x===32||x===41||Fp(x)?n(x):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),A(x))}function E(x){return x===62?(e.enter(s),e.consume(x),e.exit(s),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===62?(e.exit("chunkString"),e.exit(c),E(x)):x===null||x===60||Xe(x)?n(x):(e.consume(x),x===92?T:y)}function T(x){return x===60||x===62||x===92?(e.consume(x),y):y(x)}function A(x){return!p&&(x===null||x===41||Qt(x))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(x)):p<f&&x===40?(e.consume(x),p++,A):x===41?(e.consume(x),p--,A):x===null||x===32||x===40||Fp(x)?n(x):(e.consume(x),x===92?C:A)}function C(x){return x===40||x===41||x===92?(e.consume(x),A):A(x)}}function ZR(e,t,n,r,a,s){const l=this;let c=0,d;return f;function f(y){return e.enter(r),e.enter(a),e.consume(y),e.exit(a),e.enter(s),p}function p(y){return c>999||y===null||y===91||y===93&&!d||y===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(y):y===93?(e.exit(s),e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):Xe(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||y===91||y===93||Xe(y)||c++>999?(e.exit("chunkString"),p(y)):(e.consume(y),d||(d=!_t(y)),y===92?E:m)}function E(y){return y===91||y===92||y===93?(e.consume(y),c++,m):m(y)}}function JR(e,t,n,r,a,s){let l;return c;function c(E){return E===34||E===39||E===40?(e.enter(r),e.enter(a),e.consume(E),e.exit(a),l=E===40?41:E,d):n(E)}function d(E){return E===l?(e.enter(a),e.consume(E),e.exit(a),e.exit(r),t):(e.enter(s),f(E))}function f(E){return E===l?(e.exit(s),d(l)):E===null?n(E):Xe(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),St(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===l||E===null||Xe(E)?(e.exit("chunkString"),f(E)):(e.consume(E),E===92?m:p)}function m(E){return E===l||E===92?(e.consume(E),p):p(E)}}function Zu(e,t){let n;return r;function r(a){return Xe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):_t(a)?St(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Yq={name:"definition",tokenize:$q},Qq={partial:!0,tokenize:Wq};function $q(e,t,n){const r=this;let a;return s;function s(y){return e.enter("definition"),l(y)}function l(y){return ZR.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return a=Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return Qt(y)?Zu(e,f)(y):f(y)}function f(y){return XR(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function p(y){return e.attempt(Qq,m,m)(y)}function m(y){return _t(y)?St(e,E,"whitespace")(y):E(y)}function E(y){return y===null||Xe(y)?(e.exit("definition"),r.parser.defined.push(a),t(y)):n(y)}}function Wq(e,t,n){return r;function r(c){return Qt(c)?Zu(e,a)(c):n(c)}function a(c){return JR(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return _t(c)?St(e,l,"whitespace")(c):l(c)}function l(c){return c===null||Xe(c)?t(c):n(c)}}const Kq={name:"hardBreakEscape",tokenize:Xq};function Xq(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return Xe(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Zq={name:"headingAtx",resolve:Jq,tokenize:eY};function Jq(e,t){let n=e.length-2,r=3,a,s;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&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ta(e,r,n-r+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function eY(e,t,n){let r=0;return a;function a(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&r++<6?(e.consume(p),l):p===null||Qt(p)?(e.exit("atxHeadingSequence"),c(p)):n(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),d(p)):p===null||Xe(p)?(e.exit("atxHeading"),t(p)):_t(p)?St(e,c,"whitespace")(p):(e.enter("atxHeadingText"),f(p))}function d(p){return p===35?(e.consume(p),d):(e.exit("atxHeadingSequence"),c(p))}function f(p){return p===null||p===35||Qt(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),f)}}const tY=["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"],IC=["pre","script","style","textarea"],nY={concrete:!0,name:"htmlFlow",resolveTo:iY,tokenize:sY},rY={partial:!0,tokenize:lY},aY={partial:!0,tokenize:oY};function iY(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 sY(e,t,n){const r=this;let a,s,l,c,d;return f;function f(I){return p(I)}function p(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),m}function m(I){return I===33?(e.consume(I),E):I===47?(e.consume(I),s=!0,A):I===63?(e.consume(I),a=3,r.interrupt?t:P):Ar(I)?(e.consume(I),l=String.fromCharCode(I),C):n(I)}function E(I){return I===45?(e.consume(I),a=2,y):I===91?(e.consume(I),a=5,c=0,T):Ar(I)?(e.consume(I),a=4,r.interrupt?t:P):n(I)}function y(I){return I===45?(e.consume(I),r.interrupt?t:P):n(I)}function T(I){const te="CDATA[";return I===te.charCodeAt(c++)?(e.consume(I),c===te.length?r.interrupt?t:$:T):n(I)}function A(I){return Ar(I)?(e.consume(I),l=String.fromCharCode(I),C):n(I)}function C(I){if(I===null||I===47||I===62||Qt(I)){const te=I===47,Ce=l.toLowerCase();return!te&&!s&&IC.includes(Ce)?(a=1,r.interrupt?t(I):$(I)):tY.includes(l.toLowerCase())?(a=6,te?(e.consume(I),x):r.interrupt?t(I):$(I)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(I):s?D(I):S(I))}return I===45||pr(I)?(e.consume(I),l+=String.fromCharCode(I),C):n(I)}function x(I){return I===62?(e.consume(I),r.interrupt?t:$):n(I)}function D(I){return _t(I)?(e.consume(I),D):k(I)}function S(I){return I===47?(e.consume(I),k):I===58||I===95||Ar(I)?(e.consume(I),L):_t(I)?(e.consume(I),S):k(I)}function L(I){return I===45||I===46||I===58||I===95||pr(I)?(e.consume(I),L):M(I)}function M(I){return I===61?(e.consume(I),w):_t(I)?(e.consume(I),M):S(I)}function w(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),d=I,q):_t(I)?(e.consume(I),w):ne(I)}function q(I){return I===d?(e.consume(I),d=null,W):I===null||Xe(I)?n(I):(e.consume(I),q)}function ne(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||Qt(I)?M(I):(e.consume(I),ne)}function W(I){return I===47||I===62||_t(I)?S(I):n(I)}function k(I){return I===62?(e.consume(I),z):n(I)}function z(I){return I===null||Xe(I)?$(I):_t(I)?(e.consume(I),z):n(I)}function $(I){return I===45&&a===2?(e.consume(I),V):I===60&&a===1?(e.consume(I),le):I===62&&a===4?(e.consume(I),Le):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),ye):Xe(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(rY,ce,K)(I)):I===null||Xe(I)?(e.exit("htmlFlowData"),K(I)):(e.consume(I),$)}function K(I){return e.check(aY,re,ce)(I)}function re(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),me}function me(I){return I===null||Xe(I)?K(I):(e.enter("htmlFlowData"),$(I))}function V(I){return I===45?(e.consume(I),P):$(I)}function le(I){return I===47?(e.consume(I),l="",oe):$(I)}function oe(I){if(I===62){const te=l.toLowerCase();return IC.includes(te)?(e.consume(I),Le):$(I)}return Ar(I)&&l.length<8?(e.consume(I),l+=String.fromCharCode(I),oe):$(I)}function ye(I){return I===93?(e.consume(I),P):$(I)}function P(I){return I===62?(e.consume(I),Le):I===45&&a===2?(e.consume(I),P):$(I)}function Le(I){return I===null||Xe(I)?(e.exit("htmlFlowData"),ce(I)):(e.consume(I),Le)}function ce(I){return e.exit("htmlFlow"),t(I)}}function oY(e,t,n){const r=this;return a;function a(l){return Xe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):n(l)}function s(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function lY(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Jd,t,n)}}const cY={name:"htmlText",tokenize:uY};function uY(e,t,n){const r=this;let a,s,l;return c;function c(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),d}function d(P){return P===33?(e.consume(P),f):P===47?(e.consume(P),M):P===63?(e.consume(P),S):Ar(P)?(e.consume(P),ne):n(P)}function f(P){return P===45?(e.consume(P),p):P===91?(e.consume(P),s=0,T):Ar(P)?(e.consume(P),D):n(P)}function p(P){return P===45?(e.consume(P),y):n(P)}function m(P){return P===null?n(P):P===45?(e.consume(P),E):Xe(P)?(l=m,le(P)):(e.consume(P),m)}function E(P){return P===45?(e.consume(P),y):m(P)}function y(P){return P===62?V(P):P===45?E(P):m(P)}function T(P){const Le="CDATA[";return P===Le.charCodeAt(s++)?(e.consume(P),s===Le.length?A:T):n(P)}function A(P){return P===null?n(P):P===93?(e.consume(P),C):Xe(P)?(l=A,le(P)):(e.consume(P),A)}function C(P){return P===93?(e.consume(P),x):A(P)}function x(P){return P===62?V(P):P===93?(e.consume(P),x):A(P)}function D(P){return P===null||P===62?V(P):Xe(P)?(l=D,le(P)):(e.consume(P),D)}function S(P){return P===null?n(P):P===63?(e.consume(P),L):Xe(P)?(l=S,le(P)):(e.consume(P),S)}function L(P){return P===62?V(P):S(P)}function M(P){return Ar(P)?(e.consume(P),w):n(P)}function w(P){return P===45||pr(P)?(e.consume(P),w):q(P)}function q(P){return Xe(P)?(l=q,le(P)):_t(P)?(e.consume(P),q):V(P)}function ne(P){return P===45||pr(P)?(e.consume(P),ne):P===47||P===62||Qt(P)?W(P):n(P)}function W(P){return P===47?(e.consume(P),V):P===58||P===95||Ar(P)?(e.consume(P),k):Xe(P)?(l=W,le(P)):_t(P)?(e.consume(P),W):V(P)}function k(P){return P===45||P===46||P===58||P===95||pr(P)?(e.consume(P),k):z(P)}function z(P){return P===61?(e.consume(P),$):Xe(P)?(l=z,le(P)):_t(P)?(e.consume(P),z):W(P)}function $(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),a=P,K):Xe(P)?(l=$,le(P)):_t(P)?(e.consume(P),$):(e.consume(P),re)}function K(P){return P===a?(e.consume(P),a=void 0,me):P===null?n(P):Xe(P)?(l=K,le(P)):(e.consume(P),K)}function re(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Qt(P)?W(P):(e.consume(P),re)}function me(P){return P===47||P===62||Qt(P)?W(P):n(P)}function V(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function le(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),oe}function oe(P){return _t(P)?St(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ye(P)}function ye(P){return e.enter("htmlTextData"),l(P)}}const Fb={name:"labelEnd",resolveAll:pY,resolveTo:mY,tokenize:gY},dY={tokenize:yY},fY={tokenize:EY},hY={tokenize:bY};function pY(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 a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&ta(e,0,e.length,n),e}function mY(e,t){let n=e.length,r=0,a,s,l,c;for(;n--;)if(a=e[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[s][1].start},end:{...e[l][1].end}},p={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",d,t],["enter",f,t]],c=_a(c,e.slice(s+1,s+r+3)),c=_a(c,[["enter",p,t]]),c=_a(c,Om(t.parser.constructs.insideSpan.null,e.slice(s+r+4,l-3),t)),c=_a(c,[["exit",p,t],e[l-2],e[l-1],["exit",f,t]]),c=_a(c,e.slice(l+1)),c=_a(c,[["exit",d,t]]),ta(e,s,e.length,c),e}function gY(e,t,n){const r=this;let a=r.events.length,s,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){s=r.events[a][1];break}return c;function c(E){return s?s._inactive?m(E):(l=r.parser.defined.includes(Ma(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),d):n(E)}function d(E){return E===40?e.attempt(dY,p,l?p:m)(E):E===91?e.attempt(fY,p,l?f:m)(E):l?p(E):m(E)}function f(E){return e.attempt(hY,p,m)(E)}function p(E){return t(E)}function m(E){return s._balanced=!0,n(E)}}function yY(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return Qt(m)?Zu(e,s)(m):s(m)}function s(m){return m===41?p(m):XR(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return Qt(m)?Zu(e,d)(m):p(m)}function c(m){return n(m)}function d(m){return m===34||m===39||m===40?JR(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function f(m){return Qt(m)?Zu(e,p)(m):p(m)}function p(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function EY(e,t,n){const r=this;return a;function a(c){return ZR.call(r,e,s,l,"reference","referenceMarker","referenceString")(c)}function s(c){return r.parser.defined.includes(Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function bY(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const vY={name:"labelStartImage",resolveAll:Fb.resolveAll,tokenize:TY};function TY(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),s}function s(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const _Y={name:"labelStartLink",resolveAll:Fb.resolveAll,tokenize:xY};function xY(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),s}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Ly={name:"lineEnding",tokenize:AY};function AY(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),St(e,t,"linePrefix")}}const ep={name:"thematicBreak",tokenize:SY};function SY(e,t,n){let r=0,a;return s;function s(f){return e.enter("thematicBreak"),l(f)}function l(f){return a=f,c(f)}function c(f){return f===a?(e.enter("thematicBreakSequence"),d(f)):r>=3&&(f===null||Xe(f))?(e.exit("thematicBreak"),t(f)):n(f)}function d(f){return f===a?(e.consume(f),r++,d):(e.exit("thematicBreakSequence"),_t(f)?St(e,c,"whitespace")(f):c(f))}}const Nr={continuation:{tokenize:RY},exit:IY,name:"list",tokenize:kY},CY={partial:!0,tokenize:NY},DY={partial:!0,tokenize:wY};function kY(e,t,n){const r=this,a=r.events[r.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return c;function c(y){const T=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:K1(y)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(ep,n,f)(y):f(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return K1(y)&&++l<10?(e.consume(y),d):(!r.interrupt||l<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):n(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Jd,r.interrupt?n:p,e.attempt(CY,E,m))}function p(y){return r.containerState.initialBlankLine=!0,s++,E(y)}function m(y){return _t(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),E):n(y)}function E(y){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function RY(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Jd,a,s);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,St(e,t,"listItemIndent",r.containerState.size+1)(c)}function s(c){return r.containerState.furtherBlankLines||!_t(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(DY,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,St(e,e.attempt(Nr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function wY(e,t,n){const r=this;return St(e,a,"listItemIndent",r.containerState.size+1);function a(s){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(s):n(s)}}function IY(e){e.exit(this.containerState.type)}function NY(e,t,n){const r=this;return St(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const l=r.events[r.events.length-1];return!_t(s)&&l&&l[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const NC={name:"setextUnderline",resolveTo:OY,tokenize:LY};function OY(e,t){let n=e.length,r,a,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",l,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function LY(e,t,n){const r=this;let a;return s;function s(f){let p=r.events.length,m;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){m=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===a?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),_t(f)?St(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Xe(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const MY={tokenize:PY};function PY(e){const t=this,n=e.attempt(Jd,r,e.attempt(this.parser.constructs.flowInitial,a,St(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Hq,a)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const FY={resolveAll:tw()},jY=ew("string"),BY=ew("text");function ew(e){return{resolveAll:tw(e==="text"?UY:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],s=n.attempt(a,l,c);return l;function l(p){return f(p)?s(p):c(p)}function c(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),d}function d(p){return f(p)?(n.exit("data"),s(p)):(n.consume(p),d)}function f(p){if(p===null)return!0;const m=a[p];let E=-1;if(m)for(;++E<m.length;){const y=m[E];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function tw(e){return t;function t(n,r){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(n,r):n}}function UY(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],a=t.sliceStream(r);let s=a.length,l=-1,c=0,d;for(;s--;){const f=a[s];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(f===-2)d=!0,c++;else if(f!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?l:r.start._bufferIndex+l,_index:r.start._index+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const HY={42:Nr,43:Nr,45:Nr,48:Nr,49:Nr,50:Nr,51:Nr,52:Nr,53:Nr,54:Nr,55:Nr,56:Nr,57:Nr,62:QR},zY={91:Yq},GY={[-2]:Oy,[-1]:Oy,32:Oy},VY={35:Zq,42:ep,45:[NC,ep],60:nY,61:NC,95:ep,96:wC,126:wC},qY={38:WR,92:$R},YY={[-5]:Ly,[-4]:Ly,[-3]:Ly,33:vY,38:WR,42:X1,60:[_q,cY],91:_Y,92:[Kq,$R],93:Fb,95:X1,96:Mq},QY={null:[X1,FY]},$Y={null:[42,95]},WY={null:[]},KY=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$Y,contentInitial:zY,disable:WY,document:HY,flow:VY,flowInitial:GY,insideSpan:QY,string:qY,text:YY},Symbol.toStringTag,{value:"Module"}));function XY(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 a={},s=[];let l=[],c=[];const d={attempt:q(M),check:q(w),consume:D,enter:S,exit:L,interrupt:q(w,{interrupt:!0})},f={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:e,previous:null,sliceSerialize:E,sliceStream:y,write:m};let p=t.tokenize.call(f,d);return t.resolveAll&&s.push(t),f;function m(z){return l=_a(l,z),C(),l[l.length-1]!==null?[]:(ne(t,0),f.events=Om(s,f.events,f),f.events)}function E(z,$){return JY(y(z),$)}function y(z){return ZY(l,z)}function T(){const{_bufferIndex:z,_index:$,line:K,column:re,offset:me}=r;return{_bufferIndex:z,_index:$,line:K,column:re,offset:me}}function A(z){a[z.line]=z.column,k()}function C(){let z;for(;r._index<l.length;){const $=l[r._index];if(typeof $=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<$.length;)x($.charCodeAt(r._bufferIndex));else x($)}}function x(z){p=p(z)}function D(z){Xe(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,k()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=z}function S(z,$){const K=$||{};return K.type=z,K.start=T(),f.events.push(["enter",K,f]),c.push(K),K}function L(z){const $=c.pop();return $.end=T(),f.events.push(["exit",$,f]),$}function M(z,$){ne(z,$.from)}function w(z,$){$.restore()}function q(z,$){return K;function K(re,me,V){let le,oe,ye,P;return Array.isArray(re)?ce(re):"tokenize"in re?ce([re]):Le(re);function Le(we){return Pe;function Pe(Me){const ot=Me!==null&&we[Me],dt=Me!==null&&we.null,He=[...Array.isArray(ot)?ot:ot?[ot]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return ce(He)(Me)}}function ce(we){return le=we,oe=0,we.length===0?V:I(we[oe])}function I(we){return Pe;function Pe(Me){return P=W(),ye=we,we.partial||(f.currentConstruct=we),we.name&&f.parser.constructs.disable.null.includes(we.name)?Ce():we.tokenize.call($?Object.assign(Object.create(f),$):f,d,te,Ce)(Me)}}function te(we){return z(ye,P),me}function Ce(we){return P.restore(),++oe<le.length?I(le[oe]):V}}}function ne(z,$){z.resolveAll&&!s.includes(z)&&s.push(z),z.resolve&&ta(f.events,$,f.events.length-$,z.resolve(f.events.slice($),f)),z.resolveTo&&(f.events=z.resolveTo(f.events,f))}function W(){const z=T(),$=f.previous,K=f.currentConstruct,re=f.events.length,me=Array.from(c);return{from:re,restore:V};function V(){r=z,f.previous=$,f.currentConstruct=K,f.events.length=re,c=me,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function ZY(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,s)];else{if(l=e.slice(n,a),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}s>0&&l.push(e[a].slice(0,s))}return l}function JY(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const s=e[n];let l;if(typeof s=="string")l=s;else switch(s){case-5:{l="\r";break}case-4:{l=`
182
+ `;break}case-3:{l=`\r
183
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(s)}a=s===-2,r.push(l)}return r.join("")}function eQ(e){const t={constructs:qR([KY,...(e||{}).extensions||[]]),content:n(mq),defined:[],document:n(yq),flow:n(MY),lazy:{},string:n(jY),text:n(BY)};return t;function n(r){return a;function a(s){return XY(t,r,s)}}}function tQ(e){for(;!KR(e););return e}const OC=/[\0\t\n\r]/g;function nQ(){let e=1,t="",n=!0,r;return a;function a(s,l,c){const d=[];let f,p,m,E,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(l||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(OC.lastIndex=m,f=OC.exec(s),E=f&&f.index!==void 0?f.index:s.length,y=s.charCodeAt(E),!f){t=s.slice(m);break}if(y===10&&m===E&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),m<E&&(d.push(s.slice(m,E)),e+=E-m),y){case 0:{d.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,d.push(-2);e++<p;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}m=E+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const rQ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aQ(e){return e.replace(rQ,iQ)}function iQ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return YR(n.slice(a?2:1),a?16:10)}return Pb(n)||e}const nw={}.hasOwnProperty;function sQ(e,t,n){return typeof t!="string"&&(n=t,t=void 0),oQ(n)(tQ(eQ(n).document().write(nQ()(e,t,!0))))}function oQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(an),autolinkProtocol:W,autolinkEmail:W,atxHeading:s(or),blockQuote:s(dt),characterEscape:W,characterReference:W,codeFenced:s(He),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(He,l),codeText:s(Wt,l),codeTextData:W,data:W,codeFlowValue:W,definition:s(Nt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(Fe),hardBreakEscape:s(fn),hardBreakTrailing:s(fn),htmlFlow:s(qe,l),htmlFlowData:W,htmlText:s(qe,l),htmlTextData:W,image:s(Jn),label:l,link:s(an),listItem:s(Qe),listItemValue:E,listOrdered:s(on,m),listUnordered:s(on),paragraph:s(Ct),reference:I,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(or),strong:s(Cr),thematicBreak:s(Rt)},exit:{atxHeading:d(),atxHeadingSequence:M,autolink:d(),autolinkEmail:ot,autolinkProtocol:Me,blockQuote:d(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:we,characterReference:Pe,codeFenced:d(C),codeFencedFence:A,codeFencedFenceInfo:y,codeFencedFenceMeta:T,codeFlowValue:k,codeIndented:d(x),codeText:d(me),codeTextData:k,data:k,definition:d(),definitionDestinationString:L,definitionLabelString:D,definitionTitleString:S,emphasis:d(),hardBreakEscape:d($),hardBreakTrailing:d($),htmlFlow:d(K),htmlFlowData:k,htmlText:d(re),htmlTextData:k,image:d(le),label:ye,labelText:oe,lineEnding:z,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:te,resourceDestinationString:P,resourceTitleString:Le,resource:ce,setextHeading:d(ne),setextHeadingLineSequence:q,setextHeadingText:w,strong:d(),thematicBreak:d()}};rw(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ve={type:"root",children:[]};const Be={stack:[ve],tokenStack:[],config:t,enter:c,exit:f,buffer:l,resume:p,data:n},nt=[];let Dt=-1;for(;++Dt<ue.length;)if(ue[Dt][1].type==="listOrdered"||ue[Dt][1].type==="listUnordered")if(ue[Dt][0]==="enter")nt.push(Dt);else{const Ot=nt.pop();Dt=a(ue,Ot,Dt)}for(Dt=-1;++Dt<ue.length;){const Ot=t[ue[Dt][0]];nw.call(Ot,ue[Dt][1].type)&&Ot[ue[Dt][1].type].call(Object.assign({sliceSerialize:ue[Dt][2].sliceSerialize},Be),ue[Dt][1])}if(Be.tokenStack.length>0){const Ot=Be.tokenStack[Be.tokenStack.length-1];(Ot[1]||LC).call(Be,void 0,Ot[0])}for(ve.position={start:Ts(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Ts(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt<t.transforms.length;)ve=t.transforms[Dt](ve)||ve;return ve}function a(ue,ve,Be){let nt=ve-1,Dt=-1,Ot=!1,qn,yn,Sn,_e;for(;++nt<=Be;){const Te=ue[nt];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Dt++:Dt--,_e=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(qn&&!_e&&!Dt&&!Sn&&(Sn=nt),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!Dt&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||Dt===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(qn){let st=nt;for(yn=void 0;st--;){const Ke=ue[st];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;yn&&(ue[yn][1].type="lineEndingBlank",Ot=!0),Ke[1].type="lineEnding",yn=st}else if(!(Ke[1].type==="linePrefix"||Ke[1].type==="blockQuotePrefix"||Ke[1].type==="blockQuotePrefixWhitespace"||Ke[1].type==="blockQuoteMarker"||Ke[1].type==="listItemIndent"))break}Sn&&(!yn||Sn<yn)&&(qn._spread=!0),qn.end=Object.assign({},yn?ue[yn][1].start:Te[1].end),ue.splice(yn||nt,0,["exit",qn,Te[2]]),nt++,Be++}if(Te[1].type==="listItemPrefix"){const st={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};qn=st,ue.splice(nt,0,["enter",st,Te[2]]),nt++,Be++,Sn=void 0,_e=!0}}}return ue[ve][1]._spread=Ot,Be}function s(ue,ve){return Be;function Be(nt){c.call(this,ue(nt),nt),ve&&ve.call(this,nt)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(ue,ve,Be){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([ve,Be||void 0]),ue.position={start:Ts(ve.start),end:void 0}}function d(ue){return ve;function ve(Be){ue&&ue.call(this,Be),f.call(this,Be)}}function f(ue,ve){const Be=this.stack.pop(),nt=this.tokenStack.pop();if(nt)nt[0].type!==ue.type&&(ve?ve.call(this,ue,nt[0]):(nt[1]||LC).call(this,ue,nt[0]));else throw new Error("Cannot close `"+ue.type+"` ("+Xu({start:ue.start,end:ue.end})+"): it’s not open");Be.position.end=Ts(ue.end)}function p(){return Mb(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function E(ue){if(this.data.expectingFirstListItemValue){const ve=this.stack[this.stack.length-2];ve.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.lang=ue}function T(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.meta=ue}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue.replace(/(\r?\n|\r)$/g,"")}function D(ue){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.label=ve,Be.identifier=Ma(this.sliceSerialize(ue)).toLowerCase()}function S(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function L(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function M(ue){const ve=this.stack[this.stack.length-1];if(!ve.depth){const Be=this.sliceSerialize(ue).length;ve.depth=Be}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function q(ue){const ve=this.stack[this.stack.length-1];ve.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function W(ue){const ve=this.stack[this.stack.length-1].children;let Be=ve[ve.length-1];(!Be||Be.type!=="text")&&(Be=Ha(),Be.position={start:Ts(ue.start),end:void 0},ve.push(Be)),this.stack.push(Be)}function k(ue){const ve=this.stack.pop();ve.value+=this.sliceSerialize(ue),ve.position.end=Ts(ue.end)}function z(ue){const ve=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Be=ve.children[ve.children.length-1];Be.position.end=Ts(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ve.type)&&(W.call(this,ue),k.call(this,ue))}function $(){this.data.atHardBreak=!0}function K(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function re(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function me(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.value=ue}function V(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function le(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const ve=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=ve,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function oe(ue){const ve=this.sliceSerialize(ue),Be=this.stack[this.stack.length-2];Be.label=aQ(ve),Be.identifier=Ma(ve).toLowerCase()}function ye(){const ue=this.stack[this.stack.length-1],ve=this.resume(),Be=this.stack[this.stack.length-1];if(this.data.inReference=!0,Be.type==="link"){const nt=ue.children;Be.children=nt}else Be.alt=ve}function P(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.url=ue}function Le(){const ue=this.resume(),ve=this.stack[this.stack.length-1];ve.title=ue}function ce(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function te(ue){const ve=this.resume(),Be=this.stack[this.stack.length-1];Be.label=ve,Be.identifier=Ma(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function Ce(ue){this.data.characterReferenceType=ue.type}function we(ue){const ve=this.sliceSerialize(ue),Be=this.data.characterReferenceType;let nt;Be?(nt=YR(ve,Be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):nt=Pb(ve);const Dt=this.stack[this.stack.length-1];Dt.value+=nt}function Pe(ue){const ve=this.stack.pop();ve.position.end=Ts(ue.end)}function Me(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url=this.sliceSerialize(ue)}function ot(ue){k.call(this,ue);const ve=this.stack[this.stack.length-1];ve.url="mailto:"+this.sliceSerialize(ue)}function dt(){return{type:"blockquote",children:[]}}function He(){return{type:"code",lang:null,meta:null,value:""}}function Wt(){return{type:"inlineCode",value:""}}function Nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fe(){return{type:"emphasis",children:[]}}function or(){return{type:"heading",depth:0,children:[]}}function fn(){return{type:"break"}}function qe(){return{type:"html",value:""}}function Jn(){return{type:"image",title:null,url:"",alt:null}}function an(){return{type:"link",title:null,url:"",children:[]}}function on(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Qe(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function Cr(){return{type:"strong",children:[]}}function Ha(){return{type:"text",value:""}}function Rt(){return{type:"thematicBreak"}}}function Ts(e){return{line:e.line,column:e.column,offset:e.offset}}function rw(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?rw(e,r):lQ(e,r)}}function lQ(e,t){let n;for(n in t)if(nw.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 LC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xu({start:t.start,end:t.end})+") is still open")}function cQ(e){const t=this;t.parser=n;function n(r){return sQ(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function uQ(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 dQ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
184
+ `}]}function fQ(e,t){const n=t.value?t.value+`
185
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function hQ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pQ(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mQ(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=mc(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=s+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,f),e.applyData(t,f)}function gQ(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 yQ(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function aw(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 a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function EQ(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return aw(e,t);const a={src:mc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function bQ(e,t){const n={src:mc(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 vQ(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 TQ(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return aw(e,t);const a={href:mc(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function _Q(e,t){const n={href:mc(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 xQ(e,t,n){const r=e.all(t),a=n?AQ(n):iw(t),s={},l=[];if(typeof t.checked=="boolean"){const p=r[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const p=r[c];(a||c!==0||p.type!=="element"||p.tagName!=="p")&&l.push({type:"text",value:`
186
+ `}),p.type==="element"&&p.tagName==="p"&&!a?l.push(...p.children):l.push(p)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
187
+ `});const f={type:"element",tagName:"li",properties:s,children:l};return e.patch(t,f),e.applyData(t,f)}function AQ(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=iw(n[r])}return t}function iw(e){return e.spread??e.children.length>1}function SQ(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function CQ(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DQ(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function kQ(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RQ(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=ui(t.children[1]),d=Im(t.children[t.children.length-1]);c&&d&&(l.position={start:c,end:d}),a.push(l)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function wQ(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:t.children.length;let c=-1;const d=[];for(;++c<l;){const p=t.children[c],m={},E=s?s[c]:void 0;E&&(m.align=E);let y={type:"element",tagName:a,properties:m,children:[]};p&&(y.children=e.all(p),e.patch(p,y),y=e.applyData(p,y)),d.push(y)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,f),e.applyData(t,f)}function IQ(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const MC=9,PC=32;function NQ(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const s=[];for(;r;)s.push(FC(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return s.push(FC(t.slice(a),a>0,!1)),s.join("")}function FC(e,t,n){let r=0,a=e.length;if(t){let s=e.codePointAt(r);for(;s===MC||s===PC;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(a-1);for(;s===MC||s===PC;)a--,s=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function OQ(e,t){const n={type:"text",value:NQ(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function LQ(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const MQ={blockquote:uQ,break:dQ,code:fQ,delete:hQ,emphasis:pQ,footnoteReference:mQ,heading:gQ,html:yQ,imageReference:EQ,image:bQ,inlineCode:vQ,linkReference:TQ,link:_Q,listItem:xQ,list:SQ,paragraph:CQ,root:DQ,strong:kQ,table:RQ,tableCell:IQ,tableRow:wQ,text:OQ,thematicBreak:LQ,toml:Rh,yaml:Rh,definition:Rh,footnoteDefinition:Rh};function Rh(){}const sw=-1,Lm=0,Ju=1,jp=2,jb=3,Bb=4,Ub=5,Hb=6,ow=7,lw=8,jC=typeof self=="object"?self:globalThis,PQ=(e,t)=>{const n=(a,s)=>(e.set(s,a),a),r=a=>{if(e.has(a))return e.get(a);const[s,l]=t[a];switch(s){case Lm:case sw:return n(l,a);case Ju:{const c=n([],a);for(const d of l)c.push(r(d));return c}case jp:{const c=n({},a);for(const[d,f]of l)c[r(d)]=r(f);return c}case jb:return n(new Date(l),a);case Bb:{const{source:c,flags:d}=l;return n(new RegExp(c,d),a)}case Ub:{const c=n(new Map,a);for(const[d,f]of l)c.set(r(d),r(f));return c}case Hb:{const c=n(new Set,a);for(const d of l)c.add(r(d));return c}case ow:{const{name:c,message:d}=l;return n(new jC[c](d),a)}case lw:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new jC[s](l),a)};return r},BC=e=>PQ(new Map,e)(0),Nl="",{toString:FQ}={},{keys:jQ}=Object,wu=e=>{const t=typeof e;if(t!=="object"||!e)return[Lm,t];const n=FQ.call(e).slice(8,-1);switch(n){case"Array":return[Ju,Nl];case"Object":return[jp,Nl];case"Date":return[jb,Nl];case"RegExp":return[Bb,Nl];case"Map":return[Ub,Nl];case"Set":return[Hb,Nl];case"DataView":return[Ju,n]}return n.includes("Array")?[Ju,n]:n.includes("Error")?[ow,n]:[jp,n]},wh=([e,t])=>e===Lm&&(t==="function"||t==="symbol"),BQ=(e,t,n,r)=>{const a=(l,c)=>{const d=r.push(l)-1;return n.set(c,d),d},s=l=>{if(n.has(l))return n.get(l);let[c,d]=wu(l);switch(c){case Lm:{let p=l;switch(d){case"bigint":c=lw,p=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);p=null;break;case"undefined":return a([sw],l)}return a([c,p],l)}case Ju:{if(d){let E=l;return d==="DataView"?E=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(E=new Uint8Array(l)),a([d,[...E]],l)}const p=[],m=a([c,p],l);for(const E of l)p.push(s(E));return m}case jp:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return s(l.toJSON());const p=[],m=a([c,p],l);for(const E of jQ(l))(e||!wh(wu(l[E])))&&p.push([s(E),s(l[E])]);return m}case jb:return a([c,l.toISOString()],l);case Bb:{const{source:p,flags:m}=l;return a([c,{source:p,flags:m}],l)}case Ub:{const p=[],m=a([c,p],l);for(const[E,y]of l)(e||!(wh(wu(E))||wh(wu(y))))&&p.push([s(E),s(y)]);return m}case Hb:{const p=[],m=a([c,p],l);for(const E of l)(e||!wh(wu(E)))&&p.push(s(E));return m}}const{message:f}=l;return a([c,{name:d,message:f}],l)};return s},UC=(e,{json:t,lossy:n}={})=>{const r=[];return BQ(!(t||n),!!t,new Map,r)(e),r},Lo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?BC(UC(e,t)):structuredClone(e):(e,t)=>BC(UC(e,t));function UQ(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 HQ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function zQ(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||UQ,r=e.options.footnoteBackLabel||HQ,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const p=e.all(f),m=String(f.identifier).toUpperCase(),E=mc(m.toLowerCase());let y=0;const T=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++y<=A;){T.length>0&&T.push({type:"text",value:" "});let D=typeof n=="string"?n:n(d,y);typeof D=="string"&&(D={type:"text",value:D}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,y),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const C=p[p.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const D=C.children[C.children.length-1];D&&D.type==="text"?D.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...T)}else p.push(...T);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+E},children:e.wrap(p,!0)};e.patch(f,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Lo(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
188
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
189
+ `}]}}const Mm=function(e){if(e==null)return YQ;if(typeof e=="function")return Pm(e);if(typeof e=="object")return Array.isArray(e)?GQ(e):VQ(e);if(typeof e=="string")return qQ(e);throw new Error("Expected function, string, or object as test")};function GQ(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Mm(e[n]);return Pm(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function VQ(e){const t=e;return Pm(n);function n(r){const a=r;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function qQ(e){return Pm(t);function t(n){return n&&n.type===e}}function Pm(e){return t;function t(n,r,a){return!!(QQ(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function YQ(){return!0}function QQ(e){return e!==null&&typeof e=="object"&&"type"in e}const cw=[],$Q=!0,Bp=!1,ed="skip";function uw(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const s=Mm(a),l=r?-1:1;c(e,void 0,[])();function c(d,f,p){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const y=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return E;function E(){let y=cw,T,A,C;if((!t||s(d,f,p[p.length-1]||void 0))&&(y=WQ(n(d,p)),y[0]===Bp))return y;if("children"in d&&d.children){const x=d;if(x.children&&y[0]!==ed)for(A=(r?x.children.length:-1)+l,C=p.concat(x);A>-1&&A<x.children.length;){const D=x.children[A];if(T=c(D,A,C)(),T[0]===Bp)return T;A=typeof T[1]=="number"?T[1]:A+l}}return y}}}function WQ(e){return Array.isArray(e)?e:typeof e=="number"?[$Q,e]:e==null?cw:[e]}function Fr(e,t,n,r){let a,s,l;typeof t=="function"&&typeof n!="function"?(s=void 0,l=t,a=n):(s=t,l=n,a=r),uw(e,s,c,a);function c(d,f){const p=f[f.length-1],m=p?p.children.indexOf(d):void 0;return l(d,m,p)}}const Z1={}.hasOwnProperty,KQ={};function XQ(e,t){const n=t||KQ,r=new Map,a=new Map,s=new Map,l={...MQ,...n.handlers},c={all:f,applyData:JQ,definitionById:r,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:l,one:d,options:n,patch:ZQ,wrap:t$};return Fr(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const m=p.type==="definition"?r:a,E=String(p.identifier).toUpperCase();m.has(E)||m.set(E,p)}}),c;function d(p,m){const E=p.type,y=c.handlers[E];if(Z1.call(c.handlers,E)&&y)return y(c,p,m);if(c.options.passThrough&&c.options.passThrough.includes(E)){if("children"in p){const{children:T,...A}=p,C=Lo(A);return C.children=c.all(p),C}return Lo(p)}return(c.options.unknownHandler||e$)(c,p,m)}function f(p){const m=[];if("children"in p){const E=p.children;let y=-1;for(;++y<E.length;){const T=c.one(E[y],p);if(T){if(y&&E[y-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=HC(T.value)),!Array.isArray(T)&&T.type==="element")){const A=T.children[0];A&&A.type==="text"&&(A.value=HC(A.value))}Array.isArray(T)?m.push(...T):m.push(T)}}}return m}}function ZQ(e,t){e.position&&(t.position=HV(e))}function JQ(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&s&&Object.assign(n.properties,Lo(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function e$(e,t){const n=t.data||{},r="value"in t&&!(Z1.call(n,"hProperties")||Z1.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 t$(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
190
+ `});++r<e.length;)r&&n.push({type:"text",value:`
191
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
192
+ `}),n}function HC(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function zC(e,t){const n=XQ(e,t),r=n.one(e,void 0),a=zQ(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&s.children.push({type:"text",value:`
193
+ `},a),s}function n$(e,t){return e&&"run"in e?async function(n,r){const a=zC(n,{file:r,...t});await e.run(a,r)}:function(n,r){return zC(n,{file:r,...e||t})}}function GC(e){if(e)throw e}var My,VC;function r$(){if(VC)return My;VC=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},s=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var f=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!f&&!p)return!1;var m;for(m in d);return typeof m>"u"||e.call(d,m)},l=function(d,f){n&&f.name==="__proto__"?n(d,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):d[f.name]=f.newValue},c=function(d,f){if(f==="__proto__")if(e.call(d,f)){if(r)return r(d,f).value}else return;return d[f]};return My=function d(){var f,p,m,E,y,T,A=arguments[0],C=1,x=arguments.length,D=!1;for(typeof A=="boolean"&&(D=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<x;++C)if(f=arguments[C],f!=null)for(p in f)m=c(A,p),E=c(f,p),A!==E&&(D&&E&&(s(E)||(y=a(E)))?(y?(y=!1,T=m&&a(m)?m:[]):T=m&&s(m)?m:{},l(A,{name:p,newValue:d(D,T,E)})):typeof E<"u"&&l(A,{name:p,newValue:E}));return A},My}var a$=r$();const Py=dm(a$);function J1(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 i$(){const e=[],t={run:n,use:r};return t;function n(...a){let s=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...a);function c(d,...f){const p=e[++s];let m=-1;if(d){l(d);return}for(;++m<a.length;)(f[m]===null||f[m]===void 0)&&(f[m]=a[m]);a=f,p?s$(p,c)(...f):l(null,...f)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function s$(e,t){let n;return r;function r(...l){const c=e.length>l.length;let d;c&&l.push(a);try{d=e.apply(this,l)}catch(f){const p=f;if(c&&n)throw p;return a(p)}c||(d&&d.then&&typeof d.then=="function"?d.then(s,a):d instanceof Error?a(d):s(d))}function a(l,...c){n||(n=!0,t(l,...c))}function s(l){a(null,l)}}const ei={basename:o$,dirname:l$,extname:c$,join:u$,sep:"/"};function o$(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ef(e);let n=0,r=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else r<0&&(s=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else l<0&&(s=!0,l=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function l$(e){if(ef(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 c$(e){ef(e);let t=e.length,n=-1,r=0,a=-1,s=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function u$(...e){let t=-1,n;for(;++t<e.length;)ef(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":d$(n)}function d$(e){ef(e);const t=e.codePointAt(0)===47;let n=f$(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function f$(e,t){let n="",r=0,a=-1,s=0,l=-1,c,d;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(a===l-1||s===1))if(a!==l-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=l,s=0;continue}}else if(n.length>0){n="",r=0,a=l,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,s=0}else c===46&&s>-1?s++:s=-1}return n}function ef(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h$={cwd:p$};function p$(){return"/"}function eE(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function m$(e){if(typeof e=="string")e=new URL(e);else if(!eE(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 g$(e)}function g$(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 a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Fy=["history","path","basename","stem","extname","dirname"];class dw{constructor(t){let n;t?eE(t)?n={path:t}:typeof t=="string"||y$(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":h$.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Fy.length;){const s=Fy[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)Fy.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ei.basename(this.path):void 0}set basename(t){By(t,"basename"),jy(t,"basename"),this.path=ei.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ei.dirname(this.path):void 0}set dirname(t){qC(this.basename,"dirname"),this.path=ei.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ei.extname(this.path):void 0}set extname(t){if(jy(t,"extname"),qC(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=ei.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){eE(t)&&(t=m$(t)),By(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ei.basename(this.path,this.extname):void 0}set stem(t){By(t,"stem"),jy(t,"stem"),this.path=ei.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new yr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function jy(e,t){if(e&&e.includes(ei.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ei.sep+"`")}function By(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function qC(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function y$(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const E$=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},b$={}.hasOwnProperty;class zb extends E${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=i$()}copy(){const t=new zb;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Py(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(zy("data",this.frozen),this.namespace[t]=n,this):b$.call(this.namespace,t)&&this.namespace[t]||void 0:t?(zy("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 a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ih(t),r=this.parser||this.Parser;return Uy("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Uy("process",this.parser||this.Parser),Hy("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,l){const c=Ih(t),d=r.parse(c);r.run(d,c,function(p,m,E){if(p||!m||!E)return f(p);const y=m,T=r.stringify(y,E);_$(T)?E.value=T:E.result=T,f(p,E)});function f(p,m){p||!m?l(p):s?s(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),Uy("processSync",this.parser||this.Parser),Hy("processSync",this.compiler||this.Compiler),this.process(t,a),QC("processSync","process",n),r;function a(s,l){n=!0,GC(s),r=l}}run(t,n,r){YC(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(l,c){const d=Ih(n);a.run(t,d,f);function f(p,m,E){const y=m||t;p?c(p):l?l(y):r(void 0,y,E)}}}runSync(t,n){let r=!1,a;return this.run(t,n,s),QC("runSync","run",r),a;function s(l,c){GC(l),a=c,r=!0}}stringify(t,n){this.freeze();const r=Ih(n),a=this.compiler||this.Compiler;return Hy("stringify",a),YC(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(zy("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[p,...m]=f;d(p,m)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(f.plugins),f.settings&&(a.settings=Py(!0,a.settings,f.settings))}function c(f){let p=-1;if(f!=null)if(Array.isArray(f))for(;++p<f.length;){const m=f[p];s(m)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,p){let m=-1,E=-1;for(;++m<r.length;)if(r[m][0]===f){E=m;break}if(E===-1)r.push([f,...p]);else if(p.length>0){let[y,...T]=p;const A=r[E][1];J1(A)&&J1(y)&&(y=Py(!0,A,y)),r[E]=[f,y,...T]}}}}const v$=new zb().freeze();function Uy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zy(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 YC(e){if(!J1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function QC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ih(e){return T$(e)?e:new dw(e)}function T$(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _$(e){return typeof e=="string"||x$(e)}function x$(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const A$="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$C=[],WC={allowDangerousHtml:!0},S$=/^(https?|ircs?|mailto|xmpp)$/i,C$=[{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 D$(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,s=e.components,l=e.disallowedElements,c=e.rehypePlugins||$C,d=e.remarkPlugins||$C,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...WC}:WC,p=e.skipHtml,m=e.unwrapDisallowed,E=e.urlTransform||k$,y=v$().use(cQ).use(d).use(n$,f).use(c),T=new dw;typeof r=="string"&&(T.value=r);for(const D of C$)Object.hasOwn(e,D.from)&&""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+A$+D.id;const A=y.parse(T);let C=y.runSync(A,T);return a&&(C={type:"element",tagName:"div",properties:{className:a},children:C.type==="root"?C.children:[C]}),Fr(C,x),YV(C,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function x(D,S,L){if(D.type==="raw"&&L&&typeof S=="number")return p?L.children.splice(S,1):L.children[S]={type:"text",value:D.value},S;if(D.type==="element"){let M;for(M in Ny)if(Object.hasOwn(Ny,M)&&Object.hasOwn(D.properties,M)){const w=D.properties[M],q=Ny[M];(q===null||q.includes(D.tagName))&&(D.properties[M]=E(String(w||""),M,D))}}if(D.type==="element"){let M=t?!t.includes(D.tagName):l?l.includes(D.tagName):!1;if(!M&&n&&typeof S=="number"&&(M=!n(D,S,L)),M&&L&&typeof S=="number")return m&&D.children?L.children.splice(S,1,...D.children):L.children.splice(S,1),S}}}function k$(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||S$.test(e.slice(0,t))?e:""}function R$(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function w$(e,t,n){const r=Mm((n||{}).ignore||[]),a=I$(t);let s=-1;for(;++s<a.length;)uw(e,"text",l);function l(d,f){let p=-1,m;for(;++p<f.length;){const E=f[p],y=m?m.children:void 0;if(r(E,y?y.indexOf(E):void 0,m))return;m=E}if(m)return c(d,f)}function c(d,f){const p=f[f.length-1],m=a[s][0],E=a[s][1];let y=0;const T=p.children.indexOf(d);let A=!1,C=[];m.lastIndex=0;let x=m.exec(d.value);for(;x;){const D=x.index,S={index:x.index,input:x.input,stack:[...f,d]};let L=E(...x,S);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?m.lastIndex=D+1:(y!==D&&C.push({type:"text",value:d.value.slice(y,D)}),Array.isArray(L)?C.push(...L):L&&C.push(L),y=D+x[0].length,A=!0),!m.global)break;x=m.exec(d.value)}return A?(y<d.value.length&&C.push({type:"text",value:d.value.slice(y)}),p.children.splice(T,1,...C)):C=[d],T+C.length}}function I$(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 a=n[r];t.push([N$(a[0]),O$(a[1])])}return t}function N$(e){return typeof e=="string"?new RegExp(R$(e),"g"):e}function O$(e){return typeof e=="function"?e:function(){return e}}const Gy="phrasing",Vy=["autolink","link","image","label"];function L$(){return{transforms:[H$],enter:{literalAutolink:P$,literalAutolinkEmail:qy,literalAutolinkHttp:qy,literalAutolinkWww:qy},exit:{literalAutolink:U$,literalAutolinkEmail:B$,literalAutolinkHttp:F$,literalAutolinkWww:j$}}}function M$(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gy,notInConstruct:Vy},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gy,notInConstruct:Vy},{character:":",before:"[ps]",after:"\\/",inConstruct:Gy,notInConstruct:Vy}]}}function P$(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qy(e){this.config.enter.autolinkProtocol.call(this,e)}function F$(e){this.config.exit.autolinkProtocol.call(this,e)}function j$(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 B$(e){this.config.exit.autolinkEmail.call(this,e)}function U$(e){this.exit(e)}function H$(e){w$(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,z$],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,G$]],{ignore:["link","linkReference"]})}function z$(e,t,n,r,a){let s="";if(!fw(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!V$(n)))return!1;const l=q$(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:s+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function G$(e,t,n,r){return!fw(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function V$(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 q$(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 a=Dp(e,"(");let s=Dp(e,")");for(;r!==-1&&a>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function fw(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Oo(n)||Nm(n))&&(!t||n!==47)}hw.peek=eW;function Y$(){this.buffer()}function Q$(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $$(){this.buffer()}function W$(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function K$(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),n.label=t}function X$(e){this.exit(e)}function Z$(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),n.label=t}function J$(e){this.exit(e)}function eW(){return"["}function hw(e,t,n,r){const a=n.createTracker(r);let s=a.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),c(),l(),s+=a.move("]"),s}function tW(){return{enter:{gfmFootnoteCallString:Y$,gfmFootnoteCall:Q$,gfmFootnoteDefinitionLabelString:$$,gfmFootnoteDefinition:W$},exit:{gfmFootnoteCallString:K$,gfmFootnoteCall:X$,gfmFootnoteDefinitionLabelString:Z$,gfmFootnoteDefinition:J$}}}function nW(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:hw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,s,l){const c=s.createTracker(l);let d=c.move("[^");const f=s.enter("footnoteDefinition"),p=s.enter("label");return d+=c.move(s.safe(s.associationId(r),{before:d,after:"]"})),p(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
194
+ `:" ")+s.indentLines(s.containerFlow(r,c.current()),t?pw:rW))),f(),d}}function rW(e,t,n){return t===0?e:pw(e,t,n)}function pw(e,t,n){return(n?"":" ")+e}const aW=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];mw.peek=cW;function iW(){return{canContainEols:["delete"],enter:{strikethrough:oW},exit:{strikethrough:lW}}}function sW(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:aW}],handlers:{delete:mw}}}function oW(e){this.enter({type:"delete",children:[]},e)}function lW(e){this.exit(e)}function mw(e,t,n,r){const a=n.createTracker(r),s=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),s(),l}function cW(){return"~"}function uW(e){return e.length}function dW(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||uW,s=[],l=[],c=[],d=[];let f=0,p=-1;for(;++p<e.length;){const A=[],C=[];let x=-1;for(e[p].length>f&&(f=e[p].length);++x<e[p].length;){const D=fW(e[p][x]);if(n.alignDelimiters!==!1){const S=a(D);C[x]=S,(d[x]===void 0||S>d[x])&&(d[x]=S)}A.push(D)}l[p]=A,c[p]=C}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<f;)s[m]=KC(r[m]);else{const A=KC(r);for(;++m<f;)s[m]=A}m=-1;const E=[],y=[];for(;++m<f;){const A=s[m];let C="",x="";A===99?(C=":",x=":"):A===108?C=":":A===114&&(x=":");let D=n.alignDelimiters===!1?1:Math.max(1,d[m]-C.length-x.length);const S=C+"-".repeat(D)+x;n.alignDelimiters!==!1&&(D=C.length+D+x.length,D>d[m]&&(d[m]=D),y[m]=D),E[m]=S}l.splice(1,0,E),c.splice(1,0,y),p=-1;const T=[];for(;++p<l.length;){const A=l[p],C=c[p];m=-1;const x=[];for(;++m<f;){const D=A[m]||"";let S="",L="";if(n.alignDelimiters!==!1){const M=d[m]-(C[m]||0),w=s[m];w===114?S=" ".repeat(M):w===99?M%2?(S=" ".repeat(M/2+.5),L=" ".repeat(M/2-.5)):(S=" ".repeat(M/2),L=S):L=" ".repeat(M)}n.delimiterStart!==!1&&!m&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&D==="")&&(n.delimiterStart!==!1||m)&&x.push(" "),n.alignDelimiters!==!1&&x.push(S),x.push(D),n.alignDelimiters!==!1&&x.push(L),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||m!==f-1)&&x.push("|")}T.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return T.join(`
195
+ `)}function fW(e){return e==null?"":String(e)}function KC(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 hW(e,t,n,r){const a=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const l=n.indentLines(n.containerFlow(e,s.current()),pW);return a(),l}function pW(e,t,n){return">"+(n?"":" ")+e}function mW(e,t){return XC(e,t.inConstruct,!0)&&!XC(e,t.notInConstruct,!1)}function XC(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 ZC(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
196
+ `&&mW(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
197
+ `}function gW(e,t){const n=String(e);let r=n.indexOf(t),a=r,s=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++s>l&&(l=s):s=1,a=r+t.length,r=n.indexOf(t,a);return l}function yW(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 EW(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 bW(e,t,n,r){const a=EW(n),s=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(yW(e,n)){const m=n.enter("codeIndented"),E=n.indentLines(s,vW);return m(),E}const c=n.createTracker(r),d=a.repeat(Math.max(gW(s,a)+1,3)),f=n.enter("codeFenced");let p=c.move(d);if(e.lang){const m=n.enter(`codeFencedLang${l}`);p+=c.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${l}`);p+=c.move(" "),p+=c.move(n.safe(e.meta,{before:p,after:`
198
+ `,encode:["`"],...c.current()})),m()}return p+=c.move(`
199
+ `),s&&(p+=c.move(s+`
200
+ `)),p+=c.move(d),f(),p}function vW(e,t,n){return(n?"":" ")+e}function Gb(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 TW(e,t,n,r){const a=Gb(n),s=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("[");return f+=d.move(n.safe(n.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":`
201
+ `,...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),l(),f}function _W(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 Nd(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Up(e,t,n){const r=rc(e),a=rc(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}gw.peek=xW;function gw(e,t,n,r){const a=_W(n),s=n.enter("emphasis"),l=n.createTracker(r),c=l.move(a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=Up(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Nd(f)+d.slice(1));const m=d.charCodeAt(d.length-1),E=Up(r.after.charCodeAt(0),m,a);E.inside&&(d=d.slice(0,-1)+Nd(m));const y=l.move(a);return s(),n.attentionEncodeSurroundingInfo={after:E.outside,before:p.outside},c+d+y}function xW(e,t,n){return n.options.emphasis||"*"}function AW(e,t){let n=!1;return Fr(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Bp}),!!((!e.depth||e.depth<3)&&Mb(e)&&(t.options.setext||n))}function SW(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(AW(e,n)){const p=n.enter("headingSetext"),m=n.enter("phrasing"),E=n.containerPhrasing(e,{...s.current(),before:`
202
+ `,after:`
203
+ `});return m(),p(),E+`
204
+ `+(a===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
205
+ `))+1))}const l="#".repeat(a),c=n.enter("headingAtx"),d=n.enter("phrasing");s.move(l+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
206
+ `,...s.current()});return/^[\t ]/.test(f)&&(f=Nd(f.charCodeAt(0))+f.slice(1)),f=f?l+" "+f:l,n.options.closeAtx&&(f+=" "+l),d(),c(),f}yw.peek=CW;function yw(e){return e.value||""}function CW(){return"<"}Ew.peek=DW;function Ew(e,t,n,r){const a=Gb(n),s=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let f=d.move("![");return f+=d.move(n.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(n.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(c=n.enter("destinationRaw"),f+=d.move(n.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=d.move(" "+a),f+=d.move(n.safe(e.title,{before:f,after:a,...d.current()})),f+=d.move(a),c()),f+=d.move(")"),l(),f}function DW(){return"!"}bw.peek=kW;function bw(e,t,n,r){const a=e.referenceType,s=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const f=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,s(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function kW(){return"!"}vw.peek=RW;function vw(e,t,n){let r=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const l=n.unsafe[s],c=n.compilePattern(l);let d;if(l.atBreak)for(;d=c.exec(r);){let f=d.index;r.charCodeAt(f)===10&&r.charCodeAt(f-1)===13&&f--,r=r.slice(0,f)+" "+r.slice(d.index+1)}}return a+r+a}function RW(){return"`"}function Tw(e,t){const n=Mb(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))}_w.peek=wW;function _w(e,t,n,r){const a=Gb(n),s=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,d;if(Tw(e,n)){const p=n.stack;n.stack=[],c=n.enter("autolink");let m=l.move("<");return m+=l.move(n.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),c(),n.stack=p,m}c=n.enter("link"),d=n.enter("label");let f=l.move("[");return f+=l.move(n.containerPhrasing(e,{before:f,after:"](",...l.current()})),f+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),f+=l.move("<"),f+=l.move(n.safe(e.url,{before:f,after:">",...l.current()})),f+=l.move(">")):(d=n.enter("destinationRaw"),f+=l.move(n.safe(e.url,{before:f,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${s}`),f+=l.move(" "+a),f+=l.move(n.safe(e.title,{before:f,after:a,...l.current()})),f+=l.move(a),d()),f+=l.move(")"),c(),f}function wW(e,t,n){return Tw(e,n)?"<":"["}xw.peek=IW;function xw(e,t,n,r){const a=e.referenceType,s=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const f=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(f+"]["),l();const p=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return l(),n.stack=p,s(),a==="full"||!f||f!==m?d+=c.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function IW(){return"["}function Vb(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 NW(e){const t=Vb(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 OW(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 Aw(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 LW(e,t,n,r){const a=n.enter("list"),s=n.bulletCurrent;let l=e.ordered?OW(n):Vb(n);const c=e.ordered?l==="."?")":".":NW(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&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&&(d=!0),Aw(n)===l&&p){let m=-1;for(;++m<e.children.length;){const E=e.children[m];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=c),n.bulletCurrent=l;const f=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=s,a(),f}function MW(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 PW(e,t,n,r){const a=MW(n);let s=n.bulletCurrent||Vb(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let l=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(s+" ".repeat(l-s.length)),c.shift(l);const d=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),p);return d(),f;function p(m,E,y){return E?(y?"":" ".repeat(l))+m:(y?s:s+" ".repeat(l-s.length))+m}}function FW(e,t,n,r){const a=n.enter("paragraph"),s=n.enter("phrasing"),l=n.containerPhrasing(e,r);return s(),a(),l}const jW=Mm(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function BW(e,t,n,r){return(e.children.some(function(a){return jW(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function UW(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Sw.peek=HW;function Sw(e,t,n,r){const a=UW(n),s=n.enter("strong"),l=n.createTracker(r),c=l.move(a+a);let d=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const f=d.charCodeAt(0),p=Up(r.before.charCodeAt(r.before.length-1),f,a);p.inside&&(d=Nd(f)+d.slice(1));const m=d.charCodeAt(d.length-1),E=Up(r.after.charCodeAt(0),m,a);E.inside&&(d=d.slice(0,-1)+Nd(m));const y=l.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:E.outside,before:p.outside},c+d+y}function HW(e,t,n){return n.options.strong||"*"}function zW(e,t,n,r){return n.safe(e.value,r)}function GW(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 VW(e,t,n){const r=(Aw(n)+(n.options.ruleSpaces?" ":"")).repeat(GW(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Cw={blockquote:hW,break:ZC,code:bW,definition:TW,emphasis:gw,hardBreak:ZC,heading:SW,html:yw,image:Ew,imageReference:bw,inlineCode:vw,link:_w,linkReference:xw,list:LW,listItem:PW,paragraph:FW,root:BW,strong:Sw,text:zW,thematicBreak:VW};function qW(){return{enter:{table:YW,tableData:JC,tableHeader:JC,tableRow:$W},exit:{codeText:WW,table:QW,tableData:Yy,tableHeader:Yy,tableRow:Yy}}}function YW(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 QW(e){this.exit(e),this.data.inTable=void 0}function $W(e){this.enter({type:"tableRow",children:[]},e)}function Yy(e){this.exit(e)}function JC(e){this.enter({type:"tableCell",children:[]},e)}function WW(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,KW));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function KW(e,t){return t==="|"?t:e}function XW(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
207
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:l,tableCell:d,tableRow:c}};function l(y,T,A,C){return f(p(y,A,C),y.align)}function c(y,T,A,C){const x=m(y,A,C),D=f([x]);return D.slice(0,D.indexOf(`
208
+ `))}function d(y,T,A,C){const x=A.enter("tableCell"),D=A.enter("phrasing"),S=A.containerPhrasing(y,{...C,before:s,after:s});return D(),x(),S}function f(y,T){return dW(y,{align:T,alignDelimiters:r,padding:n,stringLength:a})}function p(y,T,A){const C=y.children;let x=-1;const D=[],S=T.enter("table");for(;++x<C.length;)D[x]=m(C[x],T,A);return S(),D}function m(y,T,A){const C=y.children;let x=-1;const D=[],S=T.enter("tableRow");for(;++x<C.length;)D[x]=d(C[x],y,T,A);return S(),D}function E(y,T,A){let C=Cw.inlineCode(y,T,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function ZW(){return{exit:{taskListCheckValueChecked:e2,taskListCheckValueUnchecked:e2,paragraph:eK}}}function JW(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:tK}}}function e2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function eK(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 a=t.children;let s=-1,l;for(;++s<a.length;){const c=a[s];if(c.type==="paragraph"){l=c;break}}l===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 tK(e,t,n,r){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);s&&c.move(l);let d=Cw.listItem(e,t,n,{...r,...c.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(p){return p+l}}function nK(){return[L$(),tW(),iW(),qW(),ZW()]}function rK(e){return{extensions:[M$(),nW(e),sW(),XW(e),JW()]}}const aK={tokenize:uK,partial:!0},Dw={tokenize:dK,partial:!0},kw={tokenize:fK,partial:!0},Rw={tokenize:hK,partial:!0},iK={tokenize:pK,partial:!0},ww={name:"wwwAutolink",tokenize:lK,previous:Nw},Iw={name:"protocolAutolink",tokenize:cK,previous:Ow},Qi={name:"emailAutolink",tokenize:oK,previous:Lw},di={};function sK(){return{text:di}}let ao=48;for(;ao<123;)di[ao]=Qi,ao++,ao===58?ao=65:ao===91&&(ao=97);di[43]=Qi;di[45]=Qi;di[46]=Qi;di[95]=Qi;di[72]=[Qi,Iw];di[104]=[Qi,Iw];di[87]=[Qi,ww];di[119]=[Qi,ww];function oK(e,t,n){const r=this;let a,s;return l;function l(m){return!tE(m)||!Lw.call(r,r.previous)||qb(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return tE(m)?(e.consume(m),c):m===64?(e.consume(m),d):n(m)}function d(m){return m===46?e.check(iK,p,f)(m):m===45||m===95||pr(m)?(s=!0,e.consume(m),d):p(m)}function f(m){return e.consume(m),a=!0,d}function p(m){return s&&a&&Ar(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function lK(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!Nw.call(r,r.previous)||qb(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(aK,e.attempt(Dw,e.attempt(kw,s),n),n)(l))}function s(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function cK(e,t,n){const r=this;let a="",s=!1;return l;function l(m){return(m===72||m===104)&&Ow.call(r,r.previous)&&!qb(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(Ar(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const E=a.toLowerCase();if(E==="http"||E==="https")return e.consume(m),d}return n(m)}function d(m){return m===47?(e.consume(m),s?f:(s=!0,d)):n(m)}function f(m){return m===null||Fp(m)||Qt(m)||Oo(m)||Nm(m)?n(m):e.attempt(Dw,e.attempt(kw,p),n)(m)}function p(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function uK(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),s):n(l)}function s(l){return l===null?n(l):t(l)}}function dK(e,t,n){let r,a,s;return l;function l(f){return f===46||f===95?e.check(Rw,d,c)(f):f===null||Qt(f)||Oo(f)||f!==45&&Nm(f)?d(f):(s=!0,e.consume(f),l)}function c(f){return f===95?r=!0:(a=r,r=void 0),e.consume(f),l}function d(f){return a||r||!s?n(f):t(f)}}function fK(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?s(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Rw,t,s)(l):l===null||Qt(l)||Oo(l)?t(l):(e.consume(l),a)}function s(l){return l===41&&r++,e.consume(l),a}}function hK(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),s):c===93?(e.consume(c),a):c===60||c===null||Qt(c)||Oo(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||Qt(c)||Oo(c)?t(c):r(c)}function s(c){return Ar(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):Ar(c)?(e.consume(c),l):n(c)}}function pK(e,t,n){return r;function r(s){return e.consume(s),a}function a(s){return pr(s)?n(s):t(s)}}function Nw(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Qt(e)}function Ow(e){return!Ar(e)}function Lw(e){return!(e===47||tE(e))}function tE(e){return e===43||e===45||e===46||e===95||pr(e)}function qb(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 mK={tokenize:xK,partial:!0};function gK(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:vK,continuation:{tokenize:TK},exit:_K}},text:{91:{name:"gfmFootnoteCall",tokenize:bK},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yK,resolveTo:EK}}}}function yK(e,t,n){const r=this;let a=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!l||!l._balanced)return n(d);const f=Ma(r.sliceSerialize({start:l.end,end:r.now()}));return f.codePointAt(0)!==94||!s.includes(f.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function EK(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)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function bK(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,l;return c;function c(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(m){if(s>999||m===93&&!l||m===null||m===91||Qt(m))return n(m);if(m===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return a.includes(Ma(r.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return Qt(m)||(l=!0),s++,e.consume(m),m===92?p:f}function p(m){return m===91||m===92||m===93?(e.consume(m),s++,f):f(m)}}function vK(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,l=0,c;return d;function d(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(T)}function p(T){if(l>999||T===93&&!c||T===null||T===91||Qt(T))return n(T);if(T===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return s=Ma(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return Qt(T)||(c=!0),l++,e.consume(T),T===92?m:p}function m(T){return T===91||T===92||T===93?(e.consume(T),l++,p):p(T)}function E(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),a.includes(s)||a.push(s),St(e,y,"gfmFootnoteDefinitionWhitespace")):n(T)}function y(T){return t(T)}}function TK(e,t,n){return e.check(Jd,t,e.attempt(mK,t,n))}function _K(e){e.exit("gfmFootnoteDefinition")}function xK(e,t,n){const r=this;return St(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(s):n(s)}}function AK(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(s,l){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let d=c;for(;d--;)if(s[d][0]==="exit"&&s[d][1].type==="strikethroughSequenceTemporary"&&s[d][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[d][1].end.offset-s[d][1].start.offset){s[c][1].type="strikethroughSequence",s[d][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[d][1].start),end:Object.assign({},s[c][1].end)},p={type:"strikethroughText",start:Object.assign({},s[d][1].end),end:Object.assign({},s[c][1].start)},m=[["enter",f,l],["enter",s[d][1],l],["exit",s[d][1],l],["enter",p,l]],E=l.parser.constructs.insideSpan.null;E&&ta(m,m.length,0,Om(E,s.slice(d+1,c),l)),ta(m,m.length,0,[["exit",p,l],["enter",s[c][1],l],["exit",s[c][1],l],["exit",f,l]]),ta(s,d-1,c-d+3,m),c=d+m.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function a(s,l,c){const d=this.previous,f=this.events;let p=0;return m;function m(y){return d===126&&f[f.length-1][1].type!=="characterEscape"?c(y):(s.enter("strikethroughSequenceTemporary"),E(y))}function E(y){const T=rc(d);if(y===126)return p>1?c(y):(s.consume(y),p++,E);if(p<2&&!t)return c(y);const A=s.exit("strikethroughSequenceTemporary"),C=rc(y);return A._open=!C||C===2&&!!T,A._close=!T||T===2&&!!C,l(y)}}}class SK{constructor(){this.map=[]}add(t,n,r){CK(this,t,n,r)}consume(t){if(this.map.sort(function(s,l){return s[0]-l[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 a=r.pop();for(;a;){for(const s of a)t.push(s);a=r.pop()}this.map.length=0}}function CK(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function DK(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function kK(){return{flow:{null:{name:"table",tokenize:RK,resolveAll:wK}}}}function RK(e,t,n){const r=this;let a=0,s=0,l;return c;function c(k){let z=r.events.length-1;for(;z>-1;){const re=r.events[z][1].type;if(re==="lineEnding"||re==="linePrefix")z--;else break}const $=z>-1?r.events[z][1].type:null,K=$==="tableHead"||$==="tableRow"?w:d;return K===w&&r.parser.lazy[r.now().line]?n(k):K(k)}function d(k){return e.enter("tableHead"),e.enter("tableRow"),f(k)}function f(k){return k===124||(l=!0,s+=1),p(k)}function p(k){return k===null?n(k):Xe(k)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),y):n(k):_t(k)?St(e,p,"whitespace")(k):(s+=1,l&&(l=!1,a+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,p):(e.enter("data"),m(k)))}function m(k){return k===null||k===124||Qt(k)?(e.exit("data"),p(k)):(e.consume(k),k===92?E:m)}function E(k){return k===92||k===124?(e.consume(k),m):m(k)}function y(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,_t(k)?St(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):T(k))}function T(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),A):M(k)}function A(k){return _t(k)?St(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(s+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(s+=1,x(k)):k===null||Xe(k)?L(k):M(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),D(k)):M(k)}function D(k){return k===45?(e.consume(k),D):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return _t(k)?St(e,L,"whitespace")(k):L(k)}function L(k){return k===124?T(k):k===null||Xe(k)?!l||a!==s?M(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):M(k)}function M(k){return n(k)}function w(k){return e.enter("tableRow"),q(k)}function q(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),q):k===null||Xe(k)?(e.exit("tableRow"),t(k)):_t(k)?St(e,q,"whitespace")(k):(e.enter("data"),ne(k))}function ne(k){return k===null||k===124||Qt(k)?(e.exit("data"),q(k)):(e.consume(k),k===92?W:ne)}function W(k){return k===92||k===124?(e.consume(k),ne):ne(k)}}function wK(e,t){let n=-1,r=!0,a=0,s=[0,0,0,0],l=[0,0,0,0],c=!1,d=0,f,p,m;const E=new SK;for(;++n<e.length;){const y=e[n],T=y[1];y[0]==="enter"?T.type==="tableHead"?(c=!1,d!==0&&(t2(E,t,d,f,p),p=void 0,d=0),f={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},E.add(n,0,[["enter",f,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(r=!0,m=void 0,s=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,p={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},E.add(n,0,[["enter",p,t]])),a=T.type==="tableDelimiterRow"?2:p?3:1):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(s[1]!==0&&(l[0]=l[1],m=Nh(E,t,s,a,void 0,m),s=[0,0,0,0]),l[2]=n)):T.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(l[0]=l[1],m=Nh(E,t,s,a,void 0,m)),s=l,l=[s[1],n,0,0])):T.type==="tableHead"?(c=!0,d=n):T.type==="tableRow"||T.type==="tableDelimiterRow"?(d=n,s[1]!==0?(l[0]=l[1],m=Nh(E,t,s,a,n,m)):l[1]!==0&&(m=Nh(E,t,l,a,n,m)),a=0):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&t2(E,t,d,f,p),E.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=DK(t.events,n))}return e}function Nh(e,t,n,r,a,s){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(s.end=Object.assign({},Pl(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const d=Pl(t.events,n[1]);if(s={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const f=Pl(t.events,n[2]),p=Pl(t.events,n[3]),m={type:c,start:Object.assign({},f),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const E=t.events[n[2]],y=t.events[n[3]];if(E[1].end=Object.assign({},y[1].end),E[1].type="chunkText",E[1].contentType="text",n[3]>n[2]+1){const T=n[2]+1,A=n[3]-n[2]-1;e.add(T,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(s.end=Object.assign({},Pl(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function t2(e,t,n,r,a){const s=[],l=Pl(t.events,n);a&&(a.end=Object.assign({},l),s.push(["exit",a,t])),r.end=Object.assign({},l),s.push(["exit",r,t]),e.add(n+1,0,s)}function Pl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const IK={name:"tasklistCheck",tokenize:OK};function NK(){return{text:{91:IK}}}function OK(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return Qt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Xe(d)?t(d):_t(d)?e.check({tokenize:LK},t,n)(d):n(d)}}function LK(e,t,n){return St(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function MK(e){return qR([sK(),gK(),AK(e),kK(),NK()])}const PK={};function FK(e){const t=this,n=e||PK,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(MK(n)),s.push(nK()),l.push(rK(n))}const n2=/[#.]/g;function jK(e,t){const n=e||"",r={};let a=0,s,l;for(;a<n.length;){n2.lastIndex=a;const c=n2.exec(n),d=n.slice(a,c?c.index:n.length);d&&(s?s==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,a+=d.length),c&&(s=c[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function Mw(e,t,n){const r=n?zK(n):void 0;function a(s,l,...c){let d;if(s==null){d={type:"root",children:[]};const f=l;c.unshift(f)}else{d=jK(s,t);const f=d.tagName.toLowerCase(),p=r?r.get(f):void 0;if(d.tagName=p||f,BK(l))c.unshift(l);else for(const[m,E]of Object.entries(l))UK(e,d.properties,m,E)}for(const f of c)nE(d.children,f);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function BK(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 a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const s=a;for(const l of s)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function UK(e,t,n,r){const a=Wd(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?a.spaceSeparated?s=G1(r):a.commaSeparated?s=z1(r):a.commaOrSpaceSeparated?s=G1(z1(r).join(" ")):s=r2(a,a.property,r):Array.isArray(r)?s=[...r]:s=a.property==="style"?HK(r):String(r);if(Array.isArray(s)){const l=[];for(const c of s)l.push(r2(a,a.property,c));s=l}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function nE(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)nE(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?nE(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function r2(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Cd(n)===Cd(t)))return!0}return n}function HK(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function zK(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const GK=["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"],VK=Mw(hc,"div"),qK=Mw(qi,"g",GK);function YK(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let l=0;for(;;){let c=n[l];if(c===void 0){const d=a2(t,n[l-1]);c=d===-1?t.length+1:d+1,n[l]=c}if(c>s)return{line:l+1,column:s-(l>0?n[l-1]:0)+1,offset:s};l++}}}function a(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const c=n[n.length-1],d=a2(t,c),f=d===-1?t.length+1:d+1;if(c===f)break;n.push(f)}const l=(s.line>1?n[s.line-2]:0)+s.column-1;if(l<n[s.line-1])return l}}}function a2(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
209
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const bo={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/"},Pw={}.hasOwnProperty,QK=Object.prototype;function $K(e,t){const n=t||{};return Yb({file:n.file||void 0,location:!1,schema:n.space==="svg"?qi:hc,verbose:n.verbose||!1},e)}function Yb(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},tp(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Fw(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const s=String(e.file),l=YK(s),c=l.toPoint(0),d=l.toPoint(s.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},tp(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},tp(e,r,n),n}default:return n=WK(e,t),n}}function Fw(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Yb(e,t[n]);r.push(a)}return r}function WK(e,t){const n=e.schema;e.schema=t.namespaceURI===bo.svg?qi:hc;let r=-1;const a={};for(;++r<t.attrs.length;){const l=t.attrs[r],c=(l.prefix?l.prefix+":":"")+l.name;Pw.call(QK,c)||(a[c]=l.value)}const s=(e.schema.space==="svg"?qK:VK)(t.tagName,a,Fw(e,t.childNodes));if(tp(e,t,s),s.tagName==="template"){const l=t,c=l.sourceCodeLocation,d=c&&c.startTag&&Hl(c.startTag),f=c&&c.endTag&&Hl(c.endTag),p=Yb(e,l.content);d&&f&&e.file&&(p.position={start:d.end,end:f.start}),s.content=p}return e.schema=n,s}function tp(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=KK(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function KK(e,t,n){const r=Hl(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const s={};let l;if(n.attrs)for(l in n.attrs)Pw.call(n.attrs,l)&&(s[Wd(e.schema,l).property]=Hl(n.attrs[l]));n.startTag;const c=Hl(n.startTag),d=n.endTag?Hl(n.endTag):void 0,f={opening:c};d&&(f.closing=d),f.properties=s,t.data={position:f}}}return r}function Hl(e){const t=i2({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=i2({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function i2(e){return e.line&&e.column?e:void 0}class tf{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}tf.prototype.property={};tf.prototype.normal={};tf.prototype.space=null;function jw(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new tf(n,r,t)}function rE(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 XK=0;const ct=Ho(),Pn=Ho(),Bw=Ho(),Re=Ho(),Zt=Ho(),$l=Ho(),Kr=Ho();function Ho(){return 2**++XK}const aE=Object.freeze(Object.defineProperty({__proto__:null,boolean:ct,booleanish:Pn,commaOrSpaceSeparated:Kr,commaSeparated:$l,number:Re,overloadedBoolean:Bw,spaceSeparated:Zt},Symbol.toStringTag,{value:"Module"})),Qy=Object.keys(aE);class Qb extends ka{constructor(t,n,r,a){let s=-1;if(super(t,n),s2(this,"space",a),typeof r=="number")for(;++s<Qy.length;){const l=Qy[s];s2(this,Qy[s],(r&aE[l])===aE[l])}}}Qb.prototype.defined=!0;function s2(e,t,n){n&&(e[t]=n)}const ZK={}.hasOwnProperty;function gc(e){const t={},n={};let r;for(r in e.properties)if(ZK.call(e.properties,r)){const a=e.properties[r],s=new Qb(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[rE(r)]=r,n[rE(s.attribute)]=r}return new tf(t,n,e.space)}const Uw=gc({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}}),Hw=gc({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zw(e,t){return t in e?e[t]:t}function Gw(e,t){return zw(e,t.toLowerCase())}const Vw=gc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Gw,properties:{xmlns:null,xmlnsXLink:null}}),qw=gc({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pn,ariaAutoComplete:null,ariaBusy:Pn,ariaChecked:Pn,ariaColCount:Re,ariaColIndex:Re,ariaColSpan:Re,ariaControls:Zt,ariaCurrent:null,ariaDescribedBy:Zt,ariaDetails:null,ariaDisabled:Pn,ariaDropEffect:Zt,ariaErrorMessage:null,ariaExpanded:Pn,ariaFlowTo:Zt,ariaGrabbed:Pn,ariaHasPopup:null,ariaHidden:Pn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Zt,ariaLevel:Re,ariaLive:null,ariaModal:Pn,ariaMultiLine:Pn,ariaMultiSelectable:Pn,ariaOrientation:null,ariaOwns:Zt,ariaPlaceholder:null,ariaPosInSet:Re,ariaPressed:Pn,ariaReadOnly:Pn,ariaRelevant:null,ariaRequired:Pn,ariaRoleDescription:Zt,ariaRowCount:Re,ariaRowIndex:Re,ariaRowSpan:Re,ariaSelected:Pn,ariaSetSize:Re,ariaSort:null,ariaValueMax:Re,ariaValueMin:Re,ariaValueNow:Re,ariaValueText:null,role:null}}),JK=gc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Gw,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$l,acceptCharset:Zt,accessKey:Zt,action:null,allow:null,allowFullScreen:ct,allowPaymentRequest:ct,allowUserMedia:ct,alt:null,as:null,async:ct,autoCapitalize:null,autoComplete:Zt,autoFocus:ct,autoPlay:ct,blocking:Zt,capture:null,charSet:null,checked:ct,cite:null,className:Zt,cols:Re,colSpan:null,content:null,contentEditable:Pn,controls:ct,controlsList:Zt,coords:Re|$l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ct,defer:ct,dir:null,dirName:null,disabled:ct,download:Bw,draggable:Pn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ct,formTarget:null,headers:Zt,height:Re,hidden:ct,high:Re,href:null,hrefLang:null,htmlFor:Zt,httpEquiv:Zt,id:null,imageSizes:null,imageSrcSet:null,inert:ct,inputMode:null,integrity:null,is:null,isMap:ct,itemId:null,itemProp:Zt,itemRef:Zt,itemScope:ct,itemType:Zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ct,low:Re,manifest:null,max:null,maxLength:Re,media:null,method:null,min:null,minLength:Re,multiple:ct,muted:ct,name:null,nonce:null,noModule:ct,noValidate:ct,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:ct,optimum:Re,pattern:null,ping:Zt,placeholder:null,playsInline:ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ct,referrerPolicy:null,rel:Zt,required:ct,reversed:ct,rows:Re,rowSpan:Re,sandbox:Zt,scope:null,scoped:ct,seamless:ct,selected:ct,shadowRootClonable:ct,shadowRootDelegatesFocus:ct,shadowRootMode:null,shape:null,size:Re,sizes:null,slot:null,span:Re,spellCheck:Pn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Re,step:null,style:null,tabIndex:Re,target:null,title:null,translate:null,type:null,typeMustMatch:ct,useMap:null,value:Pn,width:Re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Zt,axis:null,background:null,bgColor:null,border:Re,borderColor:null,bottomMargin:Re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ct,declare:ct,event:null,face:null,frame:null,frameBorder:null,hSpace:Re,leftMargin:Re,link:null,longDesc:null,lowSrc:null,marginHeight:Re,marginWidth:Re,noResize:ct,noHref:ct,noShade:ct,noWrap:ct,object:null,profile:null,prompt:null,rev:null,rightMargin:Re,rules:null,scheme:null,scrolling:Pn,standby:null,summary:null,text:null,topMargin:Re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ct,disableRemotePlayback:ct,prefix:null,property:null,results:Re,security:null,unselectable:null}}),eX=gc({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:zw,properties:{about:Kr,accentHeight:Re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Re,amplitude:Re,arabicForm:null,ascent:Re,attributeName:null,attributeType:null,azimuth:Re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Re,by:null,calcMode:null,capHeight:Re,className:Zt,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:Re,diffuseConstant:Re,direction:null,display:null,dur:null,divisor:Re,dominantBaseline:null,download:ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:Re,enableBackground:null,end:null,event:null,exponent:Re,externalResourcesRequired:null,fill:null,fillOpacity:Re,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$l,g2:$l,glyphName:$l,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Re,horizOriginX:Re,horizOriginY:Re,id:null,ideographic:Re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Re,k:Re,k1:Re,k2:Re,k3:Re,k4:Re,kernelMatrix:Kr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Re,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:Re,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:Re,overlineThickness:Re,paintOrder:null,panose1:null,path:null,pathLength:Re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Re,pointsAtY:Re,pointsAtZ:Re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kr,rev:Kr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kr,requiredFeatures:Kr,requiredFonts:Kr,requiredFormats:Kr,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:Re,specularExponent:Re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Re,strikethroughThickness:Re,string:null,stroke:null,strokeDashArray:Kr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Re,strokeOpacity:Re,strokeWidth:null,style:null,surfaceScale:Re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kr,tabIndex:Re,tableValues:null,target:null,targetX:Re,targetY:Re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Re,underlineThickness:Re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Re,values:null,vAlphabetic:Re,vMathematical:Re,vectorEffect:null,vHanging:Re,vIdeographic:Re,version:null,vertAdvY:Re,vertOriginX:Re,vertOriginY:Re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tX=/^data[-\w.:]+$/i,o2=/-[a-z]/g,nX=/[A-Z]/g;function rX(e,t){const n=rE(t);let r=t,a=ka;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&tX.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(o2,iX);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!o2.test(s)){let l=s.replace(nX,aX);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Qb}return new a(r,t)}function aX(e){return"-"+e.toLowerCase()}function iX(e){return e.charAt(1).toUpperCase()}const sX=jw([Hw,Uw,Vw,qw,JK],"html"),Yw=jw([Hw,Uw,Vw,qw,eX],"svg"),oX={},lX={}.hasOwnProperty,Qw=xm("type",{handlers:{root:uX,element:mX,text:hX,comment:pX,doctype:fX}});function cX(e,t){const n=(t||oX).space;return Qw(e,n==="svg"?Yw:sX)}function uX(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=$b(e.children,n,t),yc(e,n),n}function dX(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=$b(e.children,n,t),yc(e,n),n}function fX(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return yc(e,t),t}function hX(e){const t={nodeName:"#text",value:e.value,parentNode:null};return yc(e,t),t}function pX(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return yc(e,t),t}function mX(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Yw);const a=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&lX.call(e.properties,s)){const d=gX(r,s,e.properties[s]);d&&a.push(d)}}const l=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:bo[l],childNodes:[],parentNode:null};return c.childNodes=$b(e.children,c,r),yc(e,c),e.tagName==="template"&&e.content&&(c.content=dX(e.content,r)),c}function gX(e,t,n){const r=rX(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?Am(n):Sm(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=a.name.indexOf(":");s<0?a.prefix="":(a.name=a.name.slice(s+1),a.prefix=r.attribute.slice(0,s)),a.namespace=bo[r.space]}return a}function $b(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const s=Qw(e[r],n);s.parentNode=t,a.push(s)}return a}function yc(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 yX=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]),dn="�";var F;(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"})(F||(F={}));const Ir={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function $w(e){return e>=55296&&e<=57343}function EX(e){return e>=56320&&e<=57343}function bX(e,t){return(e-55296)*1024+9216+t}function Ww(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Kw(e){return e>=64976&&e<=65007||yX.has(e)}var fe;(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"})(fe||(fe={}));const vX=65536;class TX{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=vX,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:a,offset:s}=this,l=a+n,c=s+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(EX(n))return this.pos++,this._addGap(),bX(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,F.EOF;return this._err(fe.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,F.EOF;const r=this.html.charCodeAt(n);return r===F.CARRIAGE_RETURN?F.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,F.EOF;let t=this.html.charCodeAt(this.pos);return t===F.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,F.LINE_FEED):t===F.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,$w(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===F.LINE_FEED||t===F.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ww(t)?this._err(fe.controlCharacterInInputStream):Kw(t)&&this._err(fe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Et;(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"})(Et||(Et={}));function Xw(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 _X=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))),xX=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]]);function AX(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=xX.get(e))!==null&&t!==void 0?t:e}var Xn;(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"})(Xn||(Xn={}));const SX=32;var Rs;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Rs||(Rs={}));function iE(e){return e>=Xn.ZERO&&e<=Xn.NINE}function CX(e){return e>=Xn.UPPER_A&&e<=Xn.UPPER_F||e>=Xn.LOWER_A&&e<=Xn.LOWER_F}function DX(e){return e>=Xn.UPPER_A&&e<=Xn.UPPER_Z||e>=Xn.LOWER_A&&e<=Xn.LOWER_Z||iE(e)}function kX(e){return e===Xn.EQUALS||DX(e)}var Wn;(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"})(Wn||(Wn={}));var ji;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ji||(ji={}));class RX{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Wn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ji.Strict}startEntity(t){this.decodeMode=t,this.state=Wn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Wn.EntityStart:return t.charCodeAt(n)===Xn.NUM?(this.state=Wn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Wn.NamedEntity,this.stateNamedEntity(t,n));case Wn.NumericStart:return this.stateNumericStart(t,n);case Wn.NumericDecimal:return this.stateNumericDecimal(t,n);case Wn.NumericHex:return this.stateNumericHex(t,n);case Wn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|SX)===Xn.LOWER_X?(this.state=Wn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Wn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const s=r-n;this.result=this.result*Math.pow(a,s)+Number.parseInt(t.substr(n,s),a),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(iE(a)||CX(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(iE(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,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===Xn.SEMI)this.consumed+=1;else if(this.decodeMode===ji.Strict)return 0;return this.emitCodePoint(AX(this.result),this.consumed),this.errors&&(t!==Xn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],s=(a&Rs.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=wX(r,a,this.treeIndex+Math.max(1,s),l),this.treeIndex<0)return this.result===0||this.decodeMode===ji.Attribute&&(s===0||kX(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],s=(a&Rs.VALUE_LENGTH)>>14,s!==0){if(l===Xn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==ji.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Rs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Rs.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Wn.NamedEntity:return this.result!==0&&(this.decodeMode!==ji.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Wn.NumericDecimal:return this.emitNumericEntity(0,2);case Wn.NumericHex:return this.emitNumericEntity(0,3);case Wn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Wn.EntityStart:return 0}}}function wX(e,t,n,r){const a=(t&Rs.BRANCH_LENGTH)>>7,s=t&Rs.JUMP_TABLE;if(a===0)return s!==0&&r===s?n:-1;if(s){const d=r-s;return d<0||d>=a?-1:e[n+d]-1}let l=n,c=l+a-1;for(;l<=c;){const d=l+c>>>1,f=e[d];if(f<r)l=d+1;else if(f>r)c=d-1;else return e[d+a]}return-1}var xe;(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/"})(xe||(xe={}));var So;(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"})(So||(So={}));var xa;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(xa||(xa={}));var J;(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"})(J||(J={}));var _;(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"})(_||(_={}));const IX=new Map([[J.A,_.A],[J.ADDRESS,_.ADDRESS],[J.ANNOTATION_XML,_.ANNOTATION_XML],[J.APPLET,_.APPLET],[J.AREA,_.AREA],[J.ARTICLE,_.ARTICLE],[J.ASIDE,_.ASIDE],[J.B,_.B],[J.BASE,_.BASE],[J.BASEFONT,_.BASEFONT],[J.BGSOUND,_.BGSOUND],[J.BIG,_.BIG],[J.BLOCKQUOTE,_.BLOCKQUOTE],[J.BODY,_.BODY],[J.BR,_.BR],[J.BUTTON,_.BUTTON],[J.CAPTION,_.CAPTION],[J.CENTER,_.CENTER],[J.CODE,_.CODE],[J.COL,_.COL],[J.COLGROUP,_.COLGROUP],[J.DD,_.DD],[J.DESC,_.DESC],[J.DETAILS,_.DETAILS],[J.DIALOG,_.DIALOG],[J.DIR,_.DIR],[J.DIV,_.DIV],[J.DL,_.DL],[J.DT,_.DT],[J.EM,_.EM],[J.EMBED,_.EMBED],[J.FIELDSET,_.FIELDSET],[J.FIGCAPTION,_.FIGCAPTION],[J.FIGURE,_.FIGURE],[J.FONT,_.FONT],[J.FOOTER,_.FOOTER],[J.FOREIGN_OBJECT,_.FOREIGN_OBJECT],[J.FORM,_.FORM],[J.FRAME,_.FRAME],[J.FRAMESET,_.FRAMESET],[J.H1,_.H1],[J.H2,_.H2],[J.H3,_.H3],[J.H4,_.H4],[J.H5,_.H5],[J.H6,_.H6],[J.HEAD,_.HEAD],[J.HEADER,_.HEADER],[J.HGROUP,_.HGROUP],[J.HR,_.HR],[J.HTML,_.HTML],[J.I,_.I],[J.IMG,_.IMG],[J.IMAGE,_.IMAGE],[J.INPUT,_.INPUT],[J.IFRAME,_.IFRAME],[J.KEYGEN,_.KEYGEN],[J.LABEL,_.LABEL],[J.LI,_.LI],[J.LINK,_.LINK],[J.LISTING,_.LISTING],[J.MAIN,_.MAIN],[J.MALIGNMARK,_.MALIGNMARK],[J.MARQUEE,_.MARQUEE],[J.MATH,_.MATH],[J.MENU,_.MENU],[J.META,_.META],[J.MGLYPH,_.MGLYPH],[J.MI,_.MI],[J.MO,_.MO],[J.MN,_.MN],[J.MS,_.MS],[J.MTEXT,_.MTEXT],[J.NAV,_.NAV],[J.NOBR,_.NOBR],[J.NOFRAMES,_.NOFRAMES],[J.NOEMBED,_.NOEMBED],[J.NOSCRIPT,_.NOSCRIPT],[J.OBJECT,_.OBJECT],[J.OL,_.OL],[J.OPTGROUP,_.OPTGROUP],[J.OPTION,_.OPTION],[J.P,_.P],[J.PARAM,_.PARAM],[J.PLAINTEXT,_.PLAINTEXT],[J.PRE,_.PRE],[J.RB,_.RB],[J.RP,_.RP],[J.RT,_.RT],[J.RTC,_.RTC],[J.RUBY,_.RUBY],[J.S,_.S],[J.SCRIPT,_.SCRIPT],[J.SEARCH,_.SEARCH],[J.SECTION,_.SECTION],[J.SELECT,_.SELECT],[J.SOURCE,_.SOURCE],[J.SMALL,_.SMALL],[J.SPAN,_.SPAN],[J.STRIKE,_.STRIKE],[J.STRONG,_.STRONG],[J.STYLE,_.STYLE],[J.SUB,_.SUB],[J.SUMMARY,_.SUMMARY],[J.SUP,_.SUP],[J.TABLE,_.TABLE],[J.TBODY,_.TBODY],[J.TEMPLATE,_.TEMPLATE],[J.TEXTAREA,_.TEXTAREA],[J.TFOOT,_.TFOOT],[J.TD,_.TD],[J.TH,_.TH],[J.THEAD,_.THEAD],[J.TITLE,_.TITLE],[J.TR,_.TR],[J.TRACK,_.TRACK],[J.TT,_.TT],[J.U,_.U],[J.UL,_.UL],[J.SVG,_.SVG],[J.VAR,_.VAR],[J.WBR,_.WBR],[J.XMP,_.XMP]]);function Ec(e){var t;return(t=IX.get(e))!==null&&t!==void 0?t:_.UNKNOWN}const Se=_,NX={[xe.HTML]:new Set([Se.ADDRESS,Se.APPLET,Se.AREA,Se.ARTICLE,Se.ASIDE,Se.BASE,Se.BASEFONT,Se.BGSOUND,Se.BLOCKQUOTE,Se.BODY,Se.BR,Se.BUTTON,Se.CAPTION,Se.CENTER,Se.COL,Se.COLGROUP,Se.DD,Se.DETAILS,Se.DIR,Se.DIV,Se.DL,Se.DT,Se.EMBED,Se.FIELDSET,Se.FIGCAPTION,Se.FIGURE,Se.FOOTER,Se.FORM,Se.FRAME,Se.FRAMESET,Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6,Se.HEAD,Se.HEADER,Se.HGROUP,Se.HR,Se.HTML,Se.IFRAME,Se.IMG,Se.INPUT,Se.LI,Se.LINK,Se.LISTING,Se.MAIN,Se.MARQUEE,Se.MENU,Se.META,Se.NAV,Se.NOEMBED,Se.NOFRAMES,Se.NOSCRIPT,Se.OBJECT,Se.OL,Se.P,Se.PARAM,Se.PLAINTEXT,Se.PRE,Se.SCRIPT,Se.SECTION,Se.SELECT,Se.SOURCE,Se.STYLE,Se.SUMMARY,Se.TABLE,Se.TBODY,Se.TD,Se.TEMPLATE,Se.TEXTAREA,Se.TFOOT,Se.TH,Se.THEAD,Se.TITLE,Se.TR,Se.TRACK,Se.UL,Se.WBR,Se.XMP]),[xe.MATHML]:new Set([Se.MI,Se.MO,Se.MN,Se.MS,Se.MTEXT,Se.ANNOTATION_XML]),[xe.SVG]:new Set([Se.TITLE,Se.FOREIGN_OBJECT,Se.DESC]),[xe.XLINK]:new Set,[xe.XML]:new Set,[xe.XMLNS]:new Set},sE=new Set([Se.H1,Se.H2,Se.H3,Se.H4,Se.H5,Se.H6]);J.STYLE,J.SCRIPT,J.XMP,J.IFRAME,J.NOEMBED,J.NOFRAMES,J.PLAINTEXT;var B;(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"})(B||(B={}));const wn={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function OX(e){return e>=F.DIGIT_0&&e<=F.DIGIT_9}function Hu(e){return e>=F.LATIN_CAPITAL_A&&e<=F.LATIN_CAPITAL_Z}function LX(e){return e>=F.LATIN_SMALL_A&&e<=F.LATIN_SMALL_Z}function xs(e){return LX(e)||Hu(e)}function l2(e){return xs(e)||OX(e)}function Oh(e){return e+32}function Zw(e){return e===F.SPACE||e===F.LINE_FEED||e===F.TABULATION||e===F.FORM_FEED}function c2(e){return Zw(e)||e===F.SOLIDUS||e===F.GREATER_THAN_SIGN}function MX(e){return e===F.NULL?fe.nullCharacterReference:e>1114111?fe.characterReferenceOutsideUnicodeRange:$w(e)?fe.surrogateCharacterReference:Kw(e)?fe.noncharacterCharacterReference:Ww(e)||e===F.CARRIAGE_RETURN?fe.controlCharacterReference:null}class PX{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=B.DATA,this.returnState=B.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new TX(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new RX(_X,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(fe.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(fe.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=MX(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.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:Et.START_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Et.END_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Et.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Et.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(Xw(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(fe.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=Ec(t.tagName),t.type===Et.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(fe.endTagWithAttributes),t.selfClosing&&this._err(fe.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 Et.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Et.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Et.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:Et.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=Zw(t)?Et.WHITESPACE_CHARACTER:t===F.NULL?Et.NULL_CHARACTER:Et.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Et.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ji.Attribute:ji.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===B.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case B.DATA:{this._stateData(t);break}case B.RCDATA:{this._stateRcdata(t);break}case B.RAWTEXT:{this._stateRawtext(t);break}case B.SCRIPT_DATA:{this._stateScriptData(t);break}case B.PLAINTEXT:{this._statePlaintext(t);break}case B.TAG_OPEN:{this._stateTagOpen(t);break}case B.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case B.TAG_NAME:{this._stateTagName(t);break}case B.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case B.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case B.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case B.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case B.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case B.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case B.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case B.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case B.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case B.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case B.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case B.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case B.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case B.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case B.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case B.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case B.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case B.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case B.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case B.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case B.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case B.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case B.BOGUS_COMMENT:{this._stateBogusComment(t);break}case B.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case B.COMMENT_START:{this._stateCommentStart(t);break}case B.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case B.COMMENT:{this._stateComment(t);break}case B.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case B.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case B.COMMENT_END:{this._stateCommentEnd(t);break}case B.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case B.DOCTYPE:{this._stateDoctype(t);break}case B.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case B.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case B.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case B.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case B.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case B.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case B.CDATA_SECTION:{this._stateCdataSection(t);break}case B.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case B.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case B.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case B.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case F.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case F.AMPERSAND:{this._startCharacterReference();break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this._emitCodePoint(t);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case F.AMPERSAND:{this._startCharacterReference();break}case F.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case F.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case F.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case F.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(xs(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case F.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case F.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case F.QUESTION_MARK:{this._err(fe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case F.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(xs(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case F.GREATER_THAN_SIGN:{this._err(fe.missingEndTagName),this.state=B.DATA;break}case F.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case F.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case F.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case F.NULL:{this._err(fe.unexpectedNullCharacter),n.tagName+=dn;break}case F.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Hu(t)?Oh(t):t)}}_stateRcdataLessThanSign(t){t===F.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){xs(t)?(this.state=B.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=B.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 F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case F.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case F.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=B.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===F.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){xs(t)?(this.state=B.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case F.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case F.EXCLAMATION_MARK:{this.state=B.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=B.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){xs(t)?(this.state=B.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===F.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===F.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case F.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case F.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(dn);break}case F.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case F.HYPHEN_MINUS:{this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case F.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(dn);break}case F.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===F.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:xs(t)?(this._emitChars("<"),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){xs(t)?(this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&c2(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ir.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case F.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(dn);break}case F.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case F.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(dn);break}case F.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case F.HYPHEN_MINUS:{this._emitChars("-");break}case F.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case F.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(dn);break}case F.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===F.SOLIDUS?(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&c2(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ir.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.SOLIDUS:case F.GREATER_THAN_SIGN:case F.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case F.EQUALS_SIGN:{this._err(fe.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=B.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:case F.SOLIDUS:case F.GREATER_THAN_SIGN:case F.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case F.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case F.QUOTATION_MARK:case F.APOSTROPHE:case F.LESS_THAN_SIGN:{this._err(fe.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.name+=dn;break}default:this.currentAttr.name+=String.fromCodePoint(Hu(t)?Oh(t):t)}}_stateAfterAttributeName(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case F.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case F.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case F.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case F.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(fe.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case F.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case F.AMPERSAND:{this._startCharacterReference();break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case F.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case F.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case F.AMPERSAND:{this._startCharacterReference();break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case F.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case F.AMPERSAND:{this._startCharacterReference();break}case F.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case F.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=dn;break}case F.QUOTATION_MARK:case F.APOSTROPHE:case F.LESS_THAN_SIGN:case F.EQUALS_SIGN:case F.GRAVE_ACCENT:{this._err(fe.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case F.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case F.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case F.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case F.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case F.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case F.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case F.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case F.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case F.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=dn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ir.DASH_DASH,!0)?(this._createCommentToken(Ir.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(Ir.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ir.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(Ir.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(fe.cdataInHtmlContent),this._createCommentToken(Ir.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(fe.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case F.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case F.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=B.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case F.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case F.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case F.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case F.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case F.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=dn;break}case F.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case F.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case F.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===F.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===F.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==F.GREATER_THAN_SIGN&&t!==F.EOF&&this._err(fe.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case F.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case F.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case F.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case F.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case F.HYPHEN_MINUS:{n.data+="-";break}case F.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case F.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case F.GREATER_THAN_SIGN:{this._err(fe.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case F.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case F.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case F.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Hu(t))this._createDoctypeToken(String.fromCharCode(Oh(t))),this.state=B.DOCTYPE_NAME;else switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.NULL:{this._err(fe.unexpectedNullCharacter),this._createDoctypeToken(dn),this.state=B.DOCTYPE_NAME;break}case F.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case F.EOF:{this._err(fe.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=B.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case F.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case F.NULL:{this._err(fe.unexpectedNullCharacter),n.name+=dn;break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Hu(t)?Oh(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ir.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ir.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(fe.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case F.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case F.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=dn;break}case F.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case F.EOF:{this._err(fe.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 F.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=dn;break}case F.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case F.EOF:{this._err(fe.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 F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case F.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case F.QUOTATION_MARK:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case F.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case F.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case F.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case F.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case F.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=dn;break}case F.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case F.EOF:{this._err(fe.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 F.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case F.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=dn;break}case F.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case F.EOF:{this._err(fe.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 F.SPACE:case F.LINE_FEED:case F.TABULATION:case F.FORM_FEED:break;case F.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case F.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case F.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case F.NULL:{this._err(fe.unexpectedNullCharacter);break}case F.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case F.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case F.EOF:{this._err(fe.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===F.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case F.GREATER_THAN_SIGN:{this.state=B.DATA;break}case F.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=B.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(F.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&l2(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){l2(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===F.SEMICOLON&&this._err(fe.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Jw=new Set([_.DD,_.DT,_.LI,_.OPTGROUP,_.OPTION,_.P,_.RB,_.RP,_.RT,_.RTC]),u2=new Set([...Jw,_.CAPTION,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]),Hp=new Set([_.APPLET,_.CAPTION,_.HTML,_.MARQUEE,_.OBJECT,_.TABLE,_.TD,_.TEMPLATE,_.TH]),FX=new Set([...Hp,_.OL,_.UL]),jX=new Set([...Hp,_.BUTTON]),d2=new Set([_.ANNOTATION_XML,_.MI,_.MN,_.MO,_.MS,_.MTEXT]),f2=new Set([_.DESC,_.FOREIGN_OBJECT,_.TITLE]),BX=new Set([_.TR,_.TEMPLATE,_.HTML]),UX=new Set([_.TBODY,_.TFOOT,_.THEAD,_.TEMPLATE,_.HTML]),HX=new Set([_.TABLE,_.TEMPLATE,_.HTML]),zX=new Set([_.TD,_.TH]);class GX{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=_.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===_.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===xe.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 a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===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])!==xe.HTML);this.shortenToLength(Math.max(n,0))}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(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(sE,xe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(zX,xe.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(HX,xe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(UX,xe.HTML)}clearBackToTableRowContext(){this.clearBackTo(BX,xe.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]===_.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]===_.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case xe.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case xe.SVG:{if(f2.has(a))return!1;break}case xe.MATHML:{if(d2.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Hp)}hasInListItemScope(t){return this.hasInDynamicScope(t,FX)}hasInButtonScope(t){return this.hasInDynamicScope(t,jX)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case xe.HTML:{if(sE.has(n))return!0;if(Hp.has(n))return!1;break}case xe.SVG:{if(f2.has(n))return!1;break}case xe.MATHML:{if(d2.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===xe.HTML)switch(this.tagIDs[t]){case _.TBODY:case _.THEAD:case _.TFOOT:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===xe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.OPTION:case _.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Jw.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&u2.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&u2.has(this.currentTagId);)this.pop()}}const $y=3;var ri;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ri||(ri={}));const h2={type:ri.Marker};class VX{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,s=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===ri.Marker)break;const{element:f}=d;if(this.treeAdapter.getTagName(f)===s&&this.treeAdapter.getNamespaceURI(f)===l){const p=this.treeAdapter.getAttrList(f);p.length===a&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<$y)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<$y)return;const a=new Map(n.map(l=>[l.name,l.value]));let s=0;for(let l=0;l<r.length;l++){const c=r[l];c.attrs.every(d=>a.get(d.name)===d.value)&&(s+=1,s>=$y&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(h2)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ri.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ri.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(h2);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ri.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ri.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ri.Element&&n.element===t)}}const As={createDocument(){return{nodeName:"#document",mode:xa.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 a=e.childNodes.find(s=>s.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};As.appendChild(e,s)}},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(As.isTextNode(n)){n.value+=t;return}}As.appendChild(e,As.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&As.isTextNode(r)?r.value+=t:As.insertBefore(e,As.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}}},eI="html",qX="about:legacy-compat",YX="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",tI=["+//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//"],QX=[...tI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],$X=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),nI=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],WX=[...nI,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function p2(e,t){return t.some(n=>e.startsWith(n))}function KX(e){return e.name===eI&&e.publicId===null&&(e.systemId===null||e.systemId===qX)}function XX(e){if(e.name!==eI)return xa.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===YX)return xa.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),$X.has(n))return xa.QUIRKS;let r=t===null?QX:tI;if(p2(n,r))return xa.QUIRKS;if(r=t===null?nI:WX,p2(n,r))return xa.LIMITED_QUIRKS}return xa.NO_QUIRKS}const m2={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ZX="definitionurl",JX="definitionURL",eZ=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])),tZ=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:xe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:xe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:xe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:xe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:xe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:xe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:xe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:xe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:xe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:xe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:xe.XMLNS}]]),nZ=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])),rZ=new Set([_.B,_.BIG,_.BLOCKQUOTE,_.BODY,_.BR,_.CENTER,_.CODE,_.DD,_.DIV,_.DL,_.DT,_.EM,_.EMBED,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HR,_.I,_.IMG,_.LI,_.LISTING,_.MENU,_.META,_.NOBR,_.OL,_.P,_.PRE,_.RUBY,_.S,_.SMALL,_.SPAN,_.STRONG,_.STRIKE,_.SUB,_.SUP,_.TABLE,_.TT,_.U,_.UL,_.VAR]);function aZ(e){const t=e.tagID;return t===_.FONT&&e.attrs.some(({name:n})=>n===So.COLOR||n===So.SIZE||n===So.FACE)||rZ.has(t)}function rI(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===ZX){e.attrs[t].name=JX;break}}function aI(e){for(let t=0;t<e.attrs.length;t++){const n=eZ.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Wb(e){for(let t=0;t<e.attrs.length;t++){const n=tZ.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 iZ(e){const t=nZ.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ec(e.tagName))}function sZ(e,t){return t===xe.MATHML&&(e===_.MI||e===_.MO||e===_.MN||e===_.MS||e===_.MTEXT)}function oZ(e,t,n){if(t===xe.MATHML&&e===_.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===So.ENCODING){const a=n[r].value.toLowerCase();return a===m2.TEXT_HTML||a===m2.APPLICATION_XML}}return t===xe.SVG&&(e===_.FOREIGN_OBJECT||e===_.DESC||e===_.TITLE)}function lZ(e,t,n,r){return(!r||r===xe.HTML)&&oZ(e,t,n)||(!r||r===xe.MATHML)&&sZ(e,t)}const cZ="hidden",uZ=8,dZ=3;var U;(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"})(U||(U={}));const fZ={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},iI=new Set([_.TABLE,_.TBODY,_.TFOOT,_.THEAD,_.TR]),g2={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:As,onParseError:null};class y2{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.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={...g2,...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 PX(this.options,this),this.activeFormattingElements=new VX(this.treeAdapter),this.fragmentContextID=r?Ec(this.treeAdapter.getTagName(r)):_.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new GX(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={...g2,...n};t??(t=r.treeAdapter.createElement(J.TEMPLATE,xe.HTML,[]));const a=r.treeAdapter.createElement("documentmock",xe.HTML,[]),s=new this(r,a,t);return s.fragmentContextID===_.TEMPLATE&&s.tmplInsertionModeStack.unshift(U.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const s=(a=t.location)!==null&&a!==void 0?a:fZ,l={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(l)}onItemPush(t,n,r){var a,s;(s=(a=this.treeAdapter).onItemPush)===null||s===void 0||s.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let s,l;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,l=this.fragmentContextID):{current:s,currentTagId:l}=this.openElements,this._setContextModes(s,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===xe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,xe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=wn.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)===J.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==xe.HTML))switch(this.fragmentContextID){case _.TITLE:case _.TEXTAREA:{this.tokenizer.state=wn.RCDATA;break}case _.STYLE:case _.XMP:case _.IFRAME:case _.NOEMBED:case _.NOFRAMES:case _.NOSCRIPT:{this.tokenizer.state=wn.RAWTEXT;break}case _.SCRIPT:{this.tokenizer.state=wn.SCRIPT_DATA;break}case _.PLAINTEXT:{this.tokenizer.state=wn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));s&&this.treeAdapter.setNodeSourceCodeLocation(s,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??this.document,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,xe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,xe.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(J.HTML,xe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,_.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 a=this.treeAdapter.getChildNodes(n),s=r?a.lastIndexOf(r):a.length,l=a[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:d,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:d,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,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,a=this.treeAdapter.getTagName(t),s=n.type===Et.END_TAG&&a===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,s)}}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===_.SVG&&this.treeAdapter.getTagName(n)===J.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===xe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===_.MGLYPH||t.tagID===_.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,xe.HTML)}_processToken(t){switch(t.type){case Et.CHARACTER:{this.onCharacter(t);break}case Et.NULL_CHARACTER:{this.onNullCharacter(t);break}case Et.COMMENT:{this.onComment(t);break}case Et.DOCTYPE:{this.onDoctype(t);break}case Et.START_TAG:{this._processStartTag(t);break}case Et.END_TAG:{this.onEndTag(t);break}case Et.EOF:{this.onEof(t);break}case Et.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return lZ(t,a,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ri.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const s=this.activeFormattingElements.entries[a];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_.P),this.openElements.popUntilTagNamePopped(_.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case _.TR:{this.insertionMode=U.IN_ROW;return}case _.TBODY:case _.THEAD:case _.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case _.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case _.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case _.TABLE:{this.insertionMode=U.IN_TABLE;return}case _.BODY:{this.insertionMode=U.IN_BODY;return}case _.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case _.SELECT:{this._resetInsertionModeForSelect(t);return}case _.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case _.TD:case _.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case _.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===_.TEMPLATE)break;if(r===_.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return iI.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&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 _.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===xe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case _.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 NX[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zJ(this,t);return}switch(this.insertionMode){case U.INITIAL:{Iu(this,t);break}case U.BEFORE_HTML:{td(this,t);break}case U.BEFORE_HEAD:{nd(this,t);break}case U.IN_HEAD:{rd(this,t);break}case U.IN_HEAD_NO_SCRIPT:{ad(this,t);break}case U.AFTER_HEAD:{id(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{oI(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Wy(this,t);break}case U.IN_TABLE_TEXT:{hI(this,t);break}case U.IN_COLUMN_GROUP:{zp(this,t);break}case U.AFTER_BODY:{Gp(this,t);break}case U.AFTER_AFTER_BODY:{np(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HJ(this,t);return}switch(this.insertionMode){case U.INITIAL:{Iu(this,t);break}case U.BEFORE_HTML:{td(this,t);break}case U.BEFORE_HEAD:{nd(this,t);break}case U.IN_HEAD:{rd(this,t);break}case U.IN_HEAD_NO_SCRIPT:{ad(this,t);break}case U.AFTER_HEAD:{id(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Wy(this,t);break}case U.IN_COLUMN_GROUP:{zp(this,t);break}case U.AFTER_BODY:{Gp(this,t);break}case U.AFTER_AFTER_BODY:{np(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){oE(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{oE(this,t);break}case U.IN_TABLE_TEXT:{Nu(this,t);break}case U.AFTER_BODY:{bZ(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{vZ(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{TZ(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,fe.misplacedDoctype);break}case U.IN_TABLE_TEXT:{Nu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,fe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?GJ(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{Iu(this,t);break}case U.BEFORE_HTML:{_Z(this,t);break}case U.BEFORE_HEAD:{AZ(this,t);break}case U.IN_HEAD:{Ua(this,t);break}case U.IN_HEAD_NO_SCRIPT:{DZ(this,t);break}case U.AFTER_HEAD:{RZ(this,t);break}case U.IN_BODY:{Er(this,t);break}case U.IN_TABLE:{ac(this,t);break}case U.IN_TABLE_TEXT:{Nu(this,t);break}case U.IN_CAPTION:{SJ(this,t);break}case U.IN_COLUMN_GROUP:{Zb(this,t);break}case U.IN_TABLE_BODY:{Bm(this,t);break}case U.IN_ROW:{Um(this,t);break}case U.IN_CELL:{kJ(this,t);break}case U.IN_SELECT:{gI(this,t);break}case U.IN_SELECT_IN_TABLE:{wJ(this,t);break}case U.IN_TEMPLATE:{NJ(this,t);break}case U.AFTER_BODY:{LJ(this,t);break}case U.IN_FRAMESET:{MJ(this,t);break}case U.AFTER_FRAMESET:{FJ(this,t);break}case U.AFTER_AFTER_BODY:{BJ(this,t);break}case U.AFTER_AFTER_FRAMESET:{UJ(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?VJ(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{Iu(this,t);break}case U.BEFORE_HTML:{xZ(this,t);break}case U.BEFORE_HEAD:{SZ(this,t);break}case U.IN_HEAD:{CZ(this,t);break}case U.IN_HEAD_NO_SCRIPT:{kZ(this,t);break}case U.AFTER_HEAD:{wZ(this,t);break}case U.IN_BODY:{jm(this,t);break}case U.TEXT:{mJ(this,t);break}case U.IN_TABLE:{Od(this,t);break}case U.IN_TABLE_TEXT:{Nu(this,t);break}case U.IN_CAPTION:{CJ(this,t);break}case U.IN_COLUMN_GROUP:{DJ(this,t);break}case U.IN_TABLE_BODY:{lE(this,t);break}case U.IN_ROW:{mI(this,t);break}case U.IN_CELL:{RJ(this,t);break}case U.IN_SELECT:{yI(this,t);break}case U.IN_SELECT_IN_TABLE:{IJ(this,t);break}case U.IN_TEMPLATE:{OJ(this,t);break}case U.AFTER_BODY:{bI(this,t);break}case U.IN_FRAMESET:{PJ(this,t);break}case U.AFTER_FRAMESET:{jJ(this,t);break}case U.AFTER_AFTER_BODY:{np(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{Iu(this,t);break}case U.BEFORE_HTML:{td(this,t);break}case U.BEFORE_HEAD:{nd(this,t);break}case U.IN_HEAD:{rd(this,t);break}case U.IN_HEAD_NO_SCRIPT:{ad(this,t);break}case U.AFTER_HEAD:{id(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{dI(this,t);break}case U.TEXT:{gJ(this,t);break}case U.IN_TABLE_TEXT:{Nu(this,t);break}case U.IN_TEMPLATE:{EI(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Xb(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===F.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 U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{sI(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Wy(this,t);break}case U.IN_TABLE_TEXT:{fI(this,t);break}}}}function hZ(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):uI(e,t),n}function pZ(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function mZ(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let s=0,l=a;l!==n;s++,l=a){a=e.openElements.getCommonAncestor(l);const c=e.activeFormattingElements.getElementEntry(l),d=c&&s>=dZ;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(l)):(l=gZ(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function gZ(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 yZ(e,t,n){const r=e.treeAdapter.getTagName(t),a=Ec(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);a===_.TEMPLATE&&s===xe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function EZ(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,s=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,a.tagID)}function Kb(e,t){for(let n=0;n<uZ;n++){const r=hZ(e,t);if(!r)break;const a=pZ(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const s=mZ(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),l&&yZ(e,l,s),EZ(e,a,r)}}function oE(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function bZ(e,t){e._appendCommentNode(t,e.openElements.items[0])}function vZ(e,t){e._appendCommentNode(t,e.document)}function Xb(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],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(s);l&&!l.endTag&&e._setEndLocation(s,t)}}}}function TZ(e,t){e._setDocumentType(t);const n=t.forceQuirks?xa.QUIRKS:XX(t);KX(t)||e._err(t,fe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=U.BEFORE_HTML}function Iu(e,t){e._err(t,fe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,xa.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function _Z(e,t){t.tagID===_.HTML?(e._insertElement(t,xe.HTML),e.insertionMode=U.BEFORE_HEAD):td(e,t)}function xZ(e,t){const n=t.tagID;(n===_.HTML||n===_.HEAD||n===_.BODY||n===_.BR)&&td(e,t)}function td(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function AZ(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.HEAD:{e._insertElement(t,xe.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:nd(e,t)}}function SZ(e,t){const n=t.tagID;n===_.HEAD||n===_.BODY||n===_.HTML||n===_.BR?nd(e,t):e._err(t,fe.endTagWithoutMatchingOpenElement)}function nd(e,t){e._insertFakeElement(J.HEAD,_.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function Ua(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.TITLE:{e._switchToTextParsing(t,wn.RCDATA);break}case _.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,wn.RAWTEXT):(e._insertElement(t,xe.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case _.NOFRAMES:case _.STYLE:{e._switchToTextParsing(t,wn.RAWTEXT);break}case _.SCRIPT:{e._switchToTextParsing(t,wn.SCRIPT_DATA);break}case _.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case _.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:rd(e,t)}}function CZ(e,t){switch(t.tagID){case _.HEAD:{e.openElements.pop(),e.insertionMode=U.AFTER_HEAD;break}case _.BODY:case _.BR:case _.HTML:{rd(e,t);break}case _.TEMPLATE:{zo(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function zo(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==_.TEMPLATE&&e._err(t,fe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,fe.endTagWithoutMatchingOpenElement)}function rd(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function DZ(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.BASEFONT:case _.BGSOUND:case _.HEAD:case _.LINK:case _.META:case _.NOFRAMES:case _.STYLE:{Ua(e,t);break}case _.NOSCRIPT:{e._err(t,fe.nestedNoscriptInHead);break}default:ad(e,t)}}function kZ(e,t){switch(t.tagID){case _.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case _.BR:{ad(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function ad(e,t){const n=t.type===Et.EOF?fe.openElementsLeftAfterEof:fe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function RZ(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.BODY:{e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case _.FRAMESET:{e._insertElement(t,xe.HTML),e.insertionMode=U.IN_FRAMESET;break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{e._err(t,fe.abandonedHeadElementChild),e.openElements.push(e.headElement,_.HEAD),Ua(e,t),e.openElements.remove(e.headElement);break}case _.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:id(e,t)}}function wZ(e,t){switch(t.tagID){case _.BODY:case _.HTML:case _.BR:{id(e,t);break}case _.TEMPLATE:{zo(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function id(e,t){e._insertFakeElement(J.BODY,_.BODY),e.insertionMode=U.IN_BODY,Fm(e,t)}function Fm(e,t){switch(t.type){case Et.CHARACTER:{oI(e,t);break}case Et.WHITESPACE_CHARACTER:{sI(e,t);break}case Et.COMMENT:{oE(e,t);break}case Et.START_TAG:{Er(e,t);break}case Et.END_TAG:{jm(e,t);break}case Et.EOF:{dI(e,t);break}}}function sI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function oI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function IZ(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function NZ(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function OZ(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,xe.HTML),e.insertionMode=U.IN_FRAMESET)}function LZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function MZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&sE.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,xe.HTML)}function PZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function FZ(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),n||(e.formElement=e.openElements.current))}function jZ(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===_.LI&&a===_.LI||(n===_.DD||n===_.DT)&&(a===_.DD||a===_.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==_.ADDRESS&&a!==_.DIV&&a!==_.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML)}function BZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.tokenizer.state=wn.PLAINTEXT}function UZ(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1}function HZ(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);n&&(Kb(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function GZ(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(Kb(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,xe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function VZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function qZ(e,t){e.treeAdapter.getDocumentMode(e.document)!==xa.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function lI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function cI(e){const t=Xw(e,So.TYPE);return t!=null&&t.toLowerCase()===cZ}function YZ(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,xe.HTML),cI(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function QZ(e,t){e._appendElement(t,xe.HTML),t.ackSelfClosing=!0}function $Z(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,xe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function WZ(e,t){t.tagName=J.IMG,t.tagID=_.IMG,lI(e,t)}function KZ(e,t){e._insertElement(t,xe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=wn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function XZ(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,wn.RAWTEXT)}function ZZ(e,t){e.framesetOk=!1,e._switchToTextParsing(t,wn.RAWTEXT)}function E2(e,t){e._switchToTextParsing(t,wn.RAWTEXT)}function JZ(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function eJ(e,t){e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function tJ(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,xe.HTML)}function nJ(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,xe.HTML)}function rJ(e,t){e._reconstructActiveFormattingElements(),rI(t),Wb(t),t.selfClosing?e._appendElement(t,xe.MATHML):e._insertElement(t,xe.MATHML),t.ackSelfClosing=!0}function aJ(e,t){e._reconstructActiveFormattingElements(),aI(t),Wb(t),t.selfClosing?e._appendElement(t,xe.SVG):e._insertElement(t,xe.SVG),t.ackSelfClosing=!0}function b2(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,xe.HTML)}function Er(e,t){switch(t.tagID){case _.I:case _.S:case _.B:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.SMALL:case _.STRIKE:case _.STRONG:{zZ(e,t);break}case _.A:{HZ(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{MZ(e,t);break}case _.P:case _.DL:case _.OL:case _.UL:case _.DIV:case _.DIR:case _.NAV:case _.MAIN:case _.MENU:case _.ASIDE:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.DETAILS:case _.ADDRESS:case _.ARTICLE:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{LZ(e,t);break}case _.LI:case _.DD:case _.DT:{jZ(e,t);break}case _.BR:case _.IMG:case _.WBR:case _.AREA:case _.EMBED:case _.KEYGEN:{lI(e,t);break}case _.HR:{$Z(e,t);break}case _.RB:case _.RTC:{tJ(e,t);break}case _.RT:case _.RP:{nJ(e,t);break}case _.PRE:case _.LISTING:{PZ(e,t);break}case _.XMP:{XZ(e,t);break}case _.SVG:{aJ(e,t);break}case _.HTML:{IZ(e,t);break}case _.BASE:case _.LINK:case _.META:case _.STYLE:case _.TITLE:case _.SCRIPT:case _.BGSOUND:case _.BASEFONT:case _.TEMPLATE:{Ua(e,t);break}case _.BODY:{NZ(e,t);break}case _.FORM:{FZ(e,t);break}case _.NOBR:{GZ(e,t);break}case _.MATH:{rJ(e,t);break}case _.TABLE:{qZ(e,t);break}case _.INPUT:{YZ(e,t);break}case _.PARAM:case _.TRACK:case _.SOURCE:{QZ(e,t);break}case _.IMAGE:{WZ(e,t);break}case _.BUTTON:{UZ(e,t);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{VZ(e,t);break}case _.IFRAME:{ZZ(e,t);break}case _.SELECT:{JZ(e,t);break}case _.OPTION:case _.OPTGROUP:{eJ(e,t);break}case _.NOEMBED:case _.NOFRAMES:{E2(e,t);break}case _.FRAMESET:{OZ(e,t);break}case _.TEXTAREA:{KZ(e,t);break}case _.NOSCRIPT:{e.options.scriptingEnabled?E2(e,t):b2(e,t);break}case _.PLAINTEXT:{BZ(e,t);break}case _.COL:case _.TH:case _.TD:case _.TR:case _.HEAD:case _.FRAME:case _.TBODY:case _.TFOOT:case _.THEAD:case _.CAPTION:case _.COLGROUP:break;default:b2(e,t)}}function iJ(e,t){if(e.openElements.hasInScope(_.BODY)&&(e.insertionMode=U.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function sJ(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=U.AFTER_BODY,bI(e,t))}function oJ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function lJ(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):n&&e.openElements.remove(n))}function cJ(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(J.P,_.P),e._closePElement()}function uJ(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function dJ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function fJ(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function hJ(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function pJ(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR,_.BR),e.openElements.pop(),e.framesetOk=!1}function uI(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==_.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(s,l))break}}function jm(e,t){switch(t.tagID){case _.A:case _.B:case _.I:case _.S:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.NOBR:case _.SMALL:case _.STRIKE:case _.STRONG:{Kb(e,t);break}case _.P:{cJ(e);break}case _.DL:case _.UL:case _.OL:case _.DIR:case _.DIV:case _.NAV:case _.PRE:case _.MAIN:case _.MENU:case _.ASIDE:case _.BUTTON:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.ADDRESS:case _.ARTICLE:case _.DETAILS:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.LISTING:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{oJ(e,t);break}case _.LI:{uJ(e);break}case _.DD:case _.DT:{dJ(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{fJ(e);break}case _.BR:{pJ(e);break}case _.BODY:{iJ(e,t);break}case _.HTML:{sJ(e,t);break}case _.FORM:{lJ(e);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{hJ(e,t);break}case _.TEMPLATE:{zo(e,t);break}default:uI(e,t)}}function dI(e,t){e.tmplInsertionModeStack.length>0?EI(e,t):Xb(e,t)}function mJ(e,t){var n;t.tagID===_.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function gJ(e,t){e._err(t,fe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Wy(e,t){if(e.openElements.currentTagId!==void 0&&iI.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case Et.CHARACTER:{hI(e,t);break}case Et.WHITESPACE_CHARACTER:{fI(e,t);break}}else nf(e,t)}function yJ(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,xe.HTML),e.insertionMode=U.IN_CAPTION}function EJ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function bJ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP,_.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Zb(e,t)}function vJ(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,xe.HTML),e.insertionMode=U.IN_TABLE_BODY}function TJ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY,_.TBODY),e.insertionMode=U.IN_TABLE_BODY,Bm(e,t)}function _J(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function xJ(e,t){cI(t)?e._appendElement(t,xe.HTML):nf(e,t),t.ackSelfClosing=!0}function AJ(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,xe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ac(e,t){switch(t.tagID){case _.TD:case _.TH:case _.TR:{TJ(e,t);break}case _.STYLE:case _.SCRIPT:case _.TEMPLATE:{Ua(e,t);break}case _.COL:{bJ(e,t);break}case _.FORM:{AJ(e,t);break}case _.TABLE:{_J(e,t);break}case _.TBODY:case _.TFOOT:case _.THEAD:{vJ(e,t);break}case _.INPUT:{xJ(e,t);break}case _.CAPTION:{yJ(e,t);break}case _.COLGROUP:{EJ(e,t);break}default:nf(e,t)}}function Od(e,t){switch(t.tagID){case _.TABLE:{e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode());break}case _.TEMPLATE:{zo(e,t);break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:nf(e,t)}}function nf(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Fm(e,t),e.fosterParentingEnabled=n}function fI(e,t){e.pendingCharacterTokens.push(t)}function hI(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Nu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)nf(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const pI=new Set([_.CAPTION,_.COL,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]);function SJ(e,t){const n=t.tagID;pI.has(n)?e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,ac(e,t)):Er(e,t)}function CJ(e,t){const n=t.tagID;switch(n){case _.CAPTION:case _.TABLE:{e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,n===_.TABLE&&Od(e,t));break}case _.BODY:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:jm(e,t)}}function Zb(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.COL:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.TEMPLATE:{Ua(e,t);break}default:zp(e,t)}}function DJ(e,t){switch(t.tagID){case _.COLGROUP:{e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case _.TEMPLATE:{zo(e,t);break}case _.COL:break;default:zp(e,t)}}function zp(e,t){e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function Bm(e,t){switch(t.tagID){case _.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,xe.HTML),e.insertionMode=U.IN_ROW;break}case _.TH:case _.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(J.TR,_.TR),e.insertionMode=U.IN_ROW,Um(e,t);break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,ac(e,t));break}default:ac(e,t)}}function lE(e,t){const n=t.tagID;switch(t.tagID){case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case _.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,Od(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:case _.TR:break;default:Od(e,t)}}function Um(e,t){switch(t.tagID){case _.TH:case _.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,xe.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Bm(e,t));break}default:ac(e,t)}}function mI(e,t){switch(t.tagID){case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case _.TABLE:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,lE(e,t));break}case _.TBODY:case _.TFOOT:case _.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,lE(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:break;default:Od(e,t)}}function kJ(e,t){const n=t.tagID;pI.has(n)?(e.openElements.hasInTableScope(_.TD)||e.openElements.hasInTableScope(_.TH))&&(e._closeTableCell(),Um(e,t)):Er(e,t)}function RJ(e,t){const n=t.tagID;switch(n){case _.TD:case _.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case _.TABLE:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),mI(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:break;default:jm(e,t)}}function gI(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case _.OPTGROUP:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._insertElement(t,xe.HTML);break}case _.HR:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.INPUT:case _.KEYGEN:case _.TEXTAREA:case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),t.tagID!==_.SELECT&&e._processStartTag(t));break}case _.SCRIPT:case _.TEMPLATE:{Ua(e,t);break}}}function yI(e,t){switch(t.tagID){case _.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===_.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop();break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop();break}case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode());break}case _.TEMPLATE:{zo(e,t);break}}}function wJ(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e._processStartTag(t)):gI(e,t)}function IJ(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e.onEndTag(t)):yI(e,t)}function NJ(e,t){switch(t.tagID){case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{Ua(e,t);break}case _.CAPTION:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,ac(e,t);break}case _.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,Zb(e,t);break}case _.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,Bm(e,t);break}case _.TD:case _.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Um(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,Er(e,t)}}function OJ(e,t){t.tagID===_.TEMPLATE&&zo(e,t)}function EI(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Xb(e,t)}function LJ(e,t){t.tagID===_.HTML?Er(e,t):Gp(e,t)}function bI(e,t){var n;if(t.tagID===_.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_.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 Gp(e,t)}function Gp(e,t){e.insertionMode=U.IN_BODY,Fm(e,t)}function MJ(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.FRAMESET:{e._insertElement(t,xe.HTML);break}case _.FRAME:{e._appendElement(t,xe.HTML),t.ackSelfClosing=!0;break}case _.NOFRAMES:{Ua(e,t);break}}}function PJ(e,t){t.tagID===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==_.FRAMESET&&(e.insertionMode=U.AFTER_FRAMESET))}function FJ(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.NOFRAMES:{Ua(e,t);break}}}function jJ(e,t){t.tagID===_.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function BJ(e,t){t.tagID===_.HTML?Er(e,t):np(e,t)}function np(e,t){e.insertionMode=U.IN_BODY,Fm(e,t)}function UJ(e,t){switch(t.tagID){case _.HTML:{Er(e,t);break}case _.NOFRAMES:{Ua(e,t);break}}}function HJ(e,t){t.chars=dn,e._insertCharacters(t)}function zJ(e,t){e._insertCharacters(t),e.framesetOk=!1}function vI(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==xe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function GJ(e,t){if(aZ(t))vI(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===xe.MATHML?rI(t):r===xe.SVG&&(iZ(t),aI(t)),Wb(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function VJ(e,t){if(t.tagID===_.P||t.tagID===_.BR){vI(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)===xe.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}J.AREA,J.BASE,J.BASEFONT,J.BGSOUND,J.BR,J.COL,J.EMBED,J.FRAME,J.HR,J.IMG,J.INPUT,J.KEYGEN,J.LINK,J.META,J.PARAM,J.SOURCE,J.TRACK,J.WBR;const qJ=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,YJ=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),v2={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function TI(e,t){const n=nee(e),r=xm("type",{handlers:{root:QJ,element:$J,text:WJ,comment:xI,doctype:KJ,raw:ZJ},unknown:JJ}),a={parser:n?new y2(v2):y2.getFragmentParser(void 0,v2),handle(c){r(c,a)},stitches:!1,options:t||{}};r(e,a),bc(a,ui());const s=n?a.parser.document:a.parser.getFragment(),l=$K(s,{file:a.options.file});return a.stitches&&Fr(l,"comment",function(c,d,f){const p=c;if(p.value.stitch&&f&&d!==void 0){const m=f.children;return m[d]=p.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function _I(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function QJ(e,t){_I(e.children,t)}function $J(e,t){eee(e,t),_I(e.children,t),tee(e,t)}function WJ(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Et.CHARACTER,chars:e.value,location:rf(e)};bc(t,ui(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function KJ(e,t){const n={type:Et.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:rf(e)};bc(t,ui(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function XJ(e,t){t.stitches=!0;const n=ree(e);if("children"in e&&"children"in n){const r=TI({type:"root",children:e.children},t.options);n.children=r.children}xI({type:"comment",value:{stitch:n}},t)}function xI(e,t){const n=e.value,r={type:Et.COMMENT,data:n,location:rf(e)};bc(t,ui(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ZJ(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,AI(t,ui(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(qJ,"&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 JJ(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))XJ(n,t);else{let r="";throw YJ.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 bc(e,t){AI(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=wn.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 AI(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 eee(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===wn.PLAINTEXT)return;bc(t,ui(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:bo.html;a===bo.html&&n==="svg"&&(a=bo.svg);const s=cX({...e,children:[]},{space:a===bo.svg?"svg":"html"}),l={type:Et.START_TAG,tagName:n,tagID:Ec(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:rf(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function tee(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&S3.includes(n)||t.parser.tokenizer.state===wn.PLAINTEXT)return;bc(t,Im(e));const r={type:Et.END_TAG,tagName:n,tagID:Ec(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:rf(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===wn.RCDATA||t.parser.tokenizer.state===wn.RAWTEXT||t.parser.tokenizer.state===wn.SCRIPT_DATA)&&(t.parser.tokenizer.state=wn.DATA)}function nee(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function rf(e){const t=ui(e)||{line:void 0,column:void 0,offset:void 0},n=Im(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 ree(e){return"children"in e?Lo({...e,children:[]}):Lo(e)}function aee(e){return function(t,n){return TI(t,{...e,file:n})}}const iee=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,see=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,oee=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{Fr(n,"blockquote",(r,a,s)=>{let l="",c="",d=!0,f=r.children.map(p=>{if(d&&p.type==="paragraph"){const m=p.children[0],E=m.type==="text"?m.value:"",y=e?see:iee,T=E.match(y);if(T&&(d=!1,l=T[1].toLocaleLowerCase(),c=e&&T[2]||l.toLocaleUpperCase(),E.includes(`
210
+ `)&&(p.children[0]={type:"text",value:E.replace(y,"").replace(/^\n+/,"")}),!E.includes(`
211
+ `))){const A=[];p.children.forEach((C,x)=>{x!=0&&(x==1&&C.type==="break"||A.push(C))}),p.children=[...A]}}return p});l&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${l}`,dir:"auto"}},f.unshift({type:"paragraph",children:[lee(l),{type:"text",value:c.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...f]})};function lee(e){let t=cee[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 cee={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 uee(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 a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function SI(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?SI(t.parentElement):null}function dee(e){var t=n=>{var r=SI(n.target);r&&(r.classList.add("active"),uee(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};N.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}var fee=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],hee=e=>e;const pee=Ne.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:s,disableCopy:l=!1,skipHtml:c=!0,onScroll:d,onMouseOver:f,pluginsFilter:p,wrapperElement:m={},warpperElement:E={},urlTransform:y}=e,T=hr(e,fee),A=Ne.useRef(null);N.useImperativeHandle(t,()=>Ae({},e,{mdp:A}),[A,e]);var C=(n||"")+" "+(r||"");dee(A);var x=[...T.rehypePlugins||[]],D={allowElement:(M,w,q)=>T.allowElement?T.allowElement(M,w,q):/^[A-Za-z0-9]+$/.test(M.tagName)};c||x.push(aee);var S=[oee,...T.remarkPlugins||[],FK],L=Ae({},E,m);return b.jsx("div",Ae({ref:A,onScroll:d,onMouseOver:f},L,{className:C,style:s,children:b.jsx(D$,Ae({},D,T,{skipHtml:!c,urlTransform:y||hee,rehypePlugins:p?p("rehype",x):x,remarkPlugins:p?p("remark",S):S,children:a||""}))}))});var rp={},cE={};function mee(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,s=e.charAt(r),l=n[s]||(n[s]={chars:{}});a&&(l.self=e),n=l.chars}}function T2(e){if(e.length===0)return rp;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];mee(a,t)}return t}function gee(e){if(e.length===0)return cE;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var Lh={},_2={type:"String",optional:!0};function yee(e){var t={type:"NoArgument",optional:!1};function n(l){if(t.type&&t.type!==l&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(l,'".'));t.type=l}for(var r=0,a=e;r<a.length;r++){var s=a[r];s==="NoArgument"&&(t.optional=!0),s==="Formula"&&n("Formula"),s==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),s==="String"&&n("String"),s==="Selector"&&n("Selector")}return t}function Eee(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],s=e[a];if(s)for(var l=0,c=s;l<c.length;l++){var d=c[l];(t[d]||(t[d]=[])).push(a)}}return t}function x2(e){for(var t=Eee(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var s=a[r],l=t[s];l&&(n[s]=yee(l))}return n}var ic=function(){return ic=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ic.apply(this,arguments)},bee={},uE={wildcard:!0};function vee(e){return e?typeof e=="boolean"?uE:e:bee}function Tee(e,t){return function(n,r){return t(e(n),e(r))}}function _ee(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 A2(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function Ol(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=ic({},t),a=0,s=Object.entries(n);a<s.length;a++){var l=s[a],c=l[0],d=l[1];if(c!=="latest"){var f=e[c];r[c]=f(t[c],d)}}return r}}function Mi(e,t){return t!==void 0?t:e}function Mh(e,t){return t?e?e.concat(t):t:e}function S2(e,t){if(!t)return e;if(!e)return t;for(var n=ic({},e),r=0,a=Object.entries(t);r<a.length;r++){var s=a[r],l=s[0],c=s[1];if(!c){delete n[l];continue}var d=e[l];if(!d){n[l]=c;continue}n[l]=d.concat(c)}return n}var Co=_ee(Ol({baseSyntax:Mi,modules:Mh,tag:A2(uE,Ol({wildcard:Mi})),ids:Mi,classNames:Mi,namespace:A2(uE,Ol({wildcard:Mi})),combinators:Mh,attributes:Ol({operators:Mh,caseSensitivityModifiers:Mh,unknownCaseSensitivityModifiers:Mi}),pseudoClasses:Ol({unknown:Mi,definitions:S2}),pseudoElements:Ol({unknown:Mi,notation:Mi,definitions:Tee(function(e){return Array.isArray(e)?{NoArgument:e}:e},S2)})})),CI={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},DI=Co(CI,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),dE=Co(DI,{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"]}}}),kI=Co(dE,{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"]}}}),Vp={"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:{String:["part"]}}}},RI=ic(ic({},kI),{modules:Object.entries(Vp).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),xee=Co(RI,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),fE={css1:CI,css2:DI,css3:dE,"selectors-3":dE,"selectors-4":kI,latest:RI,progressive:xee};function Aee(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],s=fE[a];if(s.pseudoClasses&&typeof s.pseudoClasses=="object"){var l=s.pseudoClasses.definitions;if(l)for(var c=0,d=Object.entries(l);c<d.length;c++)for(var f=d[c],p=f[1],m=0,E=p;m<E.length;m++){var y=E[m];e.pseudoClasses[y]||(e.pseudoClasses[y]=[]),e.pseudoClasses[y].includes(a)||e.pseudoClasses[y].push(a)}}if(s.pseudoElements&&typeof s.pseudoElements=="object"){var l=s.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var T=0,A=l;T<A.length;T++){var C=A[T];e.pseudoElements[C]||(e.pseudoElements[C]=[]),e.pseudoElements[C].includes(a)||e.pseudoElements[C].push(a)}else for(var x=0,D=Object.values(l);x<D.length;x++)for(var p=D[x],S=0,L=p;S<L.length;S++){var M=L[S];e.pseudoElements[M]||(e.pseudoElements[M]=[]),e.pseudoElements[M].includes(a)||e.pseudoElements[M].push(a)}}}for(var w=0,q=Object.entries(Vp);w<q.length;w++){var ne=q[w],W=ne[0],k=ne[1];if(k.pseudoClasses&&typeof k.pseudoClasses=="object"){var l=k.pseudoClasses.definitions;if(l)for(var z=0,$=Object.values(l);z<$.length;z++)for(var p=$[z],K=0,re=p;K<re.length;K++){var me=re[K];e.pseudoClasses[me]||(e.pseudoClasses[me]=[]),e.pseudoClasses[me].includes(W)||e.pseudoClasses[me].push(W)}}if(k.pseudoElements&&typeof k.pseudoElements=="object"){var l=k.pseudoElements.definitions;if(l)if(Array.isArray(l))for(var V=0,le=l;V<le.length;V++){var oe=le[V];e.pseudoElements[oe]||(e.pseudoElements[oe]=[]),e.pseudoElements[oe].includes(W)||e.pseudoElements[oe].push(W)}else for(var ye=0,P=Object.values(l);ye<P.length;ye++)for(var p=P[ye],Le=0,ce=p;Le<ce.length;Le++){var I=ce[Le];e.pseudoElements[I]||(e.pseudoElements[I]=[]),e.pseudoElements[I].includes(W)||e.pseudoElements[I].push(W)}}}return e}var C2=Aee();function Ou(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function D2(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function Lu(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var See={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Cee={'"':!0,"'":!0},Ky={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Dee=6,Xy="css-selector-parser parse error: ";function kee(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,s=a===void 0?!0:a,l=e.modules,c=typeof n=="object"?n:fE[n];if(c.baseSyntax&&(c=Co(fE[c.baseSyntax],c)),c.modules&&c.modules.length>0)for(var d=0,f=c.modules;d<f.length;d++){var p=f[d],m=Vp[p];m&&(c=Co(m,c))}if(l&&l.length>0)for(var E=0,y=l;E<y.length;E++){var T=y[E],m=Vp[T];m&&(c=Co(m,c))}var A=c.tag?[!0,!!vee(c.tag).wildcard]:[!1,!1],C=A[0],x=A[1],D=!!c.ids,S=!!c.classNames,L=!!c.namespace,M=c.namespace&&(c.namespace===!0||c.namespace.wildcard===!0);if(L&&!C)throw new Error("".concat(Xy,"Namespaces cannot be enabled while tags are disabled."));var w=!!r,q=c.combinators?T2(c.combinators):rp,ne=c.attributes?[!0,c.attributes.operators?T2(c.attributes.operators):rp,c.attributes.caseSensitivityModifiers?gee(c.attributes.caseSensitivityModifiers):cE,c.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,rp,cE,!1],W=ne[0],k=ne[1],z=ne[2],$=ne[3],K=$||Object.keys(z).length>0,re=c.pseudoClasses?[!0,c.pseudoClasses.definitions?x2(c.pseudoClasses.definitions):Lh,c.pseudoClasses.unknown==="accept"]:[!1,Lh,!1],me=re[0],V=re[1],le=re[2],oe=c.pseudoElements?[!0,c.pseudoElements.notation==="singleColon"||c.pseudoElements.notation==="both",!c.pseudoElements.notation||c.pseudoElements.notation==="doubleColon"||c.pseudoElements.notation==="both",c.pseudoElements.definitions?x2(Array.isArray(c.pseudoElements.definitions)?{NoArgument:c.pseudoElements.definitions}:c.pseudoElements.definitions):Lh,c.pseudoElements.unknown==="accept"]:[!1,!1,!1,Lh,!1],ye=oe[0],P=oe[1],Le=oe[2],ce=oe[3],I=oe[4],te="",Ce=te.length,we=0,Pe="",Me=function(_e){return Pe===_e},ot=function(){return Me("*")||Ou(Pe)},dt=function(_e){we=_e,Pe=te.charAt(we)},He=function(){we++,Pe=te.charAt(we)},Wt=function(){var _e=Pe;return we++,Pe=te.charAt(we),_e};function Nt(_e){var Te=Math.min(Ce-1,we),st=new Error("".concat(Xy).concat(_e," Pos: ").concat(Te,"."));throw st.position=Te,st.name="ParserError",st}function Fe(_e,Te){if(!_e)return Nt(Te)}var or=function(){Fe(we<Ce,"Unexpected end of input.")},fn=function(){return we>=Ce},qe=function(_e){Fe(we<Ce,'Expected "'.concat(_e,'" but end of input reached.')),Fe(Pe===_e,'Expected "'.concat(_e,'" but "').concat(Pe,'" found.')),we++,Pe=te.charAt(we)};function Jn(_e){var Te=an(_e,we);if(Te)return we+=Te.length,Pe=te.charAt(we),Te}function an(_e,Te){var st=te.charAt(Te),Ke=_e[st];if(Ke){var Cn=an(Ke.chars,Te+1);if(Cn)return Cn;if(Ke.self)return Ke.self}}function on(){for(var _e=Wt(),Te=1;Lu(Pe)&&Te<Dee;)_e+=Wt(),Te++;return Ha(),String.fromCharCode(parseInt(_e,16))}function Qe(_e){var Te="";for(qe(_e);we<Ce;){if(Me(_e))return He(),Te;Me("\\")?(He(),Me(_e)?(Te+=_e,He()):Pe===`
212
+ `||Pe==="\f"?He():Pe==="\r"?(He(),Me(`
213
+ `)&&He()):Lu(Pe)?Te+=on():(Te+=Pe,He())):(Te+=Pe,He())}return Te}function Ct(){if(!Ou(Pe))return null;for(var _e="";Me("-");)_e+=Pe,He();for(_e==="-"&&!D2(Pe)&&!Me("\\")&&Nt("Identifiers cannot consist of a single hyphen."),s&&_e.length>=2&&Nt("Identifiers cannot start with two hyphens with strict mode on."),Ky[Pe]&&Nt("Identifiers cannot start with hyphens followed by digits.");we<Ce;)if(D2(Pe))_e+=Wt();else if(Me("\\"))He(),or(),Lu(Pe)?_e+=on():_e+=Wt();else break;return _e}function Cr(){for(var _e="";we<Ce&&!Me(")");)if(Me("\\")){if(He(),fn()&&!s)return(_e+"\\").trim();or(),Lu(Pe)?_e+=on():_e+=Wt()}else _e+=Wt();return _e.trim()}function Ha(){if(Pe===" "||Pe===" "||Pe==="\f"||Pe===`
214
+ `){He();return}Pe==="\r"&&He(),Pe===`
215
+ `&&He()}function Rt(){for(;See[Pe];)He()}function ue(_e){_e===void 0&&(_e=!1),Rt();for(var Te=[Sn(_e)];Me(",");)He(),Rt(),Te.push(Sn(_e));return{type:"Selector",rules:Te}}function ve(){qe("["),Rt();var _e;if(Me("|")){Fe(L,"Namespaces are not enabled."),He();var Te=Ct();Fe(Te,"Expected attribute name."),_e={type:"Attribute",name:Te,namespace:{type:"NoNamespace"}}}else if(Me("*")){Fe(L,"Namespaces are not enabled."),Fe(M,"Wildcard namespace is not enabled."),He(),qe("|");var st=Ct();Fe(st,"Expected attribute name."),_e={type:"Attribute",name:st,namespace:{type:"WildcardNamespace"}}}else{var Ke=Ct();if(Fe(Ke,"Expected attribute name."),_e={type:"Attribute",name:Ke},Me("|")){var Cn=we;if(He(),Ou(Pe)){Fe(L,"Namespaces are not enabled.");var Br=Ct();Fe(Br,"Expected attribute name."),_e={type:"Attribute",name:Br,namespace:{type:"NamespaceName",name:Ke}}}else dt(Cn)}}if(Fe(_e.name,"Expected attribute name."),Rt(),fn()&&!s)return _e;if(Me("]"))He();else{if(_e.operator=Jn(k),Fe(_e.operator,"Expected a valid attribute selector operator."),Rt(),or(),Cee[Pe])_e.value={type:"String",value:Qe(Pe)};else if(w&&Me("$")){He();var br=Ct();Fe(br,"Expected substitute name."),_e.value={type:"Substitution",name:br}}else{var lr=Ct();Fe(lr,"Expected attribute value."),_e.value={type:"String",value:lr}}if(Rt(),fn()&&!s)return _e;if(!Me("]")){var cr=Ct();if(Fe(cr,"Expected end of attribute selector."),_e.caseSensitivityModifier=cr,Fe(K,"Attribute case sensitivity modifiers are not enabled."),Fe($||z[_e.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),Rt(),fn()&&!s)return _e}qe("]")}return _e}function Be(){for(var _e="";Ky[Pe];)_e+=Wt();return Fe(_e!=="","Formula parse error."),parseInt(_e)}var nt=function(){return Me("-")||Me("+")||Ky[Pe]};function Dt(){if(Me("e")||Me("o")){var _e=Ct();if(_e==="even")return Rt(),[2,0];if(_e==="odd")return Rt(),[2,1]}var Te=null,st=1;if(Me("-")&&(He(),st=-1),nt()&&(Me("+")&&He(),Te=Be(),!Me("\\")&&!Me("n")))return[0,Te*st];Te===null&&(Te=1),Te*=st;var Ke;if(Me("\\")?(He(),Lu(Pe)?Ke=on():Ke=Wt()):Ke=Wt(),Fe(Ke==="n",'Formula parse error: expected "n".'),Rt(),Me("+")||Me("-")){var Cn=Me("+")?1:-1;return He(),Rt(),[Te,Cn*Be()]}else return[Te,0]}function Ot(_e,Te,st){var Ke;if(Me("(")){if(He(),Rt(),w&&Me("$")){He();var Cn=Ct();Fe(Cn,"Expected substitute name."),Ke={type:"Substitution",name:Cn}}else if(st.type==="String")Ke={type:"String",value:Cr()},Fe(Ke.value,"Expected ".concat(Te," argument value."));else if(st.type==="Selector")Ke=ue(!0);else if(st.type==="Formula"){var Br=Dt(),br=Br[0],lr=Br[1];if(Ke={type:"Formula",a:br,b:lr},st.ofSelector&&(Rt(),Me("o")||Me("\\"))){var cr=Ct();Fe(cr==="of","Formula of selector parse error."),Rt(),Ke={type:"FormulaOfSelector",a:br,b:lr,selector:Sn()}}}else return Nt("Invalid ".concat(Te," signature."));if(Rt(),fn()&&!s)return Ke;qe(")")}else Fe(st.optional,"Argument is required for ".concat(Te,' "').concat(_e,'".'));return Ke}function qn(){if(Me("*"))return Fe(x,"Wildcard tag name is not enabled."),He(),{type:"WildcardTag"};if(Ou(Pe)){Fe(C,"Tag names are not enabled.");var _e=Ct();return Fe(_e,"Expected tag name."),{type:"TagName",name:_e}}else return Nt("Expected tag name.")}function yn(){if(Me("*")){var _e=we;if(He(),!Me("|")||(He(),!ot()))return dt(_e),qn();Fe(L,"Namespaces are not enabled."),Fe(M,"Wildcard namespace is not enabled.");var Te=qn();return Te.namespace={type:"WildcardNamespace"},Te}else if(Me("|")){Fe(L,"Namespaces are not enabled."),He();var Te=qn();return Te.namespace={type:"NoNamespace"},Te}else if(Ou(Pe)){var st=Ct();if(Fe(st,"Expected tag name."),!Me("|"))return Fe(C,"Tag names are not enabled."),{type:"TagName",name:st};var _e=we;if(He(),!ot())return dt(_e),{type:"TagName",name:st};Fe(L,"Namespaces are not enabled.");var Te=qn();return Te.namespace={type:"NamespaceName",name:st},Te}else return Nt("Expected tag name.")}function Sn(_e){var Te,st;_e===void 0&&(_e=!1);var Ke={type:"Rule",items:[]};if(_e){var Cn=Jn(q);Cn&&(Ke.combinator=Cn,Rt())}for(;we<Ce;)if(ot())Fe(Ke.items.length===0,"Unexpected tag/namespace start."),Ke.items.push(yn());else if(Me("|")){var Br=we;if(He(),ot())Fe(Ke.items.length===0,"Unexpected tag/namespace start."),dt(Br),Ke.items.push(yn());else{dt(Br);break}}else if(Me(".")){Fe(S,"Class names are not enabled."),He();var br=Ct();Fe(br,"Expected class name."),Ke.items.push({type:"ClassName",name:br})}else if(Me("#")){Fe(D,"IDs are not enabled."),He();var lr=Ct();Fe(lr,"Expected ID name."),Ke.items.push({type:"Id",name:lr})}else if(Me("["))Fe(W,"Attributes are not enabled."),Ke.items.push(ve());else if(Me(":")){var cr=!1,za=!1;He(),Me(":")&&(Fe(ye,"Pseudo elements are not enabled."),Fe(Le,"Pseudo elements double colon notation is not enabled."),cr=!0,He());var hn=Ct();if(Fe(cr||hn,"Expected pseudo-class name."),Fe(!cr||hn,"Expected pseudo-element name."),Fe(hn,"Expected pseudo-class name."),!(!cr||I||Object.prototype.hasOwnProperty.call(ce,hn))){var Ur=C2.pseudoElements[hn],Ra='Unknown pseudo-element "'.concat(hn,'"');Ur&&Ur.length>0&&(Ra+=". It is defined in: ".concat(Ur.join(", "))),Nt(Ra+".")}if(za=ye&&(cr||!cr&&P&&Object.prototype.hasOwnProperty.call(ce,hn)),za){var G=(Te=ce[hn])!==null&&Te!==void 0?Te:I&&_2,X={type:"PseudoElement",name:hn},ie=Ot(hn,"pseudo-element",G);ie&&(Fe(ie.type!=="Formula"&&ie.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),X.argument=ie),Ke.items.push(X)}else{Fe(me,"Pseudo-classes are not enabled.");var G=(st=V[hn])!==null&&st!==void 0?st:le&&_2;if(!G){var Ur=C2.pseudoClasses[hn],Ra='Unknown pseudo-class: "'.concat(hn,'"');Ur&&Ur.length>0&&(Ra+=". It is defined in: ".concat(Ur.join(", "))),Nt(Ra+".")}var ie=Ot(hn,"pseudo-class",G),be={type:"PseudoClass",name:hn};ie&&(be.argument=ie),Ke.items.push(be)}}else break;if(Ke.items.length===0)return fn()?Nt("Expected rule but end of input reached."):Nt('Expected rule but "'.concat(Pe,'" found.'));if(Rt(),!fn()&&!Me(",")&&!Me(")")){var Cn=Jn(q);Rt(),Ke.nestedRule=Sn(),Ke.nestedRule.combinator=Cn}return Ke}return function(_e){if(typeof _e!="string")throw new Error("".concat(Xy,"Expected string input."));return te=_e,Ce=te.length,we=0,Pe=te.charAt(0),ue()}}const Ree=kee({syntax:"selectors-4"});function wee(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return Ree(e)}const wI="֑-߿יִ-﷽ﹰ-ﻼ",II="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Iee=new RegExp("^[^"+II+"]*["+wI+"]"),Nee=new RegExp("^[^"+wI+"]*["+II+"]");function Oee(e){const t=String(e||"");return Iee.test(t)?"rtl":Nee.test(t)?"ltr":"neutral"}function NI(e){return"children"in e?OI(e):"value"in e?e.value:""}function Lee(e){return e.type==="text"?e.value:"children"in e?OI(e):""}function OI(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=Lee(e.children[t]);return n.join("")}function Mee(e,t){const n=e.schema,r=e.language,a=e.direction,s=e.editableOrEditingHost;let l;if(t.type==="element"){const f=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",m=k2(t);f!=null&&(e.language=String(f)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=qi),m==="rtl"?l=m:m==="ltr"||m!=="auto"&&t.tagName==="html"||m!=="auto"&&t.tagName==="input"&&p==="tel"?l="ltr":(m==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?l=Zy(NI(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?l=t.properties.value?Zy(String(t.properties.value)):"ltr":Fr(t,d)),l&&(e.direction=l)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return c;function c(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=s}function d(f){if(f.type==="text")return l=Zy(f.value),l?Bp:void 0;if(f!==t&&f.type==="element"&&(f.tagName==="bdi"||f.tagName==="script"||f.tagName==="style"||f.tagName==="textare"||k2(f)))return ed}}function Zy(e){const t=Oee(e);return t==="neutral"?void 0:t}function k2(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 Pee(e,t,n){const r=Wd(n,e.name),a=t.properties[r.property];let s=Fee(a,r);if(!e.value)return s!==void 0;e.value.type;let l=e.value.value;if(e.caseSensitivityModifier==="i"&&(l=l.toLowerCase(),s&&(s=s.toLowerCase())),s!==void 0)switch(e.operator){case"=":return l===s;case"$=":return l===s.slice(-l.length);case"*=":return s.includes(l);case"^=":return l===s.slice(0,l.length);case"|=":return l===s||l===s.slice(0,l.length)&&s.charAt(l.length)==="-";case"~=":return l===s||G1(s).includes(l)}return!1}function Fee(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?Am:Sm)(e)}else return String(e)}const jee=[];function Bee(e,t){return(t.properties.className||jee).includes(e.name)}function Uee(e,t){return t.properties.id===e.name}function Hee(e,t){return e.name===t.tagName}function zee(e,t){return function(n,r){let a=R2(n,"tag");const s=R2(r??"*","range"),l=[];let c=-1;for(;++c<s.length;){const d=s[c].toLowerCase();let f=-1;const p=[];for(;++f<a.length;)e(a[f].toLowerCase(),d)?l.push(a[f]):p.push(a[f]);a=p}return l}}const Gee=zee(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,s=0;if(r[s]!=="*"&&n[a]!==r[s])return!1;for(a++,s++;s<r.length;){if(r[s]==="*"){s++;continue}if(!n[a])return!1;if(n[a]===r[s]){a++,s++;continue}if(n[a].length===1)return!1;a++}return!0});function R2(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 Vee={}.hasOwnProperty;function Mo(e,t){const n=e.type==="element"&&Vee.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const qee=new Set([9,10,12,13,32]),w2=48,Yee=57;function Qee(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=s(),a=l();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),c(),t<e.length?(r=s(),c(),a=l()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function l(){const d=t;let f=0;for(;t<e.length&&e.charCodeAt(t)>=w2&&e.charCodeAt(t)<=Yee;)f=f*10+(e.charCodeAt(t)-w2),t++;return t===d?null:f}function c(){for(;t<e.length&&qee.has(e.charCodeAt(t));)t++}}var I2,N2;function $ee(){return N2||(N2=1,I2={trueFunc:function(){return!0},falseFunc:function(){return!1}}),I2}var Wee=$ee();const O2=dm(Wee);function Kee(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return O2.falseFunc;if(t===-1)return s=>s<=n;if(t===0)return s=>s===n;if(t===1)return n<0?O2.trueFunc:s=>s>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?s=>s>=n&&s%r===a:s=>s<=n&&s%r===a}function L2(e){return Kee(Qee(e))}const Xee=L2.default||L2,Zee=xm("name",{handlers:{"any-link":Jee,blank:ete,checked:tte,dir:nte,disabled:LI,empty:rte,enabled:ate,"first-child":ite,"first-of-type":ste,has:ote,is:MI,lang:cte,"last-child":ute,"last-of-type":dte,not:fte,"nth-child":hte,"nth-last-child":pte,"nth-last-of-type":mte,"nth-of-type":gte,"only-child":yte,"only-of-type":Ete,optional:bte,"read-only":vte,"read-write":PI,required:FI,root:Tte,scope:_te},invalid:lte,unknown:xte});function Jee(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Mo(t,"href")}function fi(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function ete(e,t){return!jI(t,n);function n(r){return r.type==="element"||r.type==="text"&&!Kd(r)}}function tte(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Mo(t,"checked")):t.tagName==="option"?Mo(t,"selected"):!1}function nte(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function LI(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")&&Mo(t,"disabled")}function rte(e,t){return!jI(t,n);function n(r){return r.type==="element"||r.type==="text"}}function ate(e,t){return!LI(e,t)}function ite(e,t,n,r,a){return fi(a,e),a.elementIndex===0}function ste(e,t,n,r,a){return fi(a,e),a.typeIndex===0}function Hm(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=Xee(n.a+"n+"+n.b),e._cachedFn=t}return t}function ote(e,t,n,r,a){e.argument,e.argument.type;const s={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Jb(s,{type:"root",children:t.children}),s.results.length>0}function lte(){}function MI(e,t,n,r,a){e.argument,e.argument.type;const s={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Jb(s,t),s.results[0]===t}function cte(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&Gee(a.language,z1(e.argument.value)).length>0}function ute(e,t,n,r,a){return fi(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function dte(e,t,n,r,a){return fi(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function fte(e,t,n,r,a){return!MI(e,t,n,r,a)}function hte(e,t,n,r,a){const s=Hm(e);return fi(a,e),typeof a.elementIndex=="number"&&s(a.elementIndex)}function pte(e,t,n,r,a){const s=Hm(e);return fi(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&s(a.elementCount-a.elementIndex-1))}function mte(e,t,n,r,a){const s=Hm(e);return fi(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&s(a.typeCount-1-a.typeIndex)}function gte(e,t,n,r,a){const s=Hm(e);return fi(a,e),typeof a.typeIndex=="number"&&s(a.typeIndex)}function yte(e,t,n,r,a){return fi(a,e),a.elementCount===1}function Ete(e,t,n,r,a){return fi(a,e),a.typeCount===1}function bte(e,t){return!FI(e,t)}function vte(e,t,n,r,a){return!PI(e,t,n,r,a)}function PI(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!Mo(t,"readOnly")&&!Mo(t,"disabled"):!!a.editableOrEditingHost}function FI(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Mo(t,"required")}function Tte(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function _te(e,t,n,r,a){return a.scopeElements.includes(t)}function jI(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function xte(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function Ate(e,t,n,r,a){for(const s of e.items)if(s.type==="Attribute"){if(!Pee(s,t,a.schema))return!1}else if(s.type==="Id"){if(!Uee(s,t))return!1}else if(s.type==="ClassName"){if(!Bee(s,t))return!1}else if(s.type==="PseudoClass"){if(!Zee(s,t,n,r,a))return!1}else{if(s.type==="PseudoElement")throw new Error("Invalid selector: `::"+s.name+"`");if(s.type==="TagName"&&!Hee(s,t))return!1}return!0}const Ste=[];function Jb(e,t){t&&BI(e,[],t,void 0,void 0,t)}function Jy(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function Cte(e,t,n,r){const a=ap(t.descendant,t.directChild);let s,l=-1;const c={count:0,types:new Map},d={count:0,types:new Map};for(;++l<n.children.length;)M2(c,n.children[l]);for(l=-1;++l<n.children.length;){const f=n.children[l],p=f.type==="element"?f.tagName.toUpperCase():void 0;if(e.elementIndex=d.count,e.typeIndex=p&&d.types.get(p)||0,e.elementCount=c.count,e.typeCount=p?c.types.get(p):0,"children"in f){const m=ap(a,s),E=BI(e,m,n.children[l],l,n,r);s=ap(E.generalSibling,E.adjacentSibling)}if(e.one&&e.found)break;M2(d,n.children[l])}}function Dte(e,t,n,r,a){const s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let l=-1;for(;++l<t.length;){const c=t[l];if(e.one&&e.found)break;if(e.shallow&&c.nestedRule)throw new Error("Expected selector without nesting");if(Ate(c,n,r,a,e)){const d=c.nestedRule;if(d){const f=d.combinator==="+"?"adjacentSibling":d.combinator==="~"?"generalSibling":d.combinator===">"?"directChild":"descendant";Jy(s,f,d)}else e.found=!0,e.results.includes(n)||e.results.push(n)}c.combinator===void 0?Jy(s,"descendant",c):c.combinator==="~"&&Jy(s,"generalSibling",c)}return s}function ap(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Ste}function M2(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 BI(e,t,n,r,a,s){let l={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const c=Mee(e,n);if(n.type==="element"){let d=e.rootQuery.rules;a&&a!==s&&(d=e.rootQuery.rules.filter(f=>f.combinator===void 0||f.combinator===">"&&a===s)),l=Dte(e,ap(t,d),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Cte(e,l,n,s),c(),l}function kte(e,t,n){const r=Rte(e,t);return Jb(r,t||void 0),r.results}function Rte(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:wee(e),schema:hc,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const UI=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=UI(n.children))}),t),wte=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=kte(t,r);a&&a.length>0&&Fr(r,a,(s,l,c)=>{n(s,l,c)});return}Fr(r,(a,s,l)=>{n(a,s,l)})}}},Ite=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Nte=(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]}},HI=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const s=e[a];if(s&&s.value&&s.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return s.tagName===n?s:void 0}else{const s=e[a];if(!s||s.type==="element"||s.type==="text"&&s.value.replace(/(\n|\s)/g,"")!=="")return;if(s.type&&/^(comment|raw)$/ig.test(s.type))return s.value&&!/^rehype:/.test(s.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?HI(e,a,"pre",r)?void 0:(s.value=(s.value||"").replace(/^(\n|\s)+/,""),s):(s.value=(s.value||"").replace(/^(\n|\s)+/,""),s)}},P2=({value:e=""})=>{const t=Ite(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},F2=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Ote=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Fr(r,"element",(a,s,l)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&l&&Array.isArray(l.children)&&l.children.length>1){const c=a.children[0];if(c&&c.tagName==="code"&&typeof s=="number"){const d=Nte(l.children,s);if(d){const f=P2(d);Object.keys(f).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},c.properties=F2(c.properties,f,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(a.tagName)&&l&&Array.isArray(l.children)&&typeof s=="number"){const c=HI(l.children,s,"",n);if(c){const d=P2(c);Object.keys(d).length>0&&(a.properties=F2(a.properties,d,t))}}})}};var Lte=function(e){return t=>{Fr(t,n=>{n.type==="element"&&n.tagName==="code"&&n.data&&n.data.meta&&(n.properties=Ae({},n.properties,{"data-meta":String(n.data.meta)}))})}},Mte=function(e){return t=>{Fr(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 Pte=/[\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,Fte=Object.hasOwnProperty;class jte{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=Bte(t,n===!0);const s=a;for(;Fte.call(r.occurrences,a);)r.occurrences[s]++,a=s+"-"+r.occurrences[s];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}}function Bte(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Pte,"").replace(/ /g,"-"))}function zI(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 Ute={},j2=new jte;function Hte(e){const t=(e||Ute).prefix||"";return function(n){j2.reset(),Fr(n,"element",function(r){zI(r)&&!r.properties.id&&(r.properties.id=t+j2.slug(NI(r)))})}}const GI=function(e){if(e==null)return Vte;if(typeof e=="string")return Gte(e);if(typeof e=="object")return zte(e);if(typeof e=="function")return ev(e);throw new Error("Expected function, string, or array as `test`")};function zte(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=GI(e[n]);return ev(r);function r(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function Gte(e){return ev(t);function t(n){return n.tagName===e}}function ev(e){return t;function t(n,r,a){return!!(qte(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Vte(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function qte(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const B2={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},Yte={};function Qte(e){const t=e||Yte;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",s=t.content,l=t.group,c=GI(t.test);let d;return a==="after"||a==="before"?d=p:a==="wrap"?d=m:(d=f,n||(n={ariaHidden:"true",tabIndex:-1})),function(E){Fr(E,"element",function(y,T,A){if(zI(y)&&y.properties.id&&c(y,T,A))return Object.assign(y.properties,Ph(r,y)),d(y,T,A)})};function f(E){const y=U2(s||B2,E);return E.children[a==="prepend"?"unshift":"push"](e1(E,Ph(n,E),y)),[ed]}function p(E,y,T){if(typeof y!="number"||!T)return;const A=U2(s||B2,E),C=e1(E,Ph(n,E),A);let x=a==="before"?[C,E]:[E,C];if(l){const D=VI(l,E);D&&!Array.isArray(D)&&D.type==="element"&&(D.children=x,x=[D])}return T.children.splice(y,1,...x),[ed,y+x.length]}function m(E){let y=E.children,T=[];return typeof s=="function"?(y=[],T=s(E)):s&&(T=tv(s)),E.children=[e1(E,Ph(n,E),Array.isArray(T)?[...y,...T]:[...y,T])],[ed]}}function tv(e){return Lo(e)}function e1(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function U2(e,t){const n=VI(e,t);return Array.isArray(n)?n:[n]}function VI(e,t){return typeof e=="function"?e(t):tv(e)}function Ph(e,t){return typeof e=="function"?e(t):e?tv(e):{}}const $te=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Fr(r,(a,s,l)=>{if(a.type==="element"||a.type==="root"){let c=!1;a.children=a.children.filter(d=>{if(d.type==="raw"||d.type==="comment"){let f=(d.value||"").trim();if(f=f.replace(/^<!--(.*?)-->/,"$1"),f===t)return c=!0,!1;if(f===n)return c=!1,!1}return!c})}})}};var Wte={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 Kte(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 Xte=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var s=n.children&&n.children[0];s&&s.properties&&s.properties.ariaHidden==="true"&&(s.properties=Ae({class:"anchor"},s.properties),s.children=[Wte])}if(n.type==="element"&&n.tagName==="pre"&&!e){var l=UI(n.children);n.children.push(Kte(l))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},Zte=[Hte,Qte,$te];const qI=Ne.forwardRef((e,t)=>{var n,r=[Lte,Mte,...Zte,[wte,{rewrite:Xte((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Ote,{properties:"attr"}],...e.rehypePlugins||[]];return b.jsx(pee,Ae({},e,{rehypePlugins:r,ref:t}))});function Jte(e,t){return Ae({},e,t)}var vc=Ne.createContext({markdown:""});function YI(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=Ae({},t,YI(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function QI(e,t,n,r,a){t===void 0&&(t=[]);var s=YI(t||[]),l=[];if(e.altKey&&l.push("alt"),e.shiftKey&&l.push("shift"),e.metaKey&&l.push("cmd"),e.ctrlKey&&l.push("ctrl"),l.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&l.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&l.push("escape"),!(l.length<1)){var c=!!s[l.join("+")],d=c?s[l.join("+")]:void 0;if(Object.keys(s).forEach(f=>{var p=f.split("+").every(m=>/ctrlcmd/.test(m)?l.includes("ctrl")||l.includes("cmd"):l.includes(m));p&&(d=s[f])}),d&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(d,r,a,l);return}}}var t1;function H2(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof t1>"u"){var t=document.createElement("textarea");t.value="1",t1=!!t.firstChild}return t1}function Wl(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 a=e.selectionStart,s=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var l=document.createRange(),c=document.createTextNode(t);if(H2(e)){var d=e.firstChild;if(!d)e.appendChild(c);else{for(var f=0,p=null,m=null;d&&(p===null||m===null);){var E=d.nodeValue.length;a>=f&&a<=f+E&&l.setStart(p=d,a-f),s>=f&&s<=f+E&&l.setEnd(m=d,s-f),f+=E,d=d.nextSibling}a!==s&&l.deleteContents()}}if(H2(e)&&l.commonAncestorContainer.nodeName==="#text")l.insertNode(c);else{var y=e.value;e.value=y.slice(0,a)+t+y.slice(s)}}e.setSelectionRange(a+t.length,a+t.length);var T=document.createEvent("UIEvent");T.initEvent("input",!0,!1),e.dispatchEvent(T)}}function Sr(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,s=n;if(t&&t.length&&n.start===n.end&&(s=ene(t,n.start)),s.start>=r.length&&s.end<=t.length-a.length){var l=t.slice(s.start-r.length,s.end+a.length);if(l.startsWith(r)&&l.endsWith(a))return{start:s.start-r.length,end:s.end+a.length}}return s}function sd(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
216
+ `)+1,a=t.slice(n.end).indexOf(`
217
+ `)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function $I(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function WI(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function ene(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=c=>c===" "||c.charCodeAt(0)===10,r=0,a=e.length,s=t;s-1>-1;s--)if(n(e[s-1])){r=s;break}for(var l=t;l<e.length;l++)if(n(e[l])){a=l;break}return{start:r,end:a}}function ar(e){var{api:t,selectedText:n,selection:r,prefix:a,suffix:s=a}=e;n.length>=a.length+s.length&&n.startsWith(a)&&n.endsWith(s)?(t.replaceSelection(n.slice(a.length,s.length?-s.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+s),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function nv(e,t){var n=e.split(/\n/),r=0,a=n.map((s,l)=>{if(typeof t=="string")return s.startsWith(t)?(r-=t.length,s.slice(t.length)):(r+=t.length,t+s);if(typeof t=="function"){if(s.startsWith(t(s,l)))return r-=t(s,l).length,s.slice(t(s,l).length);var c=t(s,l);return r+=c.length,t(s,l)+s}throw Error("insertion is expected to be either a string or a function")}).join(`
218
+ `);return{modifiedText:a,insertionLength:r}}var tne={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:b.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:b.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=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},KI={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:b.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:b.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=Sr({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",s="\n```\n";r.selectedText.length>=a.length+s.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(s)?(a="```\n",s="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
219
+ `||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
220
+ `||r.selection.end===e.text.length)&&(s="\n```"));var l=Sr({text:e.text,selection:e.selection,prefix:a,suffix:s}),c=t.setSelectionRange(l);ar({api:t,selectedText:c.selectedText,selection:e.selection,prefix:a,suffix:s})}},nne={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:b.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:b.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(`
221
+ `)===-1){var n=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else KI.execute(e,t)}},rne={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:b.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:b.jsxs("g",{fill:"none",fillRule:"evenodd",children:[b.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),b.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"}),b.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=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},ip={keyCommand:"divider"},ane={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.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,a)=>{t.textArea.focus(),a&&n&&r&&n({fullscreen:!r.fullscreen})}};function ine(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var sne=(e,t)=>{var n=Ae({children:e,icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.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 a=Ae({},(ine(r),r));return a.parent=n,Ae({},a)})),n},one={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
222
+
223
+ ---
224
+ `,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:b.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=Sr({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)?ar({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}),ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},lne={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"![image](",suffix:")",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:b.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:b.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=Sr({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")?ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=Sr({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![image",suffix:"](url)"}):ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},cne={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:b.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:b.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=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},une={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:b.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:b.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=Sr({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=Sr({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},rv=(e,t,n)=>{var r=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),s=$I(a.text,a.selection.start),l=Array(s+1).join(`
225
+ `),c=WI(a.text,a.selection.end),d=Array(c+1).join(`
226
+ `),{modifiedText:f,insertionLength:p}=nv(a.selectedText,n);if(p<0){var m=a.selection.start,E=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
227
+ `&&(m-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
228
+ `&&(E+=1),t.setSelectionRange({start:m,end:E}),t.replaceSelection(""+f),t.setSelectionRange({start:m,end:m+f.length})}else{t.replaceSelection(""+l+f+d);var y=a.selection.start+s,T=y+f.length;t.setSelectionRange({start:y,end:T})}},dne={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:b.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:b.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)=>{rv(e,t,"- ")}},fne={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:b.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.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)=>{rv(e,t,(n,r)=>r+1+". ")}},hne={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:b.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.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)=>{rv(e,t,(n,r)=>"- [ ] ")}},pne={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.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"}),b.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,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"preview"})}},mne={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.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"}),b.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,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"edit"})}},gne={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:b.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[b.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"}),b.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,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"live"})}},yne={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.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=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=$I(r.text,r.selection.start),s=Array(a+1).join(`
229
+ `),l=WI(r.text,r.selection.end),c=Array(l+1).join(`
230
+ `),d=nv(r.selectedText,e.command.prefix);t.replaceSelection(""+s+d.modifiedText+c);var f=r.selection.start+a,p=f+d.modifiedText.length;t.setSelectionRange({start:f,end:p})}},Ene={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:b.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:b.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=Sr({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},XI={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:b.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{Tc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},bne=XI;function Tc(e){var{state:t,api:n,prefix:r,suffix:a=r}=e,s=sd({text:t.text,selection:t.selection}),l=n.setSelectionRange(s);ar({api:n,selectedText:l.selectedText,selection:t.selection,prefix:r,suffix:a})}Ae({},XI,{icon:b.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:b.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 vne={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:b.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{Tc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Tne=vne,_ne={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:b.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{Tc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},xne=_ne,Ane={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:b.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{Tc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Sne=Ane,Cne={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:b.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{Tc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Dne=Cne,kne={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:b.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{Tc({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},Rne=kne,wne={name:"table",keyCommand:"table",prefix:`
231
+ | Header | Header |
232
+ |--------|--------|
233
+ | Cell | Cell |
234
+ | Cell | Cell |
235
+ | Cell | Cell |
236
+
237
+ `,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:b.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:b.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=Sr({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)?ar({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}),ar({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},Ine={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:b.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:b.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")}},Nne=()=>[tne,cne,Ene,one,sne([bne,Tne,xne,Sne,Dne,Rne],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),ip,une,yne,nne,KI,rne,lne,wne,ip,dne,fne,hne,ip,Ine],One=()=>[mne,gne,pne,ip,ane];function qp(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 av{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return Wl(this.textArea,t),qp(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,qp(this.textArea)}}class iv{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new av(t)}getState(){return this.textArea?qp(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(Ae({command:t},qp(this.textArea)),this.textApi,n,r,a)}}function sp(e){e.stopPropagation(),e.preventDefault()}function z2(e,t){sp(e);var n=e.target,r=new av(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=sd({text:n.value,selection:a}),!(t<0&&a.start<=0||t>0&&a.end>=n.value.length)){var s=n.value.slice(a.start,a.end);if(t<0){var l=sd({text:n.value,selection:{start:a.start-1,end:a.start-1}}),c=n.value.slice(l.start,l.end);r.setSelectionRange({start:l.start,end:a.end}),Wl(n,s+`
238
+ `+c),r.setSelectionRange({start:l.start,end:l.start+s.length})}else{var d=sd({text:n.value,selection:{start:a.end+1,end:a.end+1}}),f=n.value.slice(d.start,d.end);r.setSelectionRange({start:a.start,end:d.end}),Wl(n,f+`
239
+ `+s),r.setSelectionRange({start:d.end-s.length,end:d.end})}}}function Lne(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,a=r.value.substr(0,r.selectionStart),s=a.split(`
240
+ `),l=s[s.length-1],c=new av(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){sp(e);var d=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var f=r.value.substring(0,r.selectionStart).split(`
241
+ `),p=r.value.substring(0,r.selectionEnd).split(`
242
+ `),m=[];p.forEach((q,ne)=>{q!==f[ne]&&m.push(q)});var E=m.join(`
243
+ `),y=r.value.substring(r.selectionStart,r.selectionEnd),T=r.value.substring(0,r.selectionStart).length;c.setSelectionRange({start:r.value.indexOf(E),end:r.selectionEnd});var A=nv(E,e.shiftKey?"":d),C=A.modifiedText;e.shiftKey&&(C=C.split(`
244
+ `).map(q=>q.replace(new RegExp("^"+d),"")).join(`
245
+ `)),c.replaceSelection(C);var x=e.shiftKey?-t:t,D=e.shiftKey?-m.length*t:m.length*t;c.setSelectionRange({start:T+x,end:T+y.length+D})}else return Wl(r,d)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(l)||/^\d+.\s/.test(l))&&!e.shiftKey){sp(e);var S=`
246
+ - `;return l.startsWith("*")&&(S=`
247
+ * `),(l.startsWith("- [ ]")||l.startsWith("- [X]")||l.startsWith("- [x]"))&&(S=`
248
+ - [ ] `),/^\d+.\s/.test(l)&&(S=`
249
+ `+(parseInt(l)+1)+". "),Wl(r,S)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){sp(e);var L={start:r.selectionStart,end:r.selectionEnd},M=L;L=sd({text:r.value,selection:L});var w=r.value.slice(L.start,L.end);c.setSelectionRange({start:L.end,end:L.end}),Wl(r,`
250
+ `+w),c.setSelectionRange({start:M.start,end:M.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?z2(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&z2(e,1)}var Mne=["prefixCls","onChange"],Pne=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function Fne(e){var{prefixCls:t,onChange:n}=e,r=hr(e,Mne),a=N.useContext(vc),{markdown:s,commands:l,fullscreen:c,preview:d,highlightEnable:f,extraCommands:p,tabSize:m,defaultTabEnable:E,autoFocusEnd:y,textareaWarp:T,dispatch:A}=a;hr(a,Pne);var C=Ne.useRef(null),x=Ne.useRef(),D=Ne.useRef({fullscreen:c,preview:d});N.useEffect(()=>{D.current={fullscreen:c,preview:d,highlightEnable:f}},[c,d,f]),N.useEffect(()=>{if(C.current&&A){var L=new iv(C.current);x.current=L,A({textarea:C.current,commandOrchestrator:L})}},[]),N.useEffect(()=>{if(y&&C.current&&T){C.current.focus();var L=C.current.value.length;C.current.setSelectionRange(L,L),setTimeout(()=>{T&&(T.scrollTop=T.scrollHeight),C.current&&(C.current.scrollTop=C.current.scrollHeight)},0)}},[T]);var S=L=>{Lne(L,m,E),QI(L,[...l||[],...p||[]],x.current,A,D.current)};return N.useEffect(()=>(C.current&&C.current.addEventListener("keydown",S),()=>{C.current&&C.current.removeEventListener("keydown",S)}),[]),b.jsx("textarea",Ae({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:C,className:t+"-text-input "+(r.className?r.className:""),value:s,onChange:L=>{A&&A({markdown:L.target.value}),n&&n(L)}}))}var jne=["prefixCls","className","onScroll","renderTextarea"];function Bne(e){var t=e||{},{prefixCls:n,className:r,onScroll:a,renderTextarea:s}=t,l=hr(t,jne),{markdown:c,scrollTop:d,commands:f,extraCommands:p,dispatch:m}=N.useContext(vc),E=Ne.useRef(null),y=Ne.useRef(),T=Ne.createRef();N.useEffect(()=>{var C={};T.current&&(C.textareaWarp=T.current||void 0,T.current.scrollTop=d||0),m&&m(Ae({},C))},[]),N.useEffect(()=>{if(E.current&&m){var C=new iv(E.current);y.current=C,m({textarea:E.current,commandOrchestrator:C})}},[]);var A={WebkitTextFillColor:"initial",overflow:"auto"};return b.jsx("div",{ref:T,className:n+"-area "+(r||""),onScroll:a,children:b.jsx("div",{className:n+"-text",children:s?Ne.cloneElement(s(Ae({},l,{value:c,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:m,onChange:l.onChange,shortcuts:QI,useContext:{commands:f,extraCommands:p,commandOrchestrator:y.current}}),{ref:E}):b.jsx(N.Fragment,{children:b.jsx(Fne,Ae({prefixCls:n},l,{style:A}))})})})}function Une(e){var{prefixCls:t,groupName:n,commands:r,children:a}=e||{},{barPopup:s={}}=N.useContext(vc);return N.useMemo(()=>b.jsx("div",{className:t+"-toolbar-child "+(n&&s[n]?"active":""),onClick:l=>l.stopPropagation(),children:Array.isArray(r)?b.jsx(ZI,Ae({commands:r},e,{isChild:!0})):a}),[r,s,n,t])}function G2(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:a,barPopup:s={},components:l,commandOrchestrator:c,dispatch:d}=N.useContext(vc),f=N.useRef("");function p(m,E){if(d){var y={barPopup:Ae({},s)};m.keyCommand==="preview"&&(y.preview=m.value),m.keyCommand==="fullscreen"&&(y.fullscreen=!r),e.commands&&m.keyCommand==="group"?e.commands.forEach(T=>{E===T.groupName?y.barPopup[E]=!0:T.keyCommand&&(y.barPopup[T.groupName]=!1)}):(E||m.parent)&&Object.keys(y.barPopup||{}).forEach(T=>{y.barPopup[T]=!1}),Object.keys(y).length&&d(Ae({},y)),c&&c.executeCommand(m)}}return N.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(f.current||(f.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=f.current))},[r,f,n]),b.jsx("ul",{children:(e.commands||[]).map((m,E)=>{if(m.keyCommand==="divider")return b.jsx("li",Ae({},m.liProps,{className:t+"-toolbar-divider"}),E);if(!m.keyCommand)return b.jsx(N.Fragment,{},E);var y=r&&m.keyCommand==="fullscreen"||m.keyCommand==="preview"&&a===m.value,T=m.children&&typeof m.children=="function"?m.children({getState:()=>c.getState(),textApi:c?c.textApi:void 0,close:()=>p({},m.groupName),execute:()=>p({execute:m.execute}),dispatch:d}):void 0,A=s&&a&&a==="preview"&&!/(preview|fullscreen)/.test(m.keyCommand),C=l?.toolbar||m.render,x=C&&typeof C=="function"?C(m,!!A,p,E):null;return b.jsxs("li",Ae({},m.liProps,{className:y?"active":"",children:[x&&Ne.isValidElement(x)&&x,!x&&!m.buttonProps&&m.icon,!x&&m.buttonProps&&Ne.createElement("button",Ae({type:"button",key:E,disabled:A,"data-name":m.name},m.buttonProps,{onClick:D=>{D.stopPropagation(),p(m,m.groupName)}}),m.icon),m.children&&b.jsx(Une,{overflow:n,groupName:m.groupName,prefixCls:t,children:T,commands:Array.isArray(m.children)?m.children:void 0})]}),E)})})}function ZI(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:a,extraCommands:s}=N.useContext(vc);return b.jsxs("div",{className:t+"-toolbar "+r,children:[b.jsx(G2,Ae({},e,{commands:e.commands||a||[]})),!n&&b.jsx(G2,Ae({},e,{commands:s||[]}))]})}function V2(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:a,prefixCls:s}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var l=n?"bottom":"";return b.jsx(ZI,{prefixCls:s,overflow:a,className:l})}var Hne=e=>{var{prefixCls:t,onChange:n}=e||{},r=N.useRef(null),a=N.useRef(),s=N.useRef(e.height);N.useEffect(()=>{s.current!==e.height&&(s.current=e.height)},[e.height]);function l(p){if(a.current){var m,E=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY),y=a.current.height+E-a.current.dragY;y>=e.minHeight&&y<=e.maxHeight&&n&&n(a.current.height+(E-a.current.dragY))}}function c(){var p,m;a.current=void 0,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),(p=r.current)==null||p.removeEventListener("touchmove",l),(m=r.current)==null||m.removeEventListener("touchend",c)}function d(p){var m,E,y;p.preventDefault();var T=p.clientY||((m=p.changedTouches[0])==null?void 0:m.clientY);a.current={height:s.current,dragY:T},document.addEventListener("mousemove",l),document.addEventListener("mouseup",c),(E=r.current)==null||E.addEventListener("touchmove",l,{passive:!1}),(y=r.current)==null||y.addEventListener("touchend",c,{passive:!1})}N.useEffect(()=>{if(document){var p,m;(p=r.current)==null||p.addEventListener("touchstart",d,{passive:!1}),(m=r.current)==null||m.addEventListener("mousedown",d)}return()=>{if(document){var E;(E=r.current)==null||E.removeEventListener("touchstart",d),document.removeEventListener("mousemove",l)}}},[]);var f=N.useMemo(()=>b.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:b.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 b.jsx("div",{className:t+"-bar",ref:r,children:f})},zne=["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 Gne(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var Vne=Ne.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:a,value:s,commands:l=Nne(),commandsFilter:c,direction:d,extraCommands:f=One(),height:p=200,enableScroll:m=!0,visibleDragbar:E=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:y=!0,preview:T="live",fullscreen:A=!1,overflow:C=!0,previewOptions:x={},textareaProps:D,maxHeight:S=1200,minHeight:L=100,autoFocus:M,autoFocusEnd:w=!1,tabSize:q=2,defaultTabEnable:ne=!1,onChange:W,onStatistics:k,onHeightChange:z,hideToolbar:$,toolbarBottom:K=!1,components:re,renderTextarea:me}=n,V=hr(n,zne),le=l.map(qe=>c?c(qe,!1):qe).filter(Boolean),oe=f.map(qe=>c?c(qe,!0):qe).filter(Boolean),[ye,P]=N.useReducer(Jte,{markdown:s,preview:T,components:re,height:p,minHeight:L,highlightEnable:y,tabSize:q,defaultTabEnable:ne,scrollTop:0,scrollTopPreview:0,commands:le,extraCommands:oe,fullscreen:A,barPopup:{}}),Le=N.useRef(null),ce=N.useRef(null),I=N.useRef(m);N.useImperativeHandle(t,()=>Ae({},ye,{container:Le.current,dispatch:P})),N.useMemo(()=>I.current=m,[m]),N.useEffect(()=>{var qe={};Le.current&&(qe.container=Le.current||void 0),qe.markdown=s||"",qe.barPopup={},P&&P(Ae({},ye,qe))},[]);var te=[a,"wmde-markdown-var",d?r+"-"+d:null,r,ye.preview?r+"-show-"+ye.preview:null,ye.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();N.useMemo(()=>s!==ye.markdown&&P({markdown:s||""}),[s,ye.markdown]),N.useMemo(()=>T!==ye.preview&&P({preview:T}),[T]),N.useMemo(()=>q!==ye.tabSize&&P({tabSize:q}),[q]),N.useMemo(()=>y!==ye.highlightEnable&&P({highlightEnable:y}),[y]),N.useMemo(()=>M!==ye.autoFocus&&P({autoFocus:M}),[M]),N.useMemo(()=>w!==ye.autoFocusEnd&&P({autoFocusEnd:w}),[w]),N.useMemo(()=>A!==ye.fullscreen&&P({fullscreen:A}),[A]),N.useMemo(()=>p!==ye.height&&P({height:p}),[p]),N.useMemo(()=>p!==ye.height&&z&&z(ye.height,p,ye),[p,z,ye]),N.useMemo(()=>l!==ye.commands&&P({commands:le}),[e.commands]),N.useMemo(()=>f!==ye.extraCommands&&P({extraCommands:oe}),[e.extraCommands]);var Ce=N.useRef(),we=N.useRef("preview"),Pe=N.useRef(!1);N.useMemo(()=>{Ce.current=ye.textareaWarp,ye.textareaWarp&&(ye.textareaWarp.addEventListener("mouseover",()=>{we.current="text"}),ye.textareaWarp.addEventListener("mouseleave",()=>{we.current="preview"}))},[ye.textareaWarp]);var Me=(qe,Jn)=>{if(I.current){var an=Ce.current,on=ce.current?ce.current:void 0;if(Pe.current||(we.current=Jn,Pe.current=!0),an&&on){var Qe=(an.scrollHeight-an.offsetHeight)/(on.scrollHeight-on.offsetHeight);qe.target===an&&we.current==="text"&&(on.scrollTop=an.scrollTop/Qe),qe.target===on&&we.current==="preview"&&(an.scrollTop=on.scrollTop*Qe);var Ct=0;we.current==="text"?Ct=an.scrollTop||0:we.current==="preview"&&(Ct=on.scrollTop||0),P({scrollTop:Ct})}}},ot=r+"-preview "+(x.className||""),dt=qe=>Me(qe,"preview"),He=N.useMemo(()=>b.jsx("div",{ref:ce,className:ot,children:b.jsx(qI,Ae({},x,{onScroll:dt,source:ye.markdown||""}))}),[ot,x,ye.markdown]),Wt=re?.preview&&re?.preview(ye.markdown||"",ye,P);Wt&&Ne.isValidElement(Wt)&&(He=b.jsx("div",{className:ot,ref:ce,onScroll:dt,children:Wt}));var Nt=Ae({},V.style,{height:ye.height||"100%"}),Fe=()=>P({barPopup:Ae({},Gne(ye.barPopup))}),or=qe=>P({height:qe}),fn=qe=>{if(W&&W(qe.target.value,qe,ye),D&&D.onChange&&D.onChange(qe),ye.textarea&&ye.textarea instanceof HTMLTextAreaElement&&k){var Jn=new iv(ye.textarea),an=Jn.getState()||{};k(Ae({},an,{lineCount:qe.target.value.split(`
251
+ `).length,length:qe.target.value.length}))}};return b.jsx(vc.Provider,{value:Ae({},ye,{dispatch:P}),children:b.jsxs("div",Ae({ref:Le,className:te},V,{onClick:Fe,style:Nt,children:[b.jsx(V2,{hideToolbar:$,toolbarBottom:K,prefixCls:r,overflow:C,placement:"top"}),b.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(ye.preview||"")&&b.jsx(Bne,Ae({className:r+"-input",prefixCls:r,autoFocus:M},D,{onChange:fn,renderTextarea:re?.textarea||me,onScroll:qe=>Me(qe,"text")})),/(live|preview)/.test(ye.preview||"")&&He]}),E&&!ye.fullscreen&&b.jsx(Hne,{prefixCls:r,height:ye.height,maxHeight:S,minHeight:L,onChange:or}),b.jsx(V2,{hideToolbar:$,toolbarBottom:K,prefixCls:r,overflow:C,placement:"bottom"})]}))})}),JI=Vne;JI.Markdown=qI;function qne({cell:e,sourceAndPaths:t,onQueryChange:n,onSourceChange:r}){const a={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 b.jsx(MR,{sourceAndPaths:t,existingQuery:a,existingSourceName:e.sourceName,onQueryChange:n,onSourceChange:r})}function Yne({cell:e,expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMalloy:a,editingMarkdown:s,sourceAndPaths:l,onCellChange:c,onClose:d,onEdit:f,onDelete:p,addButtonCallback:m}){const[E,y]=N.useState(e.value),[T,A]=Ne.useState(t),[C,x]=Ne.useState(n),[D,S]=Ne.useState(),[L]=Ne.useState(),[M,w]=Ne.useState(Wu()),[q,ne]=Ne.useState(!1),[W,k]=Ne.useState(e.sourceName?l.findIndex(I=>I.sourceInfo.name===e.sourceName):0);N.useEffect(()=>{e.isMarkdown||No(e.value,"malloy").then(I=>{S(I)})},[e]),Ne.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[z,$]=N.useState(!1),K=()=>{p(),$(!1)},re=l.length===0,me=Ne.useCallback(()=>{const I=l[W],te=I?.modelPath||e.modelPath||"",Ce=I?.sourceInfo.name||e.sourceName||"";c({...e,value:e.isMarkdown?E:M.query,result:M.malloyResult?JSON.stringify(M.malloyResult):void 0,queryInfo:M.malloyQuery?JSON.stringify(M.malloyQuery):void 0,sourceName:Ce,modelPath:te})},[e,E,M,c,W,l]),V=b.jsx(Rn,{title:"Delete Cell",children:b.jsx(An,{size:"small",onClick:()=>$(!0),children:b.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.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"})})})}),le=b.jsxs(Kl,{open:z,onClose:()=>$(!1),children:[b.jsx(Xl,{children:"Confirm Delete"}),b.jsx(Zl,{children:b.jsx(Ie,{children:"Are you sure you want to delete this cell?"})}),b.jsxs(K2,{children:[b.jsx(rr,{onClick:()=>$(!1),children:"Cancel"}),b.jsx(rr,{onClick:K,color:"error",children:"Delete"})]})]}),oe=()=>{me(),d()},ye=e.isMarkdown?b.jsxs(b.Fragment,{children:[s?b.jsx(Rn,{title:"Save",children:b.jsx(An,{size:"small",onClick:oe,children:b.jsx(kh,{})})}):b.jsx(Rn,{title:"Edit",children:b.jsx(An,{size:"small",onClick:f,children:b.jsx(gC,{})})}),!s&&V]}):b.jsxs(b.Fragment,{children:[!a&&b.jsx(Rn,{title:T?"Hide Code":"View Code",children:b.jsx(An,{size:"small",onClick:()=>{A(!T)},children:b.jsx(rR,{})})}),!r&&!a&&e.result&&b.jsx(Rn,{title:C?"Hide Embedding":"View Embedding",children:b.jsx(An,{size:"small",onClick:()=>{x(!C)},children:b.jsx(qd,{})})}),a&&b.jsx(Rn,{title:"Save",children:b.jsx(An,{size:"small",onClick:oe,children:b.jsx(kh,{})})}),!a&&b.jsx(Rn,{title:"Edit",children:b.jsx(An,{size:"small",onClick:f,children:b.jsx(gC,{})})}),!a&&V]}),P=a||s,Le=s?b.jsx(Rn,{title:"Save",children:b.jsx(An,{size:"small",onClick:oe,children:b.jsx(kh,{})})}):a?b.jsx(Rn,{title:"Save",children:b.jsx(An,{size:"small",onClick:oe,children:b.jsx(kh,{})})}):null,ce=q&&b.jsx(it,{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:!P&&b.jsxs(b.Fragment,{children:[m(!0),m(!1),ye]})||Le});return b.jsxs(Gn,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>ne(!0),onMouseLeave:()=>{ne(!1)},children:[ce,e.isMarkdown?b.jsx(b.Fragment,{children:s?b.jsx(JI,{value:E,preview:"edit",autoFocus:!0,onChange:I=>{y(I),c({...e,value:I})},onBlur:()=>{me(),q||oe()}}):b.jsx(it,{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:e.value?b.jsx(it,{onClick:f,sx:{cursor:"pointer"},children:b.jsx(FE,{children:e.value})}):b.jsxs(it,{onClick:f,sx:{cursor:"pointer"},children:[b.jsx(Ie,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),b.jsx(Ie,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):b.jsxs(b.Fragment,{children:[b.jsx(zi,{in:C,timeout:"auto",unmountOnExit:!0,children:b.jsx(It,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Ie,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:L}})})}),b.jsx(zi,{in:T,timeout:"auto",unmountOnExit:!0,children:b.jsx(It,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:b.jsx(Ie,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:D}})})}),a&&(re?b.jsxs(b.Fragment,{children:[b.jsx(Ie,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),b.jsx(Ie,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):b.jsx(qne,{sourceAndPaths:l,onQueryChange:I=>{w(I)},cell:e,onSourceChange:k})),!a&&e.result&&b.jsx(Gn,{variant:"outlined",sx:{borderRadius:0},children:b.jsx(aR,{result:e.result,minHeight:300,maxHeight:800})}),!a&&!e.result&&b.jsxs(it,{onClick:f,sx:{cursor:"pointer"},children:[b.jsx(Ie,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),b.jsx(Ie,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),z&&le]})}const eN=N.createContext(void 0);function Qne({children:e,workbookStorage:t}){const n=N.useMemo(()=>({workbookStorage:t}),[t]);return b.jsx(eN.Provider,{value:n,children:e})}function sv(){const e=N.useContext(eN);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const $ne=$t(b.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"})),Wne=$t(b.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"})),Kne=new km(new sr);function Xne({initialSelectedModels:e,onModelChange:t}){const{projectName:n,packageName:r,versionId:a}=ra(),{data:s,isLoading:l,isSuccess:c,isError:d,error:f}=gr({queryKey:["models",n,r,a],queryFn:x=>Kne.listModels(n,r,a,x)}),[p,m]=Ne.useState(e||[]),[E,y]=Ne.useState(null);Ne.useEffect(()=>{m(e||[])},[e]);const T=x=>{const D=p.filter(S=>S!==x);m(D),t(D)},A=x=>{const D=[...p,x];m(D),t(D),y(null)};let C=[];return c&&s?.data&&(C=s.data.filter(x=>!p.includes(x.path)).map(x=>x.path)),d?b.jsx(ir,{error:f,context:`${n} > ${r} > Model Picker`}):b.jsxs(b.Fragment,{children:[b.jsxs(n1,{fullWidth:!0,children:[l&&b.jsx(Ie,{children:"Loading..."}),b.jsxs(It,{direction:"row",spacing:1,children:[p.map(x=>b.jsx(vo,{label:x,onDelete:()=>T(x),deleteIcon:b.jsx($ne,{}),sx:{marginBottom:"5px"}},x)),b.jsx(rr,{size:"small",startIcon:b.jsx(Wne,{}),onClick:x=>y(x.currentTarget),disabled:l||d||C.length===0,children:"Add Model"})]})]}),b.jsxs(mE,{anchorEl:E,open:!!E,onClose:()=>y(null),children:[b.jsx(Ie,{variant:"subtitle2",sx:{ml:1},children:"Models"}),b.jsx(Zn,{}),C.length===0?b.jsx(To,{disabled:!0,children:"No models available"}):C.map(x=>b.jsx(To,{onClick:()=>A(x),children:b.jsx(Ie,{variant:"body2",children:x})},x))]})]})}function af(){const e=xE();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")}}const Zne=new km(new sr);function Jne({workbookPath:e,expandCodeCells:t,expandEmbeddings:n,hideEmbeddingIcons:r,defaultProjectName:a,defaultPackageName:s}){const l=af(),{server:c,getAccessToken:d}=Ib(),{workbookStorage:f}=sv(),[p,m]=Ne.useState(void 0),[E,y]=Ne.useState(void 0);if(!f)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[T,A]=Ne.useState(),[C,x]=Ne.useState(),[D,S]=Ne.useState(),[L,M]=Ne.useState([]),[w,q]=Ne.useState(null),[ne,W]=Ne.useState(null),k=!!w,z=()=>{q(null),W(null)},$=(ce,I)=>{T&&(A(T.insertCell(I,{isMarkdown:ce,value:""})),ce?S(I):x(I),z(),console.log("handleAddCell",ce,I))},[K,re]=Ne.useState(!1),me=()=>{re(!0)},V=async()=>{e&&f&&await f.deleteWorkbook(e).then(()=>{y(void 0),m(void 0)}).catch(ce=>{y(`Error deleting workbook: ${ce.message}`),m(void 0)}),re(!1),l(`/${a}/${s}`)},le=()=>{re(!1)},oe=Ne.useCallback(async()=>{if(!T){console.log("No workbook data ref");return}try{A(await T.saveWorkbook()),y(void 0),m("Workbook saved")}catch(ce){y(`Error saving workbook: ${ce.message}`),m(void 0)}},[T]);if(Ne.useEffect(()=>{T&&(async()=>{const ce=new Map(L.map(({modelPath:Ce,sourceInfos:we})=>[Ce,we])),I=[],te=[];for(const Ce of T.getModels())ce.has(Ce)?I.push({modelPath:Ce,sourceInfos:ce.get(Ce)}):(console.log("Fetching model from Publisher",Ce),te.push(Zne.getModel(a,s,Ce,void 0,await Tb(c,d)).then(we=>({modelPath:Ce,sourceInfos:we.data.sourceInfos.map(Pe=>JSON.parse(Pe))}))));if(te.length>0){const Ce=await Promise.all(te);M([...I,...Ce])}else M(I)})()},[d,T,s,a,c]),Ne.useEffect(()=>{e&&Ku.loadWorkbook(f,e).then(ce=>{A(ce)})},[e,f]),!T)return b.jsx("div",{children:"Loading..."});const ye=ce=>{const I=[];for(const te of ce)for(const Ce of te.sourceInfos)I.push({modelPath:te.modelPath,sourceInfo:Ce});return I},P=(ce,I)=>b.jsx(rr,{size:"small",startIcon:b.jsx(wV,{}),onClick:()=>$(ce,I),variant:"contained",sx:{backgroundColor:"#fff",color:te=>te.palette.mode==="dark"?te.palette.grey[100]:te.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:te=>te.palette.mode==="dark"?te.palette.grey[500]:te.palette.grey[300],boxShadow:"none"}},children:ce?"Markdown":"Explore"}),Le=b.jsxs(it,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[P(!1,T.getCells().length),P(!0,T.getCells().length)]});return b.jsxs(Gn,{variant:"outlined",children:[b.jsxs(na,{children:[b.jsx(it,{sx:{mb:2},children:b.jsx(it,{sx:{minHeight:"24px"},children:E?b.jsx(Ie,{color:"error",variant:"body2",children:E}):p?b.jsx(Ie,{color:"success",variant:"body2",children:p}):b.jsx("span",{children:" "})})}),b.jsxs(wl,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[b.jsxs(wl,{direction:"row",spacing:1,alignItems:"center",children:[b.jsx(Ie,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),b.jsx(Ie,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),b.jsxs(wl,{sx:{display:"flex",flexDirection:"row",gap:1},children:[b.jsx(it,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:b.jsx(ere,{workbookData:T})}),b.jsxs(it,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[b.jsx(rr,{color:"error",onClick:me,size:"small",children:"Delete"}),b.jsxs(Kl,{open:K,onClose:le,children:[b.jsx(Xl,{children:"Delete Workbook"}),b.jsx(Zl,{children:b.jsxs(b4,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),b.jsxs(K2,{children:[b.jsx(rr,{onClick:le,color:"primary",size:"small",children:"Cancel"}),b.jsx(rr,{onClick:V,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),b.jsx(Zn,{}),b.jsxs(wl,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[b.jsx(it,{sx:{flex:1},children:b.jsx(Xne,{initialSelectedModels:T.getModels(),onModelChange:ce=>{A(T.setModels(ce)),oe()}})}),b.jsx(it,{sx:{flex:1}})]})]}),b.jsx(bb,{children:b.jsxs(wl,{children:[T.getCells().length===0&&b.jsxs(b.Fragment,{children:[b.jsx(Ie,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),b.jsx(Ie,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),T.getCells().map((ce,I)=>b.jsx(Ne.Fragment,{children:b.jsx(Yne,{cell:ce,addButtonCallback:te=>P(te,I),sourceAndPaths:ye(L),expandCodeCell:t,expandEmbedding:n,hideEmbeddingIcons:r,editingMarkdown:D===I,editingMalloy:C===I,onDelete:()=>{A(T.deleteCell(I)),oe()},onCellChange:te=>{A(T.setCell(I,te))},onEdit:()=>{ce.isMarkdown?S(I):x(I)},onClose:()=>{ce.isMarkdown?S(void 0):x(void 0),oe()}},`${I}-${ce.isMarkdown}-${e.workspace}-${e.path}`)},`${I}-${T.getCells().length}`)),Le,b.jsxs(mE,{anchorEl:w,open:k,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[b.jsx(To,{onClick:()=>$(!0,ne??0),children:"Add Markdown"}),b.jsx(To,{onClick:()=>$(!1,ne??0),children:"Add Malloy"})]}),b.jsx(wl,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function ere({workbookData:e}){const[t,n]=Ne.useState(!1);return b.jsx(rr,{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 tre({onWorkbookClick:e}){const{workbookStorage:t}=sv(),[n,r]=Ne.useState([]),[a,s]=Ne.useState(void 0);return Ne.useEffect(()=>{t&&t.listWorkspaces(!1).then(l=>{const c=[];Promise.all(l.map(async d=>{await t.listWorkbooks(d).then(f=>{c.push(...f)}).catch(f=>{s(`Error listing workbooks: ${f.message}`)})})).then(()=>{r(c),s(void 0)})})},[t]),b.jsxs(b.Fragment,{children:[a&&b.jsx(it,{sx:{mb:2},children:b.jsx(Ie,{color:"error",variant:"body2",children:a})}),b.jsx(Zn,{}),b.jsx(it,{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:b.jsxs(Qp,{dense:!0,children:[n.length===0&&b.jsx(Bl,{children:b.jsx(Hi,{primary:"No workbooks found.",sx:{textAlign:"center"}})}),n.map(l=>b.jsx(Bl,{onClick:c=>e(l,c),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:b.jsx(Hi,{primary:l.path})},l.path))]})})]})}const q2="Local";class nre{async listWorkspaces(t){return Promise.resolve([{name:q2,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);n.push({path:a,workspace:q2})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}}const rre=$t(b.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"})),are=$t(b.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"})),Y2=$t(b.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"})),ire=$t(b.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"})),sre=$t(b.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"})),ore=$t([b.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"),b.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")]),Q2=$t(b.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"})),lre=new J3(new sr),cre=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 ure({navigate:e}){const{data:t,isSuccess:n,isError:r,error:a}=gr({queryKey:["projects"],queryFn:s=>lre.listProjects(s)});return r?b.jsx(ir,{error:a,context:"Projects List"}):n?b.jsxs(pE,{maxWidth:"lg",sx:{py:4},children:[b.jsxs(it,{sx:{textAlign:"center",mb:6},children:[b.jsxs(It,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(Y2,{sx:{fontSize:32,color:"primary.main"}}),b.jsx(Ie,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),b.jsx(Ie,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),b.jsx(Ie,{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."})]}),b.jsxs(gn,{container:!0,spacing:3,sx:{mb:6},children:[b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(Fl,{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:b.jsxs(jl,{sx:{p:3},children:[b.jsxs(It,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(rre,{sx:{color:"info.main",fontSize:28}}),b.jsx(Ie,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),b.jsx(Ie,{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."}),b.jsx(vo,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(Fl,{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:b.jsxs(jl,{sx:{p:3},children:[b.jsxs(It,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(ire,{sx:{color:"warning.main",fontSize:28}}),b.jsx(Ie,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),b.jsx(Ie,{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."}),b.jsx(vo,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),b.jsx(gn,{size:{xs:12,md:4},children:b.jsx(Fl,{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:b.jsxs(jl,{sx:{p:3},children:[b.jsxs(It,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(ore,{sx:{color:"success.main",fontSize:28}}),b.jsx(Ie,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),b.jsx(Ie,{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."}),b.jsx(vo,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),b.jsx(Zn,{sx:{my:4}}),t.data.length>0?b.jsxs(b.Fragment,{children:[b.jsxs(it,{sx:{textAlign:"center",mb:4},children:[b.jsxs(It,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(Q2,{sx:{color:"primary.main",fontSize:24}}),b.jsx(Ie,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),b.jsx(Ie,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"})]}),b.jsx(gn,{container:!0,spacing:3,justifyContent:"center",children:t.data.map(s=>b.jsx(gn,{size:{xs:12,sm:6,md:4},children:b.jsx(Fl,{variant:"outlined",sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},onClick:l=>e(`/${s.name}/`,l),children:b.jsxs(jl,{sx:{p:3,textAlign:"center"},children:[b.jsx(sre,{sx:{fontSize:48,color:"primary.main",mb:2}}),b.jsx(Ie,{variant:"h6",fontWeight:600,gutterBottom:!0,children:s.name}),b.jsx(Ie,{variant:"body2",color:"text.secondary",sx:{mb:2},children:cre(s.readme)}),b.jsx(rr,{variant:"contained",color:"secondary",endIcon:b.jsx(are,{}),fullWidth:!0,children:"Open Project"})]})})},s.name))})]}):b.jsxs(it,{sx:{textAlign:"center",mb:4},children:[b.jsxs(It,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[b.jsx(Q2,{sx:{color:"primary.main",fontSize:24}}),b.jsx(Ie,{variant:"h4",fontWeight:600,children:"Get Started"})]}),b.jsx(Ie,{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."}),b.jsx(rr,{variant:"contained",size:"large",color:"primary",startIcon:b.jsx(Y2,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),b.jsx(it,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:b.jsxs(Ie,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",b.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."]})})]}):b.jsx(mr,{text:"Loading projects..."})}function dre({onWorkbookSelect:e}){const{workbookStorage:t}=sv(),[n,r]=Ne.useState(""),[a,s]=Ne.useState(""),[l,c]=Ne.useState([]),[d,f]=Ne.useState(null),[p,m]=Ne.useState(!1),[E,y]=Ne.useState(!1),T=!!d,A=w=>{f(w.currentTarget)},C=()=>{f(null)},x=()=>{y(!1)},D=()=>{m(!1),r(""),s("")};Ne.useEffect(()=>{t&&(console.log("fetching workspaces"),t.listWorkspaces(!0).then(w=>{c(w),w.length===1&&s(w[0].name)}).catch(w=>{console.error("Error fetching workspaces:",w),c([])}))},[t]);const S=(w,q)=>{y(!1),e(w,q)},L=w=>{m(!1),e({path:n,workspace:a},w),r(""),s("")},M=l.length===0;return b.jsxs(b.Fragment,{children:[b.jsx(rr,{"aria-controls":T?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":T?"true":void 0,onClick:A,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),b.jsxs(mE,{id:"basic-menu",anchorEl:d,open:T,onClose:C,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[b.jsxs(To,{onClick:()=>{m(!0),C()},sx:{py:1,px:2},disabled:M,children:[b.jsx(jx,{children:b.jsx(p4,{fontSize:"small"})}),b.jsxs(Hi,{children:[b.jsx(Ie,{variant:"body2",fontWeight:500,children:"New Workbook"}),M?b.jsx(Ie,{variant:"caption",color:"text.secondary",children:"No workspaces available"}):b.jsx(Ie,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),b.jsxs(To,{onClick:()=>{y(!0),C()},sx:{py:1,px:2},children:[b.jsx(jx,{children:b.jsx(m4,{fontSize:"small"})}),b.jsxs(Hi,{children:[b.jsx(Ie,{variant:"body2",fontWeight:500,children:"Open Workbook"}),b.jsx(Ie,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),b.jsxs(Kl,{open:p,onClose:D,maxWidth:"sm",fullWidth:!0,children:[b.jsxs(Xl,{sx:{pb:1,pt:2,px:2},children:[b.jsx(Ie,{fontWeight:600,sx:{fontSize:"1.5rem",mb:.5},children:"Create New Workbook"}),b.jsx(Ie,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),b.jsx(Zl,{sx:{px:2,pb:2},children:b.jsxs(It,{spacing:2,sx:{mt:1},children:[l.length>1?b.jsxs(n1,{fullWidth:!0,size:"small",children:[b.jsx(g4,{children:"Workspace"}),b.jsx(y4,{value:a,label:"Workspace",onChange:w=>s(w.target.value),children:l.map(w=>b.jsx(To,{value:w.name,children:b.jsxs(it,{children:[b.jsx(Ie,{variant:"body2",fontWeight:500,children:w.name}),b.jsx(Ie,{variant:"caption",color:"text.secondary",children:w.description})]})},w.name))})]}):l.length===1?b.jsxs(it,{sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"grey.50"},children:[b.jsxs(Ie,{variant:"body2",fontWeight:500,gutterBottom:!0,children:["Workspace: ",l[0].name]}),b.jsx(Ie,{variant:"caption",color:"text.secondary",children:l[0].description})]}):null,b.jsx(n1,{fullWidth:!0,children:b.jsx(E4,{label:"Workbook Name",value:n,onChange:w=>r(w.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),b.jsxs(It,{direction:"row",spacing:1,justifyContent:"flex-end",children:[b.jsx(rr,{onClick:D,variant:"outlined",size:"small",children:"Cancel"}),b.jsx(rr,{onClick:w=>L(w),variant:"contained",disabled:!n.trim()||l.length>1&&!a,size:"small",children:"Create Workbook"})]})]})})]}),b.jsxs(Kl,{open:E,onClose:x,maxWidth:"md",fullWidth:!0,children:[b.jsxs(Xl,{sx:{pb:1,pt:2,px:2},children:[b.jsx(Ie,{fontWeight:600,sx:{mb:.5,fontSize:"1.5rem"},children:"Open Workbook"}),b.jsx(Ie,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),b.jsx(Zl,{sx:{px:2,pb:2},children:b.jsx(tre,{onWorkbookClick:S})})]})]})}new vb(new sr);at.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";function fre(){const e=af();return b.jsx(ure,{navigate:e})}function hre(){const e=sc(),t=e["*"],n=af();return b.jsx(it,{sx:{display:"flex",alignItems:"center"},children:b.jsxs(k4,{"aria-label":"breadcrumb",separator:b.jsx(R4,{sx:{fontSize:14,color:"text.secondary"}}),sx:{"& .MuiBreadcrumbs-separator":{margin:"0 6px"}},children:[e.projectName&&b.jsx(vo,{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&&b.jsx(vo,{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&&b.jsx(vo,{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 pre({logoHeader:e,endCap:t}){const n=xE(),{projectName:r,packageName:a}=sc();return b.jsx(w4,{position:"sticky",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider"},children:b.jsxs(I4,{sx:{justifyContent:"space-between"},children:[b.jsxs(It,{direction:"row",spacing:2,alignItems:"center",children:[e||b.jsxs(it,{sx:{display:"flex",alignItems:"center",gap:1},children:[b.jsx(it,{component:"img",src:"/logo.svg",alt:"Malloy",sx:{width:28,height:28}}),b.jsx(Ie,{variant:"h5",sx:{color:"text.primary",fontWeight:700,letterSpacing:"-0.025em",cursor:"pointer"},onClick:()=>{n("/")},children:"Malloy Publisher"})]}),b.jsx(hre,{})]}),b.jsxs(It,{direction:"row",spacing:2,alignItems:"center",children:[!r||!a?!e&&b.jsxs(b.Fragment,{children:[b.jsx(rr,{href:"https://docs.malloydata.dev/documentation/",children:"Malloy Docs"}),b.jsx(rr,{href:"https://github.com/malloydata/publisher/blob/main/README.md",children:"Publisher Docs"}),b.jsx(rr,{href:"/api-doc.html",children:"Publisher API"})]}):b.jsx(b.Fragment,{children:b.jsx(dre,{onWorkbookSelect:s=>{n(`/${r}/${a}/workbook/${s.workspace}/${s.path}`)}})}),t]})]})})}function mre({headerProps:e}){return b.jsxs(it,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[b.jsx(pre,{...e}),b.jsx(pE,{maxWidth:"xl",component:"main",sx:{flex:1,display:"flex",flexDirection:"column",py:2,gap:2},children:b.jsx(it,{sx:{flex:1},children:b.jsx(f6,{})})})]})}function gre(){const e=sc(),t=e["*"];return e.projectName?e.packageName?t?.endsWith(".malloy")?b.jsx(Lp,{projectName:e.projectName,packageName:e.packageName,children:b.jsx(kV,{modelPath:t,hideEmbeddingIcons:!1})}):t?.endsWith(".malloynb")?b.jsx(Lp,{projectName:e.projectName,packageName:e.packageName,children:b.jsx(iR,{notebookPath:t,hideEmbeddingIcons:!1,expandResults:!1})}):b.jsx("div",{children:b.jsxs("h2",{children:["Unrecognized file type: ",t]})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function yre(){const{projectName:e,packageName:t}=sc(),n=af();return e?t?b.jsx(Lp,{projectName:e,packageName:t,children:b.jsx(bV,{navigate:n})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function Ere(){const e=af(),{projectName:t}=sc();return t?b.jsx(lR,{projectName:t,children:b.jsx(VH,{navigate:e})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})})}function bre(){const e=gD();return console.error(e),b.jsx(pE,{maxWidth:"lg",component:"main",sx:{display:"flex",flexDirection:"column",my:2,gap:0},children:b.jsxs(It,{sx:{m:"auto",flexDirection:"column"},children:[b.jsx(it,{sx:{height:"300px"}}),b.jsx("img",{src:"/error.png"}),b.jsx(Ie,{variant:"subtitle1",children:"An unexpected error occurred"})]})})}function vre(){const{workspace:e,workbookPath:t,projectName:n,packageName:r}=sc();return e?t?n?r?b.jsx(Lp,{projectName:n,packageName:r,children:b.jsx(Jne,{defaultProjectName:n,defaultPackageName:r,workbookPath:{path:t,workspace:e},hideEmbeddingIcons:!0},`${t}`)}):b.jsx("div",{children:b.jsx("h2",{children:"Missing package name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing project name"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing workbook path"})}):b.jsx("div",{children:b.jsx("h2",{children:"Missing workspace"})})}const un={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"}},Tre=N4({palette:{mode:"light",primary:un.primary,secondary:un.secondary,grey:un.grey,success:un.success,warning:un.warning,error:un.error,info:un.info,background:{default:"#ffffff",paper:"#ffffff"},text:{primary:un.grey[900],secondary:un.grey[600]},divider:un.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:`${un.grey[300]} ${un.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:un.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:un.grey[300],borderRadius:"4px","&:hover":{background:un.grey[400]}},"&::-webkit-scrollbar-corner":{background:un.grey[100]}},"*":{scrollbarWidth:"thin",scrollbarColor:`${un.grey[300]} ${un.grey[100]}`,"&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-track":{background:un.grey[100],borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:un.grey[300],borderRadius:"4px","&:hover":{background:un.grey[400]}},"&::-webkit-scrollbar-corner":{background:un.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:un.grey[400]}}}},MuiDivider:{styleOverrides:{root:{margin:"4px 0",borderColor:un.grey[200]}},defaultProps:{sx:{my:1}}}}}),_re=(e="/",t,n,r,a)=>P6([{path:e,element:b.jsx(IV,{server:r,getAccessToken:a,children:b.jsx(Qne,{workbookStorage:t,children:b.jsxs(O4,{theme:Tre,children:[b.jsx(L4,{}),b.jsx(mre,{headerProps:n})]})})}),errorElement:b.jsx(bre,{}),children:[{path:"",element:b.jsx(fre,{})},{path:":projectName",element:b.jsx(Ere,{})},{path:":projectName/:packageName",element:b.jsx(yre,{})},{path:":projectName/:packageName/*",element:b.jsx(gre,{})},{path:":projectName/:packageName/workbook/:workspace/:workbookPath",element:b.jsx(vre,{})}]}]),xre=`${window.location.protocol}//${window.location.host}/api/v0`,Are=_re("/",new nre,void 0,xre);H4.createRoot(document.getElementById("root")).render(b.jsx(N.StrictMode,{children:b.jsx($6,{router:Are})}));export{j as _};